Please help newbie building i386 crosscompiler from Sparc Linux
Pham Minh-FMP007
Minh.Pham@motorola.com
Thu Jul 31 14:30:00 GMT 2003
Hello,
I am trying to build an i386 cross tool chain from a Sparc machine running Redhat Linux 6.2. I followed the instructions in this FAQ:
http://www.objsw.com/CrossGCC/
with the following settings:
host=sparc64-unknown-linux-gnu
target=i386-pc-linux-gnu
prefix=/usr/local
i=$prefix/bin
I was able to build the "binutils", but when I get the following message during the build process of gcc:
--------------------------------- Begin ---------------------
.
.
.
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}; \
/home/fmp007/gcc/build-gcc/gcc/xgcc -B/home/fmp007/gcc/build-gcc/gcc/ -B/usr/local/i386-pc-linux-gnu/bin/ -I/usr/local/i386-pc-linux-gnu/include -O2 -DCROSS_COMPILE -DIN_GCC -g -O2 -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; \
i386-pc-linux-gnu-ar rc tmplibgcc2.a ${name}.o; \
rm -f ${name}.o; \
done
_muldi3
../../gcc-2.95.3/gcc/libgcc2.c:41: stdlib.h: No such file or directory
../../gcc-2.95.3/gcc/libgcc2.c:42: unistd.h: No such file or directory
make[1]: *** [libgcc2.a] Error 1
make[1]: Leaving directory `/home/fmp007/gcc/build-gcc/gcc'
make: *** [all-gcc] Error 2
------------------------- End included output text --------------
I suspect that there are other environment variables that I need to set, or some other options from the make/build invocation, but don't know which. Please help.
Thanks
Minh Pham
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list