I'm connected to my university's small Linux cluster via PuTTY and WinSCP, transferring files using the latter and compiling and running them with the former. My work so far has been performed in the university's labs, but today I have been doing some work at home that generated an interesting warning.
I uploaded an entire folder of stuff and, upon running the make
command, I get this as the last line of output:
make: warning: Clock skew detected. Your build may be incomplete.
The resulting binary works correctly, and there doesn't seem to be any other unexpected errors in the build process.
I seem to be able to trigger the error by building after uploading some new / replacement files (I edit everything locally then upload the new version), so I'm wondering if it's something just as simple as mismatched file modification times? Or something more concerning?
So, should I be worried? How do I fix/prevent this?
Simple solution:
will do all OK.
For more info: http://embeddedbuzz.blogspot.in/2012/03/make-warning-clock-skew-detected-your.html
I have had this in the past - due to the clocks being out on the machines. Consider setting up NTP so that all machines have the same time.
The solution is to run an NTP client , just run the command as below
172.16.12.100 is the ntp server
Typically this occurs when building in a NFS mounted directory, and the clocks on the client and the NFS server are out of sync.
The solution is to run an NTP client on both the NFS server and all clients.
Replace the watch battery in your computer. I have seen this error message when the coin looking battery on the motherboard was in need of replacement.
According to user m9dhatter on LinuxQuestions.org: