This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


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

gcc crosscompile errors


Hello,

I am trying to compile a cross compiler (C and C++) with host as i586-linux
and target as powerpc-linux. The compiler I am trying to build is
gcc-2.95.1 and the compiler use to compile the cross compiler is gcc-2.7.2
(Debian/GNU/Linux 2.1). Anyway after having found a solution to unistd.h
and stdlib.h problem on the gcc-help mailing list archive the compile barfs
now at:

/EEG/kd/gcc2-build/gcc/xgcc -B/EEG/kd/gcc2-build/gcc/
-B/egcstesting/powerpc-linux/bin/ -I/egcstesting/powerpc-linux/include -O2
-DCROSS_COMPILE -DIN_GCC -DHAIFA    -g -O2 -I./include  -fPIC -g1
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED    -mstrict-align -I.
-I../../gcc-2.95.1/gcc -I../../gcc-2.95.1/gcc/config
-I../../gcc-2.95.1/gcc/../include -c -DL${name} \
       ../../gcc-2.95.1/gcc/libgcc2.c -o ${name}.o; \
  if [ $? -eq 0 ] ; then true; else exit 1; fi; \
  powerpc-linux-ar rc tmplibgcc2.a ${name}.o; \
  rm -f ${name}.o; \
done
_muldi3
make[3]: Leaving directory `/EEG/kd/gcc2-build/gcc'
make[2]: Leaving directory `/EEG/kd/gcc2-build/gcc'
make[1]: Leaving directory `/EEG/kd/gcc2-build/gcc'
as: unrecognized option '-ppc'

I could not find any reference to this problem on the mailing gcc-help
mailing list.
The same problem occures with egcs-1.1.2.

Binutils is version 2.9.1

Is this a known problem? Any solutions?

K.D.



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