[Top][All Lists]

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

Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files

From: Michael S. Tsirkin
Subject: Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files
Date: Wed, 22 May 2013 11:52:19 +0300

On Wed, May 22, 2013 at 10:43:45AM +0200, Paolo Bonzini wrote:
> Il 22/05/2013 10:38, Peter Maydell ha scritto:
> > On 22 May 2013 09:37, Michael S. Tsirkin <address@hidden> wrote:
> >> It's my fault for running -rc kernels all the time I guess, I get
> >> crashes kind of often, and losing more time on make clean
> >> on top of reboot annoys me.
> >> But we actually could make it robust, even against OS crash. Output to a
> >> temporary file then rename.  This hack won't be needed then.
> > 
> > I think that would be better implemented in the compiler/linker :-)
> > Alternatively, stop doing compiles on horribly unstable kernels.
> Any filesystem with delayed writes can do this if you have a power loss.
> But I agree that this patch doesn't solve the problem.  For example, if
> you get stale files in the ccache directory even zapping the build
> directory won't do.
> Paolo

The fix is simple here: don't use ccache.  I don't.

In fact, from what I saw people use ccache to work around makefile bugs,
so they can do make clean; make and have it finish quickly.

Any other examples?


reply via email to

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