主题 : 内核编译问题 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 9415
精华: 0
发帖: 11
金钱: 95 两
威望: 43 点
综合积分: 22 分
注册时间: 2009-09-28
最后登录: 2010-07-26
楼主  发表于: 2009-10-12 11:24

 内核编译问题

各位大虾:

    小弟在编译内核时报如下错误:

CHK     include/linux/version.h
make[1]: “include/asm-arm/mach-types.h”是最新的。
  CHK     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-arm
  CC      kernel/bounds.s
In file included from include/linux/compiler.h:40,
                 from include/linux/stddef.h:4,
                 from include/linux/posix_types.h:4,
                 from include/linux/types.h:11,
                 from include/linux/page-flags.h:8,
                 from kernel/bounds.c:9:
include/linux/compiler-gcc.h:86: linux/compiler-gcc2.h: ?????????
make[1]: *** [kernel/bounds.s] 错误 1
make: *** [prepare0] 错误 2
[root@Arm linux-2.6.29]#

请帮忙看下,谢谢!
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2009-10-12 11:48
不要用gcc 2.x编译2.6.29的内核。
"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: 9415
精华: 0
发帖: 11
金钱: 95 两
威望: 43 点
综合积分: 22 分
注册时间: 2009-09-28
最后登录: 2010-07-26
2楼  发表于: 2009-10-12 12:19
那用什么版本的啊?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2009-10-12 13:54

 回 2楼(wbk_love_xt) 的帖子

看你的开发板手册
"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: 9415
精华: 0
发帖: 11
金钱: 95 两
威望: 43 点
综合积分: 22 分
注册时间: 2009-09-28
最后登录: 2010-07-26
4楼  发表于: 2009-10-13 16:48
我的gcc是4.1.2的,不知道为什么,我更新了系统就好了