bugmake - Bugs: bug #36542, make -j interacts badly with...

 
 

bug #36542: make -j interacts badly with pattern rules, .SECONDARY:

Submitter:  David Warme <davidwarme>
Submitted:  Sat 26 May 2012 01:39:40 AM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  Duplicate Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Component Version:  3.82 Operating System:  POSIX-Based
Fixed Release:  None Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 10 Sep 2012 02:42:48 AM UTC, comment #1: 

Thank you for the reproduce example.
This is a duplicate of Savannah bug #30653

Paul D. Smith <psmith>
Group administrator
Sat 26 May 2012 01:39:40 AM UTC, original submission:  


The attached Makefile demonstrates a bug in make-3.82 that is
apparently an improper interaction between "make -j", pattern
rules and ".SECONDARY:".

This example works on Linux, and requires a working make-3.82,
gcc, and binutils (objcopy).

1. Create an empty directory.

2. cd to that directory.

3. Place the attached Makefile in that directory.

4. Do "make -j 20".  Notice that the make fails because it
   attempts to make a .dbg file before the corresponding
  .exe file has been built.

5. Comment out the ".SECONDARY:" line in the Makefile.

6. Do "make clean".

7. Do "make -j 20".  Notice that the make succeeds (but it
   deletes all of the .c and .o files because the
   ".SECONDARY" declaration is not present.

David Warme
Group W, Inc.


David Warme <davidwarme>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #25922:  Makefile added by davidwarme (965B - application/octet-stream - Makefile demonstrating the bug. Do "make -j 20".)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by psmith (Posted a comment)
  • -email is unavailable- added by davidwarme (Submitted the item)
  •  

    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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-09-10 psmith StatusNone Duplicate
        Open/ClosedOpen Closed
    2012-05-26 davidwarme Attached File- Added Makefile, #25922

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code