I haven't included a Category as, although it's a
binutil, it's happening from within a make. I'm
including the text from the readme.txt in the
attached zip file below:
***** begin inclusion *****
This is a bug I found when using rm.exe from the GNU-
Win32 distribution. I
then switched to Msys and found the bug still present
Included is a zip file of a small test make
directory. It builds a copyright
object for including in a product and instantiates a
directory hierarchy for
that same product.
In the makefile there is a fairly standard "clean"
target. It simply
removes the product directory hierarchy and the .o
and .exe files in the
copyright directory. It uses rm -rf to do this
normally. For illustrative
purposes I've added the -v switch. Also for
illustrative purposes I've added
a MinGWversions target and "which <utilname>"
and "<utilname> --version"
commands at relevant places. None of this is present
in the "normal" makefile,
but does not influence the outcome. I've added this
info in an attempt to be
compliant with the guidelines for submission stated
In the same directory as the makefile is a
make_all.txt and a make_clean.txt.
These files are a capture of the command prompt
output on my system. As you
can see in the make_clean.txt file, rm fails to
delete a subdirectory, obj,
with a "permission denied" reason. If "mingw32-make
clean" is executed again,
the directory and its parent are then removed as
Is there something I'm doing wrong? I do not get the
same result if I just
execute rm -rvf from the command line (always).
***** end inclusion *****
Log in to post a comment.