<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>429</bug_id>
          
          <creation_ts>2010-10-11 18:58:02 +0000</creation_ts>
          <short_desc>error in compiling gmp-nativesdk for qemumips architecture on x86_64 host</short_desc>
          <delta_ts>2011-08-24 20:33:58 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>0.9</version>
          <rep_platform>x86</rep_platform>
          <op_sys>mips</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.0 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lianhao Lu">lianhao.lu</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>ke.yu</cc>
    
    <cc>kevin.tian</cc>
    
    <cc>liping.ke</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>10335</commentid>
    <comment_count>0</comment_count>
      <attachid>57</attachid>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2010-10-11 18:58:02 +0000</bug_when>
    <thetext>Created attachment 57
failure log

Using the poky-contrib/builds/milestone branch, when building the meta-toolchain-sdk target for qemumips architecture on a x86_64 host(Ubuntu 10.04), the gmp-natviesdk package failed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10356</commentid>
    <comment_count>1</comment_count>
    <who name="Kevin Tian">kevin.tian</who>
    <bug_when>2010-10-11 21:52:12 +0000</bug_when>
    <thetext>I tried building gmp-nativesdk directly for qemumips, there&apos;s no error. My build host is 32bit, while Lianhao&apos;s is 64bit which may be the clue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10362</commentid>
    <comment_count>2</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2010-10-11 22:19:37 +0000</bug_when>
    <thetext>Is there another 64bit machine that we can use to try to confirm?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10369</commentid>
    <comment_count>3</comment_count>
    <who name="Qing He">qing.he</who>
    <bug_when>2010-10-12 01:18:35 +0000</bug_when>
    <thetext>This only happens when some older version of SDK (i.e. /opt/poky) is installed. If there is no /opt/poky directory, the build will pass.

So it&apos;s kind of host contamination specifically for nativesdk.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10371</commentid>
    <comment_count>4</comment_count>
    <who name="Qing He">qing.he</who>
    <bug_when>2010-10-12 01:38:50 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; This only happens when some older version of SDK (i.e. /opt/poky) is installed.
&gt; If there is no /opt/poky directory, the build will pass.
&gt; 
&gt; So it&apos;s kind of host contamination specifically for nativesdk.

details:

gmp builds and runs several binaries in the build process, which are all built with $(CC_FOR_BUILD), that&apos;s take gen-fac_ui for example

However, if /opt/poky/ exists and has an older version of sdk, these binaries may link to it instead of building sysroot, with the following test, it&apos;s clear.

---
1. $ ldd gen-fac_ui
     linux-vdso.so.1 =&gt; (...)
     libc.so.6 =&gt; ......
     /opt/poky/sysroots/x86_64-pokysdk-linux/lib/ld-linux-x86-64.so.2 =&gt; ....

2. $ ./gen-fac_ui    # parameter omitted
     Segmentation fault

3. $ /opt/poky/sysroots/x86_64-pokysdk-linux/lib/ld-linux-x86-64.so.2 ./gen-fac_ui
     Segmentation fault

4. $ /lib/ld-linux-x86-64.so.2 ./gen-fac_ui
     (passed)

5. $ /tmp/sysroots/x86_64-nativesdk-pokysdk-linux/opt/poky/sysroots/x86_64-pokysdk-linux/lib/ld-linux-x86-64.so.2 ./gen-fac_ui
     (passed)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10446</commentid>
    <comment_count>5</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2010-10-13 11:53:44 +0000</bug_when>
    <thetext>So any update on this bug? My build went through with the exact setup except mine&apos;s a 32bit machine, and my /opt/poky maybe different from Lianhao&apos;s.  But base on Qing&apos;s comments, it should be generic issue if there&apos;s an older version of /opt/poky?  

Any, since it&apos;s a high priority bug, can we have some update or conclusion regarding it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10454</commentid>
    <comment_count>6</comment_count>
    <who name="Qing He">qing.he</who>
    <bug_when>2010-10-13 18:17:57 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; So any update on this bug? My build went through with the exact setup except
&gt; mine&apos;s a 32bit machine, and my /opt/poky maybe different from Lianhao&apos;s.  But
&gt; base on Qing&apos;s comments, it should be generic issue if there&apos;s an older version
&gt; of /opt/poky?  

Yes, this is a generic issue (host contamination of ), but the effective damage is much more limited than previously thought.

An older /opt/poky doesn&apos;t necessarily crash the build, it doesn&apos;t crash on my host for example, the crash observed may have something to do with glibc-&gt;eglibc transition.

&gt; Any, since it&apos;s a high priority bug, can we have some update or conclusion
&gt; regarding it?

Since its impact is limited, I think it&apos;s OK to lower the priority.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11041</commentid>
    <comment_count>7</comment_count>
    <who name="Ke Yu">ke.yu</who>
    <bug_when>2010-12-08 22:39:43 +0000</bug_when>
    <thetext>set to low since its impact is limited</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14508</commentid>
    <comment_count>8</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-06-30 23:28:33 +0000</bug_when>
    <thetext>Just tested this with 1.1 Head and did not see an issue, I am going to close this bug, if you see this issue again, please re-open.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15726</commentid>
    <comment_count>9</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2011-08-24 20:33:58 +0000</bug_when>
    <thetext>Verified in 1.1 head build, not seen this error again.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>57</attachid>
            <date>2010-10-11 18:58:02 +0000</date>
            <delta_ts>2010-10-11 18:58:02 +0000</delta_ts>
            <desc>failure log</desc>
            <filename>log.do_compile.2365</filename>
            <type>application/octet-stream</type>
            <size>579</size>
            <attacher name="Lianhao Lu">lianhao.lu</attacher>
            
              <data encoding="base64">Tk9URTogbWFrZSAtaiAxCng4Nl82NC1wb2t5c2RrLWxpbnV4LWdjYyAgLS1zeXNyb290PS9ob21l
L2x1bGlhbmhhby9wb2t5LWJ1aWxkL21pcHMvdG1wL3N5c3Jvb3RzL3g4Nl82NC1uYXRpdmVzZGst
cG9reXNkay1saW51eCAtc3RkPWdudTk5IGB0ZXN0IC1mICdnZW4tZmFjX3VpLmMnIHx8IGVjaG8g
Jy4vJ2BnZW4tZmFjX3VpLmMgLW8gZ2VuLWZhY191aQouL2dlbi1mYWNfdWkgNjQgMCA+bXB6L2Zh
Y191aS5oIHx8IChybSAtZiBtcHovZmFjX3VpLmg7IGV4aXQgMSkKL2Jpbi9zaDogbGluZSAxOiAg
MjM3NSBTZWdtZW50YXRpb24gZmF1bHQgICAgICAuL2dlbi1mYWNfdWkgNjQgMCA+IG1wei9mYWNf
dWkuaAptYWtlOiAqKiogW21wei9mYWNfdWkuaF0gRXJyb3IgMQpGQVRBTDogb2VfcnVubWFrZSBm
YWlsZWQKRVJST1I6IFRhc2sgZmFpbGVkOiAoJ2Z1bmN0aW9uIGRvX2NvbXBpbGUgZmFpbGVkJywg
Jy9ob21lL2x1bGlhbmhhby9wb2t5LWJ1aWxkL21pcHMvdG1wL3dvcmsveDg2XzY0LW5hdGl2ZXNk
ay1wb2t5c2RrLWxpbnV4L2dtcC1uYXRpdmVzZGstNS4wLjEtcjAvdGVtcC9sb2cuZG9fY29tcGls
ZS4yMzY1JykK
</data>

          </attachment>
      

    </bug>

</bugzilla>