| View previous topic :: View next topic |
| Author |
Message |
JWood48 n00b

Joined: 14 Feb 2003 Posts: 2
|
Posted: Mon Mar 10, 2003 9:51 pm Post subject: gcc 2.95.x and 3.2.2 |
|
|
Hi
I have gcc-3.2.2 installed and it's working fine, but i also need gcc-2.95.3. I have looked trough the discussion forums and found that i should:
| Code: | | emerge sys-devel/gcc-2.95.3-r8.ebuild |
and choose the gcc-version with gcc-config.
When i try emerge -p i get:
| Code: |
emerge -p sys-devel/gcc-2.95.3-r8.ebuild
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild U ] sys-devel/gcc-2.95.3-r8 [3.2.2-r1]
|
Its the update tag i'm worried about... will this permanently switch the compilerversion to 2.95* or should i first emerge gcc 2.95* and then emerge gcc 3.2* again or can everything be done from gcc-config.... I dont want my system to start compiling new programs with gcc-2.95* by default.
I just need gcc-2.95* on special compilerjobs and gcc-3.2.2 should be the default for my system.
BTW. GENTOO ROCKS  |
|
| Back to top |
|
 |
cederberg Guru


Joined: 23 Jan 2003 Posts: 349 Location: Stockholm / Sweden
|
Posted: Mon Mar 10, 2003 10:08 pm Post subject: |
|
|
I think that gcc uses different slots for gcc 2.x and 3.x, so you should be safe. See http://forums.gentoo.org/viewtopic.php?p=230621#230621 for some discussion on this.
I havn't been able to find a good discussion about which packages uses slots, but there is a short mentioning of the concept in the Portage Manual. |
|
| Back to top |
|
 |
ebrostig Bodhisattva


Joined: 20 Jul 2002 Posts: 3152 Location: Orlando, Fl
|
Posted: Mon Mar 10, 2003 10:09 pm Post subject: |
|
|
You can safely emerge 2.9.5.3.
I have both versions installed on my machine and I have set 3.2.2 as the default one.
When you need to compile an application with 2.95, all you have to do is:
| Code: |
gcc-config i686-pc-linux-gnu-2.95.3
env-update && source /etc/profile
|
Then when you are done, swicth back with:
| Code: |
gcc-config i686-pc-linux-gnu-3.2.2
env-update && source /etc/profile
|
Hope this helps.
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 |
|
 |
JWood48 n00b

Joined: 14 Feb 2003 Posts: 2
|
Posted: Tue Mar 11, 2003 12:13 am Post subject: |
|
|
Thanks
Its working now with both gcc's  |
|
| Back to top |
|
 |
Woollhara n00b


Joined: 19 Jun 2002 Posts: 55 Location: London, UK
|
Posted: Sat Mar 15, 2003 10:17 am Post subject: Re-compiling GCC 2.95 with itself? |
|
|
Hi
I have GCC 3.2.2 installed and need 2.95 as well.
My question is:
If I emerge GCC 2.95 it will be compiled with GCC 3.2.2. Does that mean I then need to switch to GCC 2.95 and re-emerge it so it gets compiled with itself (a bit like stage 1)? Or can I safely use it after it's compiled with GCC 3.2.2?
Thanks _________________ /Woollhara |
|
| Back to top |
|
 |
cederberg Guru


Joined: 23 Jan 2003 Posts: 349 Location: Stockholm / Sweden
|
Posted: Sun Mar 16, 2003 7:57 am Post subject: Re: Re-compiling GCC 2.95 with itself? |
|
|
| Woollhara wrote: | | If I emerge GCC 2.95 it will be compiled with GCC 3.2.2. Does that mean I then need to switch to GCC 2.95 and re-emerge it so it gets compiled with itself (a bit like stage 1)? Or can I safely use it after it's compiled with GCC 3.2.2? |
I havn't tried this myself, but I'm almost certain you can use it directly. The reason for gcc being compiled twice in the bootstrap is to take advantage of the fresh glibc (and friends), and also making sure that is gets compiled with your optimization settings (the first compile only uses some of them IIRC). |
|
| Back to top |
|
 |
rac Bodhisattva


Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Sun Mar 16, 2003 11:20 pm Post subject: Re: Re-compiling GCC 2.95 with itself? |
|
|
| Woollhara wrote: | | Does that mean I then need to switch to GCC 2.95 and re-emerge it so it gets compiled with itself (a bit like stage 1)? | No, do not worry about this. The gcc compilation process is multi-staged, and by the time the stage3 compiler (the one you will be using) is built, no trace of the compiler that started the process (3.2.2 in your case) is left. Your 2.95.3 will have been compiled by itself. _________________ For every higher wall, there is a taller ladder |
|
| Back to top |
|
 |
Sargon Tux's lil' helper


Joined: 23 Jan 2003 Posts: 90
|
Posted: Tue May 20, 2003 10:05 pm Post subject: |
|
|
Hi
I tried to install gcc 2.95.x according to the description in the first post by JWood48. (I added '-p' to just pretend, but I get the same result w/o it too)
But when I execute the command
| Code: | | emerge -p sys-devel/gcc-2.95.3-r8.ebuild |
as root, I get the following error:
| Code: |
These are the packages that I would merge, in order:
Calculating dependencies \!!! aux_get(): ebuild for 'root/gcc-2.95.3-r8' does not exist at:
!!! /usr/portage/root/gcc/gcc-2.95.3-r8.ebuild
emerge: create(): aux_get() error on root/gcc-2.95.3-r8; aborting...
|
Why is it trying to access /usr/portage/root/... ?
However, when I first cd to /usr/portage/sys-devel, it works:
| Code: |
sinan root # cd /usr/portage/sys-devel/
sinan sys-devel # emerge -p sys-devel/gcc-2.95.3-r8.ebuild
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild U ] sys-devel/gcc-2.95.3-r8 [3.2.2]
sinan sys-devel #
|
What am I missing?
Sargon |
|
| Back to top |
|
 |
phunni Apprentice


Joined: 05 May 2003 Posts: 217 Location: Bristol, UK
|
Posted: Fri May 30, 2003 3:26 pm Post subject: |
|
|
I also struggled with this issue - I think it's becuase you are pointing directly to the ebuild, so you have tyo be in the correct place.
An emerge using the app anme will work from anyway, but if you are pointing to the ebuild then you need to be in a location relative to the ebuild path you supply _________________ Old School is the way forward! |
|
| Back to top |
|
 |
|