bugmake - Bugs: bug #48643, Irrelevant targets can confuse...

 
 

bug #48643: Irrelevant targets can confuse make on which pattern rule to select.

Submitted by:  None
Submitted on:  Wed Jul 27 05:02:12 2016  
Votes:  20  
 
Severity: 3 - NormalItem Group: Bug
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Component Version: 4.2.1Operating System: POSIX-Based
Fixed Release: NoneTriage Status: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Tue Aug 23 08:06:50 2016, comment #1:

According to what I wrote in <https://lists.gnu.org/archive/html/help-make/2016-06/msg00003.html>, this behaviour is present in 3.82, 4.1 and 4.2.1, but not 3.81.

Steven Simpson <simpsons>
Wed Jul 27 05:02:12 2016, original submission:

This is a based on https://lists.gnu.org/archive/html/help-make/2016-01/msg00011.html which I couldn't find an actual bug report for.

I'm not 100% certain that this is a bug; it's possible that we're missing something subtle in the manual, but I really do think it's a bug.

I've attached a test case. The bad behavior is triggered by the last line in the Makefile; commenting it out causes things to work correctly.

The correct graph for make to choose is

But, if we append this line, then make makes the wrong decision:

The line should be irrelevant, because misleading_target isn't something we're trying to build. But, it causes make to instead choose this graph:

That is, it chose the wrong pattern rule for %.foo .

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #38033:  Makefile added by None (543B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by simpsons (Voted in favor of this item)
  • -unavailable- added by simpsons (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 20 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
    Wed Sep 28 13:15:07 2016simpsonsCarbon-Copy-=>Added simpsons
    Wed Jul 27 05:02:12 2016NoneAttached File-=>Added Makefile, #38033

    Back to the top


    Powered by Savane 3.1-cleanup1