免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2349 | 回复: 4
打印 上一主题 下一主题

内核编译问题? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-05-03 13:11 |只看该作者 |倒序浏览
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


有人知道是什么问题不。。。弄了半天了

论坛徽章:
22
丑牛
日期:2014-08-15 14:32:0015-16赛季CBA联赛之同曦
日期:2017-12-14 15:28:14黑曼巴
日期:2017-08-10 08:14:342017金鸡报晓
日期:2017-02-08 10:39:42黑曼巴
日期:2016-11-15 15:48:38CU十四周年纪念徽章
日期:2016-11-09 13:19:1015-16赛季CBA联赛之同曦
日期:2016-04-08 18:00:03平安夜徽章
日期:2015-12-26 00:06:30程序设计版块每日发帖之星
日期:2015-12-03 06:20:002015七夕节徽章
日期:2015-08-21 11:06:17IT运维版块每日发帖之星
日期:2015-08-09 06:20:002015亚冠之吉达阿赫利
日期:2015-07-03 08:39:42
2 [报告]
发表于 2011-05-03 13:24 |只看该作者
如何kernel没有修改过的话,换个版本的gcc试试

论坛徽章:
0
3 [报告]
发表于 2011-05-04 13:32 |只看该作者
楼上认为是GCC的问题?》

论坛徽章:
0
4 [报告]
发表于 2011-05-04 23:16 |只看该作者
已经换了3.4.2,3.4.1,3.3的版本也试过。。。因为我用的是ARM交叉编译器

论坛徽章:
22
丑牛
日期:2014-08-15 14:32:0015-16赛季CBA联赛之同曦
日期:2017-12-14 15:28:14黑曼巴
日期:2017-08-10 08:14:342017金鸡报晓
日期:2017-02-08 10:39:42黑曼巴
日期:2016-11-15 15:48:38CU十四周年纪念徽章
日期:2016-11-09 13:19:1015-16赛季CBA联赛之同曦
日期:2016-04-08 18:00:03平安夜徽章
日期:2015-12-26 00:06:30程序设计版块每日发帖之星
日期:2015-12-03 06:20:002015七夕节徽章
日期:2015-08-21 11:06:17IT运维版块每日发帖之星
日期:2015-08-09 06:20:002015亚冠之吉达阿赫利
日期:2015-07-03 08:39:42
5 [报告]
发表于 2011-05-05 07:57 |只看该作者
回复 4# philein


    你去看看列出來的那些函數是不是真的被定義了(我的意思是說去看看相關的宏有沒有打開),可能就是配置的時候少定義了一個宏吧。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP