View previous topic :: View next topic |
Author |
Message |
Helena Veteran
Joined: 02 Apr 2003 Posts: 1114 Location: Den Dolder, The Netherlands
|
|
Back to top |
|
|
Letharion Veteran
Joined: 13 Jun 2005 Posts: 1344 Location: Sweden
|
Posted: Tue Dec 14, 2010 8:54 am Post subject: |
|
|
Whether or not it's "worth it", is debatable. I'm running 4.5.1, but do I actually _notice_ any difference? No. I upgrade because I'm a "latest and greatest" addict and I hope that I will be able to file bug reports useful for others.
In case you do upgrade, I think you should follow the official guide:
http://www.gentoo.org/doc/en/gcc-upgrading.xml |
|
Back to top |
|
|
rahulthewall Veteran
Joined: 01 Nov 2007 Posts: 1264 Location: Zürich
|
Posted: Tue Dec 14, 2010 10:47 am Post subject: |
|
|
Isn't it recommended to recompile world after a major gcc upgrade? (eg, 4.4.x -> 4.5.x would qualify as a major upgrade, according to me). _________________ Who shall guard the guards? |
|
Back to top |
|
|
Letharion Veteran
Joined: 13 Jun 2005 Posts: 1344 Location: Sweden
|
Posted: Tue Dec 14, 2010 11:09 am Post subject: |
|
|
It is. Which's why I pointed to the official guide, that says
Quote: | ...will rebuild your whole system to ensure that everything has been rebuilt with your new compiler, and therefore safer |
|
|
Back to top |
|
|
rh1 Guru
Joined: 10 Apr 2010 Posts: 501
|
Posted: Tue Dec 14, 2010 12:18 pm Post subject: |
|
|
The guide was last updated in July of 2008. It's my understanding that you don't really need to recompile the whole system anymore and can just let it gradually update. |
|
Back to top |
|
|
Letharion Veteran
Joined: 13 Jun 2005 Posts: 1344 Location: Sweden
|
Posted: Tue Dec 14, 2010 3:01 pm Post subject: |
|
|
rh1 wrote: | The guide was last updated in July of 2008. |
Good point. The script thread seems (mostly) even older though. I followed the official guide when I upgraded my systems to 4.5.1.
rh1 wrote: | It's my understanding that you don't really need to recompile the whole system anymore and can just let it gradually update. |
This is actually my understanding as well, and GCC _should_ produce an identical ABI despite version differences, right?
At one occasion however, involving the nvidia-cuda-* packages, different compilers turned out to not be true for me, so I didn't want to give such advice when I don't really understand the ramifications. Most likely you wouldn't need to worry about this when it comes to "normal" packages, and nvidia's largely binary stuff is probably an exception. |
|
Back to top |
|
|
Helena Veteran
Joined: 02 Apr 2003 Posts: 1114 Location: Den Dolder, The Netherlands
|
Posted: Tue Dec 14, 2010 7:04 pm Post subject: |
|
|
Letharion wrote: | ... I followed the official guide when I upgraded my systems to 4.5.1... | Which part? Actually the guide is both too old and contains too many sidetracks imho. What I would like to see is a few clear global steps which are detailed later. I remember a lot of forum discussions a couple of years ago e.g. around the "Jackass" release. So the basic idea always is:- install the new compiler version
- recompile the compiler toolchain
- recompile the entire installation
Elaborating on this, the guide mentions the following steps for the first phase (install the new compiler version): Code: | emerge -1 gcc
gcc-config <something, should be clear when entering gcc-config -l>
env-update && source /etc/profile
emerge -1 libtool
fix_libtoolfiles.sh |
Correct? The debate then should focus on the second step (recompile the compiler toolchain). While the guide simply identifies "system" as the compiler toolchain, in earlier discussions there was convincing (at least to me) argumentation that it should be restricted to- linux-headers
- glibc
- binutils
- gcc
The third and final step (recompile the entire installation) is sometimes referred to as optional. By the way, notice that I do not refer to the upgrade script mentioned in my original post, since that is much too complex for me to discuss (I am willing to use it if it's the best...). |
|
Back to top |
|
|
Letharion Veteran
Joined: 13 Jun 2005 Posts: 1344 Location: Sweden
|
|
Back to top |
|
|
|