delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/03/18/14:05:58

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <4.3.1.2.20020318132846.02170948@pop.ma.ultranet.com>
X-Sender: lhall AT pop DOT ma DOT ultranet DOT com
X-Mailer: QUALCOMM Windows Eudora Version 4.3.1
Date: Mon, 18 Mar 2002 13:31:14 -0500
To: Peter Buckley <peter DOT buckley AT cportcorp DOT com>, cygwin AT cygwin DOT com
From: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
Subject: Re: debugging an rm/sh/make/cygwin corner case
In-Reply-To: <3C962F7E.4040706@cportcorp.com>
Mime-Version: 1.0

At 01:18 PM 3/18/2002, Peter Buckley wrote:
>I am hoping some people can give me ideas on how to debug a problem I am having with rm when invoked from cygwin's make.exe, which is using sh as its shell. Basically, when I call "rm -r -f" from a makefile, it gives me errors about "Permission Denied, Directory Not Empty". This is the same error that I get when I try to manually rm a directory when I have a separate shell cd'd there. I think that somehow make or sh are cd'ed into the directory I am trying to rm, so it cannot be removed.
>
>I am a newbie at debugging, so I am looking for specific ideas to try to narrow down the problem to one particular thing; i.e. sh, make, rm, or cygwin1.dll. I have tried replacing rm and the cygwin1.dll with different versions, but I get the same error. I also tried replacing sh with bash, same error. I plan on trying different versions of make and sh, but if anyone can suggest what to strace or which files I can plug printfs into, I would really appreciate it.


Have you tried creating the smallest makefile that will reproduce the problem 
and then running that under strace?  Make sure nothing else (not even a 
Windows process) has the directory open.



Larry Hall                              lhall AT rfk DOT com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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