Discussion:
[gentoo-user] clock skew corrupts kernel builds?
(too old to reply)
James
2004-12-08 02:20:08 UTC
Permalink
Hello,

I adjusted my time with the 'date' command. The system then complained
about the time zone and told me to fix is using 'zic'

OK, so I issued 'zic -l EST'.......

Everything is correct (i think) here my rc.conf entry:

CLOCK="local"

But when I build a new kernel, I get:
make: warning: Clock skew detected. Your build may be incomplete.

waz_up with this?

Did I miss something? The clock in the kde menu bar is correct, and matches
what I get when querying the system time with 'date'....

Enlightenment would be appreciated...

James


--
gentoo-***@gentoo.org mailing list
Bastian Balthazar Bux
2004-12-08 02:40:04 UTC
Permalink
Post by James
Hello,
I adjusted my time with the 'date' command. The system then complained
about the time zone and told me to fix is using 'zic'
OK, so I issued 'zic -l EST'.......
CLOCK="local"
make: warning: Clock skew detected. Your build may be incomplete.
waz_up with this?
Did I miss something? The clock in the kde menu bar is correct, and matches
what I get when querying the system time with 'date'....
Enlightenment would be appreciated...
James
--
As Far As I Know (not so far)
After the first time you compile some source, if you compile again make
try to avoid recompile unchanged source.
The check is done on the dates of source code and the one of object
built. Change the clock of the computer from the first compile to the
second one may make it confused and so it can avoid to recompile source
that is changed.
About the kernel compile, I suggesto to copy your .config somewhere
safe, run "make mrproper" or "make clean" (first preferred), copy
.config again in /usr/src/linux and recompile.

--
gentoo-***@gentoo.org mailing list
Jonathan Nichols
2004-12-08 02:50:08 UTC
Permalink
Post by James
make: warning: Clock skew detected. Your build may be incomplete.
waz_up with this?
Did I miss something? The clock in the kde menu bar is correct, and matches
what I get when querying the system time with 'date'....
Enlightenment would be appreciated...
What about the date in the BIOS? I've seen that error before and
correcting the computer's BIOS date resolved the issue. Sure, you have
to reboot, but oh well.. :-)


--
gentoo-***@gentoo.org mailing list
Bastian Balthazar Bux
2004-12-08 03:00:15 UTC
Permalink
Post by Jonathan Nichols
Post by James
make: warning: Clock skew detected. Your build may be incomplete.
waz_up with this?
Did I miss something? The clock in the kde menu bar is correct, and matches
what I get when querying the system time with 'date'....
Enlightenment would be appreciated...
What about the date in the BIOS? I've seen that error before and
correcting the computer's BIOS date resolved the issue. Sure, you have
to reboot, but oh well.. :-)
instead of a simply "date -set" ?
Post by Jonathan Nichols
--
--
gentoo-***@gentoo.org mailing list
Lluís Batlle i Rossell
2004-12-08 03:20:07 UTC
Permalink
I use, in those situations, 'hwclock' to set or take care of the hardware clock.
(referred as the BIOS date) :)
Post by Bastian Balthazar Bux
Post by Jonathan Nichols
Post by James
make: warning: Clock skew detected. Your build may be incomplete.
waz_up with this?
Did I miss something? The clock in the kde menu bar is correct, and matches
what I get when querying the system time with 'date'....
Enlightenment would be appreciated...
What about the date in the BIOS? I've seen that error before and
correcting the computer's BIOS date resolved the issue. Sure, you have
to reboot, but oh well.. :-)
instead of a simply "date -set" ?
Post by Jonathan Nichols
--
--
--
+-------------------------------------------------------+----------------------+
| Lluís Batlle i Rossell |Tel.Olot. 972 26 71 24|
| Membre de [s3os] (www.s3os.net) | BCN. 93 16 22 680|
| ***@jabber.org / ICQ# 9658637 | Mòb. 654 08 67 35|
| +info personal: http://vicerveza.homeunix.net/~viric/ | Santa Pau / Catalunya|
+-------------------------------------------------------+----------------------+
Cita:
- Press any key to accept the license.
(Dell Computers)

