clockskew

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.




"Hossein S. Zadeh" wrote:
> 
> Hi there,
> I just received a new server today. After installing RH5.2, I got the
> latest kernel (2.2.2), and compiled it. I noticed that any invocation of
> 'make' results in the following error:
> make: *** Warning:  Clock skew detected.  Your build may be incomplete.
> 
> I should add that the compiled kernel works fine. Compile of the very same
> kernel source on my workstation (also RH5.2) does not produce any error.
> 
> I wonder if the error could be a result of a faulty M/B or an almost dead
> BIOS battery? Any ideas?

Clock skew means your clock is or was wrong
when certain files got their timestamps.  

1. Set the time and date, reboot and verify the time.

2. Fix the timestamps on files created while the time was wrong.
   # cd /usr/src/linux; make mrproper; make clean

3. Get all files back from the future.
   Make sure the time is right, then

   # touch /tmp/now
   # find / -newer /tmp/now | xargs touch

   Instead of touching these files, it might be better to remove
   and recreate or reinstall them.

===

Subject: Re: Can Linux tell time? (6.0)
From: romain@icp.siemens.com (Romain Kang)
Date: Wed, 2 Jun 1999 10:42:35 -0700 (PDT)


| During the install 
| routine, I chose to set the clock to local time JST, rather than GMT.

If you're keeping local time, have you rebuilt the kernel with .config
set thus?
	# CONFIG_APM_RTC_IS_GMT is not set

If the system goes to suspend/standby and wakes up, the hardware clock
is used to update the software clock.  The morbidly curious can see the
code in /usr/src/linux-2.2.5/arch/i386/kernel/apm.c.  I was caught
unaware by this on a dual boot machine (since W98 likes to keep local
time).

Romain Kang             Siemens Info/Comm Products, San Jose R&D
romain@icp.siemens.com  formerly Pyramid Technology Corporation


===

Subject: Re: Can Linux tell time? (6.0)
From: Kayvan Aghaiepour Sylvan <kayvan@sylvan.com>
Date: Wed, 2 Jun 1999 11:07:09 -0700 (PDT)


>>>>> "Janine" == Janine Sisk <janine@furfly.net> writes:

Janine> I have a strange date problem too:
Janine> date says
Janine> Wed Jun  2 01:13:37 PDT 1999

Janine> hwclock says
Janine> Wed Jun  2 08:13:54 1999  -0.455190 seconds

Janine> Any suggestions?

Use ``hwclock --set '' (do man hwclock for the exact syntax) to set
your hardware clock.

The date and time will then be retained on reboot.

===

Subject: Re: Can Linux tell time?  (6.0)
From: "Steve \"Stevers!\" Coile" <scoile@redhat.com>
Date: Wed, 2 Jun 1999 09:14:07 -0400 (EDT)


On Wed, 2 Jun 1999, Yuki Taga wrote:
[...]
> > Is your hardware clock synched with the system clock?
> 
> Now that's a good question.  <g>  How do I determine this?  (probably 
> not if it takes user intervention to accomplish it)  During the install 
> routine, I chose to set the clock to local time JST, rather than GMT.

The "date" command will return the system clock time, the "hwclock"
command will return the hardware clock time.

===


the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu