local-prefix when doing a cross compiler

Alexis Lefort alexis.lefort@free.fr
Mon Feb 17 22:09:00 GMT 2003


Hi all,
I am quite a novice and I try to build a cross compiler hosted on a
i686-pc-linux-gnu, targeting a powerpc-unknown-linux-gnu.
One of my many problems is that configure doesn't seem to take note of
"--with-local-prefix=/zamoi/glibc-2.3.1/" in:

../sources/gcc-3.2.2/configure --with-as=/powerpc-binutils/powerpc-unknown-l
inux-gnu/bin/as --with-ld=/powerpc-binutils/powerpc-unknown-linux-gnu/bin/ld
 --disable-jvmpi --enable-java-gc=boehm --enable-threads=posix --enable-shar
ed --enable-languages=c,c++,java --prefix=/zamoi/gcc-3.2.2/ --with-local-pre
fix=/zamoi/glibc-2.3.1/ --target=powerpc-unknown-linux-gnu

Whatever I do, it never finds headers, I have to copy them into my
objdir/include (I tried to copy them from /usr/include and also from a
cross-builded glibc). Even then I have troubles and I think it must exist
another way to do that.
I built binutils, make, autoconf, glibc, but I don't think it was necessary
(except binutils). I have already tried thousands (not so far from it!) of
possibilities and I never succeeded.

Thank you for helping a poor student in need...   ;)



More information about the Gcc-help mailing list