Problem generating toolchain with crossdev
drasnor
Starship OperatorHawthorne, CA Icrontian
I'm using Gentoo on AMD64 and am trying to build a toolchain for building i586. I tried just simply running crossdev --target i586-pc-linux-gnu but it builds the absolute latest versions of the toolchain packages even if those versions are masked or hardmasked (eg it builds gcc 4.x). It fails on glibc with a recommendation to set nptl and nptlonly in my USE flags.
I set nptl and nptlonly in my USE flags and tried specifying the proper versions of the tools I want but now it's failing to compile gcc:
jormungand drasnor # crossdev --b 2.16.1 --g 3.4.4-r1 --k 2.6.11-r2 --l 2.3.5-r2 -v --target i586-pc-linux-gnu
/usr/i586-pc-linux-gnu/bin/ld: cannot find /usr/i586-pc-linux-gnu/lib/libc.so.6 inside /usr/i586-pc-linux-gnu/binutils-bin/2.16.1/../../../i586-pc-linux-gnu
collect2: ld returned 1 exit status
make[2]: *** [libgcc_s.so] Error 1
make[2]: Leaving directory `/var/tmp/cross/i586-pc-linux-gnu/portage/gcc-3.4.4-r1/work/build/gcc'
make[1]: *** [libgcc.a] Error 2
rm gcc.pod
make[1]: Leaving directory `/var/tmp/cross/i586-pc-linux-gnu/portage/gcc-3.4.4-r1/work/build/gcc'
make: *** [all-gcc] Error 2
!!! ERROR: cross-i586-pc-linux-gnu/gcc-3.4.4-r1 failed.
!!! Function gcc_do_make, Line 1356, Exitcode 2
!!! emake failed with all
!!! If you need support, post the topmost build error, NOT this status message.
Any ideas?
-drasnor
I set nptl and nptlonly in my USE flags and tried specifying the proper versions of the tools I want but now it's failing to compile gcc:
jormungand drasnor # crossdev --b 2.16.1 --g 3.4.4-r1 --k 2.6.11-r2 --l 2.3.5-r2 -v --target i586-pc-linux-gnu
/usr/i586-pc-linux-gnu/bin/ld: cannot find /usr/i586-pc-linux-gnu/lib/libc.so.6 inside /usr/i586-pc-linux-gnu/binutils-bin/2.16.1/../../../i586-pc-linux-gnu
collect2: ld returned 1 exit status
make[2]: *** [libgcc_s.so] Error 1
make[2]: Leaving directory `/var/tmp/cross/i586-pc-linux-gnu/portage/gcc-3.4.4-r1/work/build/gcc'
make[1]: *** [libgcc.a] Error 2
rm gcc.pod
make[1]: Leaving directory `/var/tmp/cross/i586-pc-linux-gnu/portage/gcc-3.4.4-r1/work/build/gcc'
make: *** [all-gcc] Error 2
!!! ERROR: cross-i586-pc-linux-gnu/gcc-3.4.4-r1 failed.
!!! Function gcc_do_make, Line 1356, Exitcode 2
!!! emake failed with all
!!! If you need support, post the topmost build error, NOT this status message.
Any ideas?
-drasnor
0
Comments
http://dev.gentoo.org/~vapier/CROSS-COMPILE-HOWTO
don't know if it will help or not.
Skryking