delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/01/03/16:51:11

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.9 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,SPF_NEUTRAL,URI_HEX
X-Spam-Check-By: sourceware.org
Date: Thu, 3 Jan 2013 13:50:50 -0800 (PST)
From: cpow <christopher DOT s DOT pow AT gmail DOT com>
To: cygwin AT cygwin DOT com
Message-ID: <1357249850421-95185.post@n5.nabble.com>
Subject: cygwin make fails when calling mkdir in Windows 7
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

I'm using make package version 3.82.90-1.  cygwin1.dll version is 1.7.13.

Occasionally make will fail with the error:

make[1]: *** No rule to make target `<path>`, needed by `<rule>`.  Stop.

<path> and <rule> are not terribly relevant but <path> is under
/cygdrive/c/...

I started having this problem on upgrading to Windows 7.  I've tried the
"solutions" I've found elsewhere such as running Cygwin as "administrator"
and making sure I have local administrator rights on my laptop--which I do. 
However, I still have this problem.

Executing:

mkdir -pv <path>

after the make failure and re-issuing the make command causes the build to
progress past the point of this fault, as expected.  Soon, though, it
stumbles when trying to create another path.

Interestingly make doesn't seem to fail when creating the first level of a
path hierarchy.  For example, if the makefile were trying to create:

folder1
folder1/subfolder1
folder1/subfolder2

folder1 is created but the errors occur when it hits the rule trying to
create the subfolderN's.

ls -al shows the permissions for folder1 and subfolder1 are identical even
though one was created by make and one was created by me with mkdir:

drwxr-xr-x+ 1 e198614        Domain Users      0 Jan  3 15:45 

I'd really like to know if there's a solution to this problem other than
having to manually mkdir the paths that make seems to fail to be able to
make.  It slows down my automated build quite dramatically!



--
View this message in context: http://cygwin.1069669.n5.nabble.com/cygwin-make-fails-when-calling-mkdir-in-Windows-7-tp95185.html
Sent from the Cygwin list mailing list archive at Nabble.com.

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019