Trouble building cross compiler for powerpc

NebRaSkA van Hälen peekpoker@yahoo.com
Sat Sep 25 14:06:00 GMT 2010


Hi,

I'm using ct-ng to prepare a cross compiler for PowerPC. I picked "powerpc-unknown-linux-gnu" sample and started the build process. Everything went ok until the "libc" step (Installing C library), when it failed telling me it could not find -lgcc. The full error log is appended to the end of this message.

As similar problems where previously reported in this list, I tried several suggested workarounds but had no success at all.

However, I can build a "powerpc-unknown-linux-uclibc" crosscompiler without problem. But I need the glibc one.

Any ideas? Thanks in advance!

Error log:
---------------

[ALL  ] powerpc-unknown-linux-gnu-gcc -nostdlib -nostartfiles -r -o /home/mike/cross/toolchain/targets/powerpc-unknown-linux-gnu/build/build-libc/elf/librtld.map.o '-Wl,-(' /home/mike/cross/toolchain/targets/powerpc-unknown-linux-gnu/build/build-libc/elf/dl-allobjs.os /home/mike/cross/toolchain/targets/powerpc-unknown-linux-gnu/build/build-libc/libc_pic.a -lgcc '-Wl,-)' -Wl,-Map,/home/mike/cross/toolchain/targets/powerpc-unknown-linux-gnu/build/build-libc/elf/librtld.mapT

[ALL  ]    /home/mike/cross/toolchain/targets/powerpc-unknown-linux-gnu/build/gcc-core-shared/lib/gcc/powerpc-unknown-linux-gnu/4.3.2/../../../../powerpc-unknown-linux-gnu/bin/ld: cannot find -lgcc




--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list