LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   compile kernel problem (https://www.linuxquestions.org/questions/linux-newbie-8/compile-kernel-problem-593284/)

ufmale 10-20-2007 12:22 PM

compile kernel problem
 
I download the limux-2.6.23.1 from the kernel.org and try to compile it on my fedora 7, which has kernel "2.6.22.4-65.fc7".

I follow the step, which i am not sure i did it correctly.

First i call
1. make config
- then select all default value by just hit enter all the
way through the prompts.
2. make clean
- make[3]: warning: Clock skew detected. Your build may be incomplete.
make[2]: warning: Clock skew detected. Your build may be incomplete.
make[2]: Warning: File `/home/charoe/linux-2.6.23.1/sound/sparc/Makefile' has modification time 2.4e+06 s in the future
make[2]: warning: Clock skew detected. Your build may be incomplete.
make[2]: Warning: File `/home/charoe/linux-2.6.23.1/sound/synth/Makefile' has modification time 2.4e+06 s in the future
make[3]: Warning: File `/home/charoe/linux-2.6.23.1/sound/synth/emux/Makefile' has modification time 2.4e+06 s in the future
make[3]: warning: Clock skew detected. Your build may be incomplete.
make[2]: warning: Clock skew detected. Your build may be incomplete.
make[2]: Warning: File `/home/charoe/linux-2.6.23.1/sound/usb/Makefile' has modification time 2.4e+06 s in the future
make[3]: Warning: File `/home/charoe/linux-2.6.23.1/sound/usb/caiaq/Makefile' has modification time 2.4e+06 s in the future
make[3]: warning: Clock skew detected. Your build may be incomplete.
make[3]: Warning: File `/home/charoe/linux-2.6.23.1/sound/usb/usx2y/Makefile' h


3. make dep

make: Warning: File `/home/charoe/linux-2.6.23.1/arch/i386/Makefile.cpu' has modification time 2.4e+06 s in the future
make[1]: Warning: File `/home/charoe/linux-2.6.23.1/arch/i386/Makefile.cpu' has modification time 2.4e+06 s in the future
make[2]: Warning: File `scripts/Makefile.host' has modification time 2.4e+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 `scripts/Makefile.host' has modification time 2.4e+06 s in the future
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/kxgettext.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf -s arch/i386/Kconfig
make[2]: warning: Clock skew detected. Your build may be incomplete.
make[1]: warning: Clock skew detected. Your build may be incomplete.
make: Warning: File `/home/charoe/linux-2.6.23.1/arch/i386/Makefile.cpu' has modification time 2.4e+06 s in the future



The second step finish successfully, but the 3nd step never ends. It continue looping and show the same message as shown above. I am not sure what I did wrong, can anyone help?

Brian1 10-20-2007 12:30 PM

Your doing old 2.4 kernel comands.
After running make config or make xconfig or make gconfig or make menuconfig you use the ' make ' command.
You can use the config file in /boot as a reference start if using say ' make xconfig ' configuration tool.

So I do this.
make xconfig
make (this builds the kernel and modules)
make modules_install (installs the modules in /lib/modules/`uname -r`
make install (install kernel image to /boot, initrd, and install to grub boot loader)

Brian

The_JinJ 10-20-2007 12:31 PM

Think this is related to some file timestamps being in the future
Do make clean before make

oh and check your system time is correct ;)

EDIT
Brian1 seems to have a better answer :) :D

Brian1 10-20-2007 12:40 PM

Missed that one erro. Looks like the time is off on the machine. When building it looks at the time on the machine and if date is from the past then it sees compiling future code on a date that is not go and past causes an error like that.

Brian

ufmale 10-20-2007 12:47 PM

Thank you guys. After fixed the time, it looks much better.
This is my experimental machine so I did not care about setting the time right and did not know if it would be the cause of this problem :)

Thanks again


All times are GMT -5. The time now is 11:43 PM.