[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with parallel build

From: Mike Shal
Subject: Re: Problem with parallel build
Date: Thu, 21 Oct 2010 15:04:20 -0400

On Thu, Oct 21, 2010 at 1:33 PM, Vardhan, Sundara (GE Energy)
<address@hidden> wrote:
> Hi Michael
> During parallel makes if the time of the object files created and the
> time archive command is run is within a second then it will fail to
> include these object files. The reason I believe is due to a bug in make
> rules wherein the time granularity is 1 second. Try to introduce a sleep
> of 1 second before executing the archive command.

Really? I don't think I've ever witnessed 'ar' failing to include
object files that were just created. Do you have a separate test case
that reproduces that behavior?

In any case that doesn't seem to the problem in Michael's post. The
final link command is failing to find app1.o. The archive is already
built successfully. The app1.o in this example doesn't actually use
anything from the library, so even if lib.a was missing some object
files I think the link would still succeed (assuming app1.o was
created before the link command).

I don't see why Michael's example should fail, but I can reproduce the
behavior with 3.81 and 3.82.

Also Michael, just a heads-up that in your example the Compile rule
isn't actually used, since src/%.c doesn't match anything (there's no
src/ directory). Removing src/ from that line doesn't fix the problem,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]