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)

Submitter:  None
Submitted:  Mon 20 Mar 2006 09:58:20 PM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  Fixed Privacy:  Public
Assigned to:  psmith Open/Closed:  Closed
Component Version:  3.79.1 Operating System:  POSIX-Based
Fixed Release:  3.81 Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group administrator
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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 5 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-04-01 psmith Fixed Release4.0 3.81
2006-03-20 psmith StatusNone Fixed
    Assigned toNone psmith
    Open/ClosedOpen Closed
    Fixed ReleaseNone 4.0

Back to the top

Powered by Savane 3.13-caa5.
Corresponding source code