内核编译问题?
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: “include/generated/mach-types.h”是最新的。
CC arch/arm/kernel/asm-offsets.s
In file included from include/asm-generic/bitops/hweight.h:4:0,
from /home/gxd/kernel-8.2.2.6.1_8.2.2.7/kernel-b01c1c6/arch/arm/include/asm/bitops.h:303,
from include/linux/bitops.h:17,
from include/linux/kernel.h:15,
from include/linux/sched.h:54,
from arch/arm/kernel/asm-offsets.c:13:
include/asm-generic/bitops/arch_hweight.h: In function '__arch_hweight32':
include/asm-generic/bitops/arch_hweight.h:8:2: error: implicit declaration of function '__sw_hweight32'
include/asm-generic/bitops/arch_hweight.h: In function '__arch_hweight16':
include/asm-generic/bitops/arch_hweight.h:13:2: error: implicit declaration of function '__sw_hweight16'
include/asm-generic/bitops/arch_hweight.h: In function '__arch_hweight8':
include/asm-generic/bitops/arch_hweight.h:18:2: error: implicit declaration of function '__sw_hweight8'
include/asm-generic/bitops/arch_hweight.h: In function '__arch_hweight64':
include/asm-generic/bitops/arch_hweight.h:23:2: error: implicit declaration of function '__sw_hweight64'
In file included from include/linux/mm.h:588:0,
from arch/arm/kernel/asm-offsets.c:14:
include/linux/vmstat.h: In function '__count_vm_event':
include/linux/vmstat.h:79:2: error: implicit declaration of function '__verify_pcpu_ptr'
include/linux/vmstat.h:79:2: error: 'vm_event_states' undeclared (first use in this function)
include/linux/vmstat.h:79:2: note: each undeclared identifier is reported only once for each function it appears in
include/linux/vmstat.h:79:2: warning: type defaults to 'int' in type name
include/linux/vmstat.h: In function 'count_vm_event':
include/linux/vmstat.h:84:2: error: 'vm_event_states' undeclared (first use in this function)
include/linux/vmstat.h:84:2: warning: type defaults to 'int' in type name
include/linux/vmstat.h: In function '__count_vm_events':
include/linux/vmstat.h:90:2: error: 'vm_event_states' undeclared (first use in this function)
include/linux/vmstat.h:90:2: warning: type defaults to 'int' in type name
include/linux/vmstat.h: In function 'count_vm_events':
include/linux/vmstat.h:95:2: error: 'vm_event_states' undeclared (first use in this function)
include/linux/vmstat.h:95:2: warning: type defaults to 'int' in type name
make[1]: *** [arch/arm/kernel/asm-offsets.s] 错误 1
make: *** [prepare0] 错误 2
有人知道是什么问题不。。。弄了半天了
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
如何kernel没有修改过的话,换个版本的gcc试试
楼上认为是GCC的问题?》
已经换了3.4.2,3.4.1,3.3的版本也试过。。。因为我用的是ARM交叉编译器
回复 4# philein
你去看看列出來的那些函數是不是真的被定義了(我的意思是說去看看相關的宏有沒有打開),可能就是配置的時候少定義了一個宏吧。