bugmake - Bugs: bug #18872, problem colon after drive letter...

 
 

bug #18872: problem colon after drive letter in prerequisite

Submitter:  Markus Milleder <mmilleder>
Submitted:  Wed 24 Jan 2007 03:56:39 PM UTC
   
 
Severity:  3 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Component Version:  3.81 Operating System:  None
Fixed Release:  3.82 Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 29 Jan 2007 03:13:09 PM UTC, comment #3: 

I'm fairly confident that cygwin's GCC will only generate dos-style paths in the output dependency files if you pass it in dos-style paths on the commandline or in #include statements.

  If it were to do so for any other reason, that would indeed be a bug, and I'd be very glad to see a testcase posted to the cygwin mailing list.

  cheers,
    DaveK


Dave Korn <davek>
Sun 28 Jan 2007 10:46:26 PM UTC, comment #2: 

Only project admins can change the state of a bug (so you can't re-open it).  If GCC is generated drive-lettered pathnames in a cygwin environment that is arguably a bug in GCC on Cygwin; you should report it to either or both GCC or Cygwin.

However, as Eli points out there has already been a change incorporated to allow GNU make on Cygwin to handle drive letters properly (for some definition of properly).  This change will be available in the next release of GNU make.

Paul D. Smith <psmith>
Group administrator
Wed 24 Jan 2007 07:45:52 PM UTC, comment #1: 

You are using the Cygwin build of Make 3.81, which does not support drive letters in file names (I believe the announcement on the Cygwin mailing list at the time they released Make 3.81 explains why they discontinued support for drive letters.)

I suggest to try the patched version of Cygwin Make 3.81, from the URL you cited:

http://cygwin.com/ml/cygwin/2006-09/msg00153.html

That version should support drive letters in file names.

FWIW, the native (non-Cygwin) Windows build of Make 3.81 behaves as you expect:

make: * No rule to make target `c:/myfile.txt', needed by `all'.  Stop.

The above-mentioned patched Cygwin build uses the same code for drive letter support as the native build, so I have good reasons to believe your problems will be solved once you use the patched version.

Eli Zaretskii <eliz>
Group Member
Wed 24 Jan 2007 03:56:39 PM UTC, original submission:  

Reopening bug 17105 (didn't find a way to do that, and didn't find any other bug for this problem)

Example makefile:
------- begin ---------
all: c:/myfile.txt
        echo "yes"
------- end -----------

Expected output
------- begin ---------
make: * No rule to make target `c:/myfile.txt', needed by `all'.  Stop.
------- end -----------

Actual output:
------- begin ---------
Makefile:1: * target pattern contains no `%'.  Stop.
------- end -----------

Environment (Windows XP SP2):
------- begin ---------
$ uname -a
CYGWIN_NT-5.1 <hostname> 1.5.23(0.156/4/2) 2006-12-19 10:52 i686 Cygwin
------- end -----------

Version, freshly built from the make-3.81 source archive:
------- begin ---------
$ make -v
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 i686-pc-cygwin
------- end -----------

Cygwin seem to have a patched version, linked from http://cygwin.com/ml/cygwin/2006-09/msg00153.html

GCC on Cygwin produces such dependency entries with its -MF option.

Markus Milleder <mmilleder>

 

(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 davek (Posted a comment)
  • -email is unavailable- added by psmith (Posted a comment)
  • -email is unavailable- added by eliz (Posted a comment)
  • -email is unavailable- added by mmilleder (Submitted 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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-07-28 psmith Fixed Release4.0 3.82
    2007-01-28 psmith StatusNone Fixed
        Open/ClosedOpen Closed
        Component VersionNone 3.81
        Fixed ReleaseNone 4.0

    Back to the top

    Powered by Savane 3.13-3cd0.
    Corresponding source code