Hello!
I'm new in embedded Gentoo, but i have some experience in embedded
linux. And now I'm want study embedded Gentoo!
At first I'm trying to build cross toolchain with crossdev.
Current architecture is not matter. I'm trying build for
mipsel-unknown-linux-gnu, arm-unknown-linux-gnu,
powerpc-unknown-linux-gnu, powerpc-405ep-linux-gnu and some other, with
different versions of binutils, gcc, libc... (according to google)
And, if other errors was resolved, I get "incompatible libgcc.a when
searching for -lgcc". It's most common error for me.
alv@origami ~ $ sudo crossdev -S -t powerpc-405ep-linux-gnu
-----------------------------------------------------------------------------------------------------------------------------------------
* Host Portage ARCH: x86
* Target Portage ARCH: ppc
* Target System: powerpc-405ep-linux-gnu
* Stage: 4 (C/C++ compiler)
* binutils: binutils-[stable]
* gcc: gcc-[stable]
* headers: linux-headers-[stable]
* libc: glibc-[stable]
* PORTDIR_OVERLAY: /usr/cross-portage
* PORT_LOGDIR: /var/log/portage
* PKGDIR:
/usr/portage/packages/cross/powerpc-405ep-linux-gnu
* PORTAGE_TMPDIR: /var/tmp/cross/powerpc-405ep-linux-gnu
_ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ -
* Forcing the latest versions of {binutils,gcc}-config/gnuconfig ...
* Log: /var/log/portage/cross-powerpc-405ep-linux-gnu-binutils.log
* Emerging cross-binutils ...
* Log: /var/log/portage/cross-powerpc-405ep-linux-gnu-gcc-stage1.log
* Emerging cross-gcc-stage1 ...
* Log: /var/log/portage/cross-powerpc-405ep-linux-gnu-linux-headers.log
* Emerging cross-linux-headers ...
* Log: /var/log/portage/cross-powerpc-405ep-linux-gnu-glibc.log
* Emerging cross-glibc ...
* glibc failed

* If you file a bug, please attach the following logfiles:
* /var/log/portage/cross-powerpc-405ep-linux-gnu-info.log
* /var/log/portage/cross-powerpc-405ep-linux-gnu-glibc.log
/var/log/portage/cross-powerpc-405ep-linux-gnu-glibc.log:
...
powerpc-405ep-linux-gnu-gcc -nostdlib -nostartfiles -r -o
/var/tmp/cross/powerpc-405ep-linux-gnu/portage/cross-powerpc-405ep-linux-gnu/
glibc-2.6.1/work/build-default-powerpc-405ep-linux-gnu-nptl/elf/librtld.map.o
'-Wl,-('
/var/tmp/cross/powerpc-405ep-linux-gnu/portage/cross-powerpc-405ep-linux-gnu/
glibc-2.6.1/work/build-default-powerpc-405ep-linux-gnu-nptl/elf/dl-allobjs.os
/var/tmp/cross/powerpc-405ep-linux-gnu/portage/cross-powerpc-405ep-linux-gnu/
glibc-2.6.1/work/build-default-powerpc-405ep-linux-gnu-nptl/libc_pic.a
-lgcc '-Wl,-)'
-Wl,-Map,/var/tmp/cross/powerpc-405ep-linux-gnu/portage/cross-powerpc-405ep-linux-gnu/
glibc-2.6.1/work/build-default-powerpc-405ep-linux-gnu-nptl/elf/librtld.mapT
/usr/libexec/gcc/powerpc-405ep-linux-gnu/ld: skipping incompatible
/usr/lib/gcc/powerpc-405ep-linux-gnu/4.1.2/libgcc.a when searching for
-lgcc
/usr/libexec/gcc/powerpc-405ep-linux-gnu/ld: skipping incompatible
/usr/lib/gcc/powerpc-405ep-linux-gnu/4.1.2/libgcc.a when searching for
-lgcc
/usr/libexec/gcc/powerpc-405ep-linux-gnu/ld: cannot find -lgcc
collect2: ld returned 1 exit status
...
Any ideas are welcome!
P.S.
/usr/libexec/gcc/powerpc-405ep-linux-gnu/objdump -f
/usr/lib/gcc/powerpc-405ep-linux-gnu/4.1.2/libgcc.a > objdump
P.P.S. Sorry for my English.
Aleksei.