bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unlink failure on abort


From: Orgad Shaneh
Subject: Re: Unlink failure on abort
Date: Fri, 16 Jun 2017 13:17:12 +0300

On Fri, Jun 16, 2017 at 9:06 AM, Eli Zaretskii <address@hidden> wrote:
> From: Orgad Shaneh <address@hidden>
> 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 address@hidden $< && 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]