bugmake - Bugs: bug #10566, multi double-clone targets are...

 
 

bug #10566: multi double-clone targets are scrambled in prallel make

Submitted by:  Alon Blayer-Gat <alonbg>
Submitted on:  Sun 03 Oct 2004 04:31:18 PM UTC  
 
Severity: 3 - NormalItem Group: Bug
Status: Not A BugPrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Component Version: 3.80Operating System: POSIX-Based
Fixed Release: NoneTriage Status: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 04 Oct 2004 02:38:02 AM UTC, comment #1:

This is not a bug; this is correct behavior.

As described in the GNU make manual section on double-colon rules, each double-colon rule is completely independent of any other rule and there is no guaranteed ordering when it comes to parallelism.

As described in the GNU make manual section on parallel builds, during parallel builds the output generated when running each target is mixed together.

Paul D. Smith <psmith>
Project Administrator
Sun 03 Oct 2004 04:31:18 PM UTC, original submission:

multi double-clone targets are scrambled in prallel make
And are nore made in written order.

debug:: $(word 1,$(MAKEFILE_LIST))
echo makeing first $@
$(RM) debug.dep
$(RM) debug

debug:: debug.dep
echo makeing second $@
touch $@

debug.dep:
touch $@

issue: make -j4 debug
output:
echo makeing first debug <== belongs to first 'debug'
touch debug.dep <== second 'debug'
makeing first debug <== first 'debug. Again !
rm -f debug.dep
rm -f debug
touch: debug.dep cannot stat
make: *** [debug.dep] Error 1
make: *** Waiting for unfinished jobs....

issue a non-parallel make and it works: make debug
output:
echo makeing first debug
makeing first debug
rm -f debug.dep
rm -f debug
touch debug.dep
echo makeing second debug
makeing second debug
touch debug

Alon Blayer-Gat <alonbg>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 04 Oct 2004 02:38:02 AM UTCpsmithStatusNone=>Not A Bug
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1