When patching kernel source goes wrong.

I downloaded Kerenl 3.4.0 source yesterday to test hexa core system’s performance. I applied two patches one from kernel.org, the other one is from liquorix.net.

As I started building a kernel, less than a minute I got build failure complaining error. That was the beginning of frustration. After two hours non-stop failures of kernel build, I decided to just build a kernel from source without patches. And then suddenly the mysterious error was gone.


CHK include/generated/utsrelease.h
CC arch/x86/kernel/asm-offsets.s
In file included from arch/x86/kernel/asm-offsets.c:9:0:
include/linux/sched.h:2040:20: error: static declaration of
‘calc_load_enter_idle’ follows non-static declaration
include/linux/sched.h:2029:6: note: previous declaration of
‘calc_load_enter_idle’ was here
include/linux/sched.h:2041:20: error: static declaration of
‘calc_load_exit_idle’ follows non-static declaration
include/linux/sched.h:2030:6: note: previous declaration of
‘calc_load_exit_idle’ was here
make[3]: *** [arch/x86/kernel/asm-offsets.s] Error 1
make[2]: *** [prepare0] Error 2
make[2]: Leaving directory `/usr/src/linux-3.4.10'
make[1]: *** [debian/stamp/conf/kernel-conf] Error 2
make[1]: Leaving directory `/usr/src/linux-3.4.10'
make: *** [debian/stamp/conf/minimal_debian] Error 2

About janpenguin

Email: janpenguin [at] riseup [dot] net Every content on the blog is made by Free and Open Source Software in GNU/Linux.
This entry was posted in GNU/Linux and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s