GNU bug report logs - #13107
timestamp bug when files are created just before make is run

Previous Next

Package: automake;

Reported by: Mikulas Patocka <mikulas <at> artax.karlin.mff.cuni.cz>

Date: Thu, 6 Dec 2012 22:18:02 UTC

Severity: normal

Merged with 41843

Done: Karl Berry <karl <at> freefriends.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Mikulas Patocka <mikulas <at> artax.karlin.mff.cuni.cz>
To: Philip Guenther <guenther <at> gmail.com>
Cc: 13107 <at> debbugs.gnu.org, bug-make <at> gnu.org
Subject: bug#13107: timestamp bug when files are created just before make is run
Date: Fri, 7 Dec 2012 03:16:31 +0100 (CET)

On Thu, 6 Dec 2012, Philip Guenther wrote:

> Note that this problem doesn't arise on systems with high precision
> file timestamps.  Many systems have provided those since the mid 90's;
> I'm appalled that the modern system that process the involved shell
> commands fast enough for this to regularly be a problem don't provide
> microsecond or better timestamp precision.

BTW. on Linux, high precision timestamps have really kernel-tick 
precision, not nanosecond precision.

So the first example that I posted doesn't always work correctly on Linux 
with 100HZ tick - with sufficiently fast computer, touch "a" and the rule 
to make "b" is executed in the same tick - so "a" isn't rebuilt.

Mikulas




This bug report was last modified 4 years and 315 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.