LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1250|回复: 0

在redhat linux 9.0上建立Power PC的交叉编译环境,遇到的问题,求解???谢谢!!!

[复制链接]
发表于 2008-10-22 16:50:58 | 显示全部楼层 |阅读模式
[root@localhost root]# cd ppc-eabi-build/
[root@localhost ppc-eabi-build]# make
make[1]: Entering directory `/root/ppc-eabi-build/libiberty'
make[2]: Entering directory `/root/ppc-eabi-build/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/ppc-eabi-build/libiberty/testsuite'
make[1]: Leaving directory `/root/ppc-eabi-build/libiberty'
make[1]: Entering directory `/root/ppc-eabi-build/intl'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/ppc-eabi-build/intl'
make[1]: Entering directory `/root/ppc-eabi-build/zlib'
: make ; exec true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2" "CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=-O2 -g -O2" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCFLAGS_FOR_TARGET=-O2 -g -O2" "MAKE=make" "MAKEINFO=makeinfo --split-size=5000000 " "ICFLAG=" "ICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/usr/local/gcc3.4.6-ppc-eabi" "infodir=/usr/local/gcc3.4.6-ppc-eabi/info" "libdir=/usr/local/gcc3.4.6-ppc-eabi/lib" "prefix=/usr/local/gcc3.4.6-ppc-eabi" "tooldir=/usr/local/gcc3.4.6-ppc-eabi/ppc-eabi" "AR=ar" "AS=as" "CC=gcc" "CXX=c++" "LD=ld" "LIBCFLAGS=-g -O2" "NM=nm" "ICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do
make[1]: Leaving directory `/root/ppc-eabi-build/zlib'
make[1]: Entering directory `/root/ppc-eabi-build/gcc'
make[1]: *** Warning: File `/root/project/gcc-3.4.6-make/gcc-3.4.6/gcc/config/' has modification time in the future (2008-10-15 10:49:20 > 2007-11-05 00:11:07.406975)
make \
  CFLAGS="-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long  " \
  CONFIG_H="config.h  auto-host.h /root/project/gcc-3.4.6-make/gcc-3.4.6/gcc/../include/ansidecl.h" \
  MAKEOVERRIDES= \
  -f libgcc.mk all
make[2]: Entering directory `/root/ppc-eabi-build/gcc'
for d in libgcc nof libgcc/nof le libgcc/le und libgcc/und le/und libgcc/le/und nof/le libgcc/nof/le nof/und libgcc/nof/und nof/le/und libgcc/nof/le/und; do \
  if [ -d $d ]; then true; else /bin/sh /root/project/gcc-3.4.6-make/gcc-3.4.6/gcc/mkinstalldirs $d; fi; \
done
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/root/ppc-eabi-build/gcc/xgcc -B/root/ppc-eabi-build/gcc/ -B/usr/local/gcc3.4.6-ppc-eabi/ppc-eabi/bin/ -B/usr/local/gcc3.4.6-ppc-eabi/ppc-eabi/lib/ -isystem /usr/local/gcc3.4.6-ppc-eabi/ppc-eabi/include -isystem /usr/local/gcc3.4.6-ppc-eabi/ppc-eabi/sys-include -O2  -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -g  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I -I/root/project/gcc-3.4.6-make/gcc-3.4.6/gcc -I/root/project/gcc-3.4.6-make/gcc-3.4.6/gcc/ -I/root/project/gcc-3.4.6-make/gcc-3.4.6/gcc/../include   -mrelocatable-lib -mno-eabi -mstrict-align -DL_muldi3 -c /root/project/gcc-3.4.6-make/gcc-3.4.6/gcc/libgcc2.c -o libgcc/./_muldi3.o
as:无法识别的选项“-mppc”
make[2]: *** [libgcc/./_muldi3.o] Error 1
make[2]: Leaving directory `/root/ppc-eabi-build/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/root/ppc-eabi-build/gcc'
make: *** [all-gcc] Error 2

as:无法识别的选项“-mppc”
不知道是什么错误引起的
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表