1. 程式人生 > >報錯:make: warning: Clock skew detected. Your build may be incomplete

報錯:make: warning: Clock skew detected. Your build may be incomplete

使用gcc編譯程式過程中,報錯:

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

根據報錯提示,是系統時鐘有問題。

使用如下命令,調整系統時鐘:

ntpdate time.windows.com
[email protected]:/mnt/hgfs/Ubuntu12.04-share# date
Mon Dec 17 17:42:21 PST 2018
[email protected]:/mnt/hgfs/Ubuntu12.04-share# ntpdate time.windows.com 
17 Dec 17:43:11 ntpdate[3597]: adjust time server 52.166.120.77 offset 0.042539 sec
[email protected]
:/mnt/hgfs/Ubuntu12.04-share#

再次編譯,可以成功編譯。

參考連結:
https://www.cnblogs.com/jiu0821/p/6768473.html

https://www.cnblogs.com/qiyebao/p/4424550.html