[yocto] binutils_cross build aborted

Khem Raj raj.khem at gmail.com
Sat May 7 14:56:28 PDT 2016


On Sat, May 7, 2016 at 12:08 PM, Thilo Graf <03676470562-0001 at gmx.de> wrote:
> Hello!
>
> The build of binutils_cross was aborted with this error:
> We are using the current krogoth branch.
>
> Error:
>> ccache g++  -W -Wall    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=dwp -I../../gold/../zlib -isystem/home/dbt/bs/yocto-poky-cst/build-hd2/tmp-uclibc/sysroots/i686-linux/usr/include -O2 -pipe  -L/home/dbt/bs/yocto-poky-cst/build-hd2/tmp-uclibc/sysroots/i686-linux/usr/lib -L/home/dbt/bs/yocto-poky-cst/build-hd2/tmp-uclibc/sysroots/i686-linux/lib -Wl,-rpath-link,/home/dbt/bs/yocto-poky-cst/build-hd2/tmp-uclibc/sysroots/i686-linux/usr/lib -Wl,-rpath-link,/home/dbt/bs/yocto-poky-cst/build-hd2/tmp-uclibc/sysroots/i686-linux/lib -Wl,-rpath,/home/dbt/bs/yocto-poky-cst/build-hd2/tmp-uclibc/sysroots/i686-linux/usr/lib -Wl,-rpath,/home/dbt/bs/yocto-poky-cst/build-hd2/tmp-uclibc/sysroots/i686-linux/lib -Wl,-O1 -o dwp dwp.o libgold.a ../libiberty/libiberty.a    -ldl -L./../zlib -lz -ldl
>> dwp.o: In function `gold::Sized_relobj_dwo<64, false>::setup()':
>> dwp.cc:(.text._ZN4gold16Sized_relobj_dwoILi64ELb0EE5setupEv[gold::Sized_relobj_dwo<64, false>::setup()]+0x170): undefined reference to `std::map<unsigned int, gold::Compressed_section_info, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, gold::Compressed_section_info> > >* gold::build_compressed_section_map<64, false>(unsigned char const*, unsigned int, char const*, unsigned int, gold::Object*, bool)'
>> dwp.o: In function `gold::Sized_relobj_dwo<32, true>::setup()':
>> dwp.cc:(.text._ZN4gold16Sized_relobj_dwoILi32ELb1EE5setupEv[gold::Sized_relobj_dwo<32, true>::setup()]+0x15c): undefined reference to `std::map<unsigned int, gold::Compressed_section_info, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, gold::Compressed_section_info> > >* gold::build_compressed_section_map<32, true>(unsigned char const*, unsigned int, char const*, unsigned int, gold::Object*, bool)'
>> dwp.o: In function `gold::Sized_relobj_dwo<32, false>::setup()':
>> dwp.cc:(.text._ZN4gold16Sized_relobj_dwoILi32ELb0EE5setupEv[gold::Sized_relobj_dwo<32, false>::setup()]+0x156): undefined reference to `std::map<unsigned int, gold::Compressed_section_info, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, gold::Compressed_section_info> > >* gold::build_compressed_section_map<32, false>(unsigned char const*, unsigned int, char const*, unsigned int, gold::Object*, bool)'
>> dwp.o: In function `gold::Sized_relobj_dwo<64, true>::setup()':
>> dwp.cc:(.text._ZN4gold16Sized_relobj_dwoILi64ELb1EE5setupEv[gold::Sized_relobj_dwo<64, true>::setup()]+0x174): undefined reference to `std::map<unsigned int, gold::Compressed_section_info, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, gold::Compressed_section_info> > >* gold::build_compressed_section_map<64, true>(unsigned char const*, unsigned int, char const*, unsigned int, gold::Object*, bool)'
>> libgold.a(dynobj.o): In function `gold::Sized_dynobj<32, false>::base_read_symbols(gold::Read_symbols_data*)':
>> dynobj.cc:(.text._ZN4gold12Sized_dynobjILi32ELb0EE17base_read_symbolsEPNS_17Read_symbols_dataE[gold::Sized_dynobj<32, false>::base_read_symbols(gold::Read_symbols_data*)]+0x101): undefined reference to `std::map<unsigned int, gold::Compressed_section_info, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, gold::Compressed_section_info> > >* gold::build_compressed_section_map<32, false>(unsigned char const*, unsigned int, char const*, unsigned int, gold::Object*, bool)'
>> libgold.a(dynobj.o): In function `gold::Sized_dynobj<64, true>::base_read_symbols(gold::Read_symbols_data*)':
>> dynobj.cc:(.text._ZN4gold12Sized_dynobjILi64ELb1EE17base_read_symbolsEPNS_17Read_symbols_dataE[gold::Sized_dynobj<64, true>::base_read_symbols(gold::Read_symbols_data*)]+0x101): undefined reference to `std::map<unsigned int, gold::Compressed_section_info, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, gold::Compressed_section_info> > >* gold::build_compressed_section_map<64, true>(unsigned char const*, unsigned int, char const*, unsigned int, gold::Object*, bool)'
>> libgold.a(dynobj.o): In function `gold::Sized_dynobj<64, false>::base_read_symbols(gold::Read_symbols_data*)':
>> dynobj.cc:(.text._ZN4gold12Sized_dynobjILi64ELb0EE17base_read_symbolsEPNS_17Read_symbols_dataE[gold::Sized_dynobj<64, false>::base_read_symbols(gold::Read_symbols_data*)]+0x101): undefined reference to `std::map<unsigned int, gold::Compressed_section_info, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, gold::Compressed_section_info> > >* gold::build_compressed_section_map<64, false>(unsigned char const*, unsigned int, char const*, unsigned int, gold::Object*, bool)'
>> libgold.a(dynobj.o): In function `gold::Sized_dynobj<32, true>::base_read_symbols(gold::Read_symbols_data*)':
>> dynobj.cc:(.text._ZN4gold12Sized_dynobjILi32ELb1EE17base_read_symbolsEPNS_17Read_symbols_dataE[gold::Sized_dynobj<32, true>::base_read_symbols(gold::Read_symbols_data*)]+0x101): undefined reference to `std::map<unsigned int, gold::Compressed_section_info, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, gold::Compressed_section_info> > >* gold::build_compressed_section_map<32, true>(unsigned char const*, unsigned int, char const*, unsigned int, gold::Object*, bool)'
>> collect2: ld returned 1 exit status
>> make[4]: *** [dwp] Error 1
>> make[4]: *** Waiting for unfinished jobs....
>> make[4]: Leaving directory `/home/dbt/bs/yocto-poky-cst/build-hd2/tmp-uclibc/work/i686-linux/binutils-cross-arm/2.26-r0/git/build.i686-linux.arm-oe-linux-uclibceabi/gold'
>> make[3]: *** [all-recursive] Error 1
>> make[3]: Leaving directory `/home/dbt/bs/yocto-poky-cst/build-hd2/tmp-uclibc/work/i686-linux/binutils-cross-arm/2.26-r0/git/build.i686-linux.arm-oe-linux-uclibceabi/gold'
>> make[2]: *** [all] Error 2
>> make[2]: Leaving directory `/home/dbt/bs/yocto-poky-cst/build-hd2/tmp-uclibc/work/i686-linux/binutils-cross-arm/2.26-r0/git/build.i686-linux.arm-oe-linux-uclibceabi/gold'
>> make[1]: *** [all-gold] Error 2
>> make[1]: Leaving directory `/home/dbt/bs/yocto-poky-cst/build-hd2/tmp-uclibc/work/i686-linux/binutils-cross-arm/2.26-r0/git/build.i686-linux.arm-oe-linux-uclibceabi'
>> make: *** [all] Error 2
>> ERROR: oe_runmake failed
>
> I've tried to fix this with this workaround, but I'm sure that this
> can't be the solution.

