My knoppix computer had some fs errors a while ago. Everything seems fine now, except that when i try to compile large packages, gcc (or ldd, or something else) segfaults after a while.

The problem is that i cannot recompile gcc, glibc or perl.

Is there an elegant way to start again with a fresh gcc? I thought about using the stage-x files but will that break my portage metadatas?