Linux2.6.38核心編譯報錯

來源:互聯網
上載者:User

編譯2.6.38核心報錯:

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


解決辦法為:

這個跟核心的一個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)

參考網址:

http://bbs.chinaunix.net/thread-3602662-1-1.html


聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.