--
gentoo-***@gentoo.org mailing list
Uwe Thiem
2004-12-08 06:20:13 UTC
Permalink
Post by Bastian Balthazar Bux
Post by Jonathan Nichols
Post by James
make: warning: Clock skew detected. Your build may be incomplete.
waz_up with this?
Did I miss something? The clock in the kde menu bar is correct, and matches
what I get when querying the system time with 'date'....
Enlightenment would be appreciated...
What about the date in the BIOS? I've seen that error before and
correcting the computer's BIOS date resolved the issue. Sure, you have
to reboot, but oh well.. :-)
instead of a simply "date -set" ?
Nope. Date sets the system clock rather than the hardware clock. Try "hwclock
-w" or "hwclock -wu" depending whether you want your clock running GMT or
local time.

Uwe
--
Alternative phrasing of the First Law of Thermodynamics:
If you eat it, and you don't burn it off, you'll sit on it.

http://www.uwix.iway.na (last updated: 20.06.2004)

--
gentoo-***@gentoo.org mailing list
james
2004-12-08 15:30:08 UTC
Permalink
Post by Uwe Thiem
Nope. Date sets the system clock rather than the hardware clock. Try "hwclock
-w" or "hwclock -wu" depending whether you want your clock running GMT or
local time.
Very Interesting util that hwclock. However, when I ran 'hwclock -r' on 2
different gentoo systems, they match the system time rendered by 'date'.

That was unexpected, as I believe the bios time has never been synce up in
since these are relatively new systems that I control. Maybe the bios or using
i2c or acpi synced up the bios(haredware time) to the system time.

Any way, it's good enough to know about hwclock, and when I roll out
NTP, I'll delved deeper into this util....

*THANKS*
James


--
gentoo-***@gentoo.org mailing list
Nick Rout
2004-12-09 10:00:19 UTC
Permalink
Post by james
Post by Uwe Thiem
Nope. Date sets the system clock rather than the hardware clock. Try "hwclock
-w" or "hwclock -wu" depending whether you want your clock running GMT or
local time.
Very Interesting util that hwclock. However, when I ran 'hwclock -r' on 2
different gentoo systems, they match the system time rendered by 'date'.
That was unexpected, as I believe the bios time has never been synce up in
since these are relatively new systems that I control. Maybe the bios or using
i2c or acpi synced up the bios(haredware time) to the system time.
Any way, it's good enough to know about hwclock, and when I roll out
NTP, I'll delved deeper into this util....
hwclock is run by /etc/init.d/clock on startup and shutdown. there
should be no need to use it in normal usage of a gentoo system.
Post by james
*THANKS*
James
--
--
Nick Rout <***@rout.co.nz>

--
gentoo-***@gentoo.org mailing list
Lluís Batlle i Rossell
2004-12-09 11:00:23 UTC
Permalink
Yes, there's something important about hwclock.

hwclock corrects the clock 'skew' done by the hardware clock.
Hardware clocks are usually 'low quality clocks', and 'hwclock' uses the
system-clock for knowing HOW MUCH the hardware clock skewed.

So, there is a file, /etc/adjtime, used by hwclock to correct the clock.

If you make strange changes in your bios date, and in system date, etc (that is,
setting the time when the clock _totally misses_ the real time), you have to
remove that file, and let 'hwclock' start calculating the 'skew' again.

In that file there may be a correction of "1h for 1 minute", and then your
system clock will change suddenly from your hardware clock, at boot.

