bugmake - Bugs: bug #16138, multiple jobservers started up by...

 
 

bug #16138: multiple jobservers started up by parallel make (and so uses 4 FDs instead of just 2)

Submitted by:  None
Submitted on:  Mon 20 Mar 2006 09:58:20 PM UTC  
 
Severity: 3 - NormalItem Group: Bug
Status: FixedPrivacy: Public
Assigned to: Paul D. Smith <psmith>Open/Closed: Closed
Component Version: 3.79.1Operating System: POSIX-Based
Fixed Release: 3.81Triage Status: None

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Mon 20 Mar 2006 10:37:25 PM UTC, comment #1:

I fixed this in CVS; the fix is available in the latest release candidate:

ftp://alpha.gnu.org/gnu/make/make-3.81rc2.tar.bz2

Paul D. Smith <psmith>
Project AdministratorIn charge of this item.
Mon 20 Mar 2006 09:58:20 PM UTC, original submission:

The command 'make test' with the following makefile fails when trying to process the 'submake' target in the 2nd makefile (makefile2) because file descriptor 5 is being used by the parallel make jobserver. If you then do another 'make test', it works because 'dependfile' exists. It seems that when make is making the 'dependfile' so it can do the 'include dependfile' it starts up a jobserver (using FD 3,4) and then when it processes the 'submake' target, it does not know about the first jobserver and so starts up another jobserver (using FD 5,6).

Running on a Linux machine where uname -a returns:
Linux lnxmach1 2.4.21-20.ELsmp #1 SMP Wed Aug 18 20:46:40 EDT 2004 i686 i686 i386 GNU/Linux

makefile
--------

test:
@echo MAKE=$(MAKE) MAKEFLAGS=$(MAKEFLAGS)MFLAGS=$(MFLAGS)
$(MAKE) -f makefile2 -j 2 submake

makefile2
---------

dependfile:
@echo SOMEMACRO=joe > $@
@echo MAKE=$(MAKE) MAKEFLAGS=$(MAKEFLAGS)MFLAGS=$(MFLAGS)

include dependfile

submake:
@echo MAKE=$(MAKE) MAKEFLAGS=$(MAKEFLAGS)MFLAGS=$(MFLAGS)
$(MAKE) -f makefile2 fdprint 5>output

fdprint:
@echo MAKE=$(MAKE) MAKEFLAGS=$(MAKEFLAGS)MFLAGS=$(MFLAGS)
@echo hi >&5

Anonymous

 

(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 5 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sat 01 Apr 2006 07:20:48 AM UTCpsmithFixed Release4.0=>3.81
Mon 20 Mar 2006 10:37:25 PM UTCpsmithStatusNone=>Fixed
  Assigned toNone=>psmith
  Open/ClosedOpen=>Closed
  Fixed ReleaseNone=>4.0

Back to the top


Powered by Savane 3.1-cleanup1