码迷,mamicode.com
首页 > 其他好文 > 详细

cc1: error: bad value (armv5) for -march= switch【转】

时间:2017-07-18 16:54:15      阅读:651      评论:0      收藏:0      [点我收藏+]

标签:can   body   linu   find   nts   nat   oss   ext   star   

本文转载自:https://stackoverflow.com/questions/23871924/cc1-error-bad-value-armv5-for-march-switch

I am compiling u-boot for beagle bone black as per the steps mentioned on this link

http://eewiki.net/display/linuxonarm/BeagleBone+Black#BeagleBoneBlack-Bootloader:U-Boot

and getting the following error.

cc1: error: bad value (armv5) for -march= switch

can anyone help me in finding the reason for this error? I guess this is because of gcc not supporting armv7-a still not sure.

thanks, sumit

shareimprove this question
 

If you type the exact command shown on eewiki.net page, there would be a problem if you do not have env var CC set. I prefer the following, it assumes you have reasonably current install of arm-linux-gnueabi-gcc as your cross toolchain (adjust if you have something different)

export CROSS_COMPILE=arm-linux-gnueabi-
export ARCH=arm
make am335x_evm_config
make

cc1: error: bad value (armv5) for -march= switch【转】

标签:can   body   linu   find   nts   nat   oss   ext   star   

原文地址:http://www.cnblogs.com/zzb-Dream-90Time/p/7200977.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!