Hi,
I am next to nothing about Gentoo Linux.
Appearently,
you may need install header files into prefix/target/include
directory to build gcc before hand.
Moritz Lipfert wrote:
Hello,
I use Gentoo Linux (amd64) and want to install the i686 cross
compiler. I followed the instructions on
http://dev.gentoo.org/~vapier/CROSS-COMPILE-HOWTO. But I can't compile
gcc with the command "USE=nocxx emerge cross-i686-pc-linux-gnu/gcc".
I only get this error:
/var/tmp/portage/gcc-3.4.3-r1/work/build/gcc/xgcc
-B/var/tmp/portage/gcc-3.4.3-r1/work/build/gcc/
-B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem
/usr/i686-pc-linux-gnu/include -isystem
/usr/i686-pc-linux-gnu/sys-include -O2 -DIN_GCC -DCROSS_COMPILE -W
-Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -isystem ./include -fPIC -DHAVE_SYSLOG -g
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc
-D_LIBC_PROVIDES_SSP_ -I. -I.
-I/var/tmp/portage/gcc-3.4.3-r1/work/gcc-3.4.3/gcc
-I/var/tmp/portage/gcc-3.4.3-r1/work/gcc-3.4.3/gcc/.
-I/var/tmp/portage/gcc-3.4.3-r1/work/gcc-3.4.3/gcc/../include
-DL_negdi2 -c
/var/tmp/portage/gcc-3.4.3-r1/work/gcc-3.4.3/gcc/libgcc2.c -o
libgcc/./_negdi2.o
In file included from ./tm.h:11,
from
/var/tmp/portage/gcc-3.4.3-r1/work/gcc-3.4.3/gcc/libgcc2.c:43:
/var/tmp/portage/gcc-3.4.3-r1/work/gcc-3.4.3/gcc/config/i386/linux.h:227:20:
signal.h: No such file or directory
/var/tmp/portage/gcc-3.4.3-r1/work/gcc-3.4.3/gcc/config/i386/linux.h:228:26:
sys/ucontext.h: No such file or directory
make[2]: *** [libgcc/./_muldi3.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from ./tm.h:11,
from
/var/tmp/portage/gcc-3.4.3-r1/work/gcc-3.4.3/gcc/libgcc2.c:43:
/var/tmp/portage/gcc-3.4.3-r1/work/gcc-3.4.3/gcc/config/i386/linux.h:227:20:
signal.h: No such file or directory
/var/tmp/portage/gcc-3.4.3-r1/work/gcc-3.4.3/gcc/config/i386/linux.h:228:26:
sys/ucontext.h: No such file or directory
make[2]: *** [libgcc/./_negdi2.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.3-r1/work/build/gcc'
make[1]: *** [libgcc.a] Error 2
rm gcc.pod
make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.3-r1/work/build/gcc'
make: *** [all-gcc] Error 2
!!! ERROR: cross-i686-pc-linux-gnu/gcc-3.4.3-r1 failed.
!!! Function gcc_do_make, Line 1047, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status
message.
--
Takeharu KATO