Solution to clock skew detected in Linux

Source: Internet
Author: User

When compiling and installing a software package in Linux, the system prompts: Make: Warning: clock skew detected. Your build may be incomplete. Modify the date and time of the system and re-compile and install the system. Then, the error disappears. The method is as follows:

[Root @ server vsftpd-2.0.5] # date

Sat Jan 26 04:33:07 CST 2002

[Root @ server vsftpd-2.0.5] # date-s 12/11/2006

Mon Dec 11 00:00:00 CST 2006

[Root @ server vsftpd-2.0.5] # date-s 14:42:50

Mon Dec 11 14:42:50 CST 2006

[Root @ server vsftpd-2.0.5] # date

Mon Dec 11 14:43:00 CST 2006

[Root @ server vsftpd-2.0.5] # clock-W

[Root @ server vsftpd-2.0.5] # date

Mon Dec 11 14:43:33 CST 2006

Make again. When the system is started, the Linux operating system reads the time from CMOS to the system time variable. Later, the modification time is implemented by modifying the system time. To keep the system time consistent with the CMOS time, Linux writes the system time to CMOS at intervals. Because the synchronization is performed at intervals (about 11 minutes), after we execute date-s, if the machine is restarted immediately, the modification time may not be written to CMOS, this is the cause of the problem. To make sure the modification takes effect, run the following command: # clock-W, which forces the system time to be written to CMOS.

You can also run touch once on the file that prompts this problem, so there will be no compilation warning. For example, if you compile touch mediatek/custom/common/uboot/LCM/nt35510/nt35510.c, no problem will occur.

 

Http://linux.ctocio.com.cn/22/8916022.shtml ()

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.