Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GCC 4.1.1 and glibc 2.4 going stable!
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3, 4, 5  Next  
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
loki99
Advocate
Advocate


Joined: 10 Oct 2003
Posts: 2056
Location: Vienna, €urope

PostPosted: Thu Aug 24, 2006 5:36 am    Post subject: GCC 4.1.1 and glibc 2.4 going stable! Reply with quote

GWN wrote:
As you can guess by the title, the Gentoo base project has announced that sys-devel/gcc-4.1.1 and sys-libs/glibc-2.4-r3 will be going stable on both amd64 and x86 this week because of their use in the upcoming 2006.1 release.

Quote:
This also marks a major upgrade of the GNU Compiler Collection (GCC) to version 4.1.1 on Gentoo. This upgrade requires the user to perform certain tasks outlined in the GCC Upgrading Guide, which has recently been updated with information on GCC 4.1.1 for Gentoo users.

Users who do not wish to upgrade to GCC 4.1.1 will require a few more steps to ensure their systems are not upgraded.

I wonder how many people will update their GCC without checking the docs, just to complain that the devs broke his/her box. :P
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2776
Location: Oceanside, Ca

PostPosted: Thu Aug 24, 2006 5:56 am    Post subject: Reply with quote

Yaa then they'll bitch at their User Rep to protect them from such high handed actions :P
_________________
An A-Z Index of the Linux BASH command line
Back to top
View user's profile Send private message
Q-collective
Veteran
Veteran


Joined: 22 Mar 2004
Posts: 1923

PostPosted: Thu Aug 24, 2006 7:05 am    Post subject: Reply with quote

Yeah right ;)
Back to top
View user's profile Send private message
mark_alec
Bodhisattva
Bodhisattva


Joined: 11 Sep 2004
Posts: 6066
Location: Melbourne, Australia

PostPosted: Thu Aug 24, 2006 8:00 am    Post subject: Reply with quote

I would like to thank those that have worked on porting all (hopefully) the packages in the tree to a version compatible with GCC 4.1. I hope the upgrade goes as smoothly for me as the 3.3 :arrow: 3.4 one went.
_________________
www.gentoo.org.au || #gentoo-au
Back to top
View user's profile Send private message
Paapaa
l33t
l33t


Joined: 14 Aug 2005
Posts: 955
Location: Finland

PostPosted: Thu Aug 24, 2006 8:11 am    Post subject: Reply with quote

Great job and thanks to all developers involved! Nice to get Gentoo to modern 4.1. age.
Back to top
View user's profile Send private message
Pablo_Escobar
n00b
n00b


Joined: 15 Mar 2006
Posts: 25
Location: Poznan, Poland

PostPosted: Thu Aug 24, 2006 8:39 am    Post subject: Reply with quote

I'm anxious to see it coming stable in the portage.
GWN said "this week", not much of it left :)
_________________
emerge -C signature
Back to top
View user's profile Send private message
chicha
n00b
n00b


Joined: 27 May 2006
Posts: 11
Location: France - Nice

PostPosted: Thu Aug 24, 2006 9:00 am    Post subject: Reply with quote

Hello all !

I have a little question and maybe some of you could help about this :

In the General Upgrade Instructions section (the appropriate section for migrating from gcc-3.4 to gcc-4.1 or greater) it is mentionned to rebuild the libtool. Ok for me. But it is also advised to rebuild system and world to "make use of the new compiler".
Why rebuild system and world in this case ? Is it just to benefit from gcc-4 new features or is it REALLY IMPORTANT to maintain the stability of my whole system ?

also can a library compiled with gcc-4 still be used by a software compiled with gcc-3.4 ?

Thank you very much for your help !
Cheers,

Chicha.
Back to top
View user's profile Send private message
Voltago
Advocate
Advocate


Joined: 02 Sep 2003
Posts: 2482
Location: Hinter den Materiequellen

PostPosted: Thu Aug 24, 2006 9:05 am    Post subject: Re: GCC 4.1.1 and glibc 2.4 going stable! Reply with quote

