* gcc: 0041-handle-target-sysroot-multilib.patch maybe doesn't work for n32?
@ 2015-10-13 19:00 Peter Seebach
2015-10-13 21:16 ` Khem Raj
0 siblings, 1 reply; 3+ messages in thread
From: Peter Seebach @ 2015-10-13 19:00 UTC (permalink / raw)
To: openembedded-core@lists.openembedded.org
So, we have this shiny new patch which appears to correct paths for MIPS, but
when I try it with an n32 multilib, I get Very Strange failures.
The actual failing line, from gcc -v:
/msp-lpggp22/seebs/oemips/sysroots/x86_64-oesdk-linux/usr/libexec/mips64-oe-linux/gcc/mips64-oe-linux/5.2.0/collect2
-plugin /msp-lpggp22/seebs/oemips/sysroots/x86_64-oesdk-linux/usr/libexec/mips64-oe-linux/gcc/mips64-oe-linux/5.2.0/liblto_plugin.so -plugin-opt=/msp-lpggp22/seebs/oemips/sysroots/x86_64-oesdk-linux/usr/libexec/mips64-oe-linux/gcc/mips64-oe-linux/5.2.0/lto-wrapper -plugin-opt=-fresolution=/tmp/ccSLbHqX.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --sysroot=/msp-lpggp22/seebs/oemips/sysroots/mips32r2-oe-linux --build-id --eh-frame-hdr --hash-style=sysv -EB -mips64 -dynamic-linker /lib64/ld.so.1 -melf32btsmipn32 -o h /msp-lpggp22/seebs/oemips/sysroots/mips32r2-oe-linux/usr/lib64/../lib32/crt1.o /msp-lpggp22/seebs/oemips/sysroots/mips32r2-oe-linux/usr/lib64/../lib32/crti.o /msp-lpggp22/seebs/oemips/sysroots/mips32r2-oe-linux/usr/lib64/../lib32/mips64-oe-linux/5.2.0/32/crtbegin.o -L/msp-lpggp22/seebs/oemips/sysroots/mips32r2-oe-linux/lib64/../lib32 -L/msp-lpggp22/seebs/oemips/sysroots/mips32r2-oe-linux/usr/lib64/../lib32/mips64-oe-linux/5.2.0/32 -L/msp-lpggp22/seebs/oemips/sysroots/mips32r2-oe-linux/usr/lib64/mips64-oe-linux/5.2.0/32 -L/msp-lpggp22/seebs/oemips/sysroots/mips32r2-oe-linux/usr/lib64/../lib32 -L/msp-lpggp22/seebs/oemips/sysroots/x86_64-oesdk-linux/usr/lib/mips64-oe-linux/gcc/mips64-oe-linux/5.2.0 -L/msp-lpggp22/seebs/oemips/sysroots/mips32r2-oe-linux/lib64 -L/msp-lpggp22/seebs/oemips/sysroots/mips32r2-oe-linux/usr/lib64/mips64-oe-linux/5.2.0 -L/msp-lpggp22/seebs/oemips/sysroots/mips32r2-oe-linux/usr/lib64 /tmp/ccIHCMJV.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /msp-lpggp22/seebs/oemips/sysroots/mips32r2-oe-linux/usr/lib64/../lib32/mips64-oe-linux/5.2.0/32/crtend.o /msp-lpggp22/seebs/oemips/sysroots/mips32r2-oe-linux/usr/lib64/../lib32/crtn.o
/msp-lpggp22/seebs/oemips/sysroots/x86_64-oesdk-linux/usr/libexec/mips64-oe-linux/gcc/mips64-oe-linux/5.2.0/real-ld: /msp-lpggp22/seebs/oemips/sysroots/mips32r2-oe-linux/usr/lib64/../lib32/mips64-oe-linux/5.2.0/32/crtbegin.o: ABI is incompatible with that of the selected emulation
[... and many more errors related to this
So, looking around, I see three crtbegin.o in the sysroot:
/usr/lib/mips-oe-linux/5.2.0/crtbegin.o
/usr/lib64/mips64-oemllib64-linux/5.2.0/crtbegin.o
/usr/lib32/mips64-oemllibn32-linux-gnun32/5.2.0/crtbegin.o
And presumably, I want the gnun32 library. But what it actually picked was:
/usr/lib64/../lib32/mips64-oe-linux/5.2.0/32/crtbegin.o
And that's the 32-bit (base library) crtbegin.o.
I am pretty sure that the gcc patch 0041 affects this but I honestly don't
entirely understand it.
-s
--
Listen, get this. Nobody with a good compiler needs to be justified.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: gcc: 0041-handle-target-sysroot-multilib.patch maybe doesn't work for n32?
2015-10-13 19:00 gcc: 0041-handle-target-sysroot-multilib.patch maybe doesn't work for n32? Peter Seebach
@ 2015-10-13 21:16 ` Khem Raj
2015-10-13 21:26 ` Peter Seebach
0 siblings, 1 reply; 3+ messages in thread
From: Khem Raj @ 2015-10-13 21:16 UTC (permalink / raw)
To: Peter Seebach; +Cc: openembedded-core@lists.openembedded.org
On Tue, Oct 13, 2015 at 12:00 PM, Peter Seebach
<peter.seebach@windriver.com> wrote:
> So, we have this shiny new patch which appears to correct paths for MIPS, but
> when I try it with an n32 multilib, I get Very Strange failures.
>
> The actual failing line, from gcc -v:
>
> /msp-lpggp22/seebs/oemips/sysroots/x86_64-oesdk-linux/usr/libexec/mips64-oe-linux/gcc/mips64-oe-linux/5.2.0/collect2
> -plugin /msp-lpggp22/seebs/oemips/sysroots/x86_64-oesdk-linux/usr/libexec/mips64-oe-linux/gcc/mips64-oe-linux/5.2.0/liblto_plugin.so -plugin-opt=/msp-lpggp22/seebs/oemips/sysroots/x86_64-oesdk-linux/usr/libexec/mips64-oe-linux/gcc/mips64-oe-linux/5.2.0/lto-wrapper -plugin-opt=-fresolution=/tmp/ccSLbHqX.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --sysroot=/msp-lpggp22/seebs/oemips/sysroots/mips32r2-oe-linux --build-id --eh-frame-hdr --hash-style=sysv -EB -mips64 -dynamic-linker /lib64/ld.so.1 -melf32btsmipn32 -o h /msp-lpggp22/seebs/oemips/sysroots/mips32r2-oe-linux/usr/lib64/../lib32/crt1.o /msp-lpggp22/seebs/oemips/sysroots/mips32r2-oe-linux/usr/lib64/../lib32/crti.o /msp-lpggp22/seebs/oemips/sysroots/mips32r2-oe-linux/usr/lib64/../lib32/mips64-oe-linux/5.2.0/32/crtbegin.o -L/msp-lpggp22/seebs/oemips/sysroots/mips32r2-oe-linux/lib64/../lib32 -L/msp-lpggp
> 22/seebs/oemips/sysroots/mips32r2-oe-linux/usr/lib64/../lib32/mips64-oe-linux/5.2.0/32 -L/msp-lpggp22/seebs/oemips/sysroots/mips32r2-oe-linux/usr/lib64/mips64-oe-linux/5.2.0/32 -L/msp-lpggp22/seebs/oemips/sysroots/mips32r2-oe-linux/usr/lib64/../lib32 -L/msp-lpggp22/seebs/oemips/sysroots/x86_64-oesdk-linux/usr/lib/mips64-oe-linux/gcc/mips64-oe-linux/5.2.0 -L/msp-lpggp22/seebs/oemips/sysroots/mips32r2-oe-linux/lib64 -L/msp-lpggp22/seebs/oemips/sysroots/mips32r2-oe-linux/usr/lib64/mips64-oe-linux/5.2.0 -L/msp-lpggp22/seebs/oemips/sysroots/mips32r2-oe-linux/usr/lib64 /tmp/ccIHCMJV.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /msp-lpggp22/seebs/oemips/sysroots/mips32r2-oe-linux/usr/lib64/../lib32/mips64-oe-linux/5.2.0/32/crtend.o /msp-lpggp22/seebs/oemips/sysroots/mips32r2-oe-linux/usr/lib64/../lib32/crtn.o
> /msp-lpggp22/seebs/oemips/sysroots/x86_64-oesdk-linux/usr/libexec/mips64-oe-linux/gcc/mips64-oe-linux/5.2.0/real-ld: /msp-lpggp22/seebs/oemips/sysroots/mips32r2-oe-linux/usr/lib64/../lib32/mips64-oe-linux/5.2.0/32/crtbegin.o: ABI is incompatible with that of the selected emulation
> [... and many more errors related to this
>
> So, looking around, I see three crtbegin.o in the sysroot:
> /usr/lib/mips-oe-linux/5.2.0/crtbegin.o
> /usr/lib64/mips64-oemllib64-linux/5.2.0/crtbegin.o
> /usr/lib32/mips64-oemllibn32-linux-gnun32/5.2.0/crtbegin.o
>
> And presumably, I want the gnun32 library. But what it actually picked was:
> /usr/lib64/../lib32/mips64-oe-linux/5.2.0/32/crtbegin.o
>
> And that's the 32-bit (base library) crtbegin.o.
>
> I am pretty sure that the gcc patch 0041 affects this but I honestly don't
> entirely understand it.
also look at 0013-64-bit-multilib-hack.patch
this should not even look at bitness directories. I wonder why thats happening.
>
> -s
> --
> Listen, get this. Nobody with a good compiler needs to be justified.
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: gcc: 0041-handle-target-sysroot-multilib.patch maybe doesn't work for n32?
2015-10-13 21:16 ` Khem Raj
@ 2015-10-13 21:26 ` Peter Seebach
0 siblings, 0 replies; 3+ messages in thread
From: Peter Seebach @ 2015-10-13 21:26 UTC (permalink / raw)
To: Khem Raj; +Cc: openembedded-core@lists.openembedded.org
On Tue, 13 Oct 2015 14:16:53 -0700
Khem Raj <raj.khem@gmail.com> wrote:
> also look at 0013-64-bit-multilib-hack.patch
> this should not even look at bitness directories. I wonder why thats happening.
I don't know. I know that we didn't have this problem in the 4.9 era, but I
think that our toolchain had 64-bit-multilib.patch back then, but didn't have
the newer handle-target-sysroot-multilib. I haven't tried building without
them yet to see how different it is (or isn't). It may also be a 5.2 change.
Wheeeeeee.
-s
--
Listen, get this. Nobody with a good compiler needs to be justified.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-10-13 21:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-13 19:00 gcc: 0041-handle-target-sysroot-multilib.patch maybe doesn't work for n32? Peter Seebach
2015-10-13 21:16 ` Khem Raj
2015-10-13 21:26 ` Peter Seebach
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox