Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GCC 4.5 upgrade?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Helena
Veteran
Veteran


Joined: 02 Apr 2003
Posts: 1067
Location: Den Dolder, The Netherlands

PostPosted: Mon Dec 13, 2010 1:44 pm    Post subject: GCC 4.5 upgrade? Reply with quote

With the recently unmasked release of GCC 4.5 http://psykil.livejournal.com/340699.html I wonder whether it's worth recompiling my entire system (unstable tree). If so, should I use this upgrade script?
Back to top
View user's profile Send private message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1316
Location: Sweden

PostPosted: Tue Dec 14, 2010 8:54 am    Post subject: Reply with quote

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
View user's profile Send private message
rahulthewall
Veteran
Veteran


Joined: 01 Nov 2007
Posts: 1264
Location: Zürich

PostPosted: Tue Dec 14, 2010 10:47 am    Post subject: Reply with quote

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
View user's profile Send private message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1316
Location: Sweden

PostPosted: Tue Dec 14, 2010 11:09 am    Post subject: Reply with quote

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
View user's profile Send private message
rh1
Guru
Guru


Joined: 10 Apr 2010
Posts: 501

PostPosted: Tue Dec 14, 2010 12:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1316
Location: Sweden

PostPosted: Tue Dec 14, 2010 3:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
Helena
Veteran
Veteran


Joined: 02 Apr 2003
Posts: 1067
Location: Den Dolder, The Netherlands

PostPosted: Tue Dec 14, 2010 7:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1316
Location: Sweden

PostPosted: Tue Jan 18, 2011 9:05 pm    Post subject: Reply with quote

I know it's been a long time, but this is interesting :)
https://forums.gentoo.org/viewtopic-t-806781-start-325.html
Check dirtyepics third post.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum