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

 
 

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

Submitted by:  greg keranen <gkeranen>
Submitted on:  Fri 03 Mar 2006 01:31:21 AM UTC  
 
Severity: 3 - NormalItem Group: Enhancement
Status: FixedPrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Component Version: 3.81Operating System: MS Windows
Fixed Release: 4.0Triage Status: None

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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>
Project 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>
Project 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 23 Oct 2013 05:22:07 AM UTCelizStatusNone=>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
    Wed 09 Oct 2013 05:04:32 AM UTCpsmithComponent Version4.0=>3.81
      Summarymake fails trying to stat a .PHONY target: p\\:foo=>make fails trying to stat a .PHONY target: p\:foo
    Fri 10 Mar 2006 01:22:40 AM UTCpsmithItem GroupBug=>Enhancement

    Back to the top


    Powered by Savane 3.1-cleanup1