On Fri, Jun 16, 2017 at 9:06 AM, Eli Zaretskii <e...@gnu.org> wrote: > > From: Orgad Shaneh <org...@gmail.com> > > Date: Thu, 15 Jun 2017 22:33:30 +0300 > > > > When I abort a build, make fails to unlink the intermediate files. I > previously used 4.1.90, and I don't remember > > having these problems. > > > > This happens even for a single job (without -j). > > > > Output: > > main.cpp > > mingw32-make[1]: *** Deleting file 'obj/main.o' > > mingw32-make[1]: unlink: obj/main.o: Permission denied > > ^CTerminate batch job (Y/N)? y > > mingw32-make[1]: *** [Makefile:7178: obj/main.o] Error 255 > > Terminate batch job (Y/N)? y > > mingw32-make: *** [Makefile:5574: app.exe] Error 255 > > Why does it say "Terminate batch job (Y/N)?" -- what batch job is > involved in this? Do you have recipe commands which invoke cmd.exe in > a way that requires Make to go via temporary batch files, perhaps? If > so, it's possible that this is the (indirect) reason for the problem. > Do you see similar problems with commands that don't need batch files? >
My build step is `@echo $< && g++ -c -o obj/unlink-test.o unlink-test.cpp`, so make automatically creates a batch file to run that. I tried removing the echo, and just invoke g++ but it's the same... - Orgad
_______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make