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]

trouble compiling egcs 1.1.2 for cross compiler

hi all,

on libc 5 linux system, i'm tring to make egcs 1.1.2 as a cross
compiler for glibc 2.1.

configuer options:
--target=i586-pc-linux-gnu --with-headers=/usr/local/cross/include --with-libs=/usr/local/cross/lib --prefix=/usr/local/cross

worked fine.  however, make cross doesn't work as INSTALL/BUILD say.
so i just did "make", and got this error. (i put -v in CFLAGS)

-------------from here--(i put '\n' at end of each line)------------

gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
 ./cpp -lang-c -v -I./include -I. -I../egcs-1.1.2/gcc -I../egcs-1.1.2/gcc/config
 -isystem ./include -undef -D__GNUC__=2 -D__GNUC_MINOR__=91 -D__ELF__ -Dunix -Di
386 -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__i386__ -D__linux__ -D
__unix -D__i386 -D__linux -Asystem(posix) -D__OPTIMIZE__ -g -g1 -Asystem(unix) -
Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di586 -Dpentium -D__i586 
-D__i586__ -D__pentium -D__pentium__ -D__PIC__ -D__pic__ -DCROSS_COMPILE -DIN_GC
C -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -DL_muldi3 ../egcs-1.1.2/gcc/libgcc2.c /
GNU CPP version egcs-2.91.66 19990314 (egcs-1.1.2 release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
End of search list.
../egcs-1.1.2/gcc/libgcc2.c:41: stdlib.h: No such file or directory
../egcs-1.1.2/gcc/libgcc2.c:42: unistd.h: No such file or directory
make: *** [libgcc2.a] Error 1

----------------until here---------------

it seems me that --with-headers=/usr/local/cross/include is not
working with cross compile.  BTW, i can make libc5 native compiler
with out problems.

am i missing some stupid option that i suppose to put in?

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