内核编译错误,请看看呢!
锦鲤gg 2010-10-20 08:11:25 环境:
CPU: AMD Athlon(tm) II X2 250 Processor stepping 02
vmare上装了
[root@localhost linux-2.6.35.7]# uname -r
2.4.20-8
打算编译2.6.35.7
步骤:
step1:make menuconfig
step2:make bzImage
出现如下错误:
[root@localhost linux-2.6.35.7]# make bzImage
CHK include/linux/version.h
CHK include/generated/utsrelease.h
CC arch/x86/kernel/asm-offsets.s
In file included from /usr/src/linux-2.6.35.7/arch/x86/include/asm/bitops.h:447,
from include/linux/bitops.h:22,
from include/linux/kernel.h:17,
from /usr/src/linux-2.6.35.7/arch/x86/include/asm/percpu.h:44,
from /usr/src/linux-2.6.35.7/arch/x86/include/asm/current.h:5,
from /usr/src/linux-2.6.35.7/arch/x86/include/asm/processor.h:15,
from /usr/src/linux-2.6.35.7/arch/x86/include/asm/atomic.h:6,
from include/linux/crypto.h:20,
from arch/x86/kernel/asm-offsets_32.c:7,
from arch/x86/kernel/asm-offsets.c:2:
/usr/src/linux-2.6.35.7/arch/x86/include/asm/arch_hweight.h: In function `__arch_hweight32':
/usr/src/linux-2.6.35.7/arch/x86/include/asm/arch_hweight.h:29: parse error before string constant ---------->
In file included from include/linux/kobject.h:21,
from include/linux/module.h:16,
from include/linux/crypto.h:21,
from arch/x86/kernel/asm-offsets_32.c:7,
from arch/x86/kernel/asm-offsets.c:2:
include/linux/sysfs.h: At top level:
include/linux/sysfs.h:183: warning: parameter has incomplete type
/usr/src/linux-2.6.35.7/arch/x86/include/asm/cpufeature.h: In function `__static_cpu_has':
/usr/src/linux-2.6.35.7/arch/x86/include/asm/cpufeature.h:315: warning: asm operand 1 probably doesn't match constraints
make[1]: *** [arch/x86/kernel/asm-offsets.s] Error 1