How to Fix “Clock skew detected. Your build may be incomplete.”

Quick fix for the warning “Clock skew detected. Your build may be incomplete.”

When compiling my Linxu Kernel in my Ubuntu VM, I sometimes bump into the following warning:

Clock skew detected. Your build may be incomplete.


Searching on the Internet, all but one solution helps solve the problem (source):

find . -type f | xargs -n 5 touch
make clean

Root Cause

A good explanation has been given here. Quote:

“That message is usually an indication that some of your files have modification times later than the current system time. Since make decides which files to compile when performing an incremental build by checking if a source files has been modified more recently than its object file, this situation can cause unnecessary files to be built, or worse, necessary files to not be built.” — source

Was this post helpful?

Leave a Reply

Your email address will not be published.