loki99 wrote:
I wonder how many people will update their GCC without checking the docs, just to complain that the devs broke his/her box. :P

Well, maybe the devs should add a new option to portage for important upgrades like this. I'm thinking of something along the lines of
Code:
emerge -u --ireallyreallyreadthedocsandknowthatthisupdatewillbreakmymachineandciaranmwillbeatmeupifididnt world
Back to top
View user's profile Send private message
swimmer
Veteran
Veteran


Joined: 15 Jul 2002
Posts: 1260
Location: Netherlands

PostPosted: Thu Aug 24, 2006 9:17 am    Post subject: Reply with quote

Wouldn't it be nice if the GCC Upgrading Guide would take account of the new GCC 4.1.1?

I'm sure that the steps are the same but it would read and look nicer to the people who get there for the first time ...

Just a thought
swimmer
Back to top
View user's profile Send private message
Paapaa
l33t
l33t


Joined: 14 Aug 2005
Posts: 955
Location: Finland

PostPosted: Thu Aug 24, 2006 9:33 am    Post subject: Reply with quote

swimmer wrote:
Wouldn't it be nice if the GCC Upgrading Guide would take account of the new GCC 4.1.1?


Did you notice this red box:

Quote:
It should be noted that upgrading from GCC-3.4 to GCC-4.1 or greater still requires you to follow the general upgrading instructions, as GCC-3.4 and GCC-4.1 use slightly different ABIs.


The question is not if something is mentioned, the question is how big font, how ugly colors and how much blinking should be used so the users actually read it :D (At least I think the above is clear enough.)
Back to top
View user's profile Send private message
swimmer
Veteran
Veteran


Joined: 15 Jul 2002
Posts: 1260
Location: Netherlands

PostPosted: Thu Aug 24, 2006 9:48 am    Post subject: Reply with quote

Please don't blame me!

Of course I noticed the red box and I read it - it was more the feeling that this was the *only* place where 4.1 is mentioned. *I* would find it helpful if there is a dedicated section for the upgrade from 3.4 to 4.1 ... it just looks better and helps the people who are not so sure how to work out this upgrade when they come to this site.

But if you want to make fun of it go on ...

Greetz
swimmer
Back to top
View user's profile Send private message
loki99
Advocate
Advocate


Joined: 10 Oct 2003
Posts: 2056
Location: Vienna, €urope

PostPosted: Thu Aug 24, 2006 11:34 am    Post subject: Re: GCC 4.1.1 and glibc 2.4 going stable! Reply with quote

Voltago wrote:
loki99 wrote:
I wonder how many people will update their GCC without checking the docs, just to complain that the devs broke his/her box. :P

Well, maybe the devs should add a new option to portage for important upgrades like this. I'm thinking of something along the lines of
Code:
emerge -u --ireallyreallyreadthedocsandknowthatthisupdatewillbreakmymachineandciaranmwillbeatmeupifididnt world

You are right. Something like that is definately needed and it is being worked on, as far as I know. At least there is a Glep for it and it just has been discussed in the july council meeting. Here are the logs if you are interested.

But since one has to actively switch to the new GCC, I hope this one will not be that much of a hassel.

#gentoo-x86 wrote:
"If you install a newer version of GCC, the system will not switch over to use it automatically. You'll have to explicitly request the change because the migration process might require some additional steps. If you decide not to switch, Portage will continue to use older version of your compiler until you change your mind, or remove the old compiler from the system."
Back to top
View user's profile Send private message
Paapaa
l33t
l33t


Joined: 14 Aug 2005
Posts: 955
Location: Finland

PostPosted: Thu Aug 24, 2006 11:52 am    Post subject: Reply with quote

swimmer wrote:
Of course I noticed the red box and I read it - it was more the feeling that this was the *only* place where 4.1 is mentioned. *I* would find it helpful if there is a dedicated section for the upgrade from 3.4 to 4.1 ... it just looks better and helps the people who are not so sure how to work out this upgrade when they come to this site.


