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

Ask Question
up vote3down votefavorite

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

cross-compiling u-boot beagleboneblack
shareimprove this question
edited May 27 '14 at 5:31
sawdust

7,4811632

asked May 26 '14 at 14:02
user2910111

4717

 
add a comment

1 Answer

activeoldestvotes

up vote3down voteaccepted

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【转】相关推荐

  1. 关于lib/asm-offsets.c:1:0: error: bad value (armv5) for -march= switch问题解决办法

    关于lib/asm-offsets.c:1:0: error: bad value (armv5) for -march= switch解决办法             ti的am335x start ...

  2. Error C1189: #error: Please use the /MD switch for _AFXDLL builds(转)

    原文转自 https://www.cnblogs.com/zwh0214/p/6048360.html 在VS 2013中编译程序时出现错误: 错误提示1: error C1189: #error : ...

  3. Ubuntu 编译时出现错误cc1: error: ‘-fcf-protection’ is not compatible with this target

    ubuntu 20.04编译时报cc1: error: '-fcf-protection' is not compatible with this target错误, 原因: 由于ubuntu将-fc ...

  4. Visual Studio—— IntelliSense: #error 指令: Please use the /MD switch for _AFXDLL builds

    在做MFC时遇到这个问题,解决方法如下: 修改设置:工程(Project)-> 属性(Properties)-> 配置属性(Configuration Properties)-> c ...

  5. 错误:cc1: error: unrecognized command line option “-m32”

    操作系统:RHEL5.1-Server 编译器:gcc 4.1.2 工程:x264-snapshot-20120817-2245 问题:在编译安装 x264 时出现下列错误 解决方案:找到工程中Mak ...

  6. LINUX7-编译驱动文件时报错:cc1: error: code model kernel does not support PIC mode

    修改makefile 即可,默认改为arm构架 或者使用 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16 gg@ubuntu:~/linux ...

  7. 我是穷人,可以不买开发板了吗?---QEMU 模拟arm系统

    文章目录 序言 准备工作 QEMU开始 Linux内核 U-boot 的修改及编译 构建根文件系统 busybox配置安装 制作根文件系统 启动QEMU模拟arm开发板 出现的问题 结束语 序言 一直 ...

  8. uboot2014.10移植(一)

    最新有点时间,所以想折腾点东西,于是拿起了几年前的TQ2440玩玩,下载了uboot2014.10版本,准备移植到板子上去,没想到折腾环境都折腾了一下午. 1.工具链安装 我的工具链直接用命令安装的: ...

  9. 关于makefile编译gcc程序的写法 简单只看4点就会了 芯片i5,S3C2440,LPC1759-58-56-54-52-51的makefile模版

    1.选择哪个编译器CC.比如CC:=gcc 2.使用的cpu类型CFLAGS1,CFLAGS2.这个错了会有提示,我虚拟器就用corei7就OK cc1: error: bad value ('arm ...

最新文章

  1. 基于php编写的新闻类爬虫,插入WordPress数据库
  2. windows远程桌面管理工具下载_vnc viewer 64位下载,3步实现vnc viewer 64位下载
  3. 多元二次方程 python_Python 二次方程
  4. 在Linux下安装aws命令行操作
  5. 人工智能的突破需要颠覆图灵机吗?
  6. centos内核参数调优
  7. python excel 数据匹配实现vlookup功能_如何用python实现excel中的vlookup功能?
  8. 自然语言处理 —— 2.4 嵌入矩阵
  9. 关于类的sizeof问题
  10. String类型getBytes方法
  11. b区计算机211学校排名,考研B区院校排名
  12. PowerBI中常用的DAX函数
  13. Redis的那些事儿:关系型和非关系型数据库,非关系型数据库的类型,redis数据类型、编码格式、高性能、可以做什么、分布式锁失效的原因,string为采用sds数据类型,为什么是二进制安全的,
  14. showdown解析md文件
  15. ream完美转换XML、JSON 转载
  16. 项目实战|基于STM32的无刷电机开环控制
  17. 差点,参加中国平安保险集团
  18. 【机器人学习】三自由度康复机器人运动学分析()
  19. 面对金九银十你真的准备好了吗?
  20. 安卓手机超过30天短信恢复_免费恢复短信记录安卓(教你Android手机短信恢复技巧)...

热门文章

  1. 开启Windows 7远程桌面功能的做法
  2. JavaScript 的继承与多态
  3. php 随机替换字符串_php替换固定字符串
  4. Unity实战篇:Buff系统设计(二:具体代码和实战使用)
  5. 3D虚拟现实到底是什么
  6. 商业策划的基本功:竞品分析
  7. cookie和session的详细讲解
  8. 外星人鼠标如何设置宏定义
  9. TwinCAT3 PLC多轴编程的方法
  10. Windows 10 的邮件怎么添加并同步 Gmail