[yocto] binutils-native 2.24 build broken

Darcy Watkins darcy.watkins at inmotiontechnology.com
Mon Jul 28 10:20:10 PDT 2014


Hi,

I encounter the following while building based on 'daisy':

| gcc  -DHAVE_CONFIG_H -I. -I/home/dwatkins/workspace/epsilon/daisy_MG-os_test2/build/tmp/work/i686-linux/binutils-native/2.24-r0/binutils-2.24/ld  -I. -I/home/dwatkins/workspace/epsilon/daisy_MG-os_test2/build/tmp/work/i686-linux/binutils-native/2.24-r0/binutils-2.24/ld -I../bfd -I/home/dwatkins/workspace/epsilon/daisy_MG-os_test2/build/tmp/work/i686-linux/binutils-native/2.24-r0/binutils-2.24/ld/../bfd -I/home/dwatkins/workspace/epsilon/daisy_MG-os_test2/build/tmp/work/i686-linux/binutils-native/2.24-r0/binutils-2.24/ld/../include  -isystem/home/dwatkins/workspace/epsilon/daisy_MG-os_test2/build/tmp/sysroots/i686-linux/usr/include -O2 -pipe -DENABLE_PLUGINS -DLOCALEDIR="\"/home/dwatkins/workspace/epsilon/daisy_MG-os_test2/build/tmp/sysroots/i686-linux/usr/share/locale\"" -isystem/home/dwatkins/workspace/epsilon/daisy_MG-os_test2/build/tmp/sysroots/i686-linux/usr/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -isystem/home/dwatkins/workspace/epsilon/daisy_MG-os_test2/build/tmp/sysroots/i686-linux/usr/include -O2 -pipe -c eavr25.c
| gcc  -DHAVE_CONFIG_H -I. -I/home/dwatkins/workspace/epsilon/daisy_MG-os_test2/build/tmp/work/i686-linux/binutils-native/2.24-r0/binutils-2.24/ld  -I. -I/home/dwatkins/workspace/epsilon/daisy_MG-os_test2/build/tmp/work/i686-linux/binutils-native/2.24-r0/binutils-2.24/ld -I../bfd -I/home/dwatkins/workspace/epsilon/daisy_MG-os_test2/build/tmp/work/i686-linux/binutils-native/2.24-r0/binutils-2.24/ld/../bfd -I/home/dwatkins/workspace/epsilon/daisy_MG-os_test2/build/tmp/work/i686-linux/binutils-native/2.24-r0/binutils-2.24/ld/../include  -isystem/home/dwatkins/workspace/epsilon/daisy_MG-os_test2/build/tmp/sysroots/i686-linux/usr/include -O2 -pipe -DENABLE_PLUGINS -DLOCALEDIR="\"/home/dwatkins/workspace/epsilon/daisy_MG-os_test2/build/tmp/sysroots/i686-linux/usr/share/locale\"" -isystem/home/dwatkins/workspace/epsilon/daisy_MG-os_test2/build/tmp/sysroots/i686-linux/usr/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -isystem/home/dwatkins/workspace/epsilon/daisy_MG-os_test2/build/tmp/sysroots/i686-linux/usr/include -O2 -pipe -c eavr3.c
| cc1: warnings being treated as errors
| eavr2.c: In function 'avr_elf_avr2_before_allocation':
| eavr2.c:1200: error: 'ehdr_start_save$type' may be used uninitialized in this function
| eavr2.c:1200: note: 'ehdr_start_save$type' was declared here
| make[4]: *** [eavr2.o] Error 1
| make[4]: *** Waiting for unfinished jobs....
| cc1: warnings being treated as errors
| eavr1.c: In function 'avr_elf_avr1_before_allocation':
| eavr1.c:1200: error: 'ehdr_start_save$type' may be used uninitialized in this function
| eavr1.c:1200: note: 'ehdr_start_save$type' was declared here
| make[4]: *** [eavr1.o] Error 1
| cc1: warnings being treated as errors
| eavr25.c: In function 'avr_elf_avr25_before_allocation':
| eavr25.c:1200: error: 'ehdr_start_save$type' may be used uninitialized in this function
| eavr25.c:1200: note: 'ehdr_start_save$type' was declared here
| make[4]: *** [eavr25.o] Error 1
| cc1: warnings being treated as errors
| eavr3.c: In function 'avr_elf_avr3_before_allocation':
| eavr3.c:1200: error: 'ehdr_start_save$type' may be used uninitialized in this function
| eavr3.c:1200: note: 'ehdr_start_save$type' was declared here
| make[4]: *** [eavr3.o] Error 1
| make[4]: Leaving directory `/home/dwatkins/workspace/epsilon/daisy_MG-os_test2/build/tmp/work/i686-linux/binutils-native/2.24-r0/binutils-2.24/build.i686-linux.i686-linux/ld'
| make[3]: *** [all-recursive] Error 1
| make[3]: Leaving directory `/home/dwatkins/workspace/epsilon/daisy_MG-os_test2/build/tmp/work/i686-linux/binutils-native/2.24-r0/binutils-2.24/build.i686-linux.i686-linux/ld'
| make[2]: *** [all] Error 2
| make[2]: Leaving directory `/home/dwatkins/workspace/epsilon/daisy_MG-os_test2/build/tmp/work/i686-linux/binutils-native/2.24-r0/binutils-2.24/build.i686-linux.i686-linux/ld'
| make[1]: *** [all-ld] Error 2
| make[1]: Leaving directory `/home/dwatkins/workspace/epsilon/daisy_MG-os_test2/build/tmp/work/i686-linux/binutils-native/2.24-r0/binutils-2.24/build.i686-linux.i686-linux'
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: /home/dwatkins/workspace/epsilon/daisy_MG-os_test2/build/tmp/work/i686-linux/binutils-native/2.24-r0/temp/run.do_compile.11497:1 exit 1 from
|   exit 1
| ERROR: Function failed: do_compile (log file is located at /home/dwatkins/workspace/epsilon/daisy_MG-os_test2/build/tmp/work/i686-linux/binutils-native/2.24-r0/temp/log.do_compile.11497)
ERROR: Task 780 (virtual:native:/home/dwatkins/workspace/epsilon/daisy_MG-os_test2/sources/poky/meta/recipes-devtools/binutils/binutils_2.24.bb, do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2208 tasks of which 2150 didn't need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:

Summary: 1 task failed:
  virtual:native:/home/dwatkins/workspace/epsilon/daisy_MG-os_test2/sources/poky/meta/recipes-devtools/binutils/binutils_2.24.bb, do_compile
Summary: There were 9 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.


I use a layout much like Freescale Community BSP project that uses
'repo' to pull together the layers based on a manifest.

I noticed this when a syncup triggered the toolchain to rebuild.

Since I hadn't had anything trigger toolchain to rebuild since July 17,
I tried 'git checkout' all my layers, oe layers and yocto layers to
specific hashes to get back to the state I had in July 17.  I blew away
the sstate-cache, cache and tmp and rebuilt from scratch.  Same thing.

Are there floating git references related to the toolchain that could
have updated independent of the meta data that could still go forward of
Jul 17?

In any case, it appears that my 64bit Fedora machine at home is not
affected by this, but my 32bit CentOS 6 machine at work is affected by
it.

Anyone know what happened?




-- 

Regards,

Darcy

---

Darcy Watkins
Staff Engineer, Firmware
In Motion Technology, a
Sierra Wireless company
350-625 Agnes St. New Westminster, BC
Canada, V3M 5Y4
[P1]




More information about the yocto mailing list