When upgrading GCC, my system invariably breaks during the unmerge of the old version. Example: System gcc: 4.7.3 upgrading gcc-4.8.2 to 4.8.3 during the final merge stage: * The 'postrm' phase of the 'sys-devel/gcc-4.8.1-r1' package has failed * with exit value 1. -- dynamic linking broken, system unusable Which is because the dynamic linking still refers to the now-unmerged files:: # busybox cat /etc/ld.so.conf.d/05gcc-x86_64-pc-linux-gnu.conf /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.1/32 /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.1 /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/32 /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3 Removing the paths referring to 4.8.1 (luckily busybox is statically linked), then running ldconfig makes the system usable again. This should be done automatically and PRIOR to unmerging this GCC version.
*** This bug has been marked as a duplicate of bug 433161 ***