解决 make[1]: Warning: File ‘xxx.o‘ has modification time xxx s in the future 问题

问题描述

make[1]: Warning: File ‘xxx.o’ has modification time xxx s in the future
make[1]: Warning: Clock skew detected. Your build may be incomplete.

  • 以上就是问题出现的形式,其中xxx.o是工程中的某一个文件,xxx s 表示时间差了多少秒。

环境描述

目前使用Win10 + 虚拟机VirtualBox(运行Ubuntu16.04)
Win10上创建文件
Ubuntu16.04 上编译文件

问题原因

由于虚拟机下的时间与物理机的时间快导致

解决办法

将虚拟机时间调整比物理机快,改为手动设置时间,尽量不去同步物理机时间。

你可能感兴趣的:(小技巧,Ubuntu,VirtualBox,Linux,VirtualBox,Ubuntu16.04)