Page 1 of 1

Makefile modification time

Posted: 05 Feb 2020, 16:38
by sna_inspiralia
Good afternoon,

I'm not able to compile new software made in C. when I enter the make command the answer is:

"make: Warning: File 'Makefile' has modification time 743445599 s in the future
....
....
...
make: warning: Clock skew detected. Your build may be imcomplete"

And indeed, it haven`t build at all.

Thanks for your support.

Samir

Re: Makefile modification time

Posted: 06 Feb 2020, 11:10
by nicolaiB
Hi Samir,

it looks like your clock is not set correctly. Check the output of the date command and make sure, that NTP (systemd-timesyncd) is configured correctly. If the RevPi has no connection to the internet, you have to set the correct time yourself and use a tool like fakehwclock to persist the settings accross power cycles.

Nicolai

Re: Makefile modification time

Posted: 06 Feb 2020, 11:26
by dirk
hi, yes you should check your system time and the modification time of the Makefile i.e. by using this commands
  • ls -l Makefile
  • date
  • timedatectl
@nicolaiB - happy 100th post and thank you for your quick response.

Re: Makefile modification time

Posted: 07 Feb 2020, 08:21
by sna_inspiralia
Thanks for your fast response! Yes, I got access to internet and apply all the updates in the system and worked.

Bests!