内核编译错误,请看看呢!
环境:
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
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
...全文
相关推荐
内核调试技巧
作内核要调试吧。那就看下这个文档,里面说了一些调试内核时遇到的问题。分是高了点,呵呵
编译Linux内核的错误汇总
此文档是编译Linux内核的错误汇总,自己搜集了一些在编译Linux内核的时候出现的常见错误,希望对大家有用
老驱动模块在高版本内核编译下错误解决
文章整理了老驱动模块在高版本内核编译下的两个错误并给出解决办法。
linux下编译linux内核_内核_linux内核_怎样编译内核_
很通俗的解释怎样编译内核,包括有可能出现的各种问题
Linux内核源码包的安装及编译
Linux内核源码包的安装及编译,内核源码包下载地址: http://www.kernel.org/ 注意:必须与当前使用内核版本完全相同。


