Today I was updating my machine when there was a power cut. Following restoration of the power Firefox and Thunderbird would not compile, with the following error:
/usr/lib64/libhunspell-1.3.so: file not recognized: File format not recognized
Browsing Google and the Gentoo forums it seemed likely that a file had become corrupted. Most material pointed towards the ccache, which (I think) you’d clear as follows:
ccache -c
I don’t actually have ccache installed though, so it wasn’t that.
Next, I figured that removing /var/tmp/portage may help:
rm -rf /var/tmp/portage
It didn’t.
Turned out I needed to recompile hunspell. After that Firefox and Thunderbird updated just fine.
emerge -1 hunspell