This is the mail archive of the
egcs-bugs@egcs.cygnus.com
mailing list for the EGCS project.
Cross-compile failure. yay.
- To: egcs-bugs@egcs.cygnus.com
- Subject: Cross-compile failure. yay.
- From: Tony Mantler <eek@escape.ca>
- Date: Thu, 8 Jul 1999 03:55:26 -0500
- Organisation: Judean People's Front; Department of Whips, Chains, Thumb-Screws, Six Tons of Whipping Cream, the Entire Soprano Section of the Mormon Tabernacle Choir and Guest Apperances of Eva Peron aka Eric Conspiracy Secret Laboratories
Abstract:
Compilation of i386-linux hosted ppc-linux target cross compiler fails with
an incorrect option passed to 'as' by the newly compiled gcc.
Versions:
Host compiler = egcs-2.91.66 (debian package gcc 2.91.66-2)
Host binutils = 2.9.1.0.25 (debian package binutils 2.9.1.0.25-2)
Target compiler = egcs 1.1.2 core source + egcs 1.1.2 c++ source
Target binutils = 2.9.1.0.25 (debian package binutils-multiarch 2.9.1.0.25-2)
Make = GNU Make 3.77 (debian package make 3.77-4)
Host system:
ti-486/40 16M/420M, Debian 2.1/2.2, 2.2.10 kernel
Target system:
PPC-603e/75 (Mac Performa 5200), will run linux later.
Setup:
../egcs-1.1.2/configure \
ppc-linux \
--with-cpu=603e \
--host=i386-linux \
--with-headers=/usr/include
make cross
Results:
[happy compiling stuff deleted]
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}; \
/usr/src/egcs-bin/gcc/xgcc -B/usr/src/egcs-bin/gcc/ -O2 -DCROSS_COMPILE
-DIN_GCC -g -O2 -I./include -fPIC -g1 -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -mstrict-align -I. -I../../egcs-1.1.2/gcc
-I../../egcs-1.1.2/gcc/config -c -DL${name} \
../../egcs-1.1.2/gcc/libgcc2.c -o ${name}.o; \
if [ $? -eq 0 ] ; then true; else exit 1; fi; \
ppc-linux-ar rc tmplibgcc2.a ${name}.o; \
rm -f ${name}.o; \
done
_muldi3
as: unrecognized option `-ppc'
make[3]: *** [libgcc2.a] Error 1
[make recursion collapse deleted]
--
Tony Mantler Renaissance Nerd Extraordinaire eek@escape.ca
Winnipeg, Manitoba, Canada http://www.escape.ca/~eek