zl程序教程

您现在的位置是:首页 >  系统

当前栏目

Ubuntu下编译Windows下C源码文件出现警告:make: Warning: File ‘md5.d‘ has modification time 0.69 s in the future

Windows文件源码Ubuntu in The 编译 出现
2023-09-14 09:09:33 时间

一、问题描述。

Ubuntu下编译Windows下源码文件弹出以下警告:

...
make: Warning: File 'md5.d' has modification time 0.69 s in the future
...
make: warning:  Clock skew detected.  Your build may be incomplete.

二、问题分析。

make命令发现文件修改时间比Ubuntu系统时间要更早,虚拟机系统时间和电脑Windows系统时间不匹配。

三、解决方案。

1、先查看系统时区date -R,中国为+0800,没问题。

ms@ubuntu:~$ date -R
Tue, 01 Dec 2020 22:10:52 +0800
ms@ubuntu:~$

2、查看系统日期、时间date,没问题。

ms@ubuntu:~$ date
Tue 01 Dec 2020 10:12:10 PM CST
ms@ubuntu:~$

3、更新所有文件的时间后重新编译。问题依旧存在。

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

4、修改虚拟机设置,开启时间同步功能。问题依旧存在。

5、修改Ubuntu日期和时间配置项,关闭时间同步功能。问题解决。