This is the mail archive of the
cygwin
mailing list for the Cygwin project.
bad interaction with /usr/bin/make
- From: Denis Excoffier <cygwin at Denis-Excoffier dot org>
- To: The Cygwin Mailing List <cygwin at cygwin dot com>
- Date: Sat, 28 Feb 2015 01:06:35 +0100
- Subject: bad interaction with /usr/bin/make
- Authentication-results: sourceware.org; auth=none
Hi,
This is a standard makefile, except that hello.c
is taken from a special directory:
% cat Makefile
all : hello
hello : hello.o
gcc -o $@ $+
hello.o : /usr/mydata/hello.c
gcc -o $@ -c $<
clean :
-rm -f hello hello.exe hello.o
%
The file hello.c contains exactly what you expect
that it should contain and the ./hello runs OK.
Now, suppose that you mount (through /etc/fstab) some
drive under some subfolder of /usr/mydata, eg
R:/svnRepository /usr/mydata/svn ntfs cygexec,noacl
You can try the Makefile, it still works (as expected).
Now you come home and the R: drive does not exist
any more. Believe it or not (but you can try), the
Makefile does not work any more and produces:
make: *** INTERNAL: readdir: No such file or directory. Stop.
You can observe that the /usr/mydata/hello.c still exists,
unchanged, and that the mount has nothing to do with
/usr/mydata, only with /usr/mydata/svn, which is unknown
in the Makefile.
Do you think that Cygwin has something to do with this or
is it exclusively /usr/bin/make's business?
Regards,
Denis Excoffier.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple