m68k->powerpc build problem

fheitka@ibm.net fheitka@ibm.net
Sun Dec 6 18:33:00 GMT 1998

I compiled and installed binutils- and egcs-1.1.1 hoping that
would solve some of the problems I'm having making a m68k->ppc cross
compiler.   I've noticed that there are references in the  Makefile for
gcc to the binutils programs.  However there is no reference to the
powerpc-unknown-linux-gnu-as.   Could that be causing the following error? 
It appears that the m68k assembler is being called to assemble ppc code. 
I've looked at the FAQ. The building process seems to want the m68k
assembler at times and the ppc assembler at times.

  AR="powerpc-unknown-linux-gnu-ar" AR_FLAGS="rc" CC="gcc" CFLAGS="-g -O2"
  HOST_PREFIX="" HOST_PREFIX_1="loser-" \
  LANGUAGES="c c++" \
  LIBGCC2_CFLAGS="-O2  -DCROSS_COMPILE -DIN_GCC    -g -O2 -I./include 
-fPIC -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED    -mstrict-align"
libgcc2.a make[3]: Entering directory
`/drives/apus_scsi/usr/src/egcs-1.1.1/crossppc/gcc' if [ -f libgcc2.ready
] ; then \
	true; \
else \
	touch libgcc2.ready; \
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}; \
-B/drives/apus_scsi/usr/src/egcs-1.1.1/crossppc/gcc/ -O2  -DCROSS_COMPILE
-DIN_GCC    -g -O2 -I./include  -fPIC -g1  -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED    -mstrict-align -I. -I../../gcc
-I../../gcc/config -c -DL${name} \
      ../../gcc/libgcc2.c -o ${name}.o; \
  if [ $? -eq 0 ] ; then true; else exit 1; fi; \
  powerpc-unknown-linux-gnu-ar rc tmplibgcc2.a ${name}.o; \
  rm -f ${name}.o; \
Assembler messages:
Error: unrecognized architecture specification `ppc'
make[3]: *** [libgcc2.a] Error 1
make[3]: Leaving directory
`/drives/apus_scsi/usr/src/egcs-1.1.1/crossppc/gcc' make[2]: ***
[stmp-multilib-sub] Error 2
make[2]: Leaving directory
`/drives/apus_scsi/usr/src/egcs-1.1.1/crossppc/gcc' make[1]: ***
[stmp-multilib] Error 1
make[1]: Leaving directory
`/drives/apus_scsi/usr/src/egcs-1.1.1/crossppc/gcc' make: *** [cross]
Error 2


New CrossGCC FAQ: http://www.objsw.com/CrossGCC
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.

More information about the crossgcc mailing list