Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing GCC 4.2 for Testing
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Hossie
Tux's lil' helper
Tux's lil' helper


Joined: 08 Dec 2005
Posts: 116

PostPosted: Wed Aug 02, 2006 11:21 am    Post subject: Installing GCC 4.2 for Testing Reply with quote

Hi,

is there a way to install a GCC 4.2 for testing without interfering with the installed GCC used for compiling portage programs? I only want to have the GCC for testing and compiling my own "code snippets", therefore the GCC should be "invisible" and should not interfere with the installed GCC from portage.

Is there a way to do that? 8O
Back to top
View user's profile Send private message
Phenax
l33t
l33t


Joined: 10 Mar 2006
Posts: 972

PostPosted: Wed Aug 02, 2006 11:24 am    Post subject: Reply with quote

You can have multiple versions installed on your system, just switch the compiler profile whenever you want to compile your 'code snippets.'
Back to top
View user's profile Send private message
Hossie
Tux's lil' helper
Tux's lil' helper


Joined: 08 Dec 2005
Posts: 116

PostPosted: Wed Aug 02, 2006 11:27 am    Post subject: Reply with quote

So I just download GCC, config / make / make install it (there are no official 4.2 ebuilds), and it works? Doesnt it overwrite the current GCC? How do I change GCC?
Back to top
View user's profile Send private message
UncleOwen
Veteran
Veteran


Joined: 27 Feb 2003
Posts: 1493
Location: Germany, Hamburg

PostPosted: Wed Aug 02, 2006 11:52 am    Post subject: Reply with quote

Hossie wrote:
So I just download GCC, config / make / make install it

Don't do this, it will destroy the gentoo magic.

Quote:
(there are no official 4.2 ebuilds)

Sure there is:
Code:
[-P-] [M-] sys-devel/gcc-4.2.0_alpha20060715 (4.2)
Back to top
View user's profile Send private message
Hossie
Tux's lil' helper
Tux's lil' helper


Joined: 08 Dec 2005
Posts: 116

PostPosted: Wed Aug 02, 2006 12:10 pm    Post subject: Reply with quote

http://packages.gentoo.org/search/?sstring=gcc

"Not available"

Also:

Code:
~# echo "=sys-devel/gcc-4.2.0_alpha20060715" >> /etc/portage/package.unmask
~# emerge -vau gcc

Nothing to merge; would you like to auto-clean packages? [Yes/No]


:?:
Back to top
View user's profile Send private message
UncleOwen
Veteran
Veteran


Joined: 27 Feb 2003
Posts: 1493
Location: Germany, Hamburg

PostPosted: Wed Aug 02, 2006 12:31 pm    Post subject: Reply with quote

Quote:
$ emerge -pv =gcc-4.2*

These are the packages that would be merged, in order:

Calculating dependencies
!!! All ebuilds that could satisfy "=gcc-4.2*" have been masked.
!!! One of the following masked packages is required to complete your request:
- sys-devel/gcc-4.2.0_alpha20060715 (masked by: package.mask, missing keyword)
# Mark Loeser <halcy0n@gentoo.org> (11 Apr 2006)
# GCC 4.2 snapshots; use with extreme care and only report bugs if you have
# a patch


For more information, see MASKED PACKAGES section in the emerge man page or
refer to the Gentoo Handbook.
Back to top
View user's profile Send private message
Phenax
l33t
l33t


Joined: 10 Mar 2006
Posts: 972

PostPosted: Wed Aug 02, 2006 12:49 pm    Post subject: Reply with quote

Code:
echo "sys-devel/gcc -* ~* *" >> /etc/portage/package.keywords
Back to top
View user's profile Send private message
UncleOwen
Veteran
Veteran


Joined: 27 Feb 2003
Posts: 1493
Location: Germany, Hamburg

PostPosted: Wed Aug 02, 2006 12:59 pm    Post subject: Reply with quote

Thanks, I wanted him to find out for himself :(
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Wed Aug 02, 2006 3:42 pm    Post subject: Reply with quote

Moved from Other Things Gentoo to Unsupported Software.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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