Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GCC 3.1 *only* for development.
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
Perpetua Dragon
n00b
n00b


Joined: 28 Jun 2002
Posts: 1

PostPosted: Fri Jun 28, 2002 1:50 pm    Post subject: GCC 3.1 *only* for development. Reply with quote

I'm wondering if I can use GCC3.1 on gentoo 1.2, but only for my own development.

I'd be more than satisifed if GCC 2.* were still used for building the system, I just need 3.1 for some new app that I'm working with.

Is this a possibility? Can they Live together? What steps should I follow?

Thanks!

PD
Back to top
View user's profile Send private message
abhishek
Retired Dev
Retired Dev


Joined: 28 Jun 2002
Posts: 393
Location: Los Angeles, CA

PostPosted: Mon Jul 01, 2002 5:21 pm    Post subject: Reply with quote

i dont think they can live together. not easily anyway. come to the bleeding edge :D
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Mon Jul 01, 2002 7:09 pm    Post subject: Reply with quote

data_the_android wrote:
i dont think they can live together. not easily anyway


Why not? What problems have you had?

To the original poster:

Make sure you have GCC 2.95 merged. This should be the case except
on unbootstrapped new installs. You can check with qpkg. If there
is no GCC 2.xx package merged, the GCC3 ebuild will install itself as
gcc, the default compiler.

If there is a GCC 2.xx compiler detected, the GCC3 ebuild will attempt
to install itself alongside it as gcc-3.1, g++-3.1, etc. See the ebuild
itself for details.

You should then be able to keep 2.95 as your primary compiler, and
"gcc" will invoke it. You can explicitly call "gcc-3.1" for your special
application, or define the envariable CC=gcc-3.1 when calling make
or other such tactic.

You should even be able to define CC=gcc-3.1 in your make.conf,
and many ebuilds will respect this and build automatically with GCC3.
In general, packages that use autoconf work; those that don't may
require some extra hand-holding.
_________________
For every higher wall, there is a taller ladder
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