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

 
 

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

Submitted by:  David Warme <davidwarme>
Submitted on:  Sat 26 May 2012 01:39:40 AM UTC  
 
Severity: 3 - NormalItem Group: Bug
Status: DuplicatePrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Component Version: 3.82Operating 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 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>
Project 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 File(s):
   
   
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
  • -unavailable- added by psmith (Posted a comment)
  • -unavailable- added by davidwarme (Submitted the item)
  •  

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

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 10 Sep 2012 02:42:48 AM UTCpsmithStatusNone=>Duplicate
      Open/ClosedOpen=>Closed
    Sat 26 May 2012 01:39:40 AM UTCdavidwarmeAttached File-=>Added Makefile, #25922

    Back to the top


    Powered by Savane 3.1-cleanup1