First they clearly tell (in the red box) that if you update from 3.4 to 4.1 you need to follow the general upgrading instructions. And below that there are the general upgrading instructions. Having yet another identical section dedicated to 3.4 to 4.1 serves no purpose IMO. And I think a red box with "Warning" is as clear as it gets. But yes, that is just my opinion.
Back to top
View user's profile Send private message
anello
Guru
Guru


Joined: 17 Jul 2005
Posts: 557
Location: EU -> DE -> Stuttgart

PostPosted: Thu Aug 24, 2006 12:31 pm    Post subject: Reply with quote

Does anybody know when exactly this gcc upgrade will be available into portage? Cause I'm just about to add one gentoo system to productive environment and I want to upgrade it before I'll do that, but need to give my associates some kind of schedule.
_________________
Antonino Catinello | http://catinello.eu
Back to top
View user's profile Send private message
loki99
Advocate
Advocate


Joined: 10 Oct 2003
Posts: 2056
Location: Vienna, €urope

PostPosted: Thu Aug 24, 2006 1:00 pm    Post subject: Reply with quote

anello wrote:
Does anybody know when exactly this gcc upgrade will be available into portage?

It is already; you just have to unmask it in your keywords.
Back to top
View user's profile Send private message
anello
Guru
Guru


Joined: 17 Jul 2005
Posts: 557
Location: EU -> DE -> Stuttgart

PostPosted: Thu Aug 24, 2006 1:15 pm    Post subject: Reply with quote

loki99 wrote:
It is already; you just have to unmask it in your keywords.


:P Yeah, you're completly right! But that's not the point, I'd just like to know.

PS: I think I have to rephrase my question ... Does anybody know when exactly this gcc upgrade will be available into STABLE? ;)
_________________
Antonino Catinello | http://catinello.eu
Back to top
View user's profile Send private message
RoundsToZero
Guru
Guru


Joined: 17 Nov 2003
Posts: 478
Location: New York, NY

PostPosted: Thu Aug 24, 2006 5:11 pm    Post subject: Reply with quote

Paapaa wrote:
swimmer wrote:
Wouldn't it be nice if the GCC Upgrading Guide would take account of the new GCC 4.1.1?


Did you notice this red box:

Quote:
It should be noted that upgrading from GCC-3.4 to GCC-4.1 or greater still requires you to follow the general upgrading instructions, as GCC-3.4 and GCC-4.1 use slightly different ABIs.


The question is not if something is mentioned, the question is how big font, how ugly colors and how much blinking should be used so the users actually read it :D (At least I think the above is clear enough.)



So does that mean I still revdep-rebuild against libstdc++.so.5, or do I now revdep-rebuild against libstdc++.so.6? The red box says follow the general instructions, which include "emerge -eav system" and "emerge -eav world" for the purpose of "[making] use of the new compiler." I don't want to recompile everything just for the heck of it, I just want to make sure things don't break. Previously that just meant C++ stuff. I found some references to libstdc++.so.7, but I'm not sure if that's part of GCC 4.1 or not.
Back to top
View user's profile Send private message
Paapaa
l33t
l33t


Joined: 14 Aug 2005
Posts: 955
Location: Finland

PostPosted: Thu Aug 24, 2006 5:40 pm    Post subject: Reply with quote

RoundsToZero wrote:
So does that mean I still revdep-rebuild against libstdc++.so.5, or do I now revdep-rebuild against libstdc++.so.6? The red box says follow the general instructions, which include "emerge -eav system" and "emerge -eav world" for the purpose of "[making] use of the new compiler." I don't want to recompile everything just for the heck of it, I just want to make sure things don't break. Previously that just meant C++ stuff. I found some references to libstdc++.so.7, but I'm not sure if that's part of GCC 4.1 or not.


Well, according to the guide you should do as told in section 2 - if upgrading from 3.4 to 4.1. I trust that you really must compile everything (first system and then world).
Back to top
View user's profile Send private message
Carlo
Developer
Developer


Joined: 12 Aug 2002
Posts: 3356

PostPosted: Thu Aug 24, 2006 6:00 pm    Post subject: Reply with quote

