LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-06-2004, 03:43 AM   #1
phoenix7
Member
 
Registered: Aug 2004
Distribution: Mandrake 10.2(Mandriva), SuSE 9.3, Slackware 9.1, Xandros 3.1, Knoppix 3.9, FreeBSD 5.3, RedHat9
Posts: 122

Rep: Reputation: 15
when this warnning happenes " Clock Skew Detected" ?


when this warnning happenes " Clock Skew Detected" ?
 
Old 08-06-2004, 04:05 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
That means files you are compiling are more "recent" than the current system time, so make can't do its job properly.
Correct your machine time, or just "touch" the files to have a consistent time.
 
Old 08-06-2004, 04:12 AM   #3
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
Re: when this warnning happenes " Clock Skew Detected" ?

Quote:
Originally posted by phoenix7
when this warnning happenes " Clock Skew Detected" ?
The "make" program compares the modification times of source files (e.g. "example.c") and the object file (e.g. "example.o", as resulting from compilation). The same happens when linking (e.g. comparing the mod times of "example.o" with "example_executable").

This way "make" can determine is a source file has changed since last compilation, and thus needs to be recompiled. The mod time of the resulting object file is then changed because of recompilation. Then "make" sees it needs to re-link executables that need that object file.

Now, if time system clock changes while make is running doing this thing, some files may get a wrong modification time, so compilation/linking commands may not be run by "make", while they possibly should have been done. So when "make" detects that the system clock changed while running, it issues this warning.

Maybe you changed the system time by hand (e.g. by running something like "date" or "ntpdate"), or "ntpdate" was run by cron while the internet time (NTP) was different from your system time.
 
Old 08-06-2004, 04:14 AM   #4
cppkid
Member
 
Registered: Jul 2004
Location: Pakistan
Distribution: Ubuntu
Posts: 185

Rep: Reputation: 30
Is your kernel source located on an NFS mount? If the NFS server's clock is ahead of the local machine, files created due to make will have timestamps in the future, which confuses make. Hence, it reports clock skew.
NFS is the most obvious reason for this to occur; there could be others but I can't think of any, unless you changed the clock (either by hand or xntp/netdate etc) while running make menuconfig.

The Problem is that if you get this error you can be very sure that the time on the system where the files live and the time on the system where the build is being performed, are not in sync. They may be off by only half a second or so, which means half the time they will appear to have the same time and half the time they won't.
 
  


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
clock skew detected problem - no way to rectify it cyberswami Linux - Newbie 4 12-05-2007 11:28 PM
MAKEing libgadu: 'Clock skew detected' uniQ Linux - Software 1 01-25-2004 06:12 PM
clock skew detected bm1 Linux - Software 2 04-29-2003 06:19 AM
Sendmail + Clock skew Detected Evolution6 Linux - Newbie 0 04-22-2003 07:14 AM
clock skew detected mechatron Linux - Newbie 2 01-17-2003 04:03 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:51 PM.

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