This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
--with-headers for cross-compile broken? (egcs-971201)
- To: egcs at cygnus dot com
- Subject: --with-headers for cross-compile broken? (egcs-971201)
- From: Mike Neuhauser <mike at gams dot co dot at>
- Date: Tue, 02 Dec 1997 17:15:36 +0100
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=<dir with headers of gnu-libc2>
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!