build cross gcc for ppc with glibc
Schlomo Schapiro
schapiro@mobileye.com
Thu Jan 24 23:10:00 GMT 2002
Hi,
I need to build a cross-gcc to compile PPC stuff on a i386 box (with
Altivec extensions).
The problem is that the compilation of gcc (make bootstrap) ends with
this:
-------------------------------------------
make[3]: Entering directory
`/home/mobileye/work/Altivec/gcc-2.95.2.orig/gcc-2.95.2/build/gcc'
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}; \
./xgcc -B/usr/mobileye/Altivec/powerpc-linux/bin/ -B./
-I/usr/mobileye/Altivec/powerpc-linux/include -O2 -Iginclude
-DCROSS_COMPILE -DIN_GCC -DHAIFA -g -I./include -fPIC -fvec -g1
-DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED
-mstrict-align -I. -I../../gcc -I../../gcc/config -I../../gcc/../include
-c -DL${name} \
../../gcc/libgcc2.c -o ${name}.o; \
if [ $? -eq 0 ] ; then true; else exit 1; fi; \
ar rc tmplibgcc2.a ${name}.o; \
rm -f ${name}.o; \
done
_muldi3
as: unrecognized option `-ppc'
make[3]: *** [libgcc2.a] Error 1
make[3]: Leaving directory
`/home/mobileye/work/Altivec/gcc-2.95.2.orig/gcc-2.95.2/build/gcc'
make[2]: *** [stmp-multilib-sub] Error 2
make[2]: Leaving directory
`/home/mobileye/work/Altivec/gcc-2.95.2.orig/gcc-2.95.2/build/gcc'
make[1]: *** [stmp-multilib] Error 1
make[1]: Leaving directory
`/home/mobileye/work/Altivec/gcc-2.95.2.orig/gcc-2.95.2/build/gcc'
make: *** [bootstrap] Error 2
------------------------------------------------------------------
The as called here is the one from the cross-binutils which I successfully
installed previously. I also installed a glibc into the same prefix
(--prefix=/usr/mobileye/Altivec).
It seems strange to me that the ppc-enabled as doesn't know about ppc ?
Any help appreciated !
Schlomo
PS: I don't want to build with newlib, however, I didn't find any howto or
FAQ how to properly build binutils/gcc/glibc for a cross encironment from
scratch.
--
Schlomo Schapiro
Senior System Administrator
MobilEye Vision Technologies Ltd.
24 Mishol Hadkalim St.,97278 Jerusalem, Israel
Telephone: + 972-2-586-6989 Ext. 131
Mobile: + 972-55-767898
Fax: + 972-2-586-7720
email: schapiro@mobileye.com
WWW: http://www.mobileye.com
------
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