yes it surely can not. However, you can see if you can disable ccache
and see if that helps you or drill down more on the issue.

>
>
> From dba3ed789a7013f52359b2d064b88a465f031e6d Mon Sep 17 00:00:00 2001
> From: Thilo Graf <dbt at novatux.de>
> Date: Sat, 7 May 2016 20:56:38 +0200
> Subject: [PATCH] Try to fix broken binutils_cross build
>
> BBuild seems to abort in some local constellations.
> Only disable of gold has been helped.
> This is only a workaround and should be fixed more effective.
>
> Signed-off-by: Thilo Graf <dbt at novatux.de>
> ---
>  meta/recipes-devtools/binutils/binutils.inc | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-devtools/binutils/binutils.inc
> b/meta/recipes-devtools/binutils/binutils.inc
> index 43e2aa2..3642c55 100644
> --- a/meta/recipes-devtools/binutils/binutils.inc
> +++ b/meta/recipes-devtools/binutils/binutils.inc
> @@ -78,7 +78,7 @@ EXTRA_OECONF = "--program-prefix=${TARGET_PREFIX} \
>
>  LDGOLD_class-native = ""
>  LDGOLD_class-crosssdk = ""
> -LDGOLD ?= "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold',
> '--enable-gold=default --enable-threads', '--enable-gold
> --enable-ld=default', d)}"
> +LDGOLD ?= "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold',
> '--enable-gold=default --enable-threads', '--disable-gold
> --enable-ld=default', d)}"
>
>  # This is necessary due to a bug in the binutils Makefiles
>  # EXTRA_OEMAKE = "configure-build-libiberty all"
> --
> 2.1.4
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>



More information about the yocto mailing list