This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: cross compiler missing header?
- From: Michael Eager <eager at eagercon dot com>
- To: Deskin Miller <arekesandara at hotmail dot com>
- Cc: gcc at gnu dot org
- Date: Thu, 07 Aug 2003 08:48:43 +0000
- Subject: Re: cross compiler missing header?
- References: <Law12-F66448NvzHr4s0000c123@hotmail.com>
There are cross-dependencies between gcc and glibc. Build the glibc
headers with your host gcc. Then build gcc with these headers,
then glibc, and finally cross gcc.
Deskin Miller wrote:
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
--
Michael J. Eager Eager Consulting eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306 (650) 325-8077