LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-20-2007, 12:22 PM   #1
ufmale
Member
 
Registered: Feb 2007
Posts: 386

Rep: Reputation: 30
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?
 
Old 10-20-2007, 12:30 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
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
 
Old 10-20-2007, 12:31 PM   #3
The_JinJ
Member
 
Registered: Apr 2004
Location: Scotland
Distribution: Suse, OpenWRT
Posts: 299

Rep: Reputation: 30
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

Last edited by The_JinJ; 10-20-2007 at 12:34 PM.
 
Old 10-20-2007, 12:40 PM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
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
 
Old 10-20-2007, 12:47 PM   #5
ufmale
Member
 
Registered: Feb 2007
Posts: 386

Original Poster
Rep: Reputation: 30
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel (2.6.10) compile problem Rarrum Linux - Software 2 01-20-2005 04:31 PM
2.6.6 kernel compile problem lamnk Linux - General 14 06-07-2004 01:13 PM
Kernel Compile problem sam00 Linux From Scratch 3 01-25-2004 10:59 AM
Problem with compile kernel bush Linux - General 5 07-10-2003 05:30 AM
kernel compile problem Syncrm Linux - Software 3 01-23-2002 03:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration