All of lore.kernel.org
 help / color / mirror / Atom feed
* Latest binutils-cross-2.20.1-r10.0 build issue with binutils-2.20.1 on gentoo host
@ 2010-06-05 20:40 Martin Jansa
  2010-06-07 21:14 ` Martin Jansa
  0 siblings, 1 reply; 7+ messages in thread
From: Martin Jansa @ 2010-06-05 20:40 UTC (permalink / raw)
  To: openembedded-devel

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
diff -uNr binutils-2.20.51.0.8.orig//bfd/elf32-tic6x.c binutils-2.20.51.0.8/bfd/elf32-tic6x.c
--- binutils-2.20.51.0.8.orig//bfd/elf32-tic6x.c        2010-04-13 15:26:40.000000000 +0200
+++ binutils-2.20.51.0.8/bfd/elf32-tic6x.c      2010-06-05 21:35:36.000000000 +0200
@@ -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,
-- 
Jansa 'JaMa' Martin     jabber: Martin.Jansa@gmail.com



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Latest binutils-cross-2.20.1-r10.0 build issue with binutils-2.20.1 on gentoo host
  2010-06-05 20:40 Latest binutils-cross-2.20.1-r10.0 build issue with binutils-2.20.1 on gentoo host Martin Jansa
@ 2010-06-07 21:14 ` Martin Jansa
  2010-06-08 17:20   ` Dmitry Artamonow
  0 siblings, 1 reply; 7+ messages in thread
From: Martin Jansa @ 2010-06-07 21:14 UTC (permalink / raw)
  To: openembedded-devel

On Sat, Jun 5, 2010 at 10:40 PM, Martin Jansa <martin.jansa@gmail.com> wrote:
> 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

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).

> Regards,
> --
> Jansa 'JaMa' Martin     jabber: Martin.Jansa@gmail.com
>



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Latest binutils-cross-2.20.1-r10.0 build issue with binutils-2.20.1 on gentoo host
  2010-06-07 21:14 ` Martin Jansa
@ 2010-06-08 17:20   ` Dmitry Artamonow
  2010-06-08 18:13     ` Khem Raj
  0 siblings, 1 reply; 7+ messages in thread
From: Dmitry Artamonow @ 2010-06-08 17:20 UTC (permalink / raw)
  To: openembedded-devel

On 23:14 Mon 07 Jun     , Martin Jansa wrote:
> On Sat, Jun 5, 2010 at 10:40 PM, Martin Jansa <martin.jansa@gmail.com> wrote:
> > 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/
> >
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.

-- 
Best regards,
Dmitry "MAD" Artamonow




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Latest binutils-cross-2.20.1-r10.0 build issue with binutils-2.20.1 on gentoo host
  2010-06-08 17:20   ` Dmitry Artamonow
@ 2010-06-08 18:13     ` Khem Raj
  2010-06-08 20:05       ` Dmitry Artamonow
  0 siblings, 1 reply; 7+ messages in thread
From: Khem Raj @ 2010-06-08 18:13 UTC (permalink / raw)
  To: openembedded-devel

On Tue, Jun 8, 2010 at 10:20 AM, Dmitry Artamonow <mad_soft@inbox.ru> wrote:
> On 23:14 Mon 07 Jun     , Martin Jansa wrote:
>> On Sat, Jun 5, 2010 at 10:40 PM, Martin Jansa <martin.jansa@gmail.com> wrote:
>> > 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/
>> >
> 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.

proper way is to fix binutils on your host.

>
> --
> Best regards,
> Dmitry "MAD" Artamonow
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Latest binutils-cross-2.20.1-r10.0 build issue with binutils-2.20.1 on gentoo host
  2010-06-08 18:13     ` Khem Raj
@ 2010-06-08 20:05       ` Dmitry Artamonow
  2010-06-08 21:15         ` Khem Raj
  0 siblings, 1 reply; 7+ messages in thread
From: Dmitry Artamonow @ 2010-06-08 20:05 UTC (permalink / raw)
  To: openembedded-devel

On 11:13 Tue 08 Jun     , Khem Raj wrote:
> On Tue, Jun 8, 2010 at 10:20 AM, Dmitry Artamonow <mad_soft@inbox.ru> wrote:
> > On 23:14 Mon 07 Jun     , Martin Jansa wrote:
> >> On Sat, Jun 5, 2010 at 10:40 PM, Martin Jansa <martin.jansa@gmail.com> wrote:
> >> > 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/
> >> >
> > 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.
> 
> 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.

-- 
Best regards,
Dmitry "MAD" Artamonow




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Latest binutils-cross-2.20.1-r10.0 build issue with binutils-2.20.1 on gentoo host
  2010-06-08 20:05       ` Dmitry Artamonow
@ 2010-06-08 21:15         ` Khem Raj
  2010-06-29 21:59           ` Martin Jansa
  0 siblings, 1 reply; 7+ messages in thread
From: Khem Raj @ 2010-06-08 21:15 UTC (permalink / raw)
  To: openembedded-devel

On Tue, Jun 8, 2010 at 1:05 PM, Dmitry Artamonow <mad_soft@inbox.ru> wrote:
> On 11:13 Tue 08 Jun     , Khem Raj wrote:
>> On Tue, Jun 8, 2010 at 10:20 AM, Dmitry Artamonow <mad_soft@inbox.ru> wrote:
>> > On 23:14 Mon 07 Jun     , Martin Jansa wrote:
>> >> On Sat, Jun 5, 2010 at 10:40 PM, Martin Jansa <martin.jansa@gmail.com> wrote:
>> >> > 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/
>> >> >
>> > 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.
>>
>> 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.

it is a latent problem in there which just gets exposed with this change.

>
> --
> Best regards,
> Dmitry "MAD" Artamonow
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Latest binutils-cross-2.20.1-r10.0 build issue with binutils-2.20.1 on gentoo host
  2010-06-08 21:15         ` Khem Raj
@ 2010-06-29 21:59           ` Martin Jansa
  0 siblings, 0 replies; 7+ messages in thread
From: Martin Jansa @ 2010-06-29 21:59 UTC (permalink / raw)
  To: openembedded-devel

On Tue, Jun 08, 2010 at 02:15:56PM -0700, Khem Raj wrote:
> On Tue, Jun 8, 2010 at 1:05 PM, Dmitry Artamonow <mad_soft@inbox.ru> wrote:
> > On 11:13 Tue 08 Jun     , Khem Raj wrote:
> >> On Tue, Jun 8, 2010 at 10:20 AM, Dmitry Artamonow <mad_soft@inbox.ru> wrote:
> >> > On 23:14 Mon 07 Jun     , Martin Jansa wrote:
> >> >> On Sat, Jun 5, 2010 at 10:40 PM, Martin Jansa <martin.jansa@gmail.com> wrote:
> >> >> > 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/
> >> >> >
> >> > 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.
> >>
> >> 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.
> 
> 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,
-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-06-29 22:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-05 20:40 Latest binutils-cross-2.20.1-r10.0 build issue with binutils-2.20.1 on gentoo host Martin Jansa
2010-06-07 21:14 ` Martin Jansa
2010-06-08 17:20   ` Dmitry Artamonow
2010-06-08 18:13     ` Khem Raj
2010-06-08 20:05       ` Dmitry Artamonow
2010-06-08 21:15         ` Khem Raj
2010-06-29 21:59           ` Martin Jansa

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.