X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=DMKODEuCP8Pr5ZrwPf9LRUVNn89jfy59SZ6CkGJ8JqbHOFNk02D+I iav19uOMaagE63D9rPo+zYrmwwrYWwrQ9GOKOE8UuNHpj85DMjYbgxWUwb1MZXXQ +cFhUq+tRFaP9UHM6ngub/uy+tHpYq5IhjQ0iO0VPQ9/DhFlwN1Bfc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=+Uduw6hiMRyPffeYHcOt6T66tWw=; b=IvL6wgqxbMQSSjrEl4qPWDJZrbKj y8XXezhLd8w4minMXx4UYt+eYVotFIgF+Zza7Ew7vBRBVyxZ6SctSpz+LQ6Hz3cj rZlP5S9d2vybIbtrv2uxMJo1iNL0kdw8nQNQVi8PDYkdM3GMoqHIecURjs0VsFOA JUv/nhtA0fymm4w= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: calimero.vinschen.de Date: Sat, 28 Feb 2015 14:27:09 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: bad interaction with /usr/bin/make Message-ID: <20150228132709.GW11124@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <6BC3C400-70D8-4A1D-9218-897B457B50D8 AT Denis-Excoffier DOT org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xPLL5cPndR2UZ7Mw" Content-Disposition: inline In-Reply-To: <6BC3C400-70D8-4A1D-9218-897B457B50D8@Denis-Excoffier.org> User-Agent: Mutt/1.5.23 (2014-03-12) --xPLL5cPndR2UZ7Mw Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Feb 28 01:06, Denis Excoffier wrote: > Hi, >=20 > This is a standard makefile, except that hello.c > is taken from a special directory: >=20 > % 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 > % >=20 > The file hello.c contains exactly what you expect > that it should contain and the ./hello runs OK. >=20 >=20 > Now, suppose that you mount (through /etc/fstab) some > drive under some subfolder of /usr/mydata, eg >=20 > R:/svnRepository /usr/mydata/svn ntfs cygexec,noacl >=20 > You can try the Makefile, it still works (as expected). >=20 > 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: >=20 > make: *** INTERNAL: readdir: No such file or directory. Stop. I guess make doesn't expect ENOENT from readdir as it's not a documented error code. This is probably an artefact from the mount point handling. It kind of injects the mount point into the parent directory and then, since the drive is unavailable, an OS call returns STATUS_OBJECT_NAME_NOT_FOUND, which is propagated up the chain. I add that to my TODO list for after 1.7.35. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --xPLL5cPndR2UZ7Mw Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJU8cItAAoJEPU2Bp2uRE+gh5AP/jUD1FBl5vtqw/3PIYY02Ukz ZvKxO8blizzp5a681PIQcmuzlm/X0TAw/GNh5tFWatF1BO+7/oEAytcnzJFb/D+3 Ht1XoTuiF0mv4gO/dOo0gbejdk41CM3uEhcjGYHGteFUEMLFB9ce12j54pQQQr5W 5LJtAnbOqjOAhnbc2cXrg+St1lGpvE3zOObopllqfKR1/2QioMDfP+j037oI+N10 arURWJFPzIfOfSfo/XQHgqH8GBjcPjpdDxRNHt73JMlW0G4xg4SNXKzECxMr6zBv Z2tVSZIGr1qoAvxtr2xBPK9/v7FK+7EFcY1no/FHuMKcYlYCV2HM6GtRQ6W+TLov 1xU902Y3jeka7xKdLG7YoSqXMpUygJG+fzdJndRBC7L5GFBv/TPE0wOvE/l/6ifM WQFzsdshrUPuf2jWp14Q+7LhuK7/RSMzNEDhnKPbmgIIFU30sTiTobhT67ROND/U Gj0R99pK4s3deeSkHGE5DtqDhhkzL9cbaEcJa/whIIU7F3umOu6ZghHE0i1D4ZMY jJ2tFcBZXBoYwq9iQVbce6KLoCyX7661aHEHM7X6obHVySFJ3fyMe0KtvI3BjNet LHXsv4dkV8I8FRi3vareOyNP8X7VbkoaXWXWDQ44m+kIdS3NcK/UguxzTLaL4QRB BjBekH7rUFUAE3Av+ZSD =Tr2E -----END PGP SIGNATURE----- --xPLL5cPndR2UZ7Mw--