This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
"as" problem when cross-compiling gcc for PowerPC
- From: Jingzhao Ou <jasonou at yahoo dot com>
- To: gcc at gnu dot org, ouj at usc dot edu
- Date: Tue, 29 Oct 2002 01:23:34 -0800 (PST)
- Subject: "as" problem when cross-compiling gcc for PowerPC
Hi,
I tried to cross-compile gcc for PowerPC on RH7.3. I can successfully compile
binutil. However, I got the following error message when compiling gcc-core. It
seems that it tried to use "as -mpp". However, the "as" provided by RH7.3 is
not for PowerPC and doesn't have the option. If I renamed "powerpc-eabi-as" as
"as", then "make" is ok and "make install" will have problem.
Can any one help me out? Thanks!
Best regards,
Jingzhao
========================================================================
./configure --target=powerpc-linux --prefix=/home/jasonou/PowerPC/bin
--without-headers --with-newlib
make
......
......
/home/jasonou/PowerPC/gcc-2.95.3/gcc/xgcc
-B/home/jasonou/PowerPC/gcc-2.95.3/gcc/
-B/home/jasonou/PowerPC/bin/powerpc-linux/bin/
-I/home/jasonou/PowerPC/bin/powerpc-linux/include -O2 -DCROSS_COMPILE -DIN_GCC
-DHAIFA -g -O2 -I./include -fPIC -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED
-Dinhibit_libc -mstrict-align -I. -I. -I./config -I./../include -c -DL${name}
\r
./libgcc2.c -o ${name}.o; \r
if [ $? -eq 0 ] ; then true; else exit 1; fi; \r
powerpc-linux-ar rc tmplibgcc2.a ${name}.o; \r
rm -f ${name}.o; \r
done
_muldi3
as: unrecognized option `-mppc'
make[3]: *** [libgcc2.a] Error 1
make[3]: Leaving directory `/home/jasonou/PowerPC/gcc-2.95.3/gcc'
make[2]: *** [stmp-multilib-sub] Error 2
make[2]: Leaving directory `/home/jasonou/PowerPC/gcc-2.95.3/gcc'
make[1]: *** [stmp-multilib] Error 1
make[1]: Leaving directory `/home/jasonou/PowerPC/gcc-2.95.3/gcc'
make: *** [all-gcc] Error 2
=====================================================================
__________________________________________________
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/