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

Kumar Gala galak at kernel.crashing.org
Wed Aug 10 12:43:53 UTC 2011


On Aug 10, 2011, at 4:19 AM, Phil Blundell wrote:

> On Tue, 2011-08-09 at 23:20 -0500, Kumar Gala wrote:
>> 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
>> 
>> [...]
>> 
>> What do we need to tweak so we can find libgcc.a?
> 
> The best/easiest fix is to link with gcc rather than calling ld
> directly.  You can use -nostartfiles to suppress crt1.o and the like.
> If you must invoke ld manually for whatever reason then you will have to
> use something like `$(CC) --print-libgcc-file-name` to obtain the path
> to libgcc.

While these are good suggestions, I still think the toolchain is broken as u-boot has been this way for sometime and numerous other cross toolchains work perfectly fine.

- k



More information about the Openembedded-core mailing list