This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cross compiler missing header?

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:
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
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
../../gcc-3.3/gcc/config/i386/linux.h:233:26: sys/ucontext.h: No such file or di
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.

Michael J. Eager	Eager Consulting
1960 Park Blvd., Palo Alto, CA 94306	(650) 325-8077

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]