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 <m...@redhat.com> 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? -- MST