cross compiler missing header?

Deskin Miller arekesandara@hotmail.com
Tue Aug 5 16:50:00 GMT 2003


Hello,
     I am having trouble building a gcc cross-compiler.  I had no trouble 
making a native compiler, but when making a cross compiler, I always get 
this error message.  It appears that certain header files, <signal.h> and 
<sys/ucontext.h>, are not present in the standard include directories.  Any 
help would be greatly appreciated.  FYI, I am running Red Hat 9, gcc 3.3, 
binutils 2.14, glibc 2.3.2, on an i686 architecture; the options I passed to 
configure were "--host=i686-pc-linux-gnu --enable-target-optspace 
--enable-threads=posix --target=i386-pc-linux-gnu --with-cpu=i386".  Any 
help you could provide would be greatly appreciated.  Below is the log of 
the relevant portion of the make process:


============BEGIN MAKE LOG===============

/usr/src/jedi-linux/src/gcc/gcc-build/gcc/xgcc 
-B/usr/src/jedi-linux/src/gcc/gcc
-build/gcc/ -B/usr/local/i386-pc-linux-gnu/bin/ 
-B/usr/local/i386-pc-linux-gnu/l
ib/ -isystem /usr/local/i386-pc-linux-gnu/include -O2  -DIN_GCC 
-DCROSS_COMPILE
  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem 
./i
nclude  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED 
-Dinh
ibit_libc -I. -I. -I../../gcc-3.3/gcc -I../../gcc-3.3/gcc/. 
-I../../gcc-3.3/gcc/
config -I../../gcc-3.3/gcc/../include  -DL_muldi3 -c 
../../gcc-3.3/gcc/libgcc2.c
-o libgcc/./_muldi3.o
In file included from tconfig.h:23,
                 from ../../gcc-3.3/gcc/libgcc2.c:36:
../../gcc-3.3/gcc/config/i386/linux.h:232:20: signal.h: No such file or 
director
y
../../gcc-3.3/gcc/config/i386/linux.h:233:26: sys/ucontext.h: No such file 
or di
rectory
make[2]: *** [libgcc/./_muldi3.o] Error 1
make[2]: Leaving directory `/usr/src/jedi-linux/src/gcc/gcc-build/gcc'
make[1]: *** [libgcc.a] Error 2
make[1]: Leaving directory `/usr/src/jedi-linux/src/gcc/gcc-build/gcc'
make: *** [all-gcc] Error 2

=================END MAKE LOG==================


Thanks again!

Deskin Miller

_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail



More information about the Gcc mailing list