Simply, if you have clock problems, remove /etc/adjtime, and let hwclock create
it again (you have to touch nothing :).
Post by Nick Rout
Post by james
Post by Uwe Thiem
Nope. Date sets the system clock rather than the hardware clock. Try "hwclock
-w" or "hwclock -wu" depending whether you want your clock running GMT or
local time.
Very Interesting util that hwclock. However, when I ran 'hwclock -r' on 2
different gentoo systems, they match the system time rendered by 'date'.
That was unexpected, as I believe the bios time has never been synce up in
since these are relatively new systems that I control. Maybe the bios or using
i2c or acpi synced up the bios(haredware time) to the system time.
Any way, it's good enough to know about hwclock, and when I roll out
NTP, I'll delved deeper into this util....
hwclock is run by /etc/init.d/clock on startup and shutdown. there
should be no need to use it in normal usage of a gentoo system.
Post by james
*THANKS*
James
--
--
--
--
+-------------------------------------------------------+----------------------+
| Lluís Batlle i Rossell |Tel.Olot. 972 26 71 24|
| Membre de [s3os] (www.s3os.net) | BCN. 93 16 22 680|
| ***@jabber.org / ICQ# 9658637 | Mòb. 654 08 67 35|
| +info personal: http://vicerveza.homeunix.net/~viric/ | Santa Pau / Catalunya|
+-------------------------------------------------------+----------------------+
Cita:
- Press any key to accept the license.
(Dell Computers)

--
gentoo-***@gentoo.org mailing list
James
2004-12-11 22:00:18 UTC
Permalink
Post by Lluís Batlle i Rossell
hwclock corrects the clock 'skew' done by the hardware clock.
Hardware clocks are usually 'low quality clocks', and 'hwclock' uses the
system-clock for knowing HOW MUCH the hardware clock skewed.
So, there is a file, /etc/adjtime, used by hwclock to correct the clock.
If you make strange changes in your bios date, and in system date, etc (that is,
setting the time when the clock _totally misses_ the real time), you have to
remove that file, and let 'hwclock' start calculating the 'skew' again.
In that file there may be a correction of "1h for 1 minute", and then your
system clock will change suddenly from your hardware clock, at boot.
Simply, if you have clock problems, remove /etc/adjtime, and let hwclock create
it again (you have to touch nothing :).
Thanks for the explainations (Everyone) this is good to know exactly how the
bios clock and the system clocks work....

Thanks Everyone for clearing this up for me.

James


--
gentoo-***@gentoo.org mailing list

Neil Bothwick
2004-12-09 11:30:12 UTC
Permalink
Post by Nick Rout
hwclock is run by /etc/init.d/clock on startup and shutdown. there
should be no need to use it in normal usage of a gentoo system.
From /etc/conf.d/clock

# If you want to sync the system clock to the hardware clock during
# shutdown, then say "yes" here.

CLOCK_SYSTOHC="yes"

It defaults to no.
--
Neil Bothwick

Joystick: (n.) a device essential for performing business tasks and
training exercises esp. favored by pilots, tank
commanders, riverboat gamblers, and medieval warlords.
James
2004-12-08 15:20:10 UTC
Permalink
Post by Bastian Balthazar Bux
Post by James
I adjusted my time with the 'date' command. The system then complained
about the time zone and told me to fix is using 'zic'
.org mailing list
Post by Bastian Balthazar Bux
As Far As I Know (not so far)
After the first time you compile some source, if you compile again make
try to avoid recompile unchanged source.
The check is done on the dates of source code and the one of object
built. Change the clock of the computer from the first compile to the
second one may make it confused and so it can avoid to recompile source
that is changed.
About the kernel compile, I suggesto to copy your .config somewhere
safe, run "make mrproper" or "make clean" (first preferred), copy
.config again in /usr/src/linux and recompile.
OK, this was right on the money. I got distracted, delayed, and spent
hours reading kernel sources before I found my problem on a LMLBT4x
video grabber card. I corrected the time during a open 'make menuconfig'
session.....

Got things working nicely now.

James


--
gentoo-***@gentoo.org mailing list
Loading...