From: SourceForge.net <no...@so...> - 2006-06-30 17:19:39
|
Bugs item #1514721, was opened at 2006-06-29 18:02 Message generated for change (Comment added) made by earnie You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1514721&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. >Category: non-mingw >Group: component package >Status: Pending Resolution: None Priority: 5 Submitted By: Dave Silvia (dsilvia) >Assigned to: Earnie Boyd (earnie) Summary: Using recursive rm in makefile fails Initial Comment: 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 (not surprising!;). 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 at: http://www.mingw.org/bugs.shtml 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 should be. 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). thx, Dave S. <ds...@mc...> ***** end inclusion ***** ---------------------------------------------------------------------- >Comment By: Earnie Boyd (earnie) Date: 2006-06-30 13:19 Message: Logged In: YES user_id=15438 Firstly, make-3.80 is outdated. I would like at this further if you test and supply the results from make-3.81 which build OOB with MSYS and MinGW or with VB your choice. However, I'm thinking that the files in your directories are not being removed because they are still open. Windows doesn't allow a file to be removed while in use. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1514721&group_id=2435 |