chicha wrote:
Why rebuild system and world in this case ? Is it just to benefit from gcc-4 new features or is it REALLY IMPORTANT to maintain the stability of my whole system ?

When the GCC guys change the ABI and you want to switch to the new compiler, you have to rebuild your whole system. There is no way around it. Trying to build some application using libraries built with compilers having a different ABI results in build errors. So yes, it's R E A L L Y IMPORTANT.

RoundsToZero wrote:
So does that mean I still revdep-rebuild against libstdc++.so.5, or do I now revdep-rebuild against libstdc++.so.6?

That was the fix for the C++ ABI change from GCC 3.3 from 3.4. No, this is not the way to update to GCC 4.1.1
_________________
Please make sure that you have searched for an answer to a question after reading all the relevant docs.
Back to top
View user's profile Send private message
forkboy
Apprentice
Apprentice


Joined: 24 Nov 2004
Posts: 200
Location: Blackpool, UK

PostPosted: Thu Aug 24, 2006 6:45 pm    Post subject: Reply with quote

I've read/heard/been told that to upgrade properly you need to
Code:
emerge -e system
emerge -e system
emerge -e world
emerge -e world

Is this really necessary? Or will it be fine to just follow the guide?
Back to top
View user's profile Send private message
playfool
l33t
l33t


Joined: 01 Jun 2004
Posts: 688
Location: Århus, Denmark

PostPosted: Thu Aug 24, 2006 7:24 pm    Post subject: Reply with quote

forkboy wrote:
I've read/heard/been told that to upgrade properly you need to
Code:
emerge -e system
emerge -e system
emerge -e world
emerge -e world

Is this really necessary? Or will it be fine to just follow the guide?


The guide is in place for a reason
Back to top
View user's profile Send private message
Paapaa
l33t
l33t


Joined: 14 Aug 2005
Posts: 955
Location: Finland

PostPosted: Thu Aug 24, 2006 7:48 pm    Post subject: Reply with quote

forkboy wrote:
I've read/heard/been told that to upgrade properly you need to
Code:
emerge -e system
emerge -e system
emerge -e world
emerge -e world

Is this really necessary? Or will it be fine to just follow the guide?


This is exactly the reason why I think Portage should handle all this. The user shouldn't need to know/worry about when to recompile and what to recompile and in what order etc.
Back to top
View user's profile Send private message
Dralnu
Veteran
Veteran


Joined: 24 May 2006
Posts: 1919

PostPosted: Thu Aug 24, 2006 11:53 pm    Post subject: Reply with quote

I skipped a good porition of the thread, but wanted to chim in with this:

Unless Portage updates your version of GCC automatically (which I doubt), you'll probably get 4.1.1, and then keep using the old 3.4.x gcc version unless you run gcc-config.

edit:
I know this because I upgraded to gcc-4.1.1 not a week ago (ironic, isn't it? lol)
_________________
The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
Back to top
View user's profile Send private message
chicha
n00b
n00b


Joined: 27 May 2006
Posts: 11
Location: France - Nice

PostPosted: Fri Aug 25, 2006 7:26 am    Post subject: Reply with quote

Carlo wrote:

When the GCC guys change the ABI and you want to switch to the new compiler, you have to rebuild your whole system. There is no way around it. Trying to build some application using libraries built with compilers having a different ABI results in build errors. So yes, it's R E A L L Y IMPORTANT.


Thank you very much Carlo ! This is exactly the info I needed !
Cheers,

Chicha
Back to top
View user's profile Send private message
jamapii
Guru
Guru


Joined: 16 Sep 2004
Posts: 505

PostPosted: Fri Aug 25, 2006 5:29 pm    Post subject: Reply with quote

Quote:
It should be noted that upgrading from GCC-3.4 to GCC-4.1 or greater still requires you to follow the general upgrading instructions, as GCC-3.4 and GCC-4.1 use slightly different ABIs.


I'm looking for information about these ABI changes, but can't find any (only about MIPS and SPARC in 3.3 -> 3.4). Does anyone have a link?
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Goto page 1, 2, 3, 4, 5  Next
Page 1 of 5

 
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