lkml.org 
[lkml]   [2004]   [Apr]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Linux 2.6 nanosecond time stamp weirdness breaks GCC build
On Fri, Apr 02, 2004 at 12:48:55AM +0200, Ulrich Weigand wrote:
> Joe Buck wrote:
>
> > Case 2: make falsely thinks that the .c is younger than the .o. It
> > recompiles the .c file, even though it didn't have to. Harmless.
>
> *Not* harmless, in fact this is exactly what breaks my bootstrap.
>
> Think about what happens when cc1 is 'harmlessly' rebuilt just
> while in a parallel make that very same cc1 binary is used to
> run a compile ...

Well, then, you have a problem: how to handle ties? Consider a system
with no extra precision, and one-second time resolution. You see an .o
file and a .c file that are the same age. Rebuild or not? If we don't
and are wrong, the .o file is bad. If we do and are wrong, the target
will be modified while some process is trying to use it. Somehow we
have to figure out how to do the makefile so that neither problem can
occur.

In your particular case, for example, if the command to rebuild cc1 builds
the new version in a different place, then does an mv, the rebuild *will*
be harmless.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.048 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site