QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1178|回复: 1

内核编译失败 请教2

[复制链接]
发表于 2004-3-25 00:15:13 | 显示全部楼层 |阅读模式
用gcc3。3编译2.4.0内核,已经做了make mrproper ,make dep ,
make xconfig ,在make bzImage时候出现如下错误:
[root@localhost linux-2.4.0]# make bzImage
gcc -D__KERNEL__ -I/usr/src/linux-2.4.0/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -march=athlon    -c -o init/main.o init/main.c
In file included from /usr/src/linux-2.4.0/include/asm/string.h:292,
                 from /usr/src/linux-2.4.0/include/linux/string.h:21,
                 from /usr/src/linux-2.4.0/include/linux/fs.h:23,
                 from /usr/src/linux-2.4.0/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.0/include/linux/binfmts.h:5,
                 from /usr/src/linux-2.4.0/include/linux/sched.h:9,
                 from /usr/src/linux-2.4.0/include/linux/mm.h:4,
                 from /usr/src/linux-2.4.0/include/linux/slab.h:14,
                 from /usr/src/linux-2.4.0/include/linux/malloc.h:4,
                 from /usr/src/linux-2.4.0/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/usr/src/linux-2.4.0/include/asm/system.h:148:9: missing terminating " character
In file included from /usr/src/linux-2.4.0/include/asm/string.h:292,
                 from /usr/src/linux-2.4.0/include/linux/string.h:21,
                 from /usr/src/linux-2.4.0/include/linux/fs.h:23,
                 from /usr/src/linux-2.4.0/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.0/include/linux/binfmts.h:5,
                 from /usr/src/linux-2.4.0/include/linux/sched.h:9,
                 from /usr/src/linux-2.4.0/include/linux/mm.h:4,
                 from /usr/src/linux-2.4.0/include/linux/slab.h:14,
                 from /usr/src/linux-2.4.0/include/linux/malloc.h:4,
                 from /usr/src/linux-2.4.0/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/usr/src/linux-2.4.0/include/asm/system.h: In function `__set_64bit':
/usr/src/linux-2.4.0/include/asm/system.h:149: error: parse error before "movl"
/usr/src/linux-2.4.0/include/asm/system.h:150: warning: implicit declaration of function `cmpxchg8b'
/usr/src/linux-2.4.0/include/asm/system.h:150: error: parse error before '%' token
/usr/src/linux-2.4.0/include/asm/system.h:151:21: invalid suffix "b" on integer constant
/usr/src/linux-2.4.0/include/asm/system.h:151: error: `jnz' undeclared (first use in this function)
/usr/src/linux-2.4.0/include/asm/system.h:151: error: (Each undeclared identifier is reported only once
/usr/src/linux-2.4.0/include/asm/system.h:151: error: for each function it appears in.)
/usr/src/linux-2.4.0/include/asm/system.h:151:23: missing terminating " character
In file included from /usr/src/linux-2.4.0/include/linux/irq.h:57,
                 from /usr/src/linux-2.4.0/include/asm/hardirq.h:6,
                 from /usr/src/linux-2.4.0/include/linux/interrupt.h:45,
                 from /usr/src/linux-2.4.0/include/asm/string.h:296,
                 from /usr/src/linux-2.4.0/include/linux/string.h:21,
                 from /usr/src/linux-2.4.0/include/linux/fs.h:23,
                 from /usr/src/linux-2.4.0/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.0/include/linux/binfmts.h:5,
                 from /usr/src/linux-2.4.0/include/linux/sched.h:9,
                 from /usr/src/linux-2.4.0/include/linux/mm.h:4,
                 from /usr/src/linux-2.4.0/include/linux/slab.h:14,
                 from /usr/src/linux-2.4.0/include/linux/malloc.h:4,
                 from /usr/src/linux-2.4.0/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/usr/src/linux-2.4.0/include/asm/hw_irq.h: In function `x86_do_profile':
/usr/src/linux-2.4.0/include/asm/hw_irq.h:198: error: `current' undeclared (first use in this function)
In file included from /usr/src/linux-2.4.0/include/asm/string.h:296,
                 from /usr/src/linux-2.4.0/include/linux/string.h:21,
                 from /usr/src/linux-2.4.0/include/linux/fs.h:23,
                 from /usr/src/linux-2.4.0/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.0/include/linux/binfmts.h:5,
                 from /usr/src/linux-2.4.0/include/linux/sched.h:9,
                 from /usr/src/linux-2.4.0/include/linux/mm.h:4,
                 from /usr/src/linux-2.4.0/include/linux/slab.h:14,
                 from /usr/src/linux-2.4.0/include/linux/malloc.h:4,
                 from /usr/src/linux-2.4.0/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/usr/src/linux-2.4.0/include/linux/interrupt.h: In function `raise_softirq':
