Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Using both gcc 3.2.1 and 2.95.3, how to emerge both?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
ebrostig
Bodhisattva
Bodhisattva


Joined: 20 Jul 2002
Posts: 3152
Location: Orlando, Fl

PostPosted: Tue Jan 14, 2003 9:27 pm    Post subject: Using both gcc 3.2.1 and 2.95.3, how to emerge both? Reply with quote

Folks.
According to the latest Gentoo Linux Newletter it is now possible to have both gcc 3.2.1 and 2.95.3 installed on the same machine and this has been the cause of the many problems seen with 3.2.1-r6 as outlined in Pitfalls of using GCC - 3.2.1-r6. However one thing I miss is how to actually emerge 2.95.3 when you already have 3.2.1 installed.
Why do I want to install the old version? I need to compile version 2.2.5 of glibc with the old compiler in order to see if I can get an Oracle 9.2.0.2 database up and running. I know how to compile and install the older version of glibc, but I'm not sure about the correct method of emerging the older gcc version.

Any ideas?

Erik
_________________
'Yes, Firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.'
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Tue Jan 14, 2003 9:49 pm    Post subject: Reply with quote

According to the Changelog, 2.95.3-r8 is the first 2.x to support the multiversion feature. I would pass that ebuild file to emerge.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
ebrostig
Bodhisattva
Bodhisattva


Joined: 20 Jul 2002
Posts: 3152
Location: Orlando, Fl

PostPosted: Tue Jan 14, 2003 10:05 pm    Post subject: Reply with quote

Ok, thanks rac.

I'm currently in the process of emerging it although the the -p result is a bit 'scary':
Code:

emerge -p gcc-2.95.3-r8.ebuild

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild    UD] sys-devel/gcc-2.95.3-r8 [3.2.1-r6]

I hope it will not delete my 3.2.1 installation :)

Shouldn't the ebuild system be changed to reflect that it is ok to have 2 versions installed?
As it is now, it looks like it will install 2.95.3 and delete 3.2.1.

Erik
_________________
'Yes, Firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.'
Back to top
View user's profile Send private message
!k
Tux's lil' helper
Tux's lil' helper


Joined: 11 Oct 2002
Posts: 93
Location: Minnesota

PostPosted: Tue Jan 14, 2003 11:58 pm    Post subject: Reply with quote

ebrostig wrote:
I'm currently in the process of emerging it although the the -p result is a bit 'scary':


How did you make out?! I'm thinking of doing the same tonight, wish I didn't need the old. Or I suppose I could wish I didn't want the new.
Back to top
View user's profile Send private message
ebrostig
Bodhisattva
Bodhisattva


Joined: 20 Jul 2002
Posts: 3152
Location: Orlando, Fl

PostPosted: Wed Jan 15, 2003 12:14 am    Post subject: Reply with quote

Both versions are emerged.
They live side-by-side and is protected in Portage.

I used gcc-config to swicth between the 2 versions.

I was also able to compile glibc-2.2.5 with gcc 2.95.3. I have some problems with co-existance between glibc-2.2.5 and 2.3.1 which I'm currently working on solving.

This may take some time since I do this in between my *real* work :) I will keep people posted and probably even write a FAQ once I know it works ok.

Erik
_________________
'Yes, Firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.'
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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