免费注册 查看新帖 |

Chinaunix

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

Ubuntu 11.04下编译内核出现奇怪问题,那位高手能告诉我? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-09-29 22:13 |只看该作者 |倒序浏览
今天在编译内核的时候发现了这个情况:

arch/x86/kernel/entry_32.S: Assembler messages:
arch/x86/kernel/entry_32.S:1422: Error: .size expression for apf_page_fault does not evaluate to a constant
make[2]: *** [arch/x86/kernel/entry_32.o] 错误 1
make[1]: *** [arch/x86/kernel] 错误 2
make: *** [arch/x86] 错误 2

下面的就不能编译了,也不知道是出了什么情况,有谁能够告诉我啊?

论坛徽章:
0
2 [报告]
发表于 2011-12-01 12:08 |只看该作者
这个跟内核的一个bug有关。已经有人提交了patch了。
自己也可以改一下 arch/x86/kernel/entry_32.S 中的两处地方再编译,具体请参考链接:
https://lkml.org/lkml/2011/3/20/49

This fixes the problem. The file does not have a maintainer listed, so
I don't know where else to send it than to the LKML. Please correct
me or redirect as needed.

- --- entry_32.S.original        2011-03-18 08:21:51.000000000 -0400
+++ entry_32.S        2011-03-20 10:37:00.000000000 -0400
@@ -343,7 +343,7 @@
                                        # int/exception return?
        jne work_pending
        jmp restore_all
- -END(ret_from_exception)
+END(resume_userspace)

#ifdef CONFIG_PREEMPT
ENTRY(resume_kernel)
@@ -1413,7 +1413,7 @@
        CFI_ADJUST_CFA_OFFSET 4
        jmp error_code
        CFI_ENDPROC
- -END(apf_page_fault)
+END(async_page_fault)
#endif
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP