Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
error when i try to compile the kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
franziale
n00b
n00b


Joined: 20 Jan 2006
Posts: 5

PostPosted: Fri Jan 20, 2006 5:06 pm    Post subject: error when i try to compile the kernel Reply with quote

why when i try to re-compile the kernel i've this error message:
make[2]:Warning:Clock skew detected. Your buold may be incomplete!
Back to top
View user's profile Send private message
erikm
l33t
l33t


Joined: 08 Feb 2005
Posts: 634

PostPosted: Fri Jan 20, 2006 5:11 pm    Post subject: Reply with quote

This means your system clock isn't running at correct speed, so that mtimes of files appear to be ordered incorrectly, which can be a very serious problem on a system compiled from source.

The simplest way to verify the problem is to do a
Code:
# sleep 60
whilst measuring time with your watch, for instance. The difference will most likely be significant (as in a sleep 60 taking 30 seconds). Post back when you've verified the problem, we'll try to solve it.
Back to top
View user's profile Send private message
franziale
n00b
n00b


Joined: 20 Jan 2006
Posts: 5

PostPosted: Fri Jan 20, 2006 5:19 pm    Post subject: problem solved Reply with quote

I've solved the problem using "hwclock --systohc"
Back to top
View user's profile Send private message
erikm
l33t
l33t


Joined: 08 Feb 2005
Posts: 634

PostPosted: Fri Jan 20, 2006 5:23 pm    Post subject: Reply with quote

If you indeed have clock skew, syncing the hardware clock to the system clock will not solve the problem. Check your system clock speed using my suggestion above.
Back to top
View user's profile Send private message
XenoTerraCide
Veteran
Veteran


Joined: 18 Jan 2004
Posts: 1418
Location: MI, USA

PostPosted: Fri Jan 20, 2006 7:57 pm    Post subject: Reply with quote

I had this problem. there was a bios flash from my manufacturer that fixed it. you may want to check and see if there is one from the manufacture of your computer or if you built it. the motherboard. (note: you may have to install windows to run this flash. I did)
_________________
I don't hang out here anymore, try asking on http://unix.stackexchange.com/ if you want my help.
Back to top
View user's profile Send private message
obsrv
Apprentice
Apprentice


Joined: 19 Aug 2005
Posts: 167
Location: Panevėžys, Lithuania

PostPosted: Fri Jan 20, 2006 8:35 pm    Post subject: Reply with quote

I have the same problem now. But I had no problems last 3 years. I checked system clocks speed with "sleep 60" and it's ok. What should I do? I can't change the date also with date tool. After /etc/init.d/clock restart, the date is wrong again. Help :)
Back to top
View user's profile Send private message
erikm
l33t
l33t


Joined: 08 Feb 2005
Posts: 634

PostPosted: Sat Jan 21, 2006 9:35 am    Post subject: Reply with quote

obsrv wrote:
I have the same problem now. But I had no problems last 3 years. I checked system clocks speed with "sleep 60" and it's ok. What should I do? I can't change the date also with date tool. After /etc/init.d/clock restart, the date is wrong again. Help :)

Did you set up NTP? What about the timezone symlink? Do you use the hardware clock for reference, and if so, does it run on local or UTC time?
Back to top
View user's profile Send private message
Jimi...
Tux's lil' helper
Tux's lil' helper


Joined: 06 Aug 2005
Posts: 136
Location: IoM

PostPosted: Fri Jun 02, 2006 11:17 pm    Post subject: Reply with quote

I'm getting this problem also. I've just timed it using the method previously suggested and it seems to be in sync.

What gives?
Back to top
View user's profile Send private message
XenoTerraCide
Veteran
Veteran


Joined: 18 Jan 2004
Posts: 1418
Location: MI, USA

PostPosted: Sat Jun 03, 2006 2:40 am    Post subject: Reply with quote

most clocks aren't... perfect and have very very minor creep. but if they have more than normal creep which shouldn't be more than probably a second (if not less) a day, then ntp is an imperfect solution. check to make sure you have
Code:
CLOCK_SYSTOHC="yes"
in /etc/conf.d/clock that will have your hardware clock set to the displayed time on shutdown. if your clock is still off when you do restarts check the CMOS battery it may be failing.
_________________
I don't hang out here anymore, try asking on http://unix.stackexchange.com/ if you want my help.
Back to top
View user's profile Send private message
Jimi...
Tux's lil' helper
Tux's lil' helper


Joined: 06 Aug 2005
Posts: 136
Location: IoM

PostPosted: Sat Jun 03, 2006 4:23 pm    Post subject: Reply with quote

XenoTerraCide wrote:
most clocks aren't... perfect and have very very minor creep. but if they have more than normal creep which shouldn't be more than probably a second (if not less) a day, then ntp is an imperfect solution. check to make sure you have
Code:
CLOCK_SYSTOHC="yes"
in /etc/conf.d/clock that will have your hardware clock set to the displayed time on shutdown. if your clock is still off when you do restarts check the CMOS battery it may be failing.


It was set to no in /etc/conf.d/clock so I set it to yes and rebooted but I'm still getting clock skew.
Back to top
View user's profile Send private message
XenoTerraCide
Veteran
Veteran


Joined: 18 Jan 2004
Posts: 1418
Location: MI, USA

PostPosted: Sat Jun 03, 2006 5:48 pm    Post subject: Reply with quote

are you using any kind of cpu throttling? PC or Laptop?
_________________
I don't hang out here anymore, try asking on http://unix.stackexchange.com/ if you want my help.
Back to top
View user's profile Send private message
Jimi...
Tux's lil' helper
Tux's lil' helper


Joined: 06 Aug 2005
Posts: 136
Location: IoM

PostPosted: Sat Jun 03, 2006 6:02 pm    Post subject: Reply with quote

No, but I am running Gentoo through VMWare if that makes any difference.
Back to top
View user's profile Send private message
XenoTerraCide
Veteran
Veteran


Joined: 18 Jan 2004
Posts: 1418
Location: MI, USA

PostPosted: Sat Jun 03, 2006 6:04 pm    Post subject: Reply with quote

I'm not sure if it would... and systhoc doesn't help creep that much.
_________________
I don't hang out here anymore, try asking on http://unix.stackexchange.com/ if you want my help.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum