cross-compiler gcc build can't find stubs.h
Rodney Smith
rodney.smith@watchguard.com
Wed Aug 15 11:05:00 GMT 2001
I'm trying to build a cross-compiler x86->x86-custom-kernel and I'm getting
an error when trying to complete the build of gcc. First I build binutils,
gcc (with inhibit-libc), then build glibc, but when I reconfigure to build
the complete gcc, I get the following at the end of the email.
Q's I can think of:
Am I building with the right --with-headers options?
is gcc installing to the correct directory?
Features.h thinks that _LIBC is undefined - but shouldn't it be defined at
this point?
Other ideas?
My build script is attached.
Thanks for any pointers,
Rodney Smith
rm -f tmplibgcc2.a
for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 _lshrdi3
_ashldi3 _ashrdi3 _ffsdi2 _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2
_floatdidf _floatdisf _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi
_fixunssfdi _fixsfdi _fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi _fixtfdi
_fixunstfdi _floatditf __gcc_bcmp _varargs __dummy _eprintf _bb _shtab
_clear_cache _trampoline __main _exit _ctors _pure; \
do \
echo ${name}; \
/opt/WG/2.95.3/x86-x86/src/bld-gcc/gcc/xgcc
-B/opt/WG/2.95.3/x86-x86/src/bld-gcc/gcc/
-B/opt/WG/2.95.3/x86-x86/i586-firebox-linux-gnu/bin/
-I/opt/WG/2.95.3/x86-x86/i586-firebox-linux-gnu/include -O2 -DCROSS_COMPILE
-DIN_GCC -mcpu=i586 -march=i586 -D_REENTRANT -I./include -fPIC -g1
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I../../gcc-2.95.3/gcc
-I../../gcc-2.95.3/gcc/config -I../../gcc-2.95.3/gcc/../include -c -DL${name}
\
../../gcc-2.95.3/gcc/libgcc2.c -o ${name}.o; \
if [ $? -eq 0 ] ; then true; else exit 1; fi; \
i586-firebox-linux-gnu-ar rc tmplibgcc2.a ${name}.o; \
rm -f ${name}.o; \
done
_muldi3
In file included from
/opt/WG/2.95.3/x86-x86/i586-firebox-linux-gnu/include/stdlib.h:25,
from ../../gcc-2.95.3/gcc/libgcc2.c:41:
/opt/WG/2.95.3/x86-x86/i586-firebox-linux-gnu/include/features.h:311:
gnu/stubs.h: No such file or directory
make[1]: *** [libgcc2.a] Error 1
make[1]: Leaving directory `/opt/WG/2.95.3/x86-x86/src/bld-gcc/gcc'
make: *** [all-gcc] Error 2
build.sh
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build.sh
Type: text/x-shellscript
Size: 5083 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/crossgcc/attachments/20010815/0d0f05a7/attachment.bin>
More information about the crossgcc
mailing list