Clock sync problem: Warning:clock skew detected. Your build is incomplete.

Source: Internet
Author: User
Tags touch

When compiling the Linux kernel, we found the clock synchronization problem, the solution is as follows:

Find. -type F | Xargs-n 5 Touch or find./-name "*"-exec Touch {}/
Make clean
Make

or modify the machine time:

[Host@localhost ~]$ sudo date-s 07/04/2010

Sun June 4 00:00:00 HKT 2010

[San@localhost ~]$ Date

Sun June 4 00:00:03 HKT 2010

[Host@localhost ~]$ sudo date-s 20:36:00

Sun June 4 20:36:00 HKT 2010 When the system starts, the Linux operating system reads the time from CMOS to the system time variable, and then modifies the time by modifying the system time. To keep the system time consistent with the CMOS time, Linux writes the system time to the CMOS at intervals. Since this synchronization takes place every once in a while (about 11 minutes), after we perform date-s, if the machine is immediately reset, the modification time may not be written to CMOS, which is the cause of the problem. If you want to ensure that the changes take effect, you can execute the following command. Cp-f/usr/share/zoneinfo/asia/shanghai/etc/localtime or Ln–s/etc/localtime/usr/share/zoneinfo/asia/shanghai [ Host@localhost ~]$ sudo clock-w [host@localhost ~]$ date Sun June 4 20:36:23 HKT 2010 Modify/etc/sysconfig/clock zone= "asia/s Hanghai "

Utc=0

Arc=0

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.