您的位置:首页 > 其它

编译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-
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: