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.