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

Posted 请给我倒杯茶

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了cc1: error: bad value (armv5) for -march= switch相关的知识,希望对你有一定的参考价值。

本文转载自: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的主要内容,如果未能解决你的问题,请参考以下文章

/usr/local/ssl/lib/libssl.a: error adding symbols: Bad value

gcc cc1: all warnings being treated as errors

Qt error: fatal error: Killed signal terminated program cc1plus

Spring表单ModelAttribute字段验证以避免400 Bad Request Error

gcc: error trying to exec ‘cc1plus‘: execvp: Permission denied

g++: internal compiler error: Killed (program cc1plus)