From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Neuhauser To: egcs@cygnus.com Subject: --with-headers for cross-compile broken? (egcs-971201) Date: Tue, 02 Dec 1997 09:56:00 -0000 Message-id: <199712021615.RAA11779@scully.gams.co.at> X-SW-Source: 1997-12/msg00097.html I'm trying to build a powerpc-unknown-linux-gnulibc2 targeted cross compiler on an i686-pc-linux-gnulibc1 host. I've got problems with the target header files. I'm using bintuls-2.8.1.0.17 (binutils and egcs are built together) and egcs-971201 (egcs-971122 shows same behaviour). The following sets up the build directory and does the build: mkdir otb cd otb ln -s ../egcs-971201/* . ln -s ../binutils-2.8.1.0.17/{bfd,binutils,gas,gprof,ld,opcodes} . mkdir build cd build ../configure --prefix=/usr/local/powerpc-unknown-linux-gnulibc2 \ --target=powerpc-unknown-linux-gnulibc2 \ --with-headers= make cross configure copies the headers to /usr/local/powerpc-unknown-linux-gnulibc2/powerpc-unknown-linux-gnulibc2/sys-include, but when libgcc2.c is compiled to get _eprintf.o, the header stdio.h is not found. The header search list for this compile is include . ../../gcc ../../gcc/config /disk/home/mike/SOHO/Src/otb/build/gcc/include /usr/local/powerpc-unknown-linux-gnulibc2/lib/gcc-lib/powerpc-unknown-linux-gnulibc2/egcs-2.90.18/include /usr/local/powerpc-unknown-linux-gnulibc2/powerpc-unknown-linux-gnulibc2/include After I copied the headers manually to /usr/local/powerpc-unknown-linux-gnulibc2/powerpc-unknown-linux-gnulibc2/include the cross-compiler was build successfully. Does anyone know, if this is a bug, or if I have used this feature wrong (whats the right way to do it)? Thank you!