bug-make
[Top][All Lists]
Advanced

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

Re: Problem with parallel build


From: Michael Ringe
Subject: Re: Problem with parallel build
Date: Fri, 22 Oct 2010 09:08:28 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.8) Gecko/20100802 SUSE/3.1.2 Thunderbird/3.1.2

On 21.10.2010 21:04, Mike Shal wrote:
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 agree. To be sure I just verified that introducing a sleep 1 doesn't
solve the problem.


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,
though.

Right again. I missed that when preparing the example.


-Mike

--Micheal



reply via email to

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