errors cross-compiling for x86_64

Tim Cullen
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.

-Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem
-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
In file included from ./gthr-default.h:1,
                 from ../../gcc-3.4.6/gcc/gthr.h:96,
../../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 

More information about the Gcc-bugs mailing list