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

 
 

bug #18872: problem colon after drive letter in prerequisite

Submitted by:  Markus Milleder <mmilleder>
Submitted on:  Wed 24 Jan 2007 03:56:39 PM UTC  
 
Severity: 3 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Component Version: 3.81Operating System: None
Fixed Release: 3.82Triage Status: None

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 28 Jul 2010 06:18:58 AM UTCpsmithFixed Release4.0=>3.82
    Sun 28 Jan 2007 10:46:26 PM UTCpsmithStatusNone=>Fixed
      Open/ClosedOpen=>Closed
      Component VersionNone=>3.81
      Fixed ReleaseNone=>4.0

    Back to the top


    Powered by Savane 3.1-cleanup1