分页: 1 / 1

用mips交叉编译器编译程序失败

发表于 : 2007-12-17 21:25
zzmguitar
大家好。我最近在学习nachos的源码,在需要搭建交叉编译环境编译mips程序时遇到困难,过程如下:

在nachos的网站下载nachos程序:http://inst.eecs.berkeley.edu/~cs162/sp ... p07.tar.gz

下载交叉编译程序:
http://inst.eecs.berkeley.edu/~cs162/sp ... x-xgcc.tgz

按照下面的指示设置好路径:
http://inst.eecs.berkeley.edu/~cs162/sp ... xgcc.shtml

在nachos/test目录下运行make出现以下错误:
../../mips-x86.linux-xgcc/mips-gcc -O2 -B../../mips-x86.linux-xgcc/mips- -G 0 -Wa,-mips1 -nostdlib -ffreestanding -c assert.c
as: unrecognized option `-G'
make: *** [assert.o] 错误 1

还望高手指教一下[/url]