This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more infromation.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

powerpc crosscompiler error



I'm running into the following problem when trying to
build a linux-hosted powerpc-eabi cross-compiler:

---snip--------
rm -f libgcc2.a
if [ -d . ]; then \
  cd .; \
  rm -f libgcc.a ecrti.o ecrtn.o scrt0.o scrti.o scrtn.o; \
else true; \
fi
make GCC_FOR_TARGET="/local/ppopov/gnu/b-powerpc-eabi/gcc/xgcc -B/local/ppopov/gnu/b-powerpc-eabi/gcc/ -B/usr/powerpc-eabi/bin/ -I/usr/powerpc-eabi/include" \
  AR_FOR_TARGET="powerpc-eabi-ar" \
  AR_FLAGS_FOR_TARGET="rc" \
  CC="gcc" CFLAGS="-g -O2" \
  HOST_PREFIX="" HOST_PREFIX_1="loser-" \
  LANGUAGES="c c++" \
  LIBGCC2_CFLAGS="-O2  -DCROSS_COMPILE -DIN_GCC -DHAIFA    -g -O2 -I./include   -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc   -mstrict-align" libgcc2.a
make[3]: Entering directory `/local/ppopov/gnu/b-powerpc-eabi/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}; \
  /local/ppopov/gnu/b-powerpc-eabi/gcc/xgcc -B/local/ppopov/gnu/b-powerpc-eabi/gcc/ -B/usr/powerpc-eabi/bin/ -I/usr/powerpc-eabi/include -O2  -DCROSS_COMPILE -DIN_GCC -DHAIFA    -g -O2 -I./include   -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc   -mstrict-align -I. -I../../src/gcc -I../../src/gcc/config -I../../src/gcc/../include -c -DL${name} \
       ../../src/gcc/libgcc2.c -o ${name}.o; \
  if [ $? -eq 0 ] ; then true; else exit 1; fi; \
  powerpc-eabi-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 `/local/ppopov/gnu/b-powerpc-eabi/gcc'
make[2]: *** [stmp-multilib-sub] Error 2
make[2]: Leaving directory `/local/ppopov/gnu/b-powerpc-eabi/gcc'
make[1]: *** [stmp-multilib] Error 1
make[1]: Leaving directory `/local/ppopov/gnu/b-powerpc-eabi/gcc'
make: *** [all-gcc] Error 2                                                      


I'm using newlib-1.8.2, gcc-2.95.2, and binutils-2.9.1.  I ran the
one-tree-1.6.sh script to create the src directory with all the links,
and then I used build-cross.sh with a powerpc-eabi target.  I get the
same exact error when trying to build the compiler "manually" -- ie,
I create a build directory, run configure, etc, as described in the FAQ.

Any suggestions would be appriciated.

Thanks,

Pete

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]