Latest binutils-cross-2.20.1-r10.0 build issue with binutils-2.20.1 on gentoo host
FYI:
If you run into issue
ar: can't set BFD default target to `x86_64-pc-linux-gnu': Invalid bfd target
Like I did in:
http://tinderbox.openembedded.net/packages/601631/
Then here is what I used as workarround/hack:
enabled multitarget USE
unmasked and added keywords for 2.20.51.0.8 version
added --enable-plugins --enable-threads to eclass (as noted in changelog
http://gcc.gnu.org/ml/gcc/2010-05/msg00632.html)
jama portage # diff -uNr eclass/toolchain-binutils.eclass ~/toolchain-binutils.eclass
--- eclass/toolchain-binutils.eclass 2010-04-20 01:08:10.000000000
+0200
+++ /root/toolchain-binutils.eclass 2010-06-05 22:36:36.000000000
+0200
@@ -223,6 +223,8 @@
--includedir=${INCPATH} \
--enable-64-bit-bfd \
--enable-shared \
+ --enable-plugins \
+ --enable-threads \
--disable-werror \
${myconf} ${EXTRA_ECONF}"
echo ./configure ${myconf}applied small patch to binutils
bfd/elf32-tic6x.c 2010-06-05 21:35:36.000000000 +0200 renamed from /bfd/elf32-tic6x.c 2010-04-13 15:26:40.000000000 +0200 +2 -1
@@ -787,11 +787,12 @@ else { bfd_boolean warned; + bfd_boolean ignored = FALSE; RELOC_FOR_GLOBAL_SYMBOL (info, input_bfd, input_section, rel, r_symndx, symtab_hdr, sym_hashes, h, sec, relocation, - unresolved_reloc, warned); + unresolved_reloc, warned, ignored); } if (sec != NULL && elf_discarded_section (sec))
and now binutils-cross compiled fine for me..
Regards,
Signature · 1 line
Jansa 'JaMa' Martin jabber: [email protected]
Quoted 10 lines · Martin Jansa
FYI:
If you run into issue
ar: can't set BFD default target to `x86_64-pc-linux-gnu': Invalid bfd targetLike I did in:
http://tinderbox.openembedded.net/packages/601631/Then here is what I used as workarround/hack:
enabled multitarget USE
This is not needed and results to broken debian.bbclass (SONAME used
to change package name), because of:
bitbake@jama ~/build.dev.ang.spitz $ objdump -p /OE/tmpdir-dev/work/armv5te-angstrom-linux-gnueabi/gcc-cross-4.5-r0+svnr160043/packages-split/libgcc/lib/libgcc_s.so.1
objdump: /OE/tmpdir-dev/work/armv5te-angstrom-linux-gnueabi/gcc-cross-4.5-r0+svnr160043/packages-split/libgcc/lib/libgcc_s.so.1:
File format is ambiguous
objdump: Matching formats: elf32-littlearm elf32-littlearm-symbian
elf32-littlearm-vxworks
instead of expected objdump output.
I'll send patch for debian.bbclass changing calling objdump from host to objdump from binutils-cross (as suggested by khem on IRC).
Quoted 4 lines
Regards,
--
Jansa 'JaMa' Martin jabber: [email protected]
Quoted 9 lines · Martin Jansa
Quoted 8 lines · Martin Jansa
FYI:
If you run into issue
ar: can't set BFD default target to `x86_64-pc-linux-gnu': Invalid bfd targetLike I did in:
http://tinderbox.openembedded.net/packages/601631/
Yup. I got this breakage too, only binutils-cross version is 2.18-r10.2 and error is:
ar: can't set BFD default target to `i686-pc-linux-gnu': Invalid bfd target
see for example http://tinderbox.openembedded.net/packages/602258/
Though I didn't dig into problem deeply and simply workaround it by reverting 208ece17f76686e0faa44b2a9223fcadb692a991
But I'll gladly test any patches fixing the issue (whatever it is) in a proper way.
Signature · 2 lines
Best regards, Dmitry "MAD" Artamonow
Quoted 14 lines · Dmitry Artamonow
Quoted 9 lines · Martin Jansa
Quoted 8 lines · Martin Jansa
FYI:
If you run into issue
ar: can't set BFD default target to `x86_64-pc-linux-gnu': Invalid bfd targetLike I did in:
http://tinderbox.openembedded.net/packages/601631/Yup. I got this breakage too, only binutils-cross version is 2.18-r10.2 and error is:
ar: can't set BFD default target to `i686-pc-linux-gnu': Invalid bfd target
Quoted 6 lines
see for example http://tinderbox.openembedded.net/packages/602258/
Though I didn't dig into problem deeply and simply workaround it by reverting
208ece17f76686e0faa44b2a9223fcadb692a991
But I'll gladly test any patches fixing the issue (whatever it is) in a proper way.
proper way is to fix binutils on your host.
Quoted 11 lines
--
Best regards,
Dmitry "MAD" Artamonow_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Quoted 15 lines · Khem Raj
Quoted 14 lines · Dmitry Artamonow
Quoted 9 lines · Martin Jansa
Quoted 8 lines · Martin Jansa
FYI:
If you run into issue
ar: can't set BFD default target to `x86_64-pc-linux-gnu': Invalid bfd targetLike I did in:
http://tinderbox.openembedded.net/packages/601631/Yup. I got this breakage too, only binutils-cross version is 2.18-r10.2 and error is:
ar: can't set BFD default target to `i686-pc-linux-gnu': Invalid bfd target
Quoted 8 lines
Quoted 6 lines
see for example http://tinderbox.openembedded.net/packages/602258/
Though I didn't dig into problem deeply and simply workaround it by reverting
208ece17f76686e0faa44b2a9223fcadb692a991
But I'll gladly test any patches fixing the issue (whatever it is) in a proper way.proper way is to fix binutils on your host.
Ahh, sorry - misread original Martin's post. So it's seems to be Gentoo-specific problem (yes, my OE is on Gentoo too).
Still wondering why it worked before and how it's connected with adding "--enable-shared" in 208ece17f766. Weird, because it breaks on building static library.
Signature · 2 lines
Best regards, Dmitry "MAD" Artamonow
Quoted 23 lines · Dmitry Artamonow
Quoted 22 lines · Khem Raj
Quoted 20 lines · Dmitry Artamonow
Quoted 9 lines · Martin Jansa
Quoted 8 lines · Martin Jansa
FYI:
If you run into issue
ar: can't set BFD default target to `x86_64-pc-linux-gnu': Invalid bfd targetLike I did in:
http://tinderbox.openembedded.net/packages/601631/Yup. I got this breakage too, only binutils-cross version is 2.18-r10.2 and error is:
ar: can't set BFD default target to `i686-pc-linux-gnu': Invalid bfd targetsee for example http://tinderbox.openembedded.net/packages/602258/
Though I didn't dig into problem deeply and simply workaround it by reverting
208ece17f76686e0faa44b2a9223fcadb692a991
But I'll gladly test any patches fixing the issue (whatever it is) in a proper way.
Quoted 7 lines
Quoted 1 line
proper way is to fix binutils on your host.
Ahh, sorry - misread original Martin's post. So it's seems to be Gentoo-specific problem (yes, my OE is on Gentoo too).
Still wondering why it worked before and how it's connected with adding "--enable-shared" in208ece17f766. Weird, because it breaks on building static library.
it is a latent problem in there which just gets exposed with this change.
Quoted 11 lines
--
Best regards,
Dmitry "MAD" Artamonow_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Quoted 26 lines · Khem Raj
Quoted 25 lines · Dmitry Artamonow
Quoted 23 lines · Khem Raj
Quoted 14 lines · Dmitry Artamonow
Quoted 9 lines · Martin Jansa
Quoted 8 lines · Martin Jansa
FYI:
If you run into issue
ar: can't set BFD default target to `x86_64-pc-linux-gnu': Invalid bfd targetLike I did in:
http://tinderbox.openembedded.net/packages/601631/Yup. I got this breakage too, only binutils-cross version is 2.18-r10.2 and error is:
ar: can't set BFD default target to `i686-pc-linux-gnu': Invalid bfd targetQuoted 6 lines
see for example http://tinderbox.openembedded.net/packages/602258/
Though I didn't dig into problem deeply and simply workaround it by reverting
208ece17f76686e0faa44b2a9223fcadb692a991
But I'll gladly test any patches fixing the issue (whatever it is) in a proper way.proper way is to fix binutils on your host.
Quoted 7 lines
Quoted 5 lines
Ahh, sorry - misread original Martin's post. So it's seems to be Gentoo-specific problem (yes, my OE is on Gentoo too).
Still wondering why it worked before and how it's connected with adding "--enable-shared" in208ece17f766. Weird, because it breaks on building static library.it is a latent problem in there which just gets exposed with this change.
Just for reference there is gentoo bug I reported
http://bugs.gentoo.org/show_bug.cgi?id=323319
now it's closed as INVALID
which is not 100% right imho as that broken patch (broken only with multitarget is applied in ebuild) and --enable-plugins is task for eclass not upstream.. but you can fix it locally..
Cheers,
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]