当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 2 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 编译2.4.18时却在make bzImage一步无法进行下去了!请高手指点,谢谢!
帖子发表于 : 2010-11-07 16:51 

注册: 2010-11-06 23:17
帖子: 3
送出感谢: 0 次
接收感谢: 0 次
linux_bear 写道:
我按照论坛上的方法编译成功了2.6.18的内核,但是编译2.4.18时却在make bzImage一步无法进行下去了,错误信息如下:
xyp@xyp-desktop:/usr/src/linux-2.4.18$ sudo make bzImage
gcc -D__KERNEL__ -I/usr/src/linux-2.4.18/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
In file included from /usr/src/linux-2.4.18/include/linux/prefetch.h:13,
from /usr/src/linux-2.4.18/include/linux/list.h:6,
from /usr/src/linux-2.4.18/include/linux/wait.h:14,
from /usr/src/linux-2.4.18/include/linux/fs.h:12,
from /usr/src/linux-2.4.18/include/linux/capability.h:17,
from /usr/src/linux-2.4.18/include/linux/binfmts.h:5,
from /usr/src/linux-2.4.18/include/linux/sched.h:9,
from /usr/src/linux-2.4.18/include/linux/mm.h:4,
from /usr/src/linux-2.4.18/include/linux/slab.h:14,
from /usr/src/linux-2.4.18/include/linux/proc_fs.h:5,
from init/main.c:15:
/usr/src/linux-2.4.18/include/asm/processor.h:73: error: array type has incomplete element type
In file included from /usr/src/linux-2.4.18/include/linux/fs.h:314,
from /usr/src/linux-2.4.18/include/linux/capability.h:17,
from /usr/src/linux-2.4.18/include/linux/binfmts.h:5,
from /usr/src/linux-2.4.18/include/linux/sched.h:9,
from /usr/src/linux-2.4.18/include/linux/mm.h:4,
from /usr/src/linux-2.4.18/include/linux/slab.h:14,
from /usr/src/linux-2.4.18/include/linux/proc_fs.h:5,
from init/main.c:15:
/usr/src/linux-2.4.18/include/linux/ncp_fs_i.h:26: warning: ‘packed’ attribute ignored for field of type ‘__u8’
/usr/src/linux-2.4.18/include/linux/ncp_fs_i.h:27: warning: ‘packed’ attribute ignored for field of type ‘__u8[6]’
In file included from /usr/src/linux-2.4.18/include/linux/ncp_mount.h:12,
from /usr/src/linux-2.4.18/include/linux/ncp_fs_sb.h:12,
from /usr/src/linux-2.4.18/include/linux/fs.h:690,
from /usr/src/linux-2.4.18/include/linux/capability.h:17,
from /usr/src/linux-2.4.18/include/linux/binfmts.h:5,
from /usr/src/linux-2.4.18/include/linux/sched.h:9,
from /usr/src/linux-2.4.18/include/linux/mm.h:4,
from /usr/src/linux-2.4.18/include/linux/slab.h:14,
from /usr/src/linux-2.4.18/include/linux/proc_fs.h:5,
from init/main.c:15:
/usr/src/linux-2.4.18/include/linux/ncp.h:24: warning: ‘packed’ attribute ignored for field of type ‘__u8’
/usr/src/linux-2.4.18/include/linux/ncp.h:25: warning: ‘packed’ attribute ignored for field of type ‘__u8’
/usr/src/linux-2.4.18/include/linux/ncp.h:26: warning: ‘packed’ attribute ignored for field of type ‘__u8’
/usr/src/linux-2.4.18/include/linux/ncp.h:27: warning: ‘packed’ attribute ignored for field of type ‘__u8’
/usr/src/linux-2.4.18/include/linux/ncp.h:28: warning: ‘packed’ attribute ignored for field of type ‘__u8’
/usr/src/linux-2.4.18/include/linux/ncp.h:29: warning: ‘packed’ attribute ignored for field of type ‘__u8[]’
/usr/src/linux-2.4.18/include/linux/ncp.h:37: warning: ‘packed’ attribute ignored for field of type ‘__u8’
/usr/src/linux-2.4.18/include/linux/ncp.h:38: warning: ‘packed’ attribute ignored for field of type ‘__u8’
/usr/src/linux-2.4.18/include/linux/ncp.h:39: warning: ‘packed’ attribute ignored for field of type ‘__u8’
/usr/src/linux-2.4.18/include/linux/ncp.h:40: warning: ‘packed’ attribute ignored for field of type ‘__u8’
/usr/src/linux-2.4.18/include/linux/ncp.h:41: warning: ‘packed’ attribute ignored for field of type ‘__u8’
/usr/src/linux-2.4.18/include/linux/ncp.h:42: warning: ‘packed’ attribute ignored for field of type ‘__u8’
/usr/src/linux-2.4.18/include/linux/ncp.h:43: warning: ‘packed’ attribute ignored for field of type ‘__u8[]’
/usr/src/linux-2.4.18/include/linux/ncp.h:137: warning: ‘packed’ attribute ignored for field of type ‘__u8’
/usr/src/linux-2.4.18/include/linux/ncp.h:138: warning: ‘packed’ attribute ignored for field of type ‘__u8[256]’
/usr/src/linux-2.4.18/include/linux/ncp.h:174: warning: ‘packed’ attribute ignored for field of type ‘__u8’
In file included from /usr/src/linux-2.4.18/include/asm/smp.h:17,
from /usr/src/linux-2.4.18/include/linux/smp.h:14,
from /usr/src/linux-2.4.18/include/linux/sched.h:23,
from /usr/src/linux-2.4.18/include/linux/mm.h:4,
from /usr/src/linux-2.4.18/include/linux/slab.h:14,
from /usr/src/linux-2.4.18/include/linux/proc_fs.h:5,
from init/main.c:15:
/usr/src/linux-2.4.18/include/asm/mpspec.h:86: warning: ‘packed’ attribute ignored for field of type ‘unsigned char[6]’
In file included from /usr/src/linux-2.4.18/include/linux/sched.h:23,
from /usr/src/linux-2.4.18/include/linux/mm.h:4,
from /usr/src/linux-2.4.18/include/linux/slab.h:14,
from /usr/src/linux-2.4.18/include/linux/proc_fs.h:5,
from init/main.c:15:
/usr/src/linux-2.4.18/include/linux/smp.h:29: error: conflicting types for ‘smp_send_reschedule’
/usr/src/linux-2.4.18/include/asm/smp.h:65: note: previous declaration of ‘smp_send_reschedule’ was here
In file included from /usr/src/linux-2.4.18/include/linux/unistd.h:9,
from init/main.c:17:
/usr/src/linux-2.4.18/include/asm/unistd.h:360: warning: conflicting types for built-in function ‘_exit’
init/main.c: In function ‘start_kernel’:
init/main.c:555: warning: format not a string literal and no format arguments
make: *** [init/main.o] 错误 1

是为什么呢?
恳请高手多多指教~~~


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 编译2.4.18时却在make bzImage一步无法进行下去了!请高手指点,谢谢!
帖子发表于 : 2011-05-17 9:34 

注册: 2011-04-20 6:44
帖子: 1
送出感谢: 0 次
接收感谢: 0 次
弱弱的文一句。。LZ 问题解决了吗?


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 2 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:Baidu [Spider] 和 2 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译