[OE-core] finding libgcc.a with meta-toolchain-sdk toolchain

Kumar Gala galak at kernel.crashing.org
Wed Aug 10 04:20:08 UTC 2011


Trying to build something like u-boot w/the toolchain produced by meta-toolchain-sdk and get the following:

$ powerpc-poky-linux-gnuspe-ld -g -Ttext 0x40000 -o hello_world -e hello_world hello_world.o libstubs.o -L. -lgcc
powerpc-poky-linux-gnuspe-ld: cannot find -lgcc

If I take on a --verbose I get:
attempt to open ./libgcc.so failed
attempt to open ./libgcc.a failed
attempt to open /opt/poky/1.0+snapshot/sysroots/powerpc-poky-linux-gnuspe/usr/local/lib/libgcc.so failed
attempt to open /opt/poky/1.0+snapshot/sysroots/powerpc-poky-linux-gnuspe/usr/local/lib/libgcc.a failed
attempt to open /opt/poky/1.0+snapshot/sysroots/powerpc-poky-linux-gnuspe/lib/libgcc.so failed
attempt to open /opt/poky/1.0+snapshot/sysroots/powerpc-poky-linux-gnuspe/lib/libgcc.a failed
attempt to open /opt/poky/1.0+snapshot/sysroots/powerpc-poky-linux-gnuspe/usr/lib/libgcc.so failed
attempt to open /opt/poky/1.0+snapshot/sysroots/powerpc-poky-linux-gnuspe/usr/lib/libgcc.a failed

What do we need to tweak so we can find libgcc.a?

- k



More information about the Openembedded-core mailing list