bugmake - Bugs: bug #18622, regression cannot turn off...

 
 

bug #18622: regression cannot turn off implicit rules for %.c and %.tex in 3.81

Submitter:  None
Submitted:  Thu 28 Dec 2006 10:26:52 PM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  Fixed Privacy:  Public
Assigned to:  psmith Open/Closed:  Closed
Component Version:  3.81 Operating System:  Any
Fixed Release:  3.82 Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 24 Sep 2009 02:46:04 AM UTC, comment #3: 

Fixed during the rework of secondary expansion.

Paul D. Smith <psmith>
Group administrator
Sat 13 Jun 2009 11:46:56 PM UTC, comment #2: 

Ouch.  This is a result of the secondary expansion feature.  The problem is that we defer the tokenization of dependencies until the snap_deps() step, when all the makefiles have been read in.  This means that when we try to override the pattern rule and compare the dependencies, they don't match because our "internal" dependencies are two separate strings "%.w" and "%.ch" (for example) but the overriding dependencies are (at this point) a single string "%.w %.ch".  We don't split them until later.

There are actually a number of problems with the current secondary expansion feature, not least of which is that it wastes memory; I have a half-completed workspace that is changed to always split dependencies right away UNLESS we can show that secondary expansion is a possibility (that is that the .SECONDARYEXPANSION special target is present, AND that the prerequisite list contains expandable elements---contains one or more "$").

Once that change is completed, it will fix this bug as well.

Paul D. Smith <psmith>
Group administrator
  Spam posted by anonymous
Thu 28 Dec 2006 10:26:52 PM UTC, original submission:  

makefile
--start--
all: fred

fred: foo

foo:
        touch fred

#goal to get equivalent of gmake --no-builtin-rules functionality
.SUFFIXES:
#shutoff  implicit rules
(%): %
%.out: %
%:: %,v
%:: RCS/%,v
%:: RCS/%
%:: s.%
%:: SCCS/s.%
%.c: %.w %.ch
%.tex: %.w %.ch
--end makefile--

repro steps:
gmake -p -f makefile.9 > file
in verbose output find section (about line 862)
that starts with # Implicit rules
defect is that the implicit rules for CTANGLE and CWEAVE are not disabled using gmake 3.81

output from gmake 3.81
...
 
# Implicit Rules

(%): %

%.out: %

%:: %,v

%:: RCS/%,v

%:: RCS/%

%:: s.%

%:: SCCS/s.%

%.c: %.w %.ch

%.tex: %.w %.ch

%.c: %.w %.ch
#  commands to execute (built-in):
        $(CTANGLE) $^ $@

%.tex: %.w %.ch
#  commands to execute (built-in):
        $(CWEAVE) $^ $@

# 11 implicit rules, 5 (45.5%) terminal.


--end output --
correct out from gmake 3.80
...
# Implicit Rules

(%): %

%.out: %

%:: %,v

%:: RCS/%,v

%:: RCS/%

%:: s.%

%:: SCCS/s.%

%.c: %.w %.ch

%.tex: %.w %.ch

# 9 implicit rules, 5 (55.6%) terminal.
--end 3.80 output--
gmake -v output
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for x86_64-unknown-linux-gnu

for additional information contact -email is unavailable-

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #11619:  makefile.9 added by None (241B - application/octet-stream - makefile.9 is attached )

 

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)
  •  

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

    Date Changed by Updated Field Previous Value => Replaced by
    2010-07-28 psmith Fixed Release4.0 3.82
    2009-09-24 psmith StatusNone Fixed
        Assigned toNone psmith
        Open/ClosedOpen Closed
        Fixed ReleaseNone 4.0
    2008-07-09 psmith Attached File#16075 Removed
    2008-07-09 None Attached File- Added feed_atom03_80x15.png, #16075
    2006-12-28 None Attached File- Added makefile.9, #11619

    Back to the top

    Powered by Savane 3.13-54b4.
    Corresponding source code