0
我想在我的Ubuntu機器上編譯Linux內核編譯Linux內核時出錯2.6.35
但是我收到以下錯誤。我在Google上搜索過,但一直未能找到與此相關的任何錯誤。
drivers/platform/x86/intel_scu_ipc.c: In function ‘pwr_reg_rdwr’:
drivers/platform/x86/intel_scu_ipc.c:175: error: ‘MRST_CPU_CHIP_PENWELL’ undeclared (first use in this function)
drivers/platform/x86/intel_scu_ipc.c:175: error: (Each undeclared identifier is reported only once
drivers/platform/x86/intel_scu_ipc.c:175: error: for each function it appears in.)
drivers/platform/x86/intel_scu_ipc.c: In function ‘intel_scu_ipc_init’:
drivers/platform/x86/intel_scu_ipc.c:741: error: implicit declaration of function ‘mrst_identify_cpu’
make[3]: *** [drivers/platform/x86/intel_scu_ipc.o] Error 1
make[2]: *** [drivers/platform/x86] Error 2
make[1]: *** [drivers/platform] Error 2
make: *** [drivers] Error 2
你有頭文件包以及內核源代碼嗎? – sje397 2010-08-08 14:40:33
@ sje397:他必須有標題 - 否則會有抱怨,沒有找到他們。問題似乎是其中一個頭文件與該驅動程序中的源文件不匹配。 – 2010-08-08 14:45:40
@Jonathan Leffler:你是對的。 @siri:你確定你有*正確的*頭文件包,並且任何符號鏈接都是正確的?我並不是想暗示它*不能成爲源代碼中的一個錯誤......但是構建內核時會出現很多錯誤。 – sje397 2010-08-08 15:07:40