* "as" problem when cross-compiling gcc for PowerPC
@ 2002-10-29 9:47 Jingzhao Ou
0 siblings, 0 replies; only message in thread
From: Jingzhao Ou @ 2002-10-29 9:47 UTC (permalink / raw)
To: gcc, ouj
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/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-10-29 9:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-29 9:47 "as" problem when cross-compiling gcc for PowerPC Jingzhao Ou
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).