编译报错:make[2]: warning: Clock skew detected. Your build may be incomplete

2025年5月16日 | 分类: 【技术】

编译报错:

make[2]: warning: Clock skew detected. Your build may be incomplete

原因分析:检测到时钟偏差,主要是两个设备系统之间的时间上存在差距,导致编译失败。

解决方法:

回到工作空间中,即build文件夹的上一级路径:

cd ..

将所有文件都重新touch一遍,更新到本地系统的时间,再make就没问题了。

find ./ -type f |xargs touch

再次编译即可成功。

参考:https://blog.csdn.net/qq_45779334/article/details/121991176