正文
Linux GCC编译警告:Clock skew detected. 错误解决办法
小程序:扫一扫查出行
【扫一扫了解最新限行尾号】
复制小程序
【扫一扫了解最新限行尾号】
复制小程序
今天在虚拟机上用GCC编译一个程序的时候,出现了下面的错误:
make: warning: Clock skew detected. Your build may be incomplete
试了make clean后再make,仍然是同样的问题,最后发现这个错误的原因在于系统时间比文件修改时间早,看了下我的系统时间竟然还是2012-01-13,而今天都已经是2012-01-31呢,于是修改时间后重新编译,问题解决。
Linux下用date命令可查询和修改系统时间(root权限才可修改)
date 查询系统时间
date -s // 命令可以修改系统日期
date -s :: 命令可以修改系统时间