主题 : unrecognized command line option "-mlittle-endian 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 73380
精华: 0
发帖: 3
金钱: 15 两
威望: 3 点
综合积分: 6 分
注册时间: 2012-07-08
最后登录: 2012-07-10
楼主  发表于: 2012-07-08 14:59

 unrecognized command line option "-mlittle-endian

make[1]: `include/generated/mach-types.h' is up to date.
  CC      kernel/bounds.s
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=apcs-gnu"
kernel/bounds.c:1: error: bad value (armv4t) for -march= switch
kernel/bounds.c:1: error: bad value (arm9tdmi) for -mtune= switch
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
请问是哪里的问题啊?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2012-07-08 18:26
应该用交叉编译器的时候用了PC x86的gcc?
      
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 73380
精华: 0
发帖: 3
金钱: 15 两
威望: 3 点
综合积分: 6 分
注册时间: 2012-07-08
最后登录: 2012-07-10
2楼  发表于: 2012-07-10 19:12
怎样改?
级别: 新手上路
UID: 73380
精华: 0
发帖: 3
金钱: 15 两
威望: 3 点
综合积分: 6 分
注册时间: 2012-07-08
最后登录: 2012-07-10
3楼  发表于: 2012-07-10 19:15
图片:
这个是我用gcc -v 查看的版本