This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Error making cross compiler, gcc 4.4.0, FreeBSD 7.2
- From: xorquewasp at googlemail dot com
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 5 May 2009 05:07:51 +0100
- Subject: Error making cross compiler, gcc 4.4.0, FreeBSD 7.2
Hello.
I'm attempting to compile an i386 cross amd64 compiler on
FreeBSD 7.2.
The build errors out with:
/root/gcc-4.4.0-obj/./gcc/xgcc -B/root/gcc-4.4.0-obj/./gcc/
-B/usr/local/cross/x86_64-unknown-freebsd7.2/bin/
-B/usr/local/cross/x86_64-unknown-freebsd7.2/lib/ -isystem
/usr/local/cross/x86_64-unknown-freebsd7.2/include -isystem
/usr/local/cross/x86_64-unknown-freebsd7.2/sys-include -g -O2 -O2 -g
-O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -DNATIVE_CROSS -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual
-Wold-style-definition -isystem ./include -fPIC -pthread -g
-DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc
-I. -I. -I../.././gcc -I../../../gcc-4.4.0/libgcc
-I../../../gcc-4.4.0/libgcc/. -I../../../gcc-4.4.0/libgcc/../gcc
-I../../../gcc-4.4.0/libgcc/../include -DHAVE_CC_TLS -o _muldi3.o -MT
_muldi3.o -MD -MP -MF _muldi3.dep -DL_muldi3 -c
../../../gcc-4.4.0/libgcc/../gcc/libgcc2.c \
-fvisibility=hidden -DHIDE_EXPORTS
In file included from ../../../gcc-4.4.0/libgcc/../gcc/tsystem.h:44,
from ../../../gcc-4.4.0/libgcc/../gcc/libgcc2.c:29:
/root/gcc-4.4.0-obj/./gcc/include/stddef.h:59:24: error: sys/_types.h:
No such file or directory
gmake[2]: *** [_muldi3.o] Error 1
gmake[2]: Leaving directory `/root/gcc-4.4.0-obj/x86_64-unknown-freebsd7.2/libgcc'
gmake[1]: *** [all-target-libgcc] Error 2
gmake[1]: Leaving directory `/root/gcc-4.4.0-obj'
gmake: *** [all] Error 2
The host compiler:
$ gcc -v
Using built-in specs.
Target: i386-portbld-freebsd7.2
Configured with: ./..//gcc-4.3.2/configure --enable-languages=c,ada
--disable-nls --with-system-zlib --with-libiconv-prefix=/usr/local
--program-suffix=43 --bindir=/usr/local/bin/gcc43
--libdir=/usr/local/lib/gcc-4.3.2 --prefix=/usr/local
--mandir=/usr/local/man --infodir=/usr/local/info/gcc43
--build=i386-portbld-freebsd7.2
Thread model: posix
gcc version 4.3.2 (GCC)
Configuration:
$ ./configure \
--target=x86_64-unknown-freebsd7.2 \
--prefix=/usr/local/cross \
--enable-languages="c,ada" \
--disable-nls \
--with-system-zlib \
--with-libiconv-prefix=/usr/local \
--program-suffix="-4.4.0"
The problem does seem to be an artifact of compiling for a
different target as I've compiled a native gcc 4.4.0 without
any problem.
Any help would be appreciated.
xw