Linux 3.10-rc7

Linus Torvalds torvalds at linux-foundation.org
Sat Jun 29 17:11:34 PDT 2013


On Sat, Jun 29, 2013 at 4:52 PM, Sergey Meirovich <rathamahata at gmail.com> wrote:
>
> There was overheating issue, that caused forced power off in the
> middle of the first compile.

Ok, then the thing is easily explained by simply the filesystem being
shut down in an incomplete state. Sounds like the mkregtable binary
had been created but not written out, and the kernel (or rather,
shell) considers an empty executable to the same as "true", so after
the machine came back, that counts as a "successful" binary, it just
obviously doesn't write anything to stdout, which in turn then
explains the empty r200_reg_safe.h file.

So basically it boils down to: if the machine shuts down in the middle
of a build, without "make" having time to clean up partially built
files etc, you can get into strange inconsistent build trees and you
might want to do a "git clean -dqfx" to get rid of everything
generated.

But in your case it was probably just that one file. Might be a good
idea to do a clean rebuild anyway.

(Side note: I've seen 'ccache' have odd stale caches too after unclean
shutdowns, and then it's not sufficient to clean the build tree, you
need to do "ccache -C" too).

            Linus


More information about the dri-devel mailing list