Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I would like to be able to switch to gcc-2.95 compiler
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
chene_vert
n00b
n00b


Joined: 09 Feb 2005
Posts: 3

PostPosted: Wed Feb 09, 2005 10:02 am    Post subject: I would like to be able to switch to gcc-2.95 compiler Reply with quote

Gi,

I would like to use gcc-2.95 compiler for an "old" program and switch with gcc-config between 3.4 and 2.95 depending on what I need.

Problem :
profile masked gcc version inferior to 3.2

The use of packages.unmask or packages.keywords does not seems to help in this case.
Am I right ?

So I edit /etc/make.profile/packages and comment one line:


Code:
# Copyright 2001-2004 Gentoo Foundation.
# Distributed under the terms of the GNU General Public License, v2
# $Header: /var/cvsroot/gentoo-x86/profiles/default-linux/x86/2004.0/packages,v 1.7 2004/10/16 21:24:29 vapier Exp $

# For instructions on how this file works (as an inclusion mask, primarily),
# please refer to ${PORTDIR}/profiles/base/packages

# Use this file to lock down specific versions of packages ONLY TO THIS
# SPECIFIC PROFILE!

# You can also add files to the base system itself if you prefix them with a
# *



>dev-lang/gpc-2.1
>=sys-apps/baselayout-1.7.9-r1
>=sys-devel/binutils-2.13.90.0.4
#>=sys-devel/gcc-3.2
>=sys-libs/glibc-2.2.5

>=app-admin/sysklogd-1.4.1




It seems to work but I was wondering if it was the proper way to do it.


Thanks.
Back to top
View user's profile Send private message
transient
l33t
l33t


Joined: 13 Jan 2005
Posts: 759

PostPosted: Wed Feb 09, 2005 10:56 am    Post subject: Reply with quote

It does work, but youre right, its not the correct way to do it. The reason for this is that when you
Code:
emerge --sync
again, that file will be overwritten with the new one.
Im not sure of the priority for package masking, but if you have unmasked older GCC versions in your /etc/portage/package.unmask, that should work.
You have got the following in the package.unmask file?
Code:
<=sys-devel/gcc-3.2
Back to top
View user's profile Send private message
chene_vert
n00b
n00b


Joined: 09 Feb 2005
Posts: 3

PostPosted: Wed Feb 09, 2005 11:20 am    Post subject: Reply with quote

Quote:
Im not sure of the priority for package masking, but if you have unmasked older GCC versions in your /etc/portage/package.unmask, that should work.
You have got the following in the package.unmask file?
Code:
<=sys-devel/gcc-3.2


Yes I have tried this (and try again after your post)
but it does not work unless I make some change in /etc/make.profile/packages :(
Back to top
View user's profile Send private message
nahpets
Veteran
Veteran


Joined: 05 Oct 2003
Posts: 1178
Location: Montreal, Canada

PostPosted: Sat Feb 26, 2005 11:03 pm    Post subject: Reply with quote

I just had the same problem. The only way I could get gcc-2.95 to emerge was to edit "/usr/make.profile/packages". Did you figure out if this was the "proper" way to do this? Why is gcc-2.95 masked anyways??
Back to top
View user's profile Send private message
transient
l33t
l33t


Joined: 13 Jan 2005
Posts: 759

PostPosted: Sun Feb 27, 2005 1:17 am    Post subject: Reply with quote

Its probably very close to being deprecated.
There is a specific profile for gcc2, which has a packages file that is correct for using it.
But it would be much better to figure out why the app relies on a very old version of gcc to compile.
What application is it, and do you know what exactly it needs that isnt in the later versions, or what later feature breaks it?
Back to top
View user's profile Send private message
nahpets
Veteran
Veteran


Joined: 05 Oct 2003
Posts: 1178
Location: Montreal, Canada

PostPosted: Mon Feb 28, 2005 10:00 am    Post subject: Reply with quote

transient wrote:
Its probably very close to being deprecated.
There is a specific profile for gcc2, which has a packages file that is correct for using it.
But it would be much better to figure out why the app relies on a very old version of gcc to compile.
What application is it, and do you know what exactly it needs that isnt in the later versions, or what later feature breaks it?


I need gcc-2.95 to compile some libraries used for embedded development that only work with gcc-2.95. It's handy for me to be able to install gcc-2.95 in it's own slot for that reason.
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4975
Location: Gothenburg, Sweden

PostPosted: Fri Jul 01, 2005 6:03 pm    Post subject: Reply with quote

Moved from Portage & Programming to Duplicate Threads in favour of https://forums.gentoo.org/viewtopic.php?t=253718
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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