编译Linux内核2.6.35时出错

时间:2010-08-08 14:33:19

标签: linux-kernel compilation

我正在尝试在我的Ubuntu机器上编译Linux内核

但是我收到以下错误。我在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

1 个答案:

答案 0 :(得分:0)

您很可能正在构建具有错误配置的内核。它偶尔会发生;有数百种配置选项,无法全部检查。

您要做的第一件事是确认您至少可以构建某些配置。所以,只需构建一个默认配置。这主要是为了排除操作员错误:

make distclean
make defconfig
make

如果失败,您的设置/环境可能会出现问题。尝试使用较旧的内核,并在此处报告。如果您能够构建默认配置,则应将失败的配置报告给Linux内核邮件列表

从那里,他们将能够帮助您,告诉您等待,或者将您引导至故障驱动程序的子系统维护人员。