内核编译错误,请看看呢!

锦鲤gg 锦鲤gg 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
环境:
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


...全文
评论 8
收藏 已收藏
分享
返回顶部
锦鲤gg
Linux_Kernel 4,469 成员 17,458 内容