bugmake - Bugs: bug #15968, make fails trying to stat a .PHONY...

 
 

bug #15968: make fails trying to stat a .PHONY target: p\:foo

Submitter:  greg keranen <gkeranen>
Submitted:  Fri 03 Mar 2006 01:31:21 AM UTC
   
 
Severity:  3 - Normal Item Group:  Enhancement
Status:  Fixed Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Component Version:  3.81 Operating System:  MS Windows
Fixed Release:  4.0 Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 23 Oct 2013 05:22:07 AM UTC, comment #2: 

I cannot reproduce the problem in Make 4.0: the phony target file is never passed to `stat`.  So I presume that the problem was somehow indirectly fixed.

Closing.

Eli Zaretskii <eliz>
Group Member
Fri 10 Mar 2006 01:22:40 AM UTC, comment #1: 

Hm.  I'm not sure that there's anywhere in the make manual that says or implies that simply because a target is declared .PHONY, it will never be stat()ed.  I can see this could be considered a performance enhancement but on the other hand there might be good reasons to stat() even .PHONY files.  I'll have to look into this carefully.  However, for now I'm reclassifying this as an enhancement request.

Paul D. Smith <psmith>
Group administrator
Fri 03 Mar 2006 01:31:21 AM UTC, original submission:  

This is a re-statement of the specifics behind BUG: #15942
BUG: #15942 will be automatically fixed when this bug is fixed.

--- TEST ENVIRONMENT:
GNU Make 3.81rc1 on CYGWIN_NT-5.1 x2 1.5.19(0.150/4/2) i686

--- STEPS TO REPRODUCE
1. Configure a removable drive mapping with NO DISC inserted.

2. Assuming that the drive letter of such a drive mapping is 'P:', then create the following makefile:

# FILE: escape.mk
.PHONY : p\:foo
p\:foo : ; @echo $@
# EOF

3. run make and get and experience this bug:
[greg@x2 features]$ make -f escape.mk
make: stat: p:foo: No medium found
p:foo
make: stat: p:foo: No medium found

--- EXPECTED OUTPUT
p:foo

--- ANALYSIS
Since this target is declared .PHONY, make should not try to stat the target, as a file

greg keranen <gkeranen>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by eliz (Posted a comment)
  • -email is unavailable- added by psmith (Updated 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 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-10-23 eliz StatusNone Fixed
        Open/ClosedOpen Closed
        Fixed ReleaseNone 4.0
        Summarymake fails trying to stat a .PHONY target: p\\:foo make fails trying to stat a .PHONY target: p\:foo
    2013-10-09 psmith Component Version4.0 3.81
        Summarymake fails trying to stat a .PHONY target: p\\:foo make fails trying to stat a .PHONY target: p\:foo
    2006-03-10 psmith Item GroupBug Enhancement

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code