<?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>2937</bug_id>
          
          <creation_ts>2012-08-13 11:11:52 +0000</creation_ts>
          <short_desc>gold taints sstate, can&apos;t rebuild</short_desc>
          <delta_ts>2014-05-03 19:30:08 +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>OE-Core</product>
          <component>core</component>
          <version>1.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.7</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Khem Raj">raj.khem</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>23952</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2012-08-13 11:11:52 +0000</bug_when>
    <thetext>From a clean poky checkout, turn on the gold linker in local.conf:

DISTRO_FEATURES_append = &quot; ld-is-gold&quot;

Then bitbake core-image-minimal.  This works.

Decide that gold isn&apos;t for you after all.  Remove that line from local.conf, wipe tmp/ and do another bitbake.  As I understand it this should at least rebuild binutils.  But:

| checking for i586-poky-linux-readelf... i586-poky-linux-readelf
| checking for i586-poky-linux-nm... /home/ross/Yocto/poky-gold/build/tmp/sysroots/x86_64-linux/usr/libexec/i586-poky-linux.gcc-cross-intermediate/gcc/i586-poky-linux/4.7.2/nm
| checking for autoconf... autoconf
| checking whether autoconf works... yes
| configure: error:
| *** These critical programs are missing or too old: ld
| *** Check the INSTALL file for required versions.
| Configure failed. The contents of all config.log files follows to aid debugging
| ERROR: oe_runconf failed
| ERROR: Function failed: do_configure (see /home/ross/Yocto/poky-gold/build/tmp/work/i586-poky-linux/eglibc-2.16-r5+svnr19383/temp/log.do_configure.5280 for further information)
ERROR: Task 31 (/home/ross/Yocto/poky-gold/meta/recipes-core/eglibc/eglibc_2.16.bb, do_configure) failed with exit code &apos;1&apos;

eglibc fails to configure because the ld it finds is too &quot;old&quot;.


$ /home/ross/Yocto/poky-gold/build/tmp/sysroots/x86_64-linux/usr/libexec/i586-poky-linux.gcc-cross-intermediate/gcc/i586-poky-linux/4.7.2/ld  --version
GNU gold (GNU Binutils 2.22) 1.11

Oh look, gold.

I guess this is really two bugs
- the intermediate binutils wasn&apos;t rebuilt
- eglibc fails when the intermediate ld is gold

But I&apos;ll leave this for people who know more about the build system to triage.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39401</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-12-13 17:56:08 +0000</bug_when>
    <thetext>With latest master, it seems eglibc no longer gets rebuilt under these circumstances and thus you don&apos;t get the error; I&apos;m not sure if that&apos;s the right thing or not; forcing a configure of eglibc after the fact succeeds though. We no longer have gcc-cross-intermediate of course, but gcc-cross *does* get rebuilt, FWIW.

I&apos;m not sure where that leaves us. Khem / Ross, any suggestions?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40714</commentid>
    <comment_count>2</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2014-02-26 20:52:50 +0000</bug_when>
    <thetext>I think this commit 

commit 542609b968f0dc6f56cc9d6aabe4ff0144041261
Author: Khem Raj &lt;raj.khem@gmail.com&gt;
Date:   Sun Feb 16 19:48:16 2014 +0000

    binutils: ld-is-gold should not affect native and crosssdk recipes


should help this case a bit too. Do we still see this issue with latest master ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43107</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-05-03 19:30:08 +0000</bug_when>
    <thetext>I just restested this with master and it rebuilds everything it should and seems to work fine as far as I can tell.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>