|
发表于 2006-6-23 18:50:29
|
显示全部楼层
用百度搜索“cc1: Invalid option `abi=apcs-gnu'”
其中一个链接为:郭步高的第一个BLOG
http://guobg.blogcn.com/
以下是他的解决方法,但是我没试过(!)你可以试试,或者找找其他链接。
如果还是不行就用google搜索。
2006-5-5
u-boot移植过程中abi=apcs-gnu问题的解决
以下摘自 http://sourceforge.net/mailarchive/message.php?msg
> I'm using the GCC 3.2 toolchain for building U-Boot (current head of git) for an ARM
target.
> I get the following error:
> cc1: invalid option 'abi=apcs-gnu'
>
> This option (correct me if I'm wrong) was introduced with a recent
> patch by Peter Pearse. Digging a bit in gcc.gnu.org it appears that
> this option comes only with GCC 4.0!
That's true but the cc-option checker should use -mapcs-32 if it is
available, otherwise it will fall back to -mabi=apcs-gnu. It looks
like your compiler doesn't support the first option either. In this
case, I'm not sure it worked before Peter's patch. What CPU is it?
You could try the following in your config.mk but you should
investigate why -mapcs-32 doesn't work:
PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,$(call cc-option,-mabi=apcs-gnu,))
我使用的GCC为 arm-linux-gcc-3.4.1.tar.bz2
有效! |
|