SRCDS Steam group


Kernel compile Error
#1
Hi all!

well, i was following the Fragaholics Kernel Optimization Guide, and when i get this error:

Quote:[root@xxx linux-2.6.26.8]# make bzImage; make modules
make[2]: Warning: File `/usr/include/sys/types.h' has modification time 7e+06 s in the future
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
make[2]: warning: Clock skew detected. Your build may be incomplete.
make[2]: Warning: File `/usr/include/locale.h' has modification time 7e+06 s in the future
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/kxgettext.o
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf -s arch/x86/Kconfig
make[2]: warning: Clock skew detected. Your build may be incomplete.
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/linux/utsrelease.h
UPD include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-x86
make[1]: Warning: File `/usr/include/sys/types.h' has modification time 7e+06 s in the future
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
make[1]: warning: Clock skew detected. Your build may be incomplete.
CC kernel/bounds.s
GEN include/linux/bounds.h
CC arch/x86/kernel/asm-offsets.s
In file included from include/linux/notifier.h:14,
from include/linux/memory_hotplug.h:6,
from include/linux/mmzone.h:560,
from include/linux/gfp.h:4,
from include/linux/slab.h:12,
from include/linux/percpu.h:5,
from include/linux/rcupdate.h:39,
from include/linux/tracepoint.h:18,
from include/linux/module.h:19,
from include/linux/crypto.h:21,
from arch/x86/kernel/asm-offsets_32.c:7,
from arch/x86/kernel/asm-offsets.c:2:
include/linux/rwsem.h:150: error: redefinition of ârwsem_is_lockedâ
include/asm/rwsem.h:261: error: previous definition of ârwsem_is_lockedâ was here
include/linux/rwsem.h: In function ârwsem_is_lockedâ:
include/linux/rwsem.h:151: error: implicit declaration of function âcompat_rwsem_is_lockedâ
make[1]: *** [arch/x86/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
CHK include/linux/version.h
CHK include/linux/utsrelease.h
make[1]: Warning: File `/usr/include/sys/types.h' has modification time 7e+06 s in the future
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
make[1]: warning: Clock skew detected. Your build may be incomplete.
CC arch/x86/kernel/asm-offsets.s
In file included from include/linux/notifier.h:14,
from include/linux/memory_hotplug.h:6,
from include/linux/mmzone.h:560,
from include/linux/gfp.h:4,
from include/linux/slab.h:12,
from include/linux/percpu.h:5,
from include/linux/rcupdate.h:39,
from include/linux/tracepoint.h:18,
from include/linux/module.h:19,
from include/linux/crypto.h:21,
from arch/x86/kernel/asm-offsets_32.c:7,
from arch/x86/kernel/asm-offsets.c:2:
include/linux/rwsem.h:150: error: redefinition of ârwsem_is_lockedâ
include/asm/rwsem.h:261: error: previous definition of ârwsem_is_lockedâ was here
include/linux/rwsem.h: In function ârwsem_is_lockedâ:
include/linux/rwsem.h:151: error: implicit declaration of function âcompat_rwsem_is_lockedâ
make[1]: *** [arch/x86/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2


Any help??

im using stock Centos 5.5 32bit
Reply
#2
you have some problems with your system clock:
Quote:make[2]: warning: Clock skew detected. Your build may be incomplete.
make[2]: Warning: File `/usr/include/locale.h' has modification time 7e+06 s in the future

fix that (i.e. make sure your system clock is correct and especially does not "jump"), then start all over again with extracting and patching the kernel source. you might want to save the kernel config (i.e. the file .config in the kernel source directory) and put it into the new kernel configuration directory. then the configuration should already be correct, but check a few options.
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#3
Hi again.

Done everything you said. I changed my system date (it was wrong), make clean all, re-downloaded everything, etc etc etc.

and im having this problem now:


Quote:[root@xxx linux-2.6.26.8]# make bzImage; make modules
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf -s arch/x86/Kconfig
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/linux/utsrelease.h
UPD include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-x86
CC kernel/bounds.s
GEN include/linux/bounds.h
CC arch/x86/kernel/asm-offsets.s
In file included from include/linux/notifier.h:14,
from include/linux/memory_hotplug.h:6,
from include/linux/mmzone.h:560,
from include/linux/gfp.h:4,
from include/linux/slab.h:12,
from include/linux/percpu.h:5,
from include/linux/rcupdate.h:39,
from include/linux/tracepoint.h:18,
from include/linux/module.h:19,
from include/linux/crypto.h:21,
from arch/x86/kernel/asm-offsets_32.c:7,
from arch/x86/kernel/asm-offsets.c:2:
include/linux/rwsem.h:150: error: redefinition of ârwsem_is_lockedâ
include/asm/rwsem.h:261: error: previous definition of ârwsem_is_lockedâ was here
include/linux/rwsem.h: In function ârwsem_is_lockedâ:
include/linux/rwsem.h:151: error: implicit declaration of function âcompat_rwsem_is_lockedâ
make[1]: *** [arch/x86/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
CHK include/linux/version.h
CHK include/linux/utsrelease.h
CC arch/x86/kernel/asm-offsets.s
In file included from include/linux/notifier.h:14,
from include/linux/memory_hotplug.h:6,
from include/linux/mmzone.h:560,
from include/linux/gfp.h:4,
from include/linux/slab.h:12,
from include/linux/percpu.h:5,
from include/linux/rcupdate.h:39,
from include/linux/tracepoint.h:18,
from include/linux/module.h:19,
from include/linux/crypto.h:21,
from arch/x86/kernel/asm-offsets_32.c:7,
from arch/x86/kernel/asm-offsets.c:2:
include/linux/rwsem.h:150: error: redefinition of ârwsem_is_lockedâ
include/asm/rwsem.h:261: error: previous definition of ârwsem_is_lockedâ was here
include/linux/rwsem.h: In function ârwsem_is_lockedâ:
include/linux/rwsem.h:151: error: implicit declaration of function âcompat_rwsem_is_lockedâ
make[1]: *** [arch/x86/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2

Extra information:
im using trying to compile linux-2.6.26.8
Also, i tryed with 2.6.33.6 and i could make it compile, BUT, when i restarted server with new kernel, it give me a Kernel panic, so i had to go back to the default kernel.
Reply
#4
you have either mixed versions (make sure your patch and your kernel sources have exactly the same version) or you have found a bug in some rarely used driver or so. try disabling everything that has (EXPERIMENTAL) in its name.
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#5
i have downloaded kernel + patch directly from your HOWTO tutorial links, so i dont thing that is the problem.

I will try by disabling everything that is optional.

btw, an offtopic question:
I have read in he "100hz better results" topic that its better to have Preemption set to disabled... Do you recommend that?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)