编译警告:warning: Clock skew detected. Your build may be incomplete.

        在编译darknet_ros程序时,遇到如下警告:

make[2]: Warning: File 'darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir/depend.make' has modification time 25801 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File 'darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir/depend.make' has modification time 25801 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 98%] Built target darknet_ros_lib
make[2]: Warning: File 'darknet_ros/darknet_ros/CMakeFiles/darknet_ros.dir/depend.make' has modification time 25814 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File 'darknet_ros/darknet_ros/CMakeFiles/darknet_ros.dir/depend.make' has modification time 25814 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[100%] Built target darknet_ros

截图如下:

分析:出现这个警告是由于时钟不同步导致的,即系统时间比文件修改时间早,Windows和Linux系统切换可能会出现这个问题。

解决方案: 依次执行下列指令即可

$ find . -type f | xargs -n 5 touch
$ catkin_make clean
$ catkin_make

参考网址

make时遇到File `Makefile' has modification time 4e+04 s in the future的解决办法

关于warning: Clock skew detected. Your build may be incomplete. 的解决方法

猜你喜欢

转载自blog.csdn.net/JIEJINQUANIL/article/details/106414938