编译kernel时 出现的错误和 原因
2014-03-21 13:48
387 查看
1. build linux kernel的错误
cc1: error: unrecognized command line option
"-mlittle-endian"
cc1: error: unrecognized command line option "-mapcs"
cc1: error: unrecognized command line option "-mno-sched-prolog"
cc1: error: unrecognized command line option "-mabi=aapcs-linux"
cc1: error: unrecognized command line option "-mno-thumb-interwork"
arch/arm/kernel/asm-offsets.c:1: error: bad value (armv5t) for -march= switch
arch/arm/kernel/asm-offsets.c:1: error: bad value (strongarm) for -mtune= switch
原因是CROSS_COMPILER路径没有设置正确
使用命令:
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
或修改makefile:
#ARCH ?= $(SUBARCH)
ARCH = arm
#CROSS_COMPILE ?=
CROSS_COMPILE = arm-linux-uclibc-
cc1: error: unrecognized command line option
"-mlittle-endian"
cc1: error: unrecognized command line option "-mapcs"
cc1: error: unrecognized command line option "-mno-sched-prolog"
cc1: error: unrecognized command line option "-mabi=aapcs-linux"
cc1: error: unrecognized command line option "-mno-thumb-interwork"
arch/arm/kernel/asm-offsets.c:1: error: bad value (armv5t) for -march= switch
arch/arm/kernel/asm-offsets.c:1: error: bad value (strongarm) for -mtune= switch
原因是CROSS_COMPILER路径没有设置正确
使用命令:
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
或修改makefile:
#ARCH ?= $(SUBARCH)
ARCH = arm
#CROSS_COMPILE ?=
CROSS_COMPILE = arm-linux-uclibc-
相关文章推荐
- Xcode4.6.1上的一个bug-本地化/国际化Xib文件无效
- 关于C中float和double的一些问题
- Struts2核心包
- Redis linux下安装
- java输出txt文件为unicode的编码方式
- 【编译打包】nagios-4.0.4-2.el6.src.rpm
- 数据库中索引的优缺点
- 相机不小心误删照片怎么恢复
- 【编译打包】nagios-4.0.4-2.el6.src.rpm
- spring (2.5, 3.2) 在 jre 1.8下的fix
- iOS 同步和异步 Get和Post请求
- extjs xtype 一览表
- 防止无意的错误
- ios 内购MKStoreKit小记
- 如何用10只实验鼠检验出1000个药瓶中哪个有毒药?
- 虚析构函数(√)、纯虚析构函数(√)、虚构造函数(X)
- IOS判断当前网络连接类型(可区分2G和3G)
- Linux时间统计函数
- 深入探究IBM AIX高级系统管理(LVM、HACMP双机互备) 附下载地址
- 清华大学校长留给毕业生的五句话