How to solve error: “Clock skew detected”?

冷暖自知 提交于 2019-12-03 05:07:42
Muneeb Zulfiqar

Type the following command:

find . -exec touch \{\} \;

(the first argument(s) to find specify the directory(s) to search)

chippies

See this post: Compling C++ on remote Linux machine - “clock skew detected” warning.

I'd suggest only copying the source code (no executables), then running touch * to set the last modified times to the current hgpu.org server time. This will force everything to be rebuilt unfortunately.

Out of curiosity, is main.cu's modification time still 381 seconds in the future after synchronising your PCs time?

Simply go to the directory where the troubling file is, type touch * without quotes in the console, and you should be good.

Nitesh Shetty

One of the reason may be improper date/time of your PC.

In Ubuntu PC to check the date and time using:

date

Example, One of the ways to update date and time is:

date -s "23 MAR 2017 17:06:00"

I am going to answer my own question.

I added the following lines of code to my Makefile and it fixed the "clock skew" problem:

clean:  
    find . -type f | xargs touch
    rm -rf $(OBJS)
Sean

please try to do

make clean

(instead of make), then

make

again.

electron1979

Makefile : Clock skew detected "A possible solution is to touch every file in the source tree in order to update time-stamps: Go to the root of the sub-tree an do: find . -exec touch {} \; Then make clean and retry compilation.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!