内核编译问题?

发布于 2022-10-15 08:03:01 字数 3217 浏览 20 评论 0

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

花伊自在美 2022-10-22 08:03:01

如何kernel没有修改过的话,换个版本的gcc试试

黯然 2022-10-22 08:03:01

楼上认为是GCC的问题?》

虚拟世界 2022-10-22 08:03:01

已经换了3.4.2,3.4.1,3.3的版本也试过。。。因为我用的是ARM交叉编译器

很快妥协 2022-10-22 08:03:01

回复 4# philein

    你去看看列出來的那些函數是不是真的被定義了(我的意思是說去看看相關的宏有沒有打開),可能就是配置的時候少定義了一個宏吧。

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文