views:

127

answers:

1

I am trying to compile the Linux kernel on my Ubuntu machine

But I am getting the following error. I've searched on Google but have not been able to find any error related to this.

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
A: 

It is highly likely that you are building the kernel with a configuration that has a mistake. It happens occasionally; there are hundreds of configuration options, and they can't all be checked.

The first thing you want to do is confirm that you are able to build at least some configuration. So, just build a default configuration. This is primarily to rule out operator error:

make distclean
make defconfig
make

If that fails there may be problems with your setup / environment. Try an older kernel, and report back here. If you are able to build the default configuration then you should report the failed configuration to the Linux Kernel Mailing List

From there they will be able to help you, tell you to wait, or direct you to a subsystem maintainer for the failed driver.

Noah Watkins