To upgrade gcc please follow the Gcc upgrading guide.
As it turned out in the discussion before, some questions are unclear for some users, so i'll try to make it clear here:
I want to upgrade from gcc 3.4 to gcc 4.1 - which instructions do i use?
Please follow the general instructions.
Do i really have to recompile everything?
You really really should do that, as it is the only way to guarantee your system is in a sane state.
Please also read this explanation by wolf31o2.
emerge -e world/system failed, do i have to recompile from the beginning?
I would like to stop emerge -e for a while, can i do that?
If emerge terminates due to an error or because you (accidentially or intentionally) stop it, you can run
Code: Select all
emerge --resumeIf emerge stops due to a failure, try
Code: Select all
emerge --resume --skipfirstI want to do it using revdep-rebuild like when i upgraded from 3.3 to 3.4
Using revdep-rebuild is not as safe as really rebuilding all packages, and only worked for the 3.3->3.4 transition. It is not intended for the update to 4.1.
If you upgrade from gcc 3.3 to 4.1 it may also fail terribly using revdep-rebuild, do a full emerge -e system and world.
Again, please also read this explanation by wolf31o2.
I heard that i should do
Code: Select all
emerge -e system
emerge -e system
emerge -e world
emerge -e worldThis is not necessary, just do it once as mentioned in the upgrade guide.
I don't want to switch to gcc 4.1
This is possible and explained in the GWN
However, please be aware that older compilers are mostly unsupported as far bug reports are concerned.
So what about glibc?
Your new glibc will be installed during emerge -e system.
As with all glibc updates, once you've upgraded you should not downgrade glibc to a lower version after the upgrade.
edit: Actually glibc will refuse to downgrade anyway as this is checked in the ebuild.
If you already upgraded your gcc to 4.1 before it hit stable and only want to upgrade glibc, you don't need to recompile your system, just install the new version.
If you have further questions about the update, please post them here.






