This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

debugging an rm/sh/make/cygwin corner case


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.

TIA,
Peter


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]