errors cross-compiling for x86_64

Tim Cullen timcullen2001@yahoo.com
Sun Aug 27 20:06:00 GMT 2006


I get the following error when building gcc 3.4.6 as a
cross compiler for x86_64 on an IA32 box.

I searched the crossgcc and gcc-bugs mail archives,
but found no reference to a similar problem.

Any know whats going wrong here? Both pthread.h and
unistd.h are present in /usr/include on the host.

/home/tcullen/x86_64-tools/gcc-obj/gcc/xgcc
-B/home/tcullen/x86_64-tools/gcc-obj/gcc/
-B/home/tcullen/x86_64-tools/install/x86_64-pc-linux-gnu/bin/
-B/home/tcullen/x86_64-tools/install/x86_64-pc-linux-gnu/lib/
-isystem
/home/tcullen/x86_64-tools/install/x86_64-pc-linux-gnu/include
-isystem
/home/tcullen/x86_64-tools/install/x86_64-pc-linux-gnu/sys-include
-O2  -DIN_GCC -DCROSS_COMPILE -DNATIVE_CROSS   -W
-Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem
./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I.
-I../../gcc-3.4.6/gcc -I../../gcc-3.4.6/gcc/.
-I../../gcc-3.4.6/gcc/../include  -fexceptions -c
../../gcc-3.4.6/gcc/unwind-dw2.c -o
libgcc/./unwind-dw2.o
In file included from ./gthr-default.h:1,
                 from ../../gcc-3.4.6/gcc/gthr.h:96,
                 from
../../gcc-3.4.6/gcc/unwind-dw2.c:42:
../../gcc-3.4.6/gcc/gthr-posix.h:43:21: pthread.h: No
such file or directory
../../gcc-3.4.6/gcc/gthr-posix.h:44:20: unistd.h: No
such file or directory


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the Gcc-bugs mailing list