红联Linux门户
Linux帮助

linux编译内核出错!

发布时间:2008-06-17 15:29:38来源:红联作者:sqfasd
make mrproper,make menuconfig,make dep,然后make bzImage时出错,错误信息如下,请大家帮下忙,谢谢!

gcc -D__KERNEL__ -I/usr/src/linux-2.4.20/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i386 -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
In file included from /usr/src/linux-2.4.20/include/linux/kernel.h:15,
from /usr/src/linux-2.4.20/include/linux/wait.h:13,
from /usr/src/linux-2.4.20/include/linux/fs.h:12,
from /usr/src/linux-2.4.20/include/linux/capability.h:17,
from /usr/src/linux-2.4.20/include/linux/binfmts.h:5,
from /usr/src/linux-2.4.20/include/linux/sched.h:9,
from /usr/src/linux-2.4.20/include/linux/mm.h:4,
from /usr/src/linux-2.4.20/include/linux/slab.h:14,
from /usr/src/linux-2.4.20/include/linux/proc_fs.h:5,
from init/main.c:15:
/usr/src/linux-2.4.20/include/asm/byteorder.h:14: 警告: 忽略函数返回类型的类型限定
/usr/src/linux-2.4.20/include/asm/byteorder.h:28: 警告: 忽略函数返回类型的类型限定
In file included from /usr/src/linux-2.4.20/include/linux/byteorder/little_endian.h:11,
from /usr/src/linux-2.4.20/include/asm/byteorder.h:45,
from /usr/src/linux-2.4.20/include/linux/kernel.h:15,
from /usr/src/linux-2.4.20/include/linux/wait.h:13,
from /usr/src/linux-2.4.20/include/linux/fs.h:12,
from /usr/src/linux-2.4.20/include/linux/capability.h:17,
from /usr/src/linux-2.4.20/include/linux/binfmts.h:5,
from /usr/src/linux-2.4.20/include/linux/sched.h:9,
from /usr/src/linux-2.4.20/include/linux/mm.h:4,
from /usr/src/linux-2.4.20/include/linux/slab.h:14,
from /usr/src/linux-2.4.20/include/linux/proc_fs.h:5,
from init/main.c:15:
/usr/src/linux-2.4.20/include/linux/byteorder/swab.h:160: 警告: 忽略函数返回类型的类型限定
/usr/src/linux-2.4.20/include/linux/byteorder/swab.h:173: 警告: 忽略函数返回类型的类型限定
/usr/src/linux-2.4.20/include/linux/byteorder/swab.h:186: 警告: 忽略函数返回类型的类型限定
/usr/src/linux-2.4.20/include/linux/byteorder/swab.h:200: 警告: 忽略函数返回类型的类型限定
In file included from /usr/src/linux-2.4.20/include/linux/prefetch.h:13,
from /usr/src/linux-2.4.20/include/linux/list.h:6,
from /usr/src/linux-2.4.20/include/linux/wait.h:14,
from /usr/src/linux-2.4.20/include/linux/fs.h:12,
from /usr/src/linux-2.4.20/include/linux/capability.h:17,
from /usr/src/linux-2.4.20/include/linux/binfmts.h:5,
from /usr/src/linux-2.4.20/include/linux/sched.h:9,
from /usr/src/linux-2.4.20/include/linux/mm.h:4,
from /usr/src/linux-2.4.20/include/linux/slab.h:14,
from /usr/src/linux-2.4.20/include/linux/proc_fs.h:5,
from init/main.c:15:
/usr/src/linux-2.4.20/include/asm/processor.h:74: 错误: 数组元素的类型不完全
In file included from /usr/src/linux-2.4.20/include/linux/fs.h:318,
from /usr/src/linux-2.4.20/include/linux/capability.h:17,
from /usr/src/linux-2.4.20/include/linux/binfmts.h:5,
from /usr/src/linux-2.4.20/include/linux/sched.h:9,
from /usr/src/linux-2.4.20/include/linux/mm.h:4,
from /usr/src/linux-2.4.20/include/linux/slab.h:14,
from /usr/src/linux-2.4.20/include/linux/proc_fs.h:5,
from init/main.c:15:
/usr/src/linux-2.4.20/include/linux/ncp_fs_i.h:26: 警告: ‘packed’属性为类型为‘__u8’的字段所忽略
/usr/src/linux-2.4.20/include/linux/ncp_fs_i.h:27: 警告: ‘packed’属性为类型为‘__u8[6]’的字段所忽略
In file included from /usr/src/linux-2.4.20/include/linux/ncp_mount.h:12,
from /usr/src/linux-2.4.20/include/linux/ncp_fs_sb.h:12,
from /usr/src/linux-2.4.20/include/linux/fs.h:703,
from /usr/src/linux-2.4.20/include/linux/capability.h:17,
from /usr/src/linux-2.4.20/include/linux/binfmts.h:5,
from /usr/src/linux-2.4.20/include/linux/sched.h:9,
from /usr/src/linux-2.4.20/include/linux/mm.h:4,
from /usr/src/linux-2.4.20/include/linux/slab.h:14,
from /usr/src/linux-2.4.20/include/linux/proc_fs.h:5,
from init/main.c:15:
/usr/src/linux-2.4.20/include/linux/ncp.h:24: 警告: ‘packed’属性为类型为‘__u8’的字段所忽略
/usr/src/linux-2.4.20/include/linux/ncp.h:25: 警告: ‘packed’属性为类型为‘__u8’的字段所忽略
/usr/src/linux-2.4.20/include/linux/ncp.h:26: 警告: ‘packed’属性为类型为‘__u8’的字段所忽略
/usr/src/linux-2.4.20/include/linux/ncp.h:27: 警告: ‘packed’属性为类型为‘__u8’的字段所忽略
/usr/src/linux-2.4.20/include/linux/ncp.h:28: 警告: ‘packed’属性为类型为‘__u8’的字段所忽略
/usr/src/linux-2.4.20/include/linux/ncp.h:29: 警告: ‘packed’属性为类型为‘__u8[]’的字段所忽略
/usr/src/linux-2.4.20/include/linux/ncp.h:37: 警告: ‘packed’属性为类型为‘__u8’的字段所忽略
/usr/src/linux-2.4.20/include/linux/ncp.h:38: 警告: ‘packed’属性为类型为‘__u8’的字段所忽略
/usr/src/linux-2.4.20/include/linux/ncp.h:39: 警告: ‘packed’属性为类型为‘__u8’的字段所忽略
/usr/src/linux-2.4.20/include/linux/ncp.h:40: 警告: ‘packed’属性为类型为‘__u8’的字段所忽略
/usr/src/linux-2.4.20/include/linux/ncp.h:41: 警告: ‘packed’属性为类型为‘__u8’的字段所忽略
/usr/src/linux-2.4.20/include/linux/ncp.h:42: 警告: ‘packed’属性为类型为‘__u8’的字段所忽略
/usr/src/linux-2.4.20/include/linux/ncp.h:43: 警告: ‘packed’属性为类型为‘__u8[]’的字段所忽略
/usr/src/linux-2.4.20/include/linux/ncp.h:137: 警告: ‘packed’属性为类型为‘__u8’的字段所忽略
/usr/src/linux-2.4.20/include/linux/ncp.h:138: 警告: ‘packed’属性为类型为‘__u8[256]’的字段所忽略
/usr/src/linux-2.4.20/include/linux/ncp.h:174: 警告: ‘packed’属性为类型为‘__u8’的字段所忽略
In file included from /usr/src/linux-2.4.20/include/linux/unistd.h:9,
from init/main.c:17:
/usr/src/linux-2.4.20/include/asm/unistd.h:375: 警告: 与内建函数‘_exit’类型冲突
make: *** [init/main.o] 错误 1
文章评论

共有 1 条评论

  1. windwiny 于 2008-06-17 19:38:25发表:

    什么版本的系统。。2.4 的内核太老了吧


    要用相同时代的gcc