Re: [bug #27714] expansion of $(shell) in target forces serialization of targets

2009-10-16 Thread Philip Guenther
On Fri, Oct 16, 2009 at 4:34 AM, Paul D. Smith wrote: ... > But before it can invoke the recipe it has to expand all the variables and > functions. I had to ponder that requirement for a bit before it occurred to me that doing otherwise would either make $(eval) pointless in recipes or make it a

Re: Documentation error

2009-10-16 Thread Paul Smith
On Fri, 2009-10-16 at 10:01 +0100, mohamed hassanine aissa wrote: > Dear Sir or Madam, > I think i've found a little error in the documentation of GNU make: > section : 9.5 Overriding Variables > > citation "An argument that contains `=' specifies the value of a > variable: `v=x' sets the value

Documentation error

2009-10-16 Thread mohamed hassanine aissa
Dear Sir or Madam, I think i've found a little error in the documentation of GNU make: section : 9.5 Overriding Variables citation "An argument that contains `=' specifies the value of a variable: `v=x' sets the value of the variable v to x" error: v=x sets the value of the variable x

[bug #27714] expansion of $(shell) in target forces serialization of targets

2009-10-16 Thread Paul D. Smith
Follow-up Comment #3, bug #27714 (project make): Hi Mike; no, sorry, I should have given an explicit example. Your new test case is not correct and doesn't prove anything. I explicitly said do NOT put the sleep inside the $(shell). It's important to understand that make itself is single thread

[bug #27714] expansion of $(shell) in target forces serialization of targets

2009-10-16 Thread Mike Frysinger
Follow-up Comment #2, bug #27714 (project make): i didnt think it a race condition because the original test case had a fairly lengthy $(shell) code and the targets always ran in the same order (and obviously only one cpu at a time -- the other cpus stayed idle) using sleep shows that it is inde

[bug #27714] expansion of $(shell) in target forces serialization of targets

2009-10-16 Thread Paul D. Smith
Follow-up Comment #1, bug #27714 (project make): My suspicion is that this is just an artifact of your test case. In your scenario, make must evaluate the $(shell ...) function (invoking the shell) while it's expanding the command to be invoked. What I think is happening here is that your actua

[bug #27714] expansion of $(shell) in target forces serialization of targets

2009-10-16 Thread Mike Frysinger
URL: Summary: expansion of $(shell) in target forces serialization of targets Project: make Submitted by: vapier Submitted on: Fri 16 Oct 2009 07:50:48 AM GMT Severity: 3 - Normal