/usr/src/linux-2.4.0/include/linux/interrupt.h:89: error: `current' undeclared (first use in this function)
/usr/src/linux-2.4.0/include/linux/interrupt.h: In function `tasklet_schedule':
/usr/src/linux-2.4.0/include/linux/interrupt.h:160: error: `current' undeclared (first use in this function)
/usr/src/linux-2.4.0/include/linux/interrupt.h: In function `tasklet_hi_schedule':
/usr/src/linux-2.4.0/include/linux/interrupt.h:174: error: `current' undeclared (first use in this function)
In file included from /usr/src/linux-2.4.0/include/linux/string.h:21,
                 from /usr/src/linux-2.4.0/include/linux/fs.h:23,
                 from /usr/src/linux-2.4.0/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.0/include/linux/binfmts.h:5,
                 from /usr/src/linux-2.4.0/include/linux/sched.h:9,
                 from /usr/src/linux-2.4.0/include/linux/mm.h:4,
                 from /usr/src/linux-2.4.0/include/linux/slab.h:14,
                 from /usr/src/linux-2.4.0/include/linux/malloc.h:4,
                 from /usr/src/linux-2.4.0/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/usr/src/linux-2.4.0/include/asm/string.h: In function `__constant_memcpy3d':
/usr/src/linux-2.4.0/include/asm/string.h:305: error: `current' undeclared (first use in this function)
/usr/src/linux-2.4.0/include/asm/string.h: In function `__memcpy3d':
/usr/src/linux-2.4.0/include/asm/string.h:312: error: `current' undeclared (first use in this function)
In file included from /usr/src/linux-2.4.0/include/linux/string.h:21,
                 from /usr/src/linux-2.4.0/include/linux/fs.h:23,
                 from /usr/src/linux-2.4.0/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.0/include/linux/binfmts.h:5,
                 from /usr/src/linux-2.4.0/include/linux/sched.h:9,
                 from /usr/src/linux-2.4.0/include/linux/mm.h:4,
                 from /usr/src/linux-2.4.0/include/linux/slab.h:14,
                 from /usr/src/linux-2.4.0/include/linux/malloc.h:4,
                 from /usr/src/linux-2.4.0/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/usr/src/linux-2.4.0/include/asm/string.h:552:17: missing terminating " character
/usr/src/linux-2.4.0/include/asm/string.h: In function `memscan':
/usr/src/linux-2.4.0/include/asm/string.h:553: error: parse error before "jnz"
/usr/src/linux-2.4.0/include/asm/string.h:553:21: invalid suffix "f" on integer constant
/usr/src/linux-2.4.0/include/asm/string.h:555:17: missing terminating " character
In file included from /usr/src/linux-2.4.0/include/net/checksum.h:33,
                 from /usr/src/linux-2.4.0/include/linux/raid/md.h:34,
                 from init/main.c:24:
/usr/src/linux-2.4.0/include/asm/checksum.h:72:30: missing terminating " character
In file included from /usr/src/linux-2.4.0/include/net/checksum.h:33,
                 from /usr/src/linux-2.4.0/include/linux/raid/md.h:34,
                 from init/main.c:24:
/usr/src/linux-2.4.0/include/asm/checksum.h: In function `ip_fast_csum':
/usr/src/linux-2.4.0/include/asm/checksum.h:73: error: parse error before "movl"
/usr/src/linux-2.4.0/include/asm/checksum.h:75:17: invalid suffix "f" on integer constant
/usr/src/linux-2.4.0/include/asm/checksum.h:82:17: invalid suffix "b" on integer constant
/usr/src/linux-2.4.0/include/asm/checksum.h:90:13: missing terminating " character
/usr/src/linux-2.4.0/include/asm/checksum.h:105:17: missing terminating " character
/usr/src/linux-2.4.0/include/asm/checksum.h: In function `csum_fold':
/usr/src/linux-2.4.0/include/asm/checksum.h:106: error: parse error before "addl"
/usr/src/linux-2.4.0/include/asm/checksum.h:108:17: missing terminating " character
/usr/src/linux-2.4.0/include/asm/checksum.h:121:13: missing terminating " character
/usr/src/linux-2.4.0/include/asm/checksum.h: In function `csum_tcpudp_nofold':
/usr/src/linux-2.4.0/include/asm/checksum.h:122: error: parse error before "addl"
/usr/src/linux-2.4.0/include/asm/checksum.h:126:9: missing terminating " character
/usr/src/linux-2.4.0/include/asm/checksum.h:128: error: `__x' undeclared (first use in this function)
/usr/src/linux-2.4.0/include/asm/checksum.h: At top level:
/usr/src/linux-2.4.0/include/asm/checksum.h:128: error: parse error before ')' token
/usr/src/linux-2.4.0/include/asm/checksum.h:161:17: missing terminating " character
/usr/src/linux-2.4.0/include/asm/checksum.h: In function `csum_ipv6_magic':
/usr/src/linux-2.4.0/include/asm/checksum.h:162: error: parse error before "addl"
/usr/src/linux-2.4.0/include/asm/checksum.h:173:17: missing terminating " character
/usr/src/linux-2.4.0/include/asm/checksum.h:176: error: `__x' undeclared (first use in this function)
/usr/src/linux-2.4.0/include/asm/checksum.h:176: warning: no return statement in function returning non-void
/usr/src/linux-2.4.0/include/asm/checksum.h: At top level:
/usr/src/linux-2.4.0/include/asm/checksum.h:176: error: parse error before ')' token
/usr/src/linux-2.4.0/include/asm/checksum.h:176: error: parse error before "__u32"
make: *** [init/main.o] Error 1
[root@localhost linux-2.4.0]#
发表于 2004-4-3 14:19:13 | 显示全部楼层
我也有这个问题!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-2 20:29 , Processed in 0.038000 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表