All of lore.kernel.org
 help / color / mirror / Atom feed
* Problem finding -lgcc when using SDK toolchain
@ 2013-10-01 13:16 Hans Beckérus
  2013-10-01 17:35 ` Khem Raj
  0 siblings, 1 reply; 5+ messages in thread
From: Hans Beckérus @ 2013-10-01 13:16 UTC (permalink / raw)
  To: yocto@yoctoproject.org

Hello. We have stumbled into a problem when using ld directly instead
of going through the gcc frontend.
A simple operation like this fails:

>${CC} -c hello_world.c
>${LD} hello_world.o -lgcc
arm-poky-linux-gnueabi-ld: cannot find -lgcc

And yes, I know -lgcc is not required in this case to compile this
one, but this is only a simple reproducer.
The real issue was discovered when trying to build U-Boot from the SDK.

To resolve this problem we are forced to provide
-L<sysroot>/usr/lib/arm-poky-linux-gnueabi/4.7.2 to LDFLAGS.
But that should not be needed, should it? Anyone else bumped into this
problem? Are there any "real" solutions.
I am starting to think it has to do with the hardcoded installation
path in the binaries maybe? If you choose not to install
the SDK where Yocto assumes it to be installed things break, even if
--sysroot is used.

Thanks.
Hans


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

end of thread, other threads:[~2013-10-02  8:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-01 13:16 Problem finding -lgcc when using SDK toolchain Hans Beckérus
2013-10-01 17:35 ` Khem Raj
2013-10-01 18:03   ` Hans Beckerus
2013-10-02  6:13     ` Khem Raj
2013-10-02  8:21       ` Hans Beckérus

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.