This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: powerpc cross-compiler build failing
- To: gcc-help at gcc dot gnu dot org
- Subject: Re: powerpc cross-compiler build failing
- From: Rob Ouellette <rouellet at ebmail dot gdeb dot com>
- Date: Fri, 29 Jun 2001 13:08:41 -0400
Hello,
We are trying to build a c/c++ cross-compiler for the
SPARC/Solaris and PowerPC/vxworks targets from the
gcc 2.9.3 source code. I have downloaded the binutils v2.10.1
and installed it with the following command:
/files2/bu10/configure --prefix=/apps/gnu2/ppc
--host=sparc-sun-solaris2.6 \
--target=powerpc-wrs-vxworks
I ran configure on the source code as follows:
/files/gcc-2.95.3/configure --prefix=/apps/gnu2/ppc
--host=sparc-sun-solaris2.6 \
--target=powerpc-wrs-vxworks --with-gnu-ld --with-gnu-as
I put "/apps/gnu2/ppc/bin" and
"/apps/gnu2/ppc/powerpc-wrs-vxworks/bin" in my search path before
running
"/files/gcc-2.95.3/configure".
When I do a make(gnu make) I get the error,
/files2/gcc-2.95.3/gcc/stdlib.h:18: sys/feature_tests.h: No
such file or directory, as shown below. I am unsure of why or
what to do. I tried copying the needed files
from /usr/include but that didn't work. I believe the
instructions I have say not to use the "--with-local-prefix"
option - which I was considering.
Any advise/recomendations are GREATLY appreciated!
Thanks,
-rob
860.433.8657
--------------------------------------------------------------------------------------------
/files2/tgnu2/ppc/gcc/xgcc -B/files2/tgnu2/ppc/gcc/
-B/apps/gnu2/ppc/powerpc-wrs-vxworks/bin/
-I/apps/gnu2/ppc/powerpc-wrs-vxworks/include -O2 -DCROSS_COMPILE
-DIN_GCC -DHAIFA -DSVR4 -g -O2 -I./include -g1
-DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED
-mrelocatable-lib -mno-eabi -mstrict-align -I.
-I/files2/gcc-2.95.3/gcc -I/files2/gcc-2.95.3/gcc/config
-I/files2/gcc-2.95.3/gcc/../include -c -DL${name} \
/files2/gcc-2.95.3/gcc/libgcc2.c -o ${name}.o; \
if [ $? -eq 0 ] ; then true; else exit 1; fi; \
powerpc-wrs-vxworks-ar rc tmplibgcc2.a ${name}.o; \
rm -f ${name}.o; \
done
_muldi3
In file included from /files2/gcc-2.95.3/gcc/libgcc2.c:41:
/files2/gcc-2.95.3/gcc/stdlib.h:18: sys/feature_tests.h: No such
file or directory
In file included from /files2/gcc-2.95.3/gcc/libgcc2.c:42:
/files2/gcc-2.95.3/gcc/unistd.h:25: sys/feature_tests.h: No such
file or directory
make[3]: *** [libgcc2.a] Error 1
make[3]: Leaving directory `/files2/tgnu2/ppc/gcc'
make[2]: *** [stmp-multilib-sub] Error 2
make[2]: Leaving directory `/files2/tgnu2/ppc/gcc'
make[1]: *** [stmp-multilib] Error 1
make[1]: Leaving directory `/files2/tgnu2/ppc/gcc'
make: *** [all-gcc] Error 2