首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 嵌入开发 > 驱动开发 >

freescale交叉编译器的有关问题

2012-06-07 
freescale交叉编译器的问题编译出错,提示如下:`-mcpu is deprecated. Use `-mtune or -march inste

freescale交叉编译器的问题
编译出错,提示如下:
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-as: unrecognized option '-Qy'
make[2]: *** [dsi.o] Error 255
make[1]: *** [dependCwd] Error 2
make: *** [depend] Error 255
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-as: unrecognized option '-Qy'
make[3]: *** [edep.o] Error 255
make[2]: *** [dependDirs] Error 2
make[1]: *** [dependDirs] Error 2
make: *** [depend] Error 255

怎么解决啊,求高人指点,好像是gcc的问题吧,怎样修改?

[解决办法]

探讨

是gcc的问题,还是configure的问题,还是makefile的 问题???

[解决办法]
我是这个编译器版本的owner,
这个问题是因为你传递了错误的编译选项 "-Qy" 给gas.

请查看你的makefile或者configure是否有问题。

另外,这是一个multilib toolchain, 如果编译出错, 请提供你传递给编译器的选项,不同的选项会link到不同的libs
[解决办法]
同意楼上,需要修改一下makefile的编译选项

热点排行