<?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>581</bug_id>
          
          <creation_ts>2010-12-09 16:03:11 +0000</creation_ts>
          <short_desc>blktrace build fails with internal BFD error</short_desc>
          <delta_ts>2011-01-14 17:45:54 +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>1.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.0 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tom Zanussi">tom.zanussi</reporter>
          <assigned_to name="Tom Zanussi">tom.zanussi</assigned_to>
          <cc>ke.yu</cc>
    
    <cc>kevin.tian</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>11066</commentid>
    <comment_count>0</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2010-12-09 16:03:11 +0000</bug_when>
    <thetext>Building blktrace for atom-pc sometimes fails with a BFD internal error.  I&apos;ve also seen this once when building blktrace for crownbay: 

BFD (GNU Binutils) 2.20.1.20100303

i586-poky-linux-gcc -m32 -march=core2 -msse3 -mtune=generic -mfpmath=sse --sysroot=/usr/local/src/yocto/p/build/tmp/sysr
oots/atom-poky-linux -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2 -ggdb -feliminate-unused-debu
g-types -I. -I.. -I../btt -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -UCOUNT_IOS -UDEBUG -DNDEBUG -o btrep
lay btreplay.o -laio -lrt
/usr/local/src/yocto/p/build/tmp/sysroots/x86_64-linux/usr/libexec/atom-poky-linux/gcc/i586-poky-linux/4.5.1/ld: BFD (GN
U Binutils) 2.20.1.20100303 internal error, aborting at /usr/local/src/yocto/p/build/tmp/work/atom-poky-linux/binutils-c
ross-2.20.1-r3/binutils-2.20.1/bfd/merge.c line 872 in _bfd_merged_section_offset

/usr/local/src/yocto/p/build/tmp/sysroots/x86_64-linux/usr/libexec/atom-poky-linux/gcc/i586-poky-linux/4.5.1/ld: Please 
report this bug.

collect2: ld returned 1 exit status
make[1]: *** [btreplay] Error 1
make[1]: Leaving directory `/usr/local/src/yocto/p/build/tmp/work/atom-poky-linux/blktrace-1.0.1+git0+1e09f6e9012826fca6
9fa07222b7bc53c3e629ee-r0/git/btreplay&apos;
make: *** [btreplay/btrecord] Error 2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11340</commentid>
    <comment_count>1</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2010-12-28 17:20:32 +0000</bug_when>
    <thetext>The other error message that results from this failure is &quot;truncated object file&quot;.

I&apos;ve only seen these problems happening with btrecord.o and btreplay.o.

The problem appears to only happen when using PARALLEL_MAKE, e.g. &quot;-j 8&quot;, which causes make to enter the btreplay directory multiple times in parallel and build the object files there multiple times in parallel, which race and occasionally cause later steps to see bogus object files in the process of being written, and thus produce these error messages.

The solution should be to find a way to prevent the parallel make from building in the same directory simultaneously.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11477</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-01-14 17:45:54 +0000</bug_when>
    <thetext>http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=d38ad3271829b2d282c973e69edd265ef52174c8</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>