[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #48643] Irrelevant targets can confuse make on which pattern rule t
[bug #48643] Irrelevant targets can confuse make on which pattern rule to select.
Wed, 27 Jul 2016 05:02:14 +0000 (UTC)
Mozilla/5.0 (Windows NT 6.1; rv:47.0) Gecko/20100101 Firefox/47.0
Summary: Irrelevant targets can confuse make on which pattern
rule to select.
Submitted by: None
Submitted on: Wed 27 Jul 2016 05:02:12 AM UTC
Severity: 3 - Normal
Item Group: Bug
Assigned to: None
Discussion Lock: Any
Component Version: 4.2.1
Operating System: POSIX-Based
Fixed Release: None
Triage Status: None
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
default -> a.foo (%.foo, line 3) -> a.correct -> a.correct_src
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:
default -> a.foo (%.foo, line 6) -> a.mislead -> a.mislead_src
That is, it chose the wrong pattern rule for %.foo .
Date: Wed 27 Jul 2016 05:02:12 AM UTC Name: Makefile Size: 543B By: None
Reply to this item at:
Message sent via/by Savannah
|[Prev in Thread]
||[Next in Thread]|
- [bug #48643] Irrelevant targets can confuse make on which pattern rule to select.,