解决Clock skew detected

问题:在编译过程中会出现类似的以下warning
[ 92%] Building C objectCMakeFiles/dyna.x.dir/mystrings/StrEdit.c.o
[100%] Building C objectCMakeFiles/dyna.x.dir/mystrings/mystring.c.o
Linking C executable dyna.x
make[1]: Warning: File `StrEdit.c' has modification time 36 s inthe future
make[2]: warning: 
Clock skewdetected.  Your build may be incomplete.

原因:
in regards to the below warning...
Warning message: Clock skew detected. Yourbuild may be incomplete.

These warnings can occur when the clock on the build machine is outof sync with the timestamps on the source files. Other errors,apparently unrelated but in fact caused by the clock skew, canoccur along with the clock skew warnings. These secondary errorsmay tend to obscure the fact that the true root cause of theproblem is an out-of-sync clock. For example, an out-of-sync clockhas been known to cause an old version of javac to be used tocompile some files, resulting in errors when the pre-1.4 compilerran across the new assert keyword in the 1.4 source code.
If you see these warnings, reset the clock on the build machine,run "gnumake clobber" or delete the directory containing the buildoutput, and restart the build from the beginning.

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




转载自http://blog.sina.com.cn/s/blog_48acdd250100pk5u.html

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值