Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GCC problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
tommoyer324
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2005
Posts: 104
Location: USA

PostPosted: Thu Dec 07, 2006 4:07 pm    Post subject: GCC problems Reply with quote

I am trying to install some older software on a machine, and it won't compile with gfortran (problem with some missing "non-standard" extensions that do exist in g77). The machine in question is using a 2006.1 profile so I cannot just emerge =gcc-3.4* to get g77. What would be the easiest way to install gcc-3.4* so that I can use g77 for this code. It isn't code I can modify as it is needed as is for some scientific computing that I know nothing about ( I am the sys-admin trying to install this software).
Back to top
View user's profile Send private message
DocReedSolomon
Guru
Guru


Joined: 28 Aug 2006
Posts: 419

PostPosted: Fri Dec 08, 2006 9:49 am    Post subject: Re: GCC problems Reply with quote

tommoyer324 wrote:
The machine in question is using a 2006.1 profile so I cannot just emerge =gcc-3.4* to get g77.

i think you could..
Code:

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

Calculating dependencies... done!
[ebuild  NS   ] sys-devel/gcc-3.4.1-r3  USE="fortran gcj gtk nls objc -bootstrap -build (-hardened) (-multilib) (-n32) (-n64) -static" 27,440 kB


OTOH you could compile gcc3.4 manually to /usr/local, but i fail to see why you think you couldnt emerge it?
Back to top
View user's profile Send private message
tommoyer324
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2005
Posts: 104
Location: USA

PostPosted: Fri Dec 08, 2006 12:37 pm    Post subject: Reply with quote

Here is what I see. The ppc and ppc64 profiles have masked all gcc < 4.

Code:

<user>@\<hostname> ~ $ emerge -pv =gcc-3.4*

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

Calculating dependencies   
!!! All ebuilds that could satisfy "=gcc-3.4*" have been masked.
!!! One of the following masked packages is required to complete your request:
- sys-devel/gcc-3.4.1-r3 (masked by: profile)
- sys-devel/gcc-3.4.6-r1 (masked by: profile)
- sys-devel/gcc-3.4.6-r2 (masked by: profile, ~ppc keyword)
- sys-devel/gcc-3.4.5-r1 (masked by: profile)
- sys-devel/gcc-3.4.4-r1 (masked by: profile)
- sys-devel/gcc-3.4.5 (masked by: profile, ~ppc keyword)
- sys-devel/gcc-3.4.6 (masked by: profile, ~ppc keyword)

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
DocReedSolomon
Guru
Guru


Joined: 28 Aug 2006
Posts: 419

PostPosted: Fri Dec 08, 2006 12:43 pm    Post subject: Reply with quote

ah well, of course everyone in here just had to know you are on PPC, right?
maybe next time you post a question you might mention this in the first place.
anyway:
tommoyer324 wrote:

- sys-devel/gcc-3.4.5 (masked by: profile, ~ppc keyword)
- sys-devel/gcc-3.4.6 (masked by: profile, ~ppc keyword)

see?
you could install 3.4.5 or 3.4.6
edit your /etc/portage/package.keywords (or create, if it doesnt already exist) and put in:
Code:

sys-devel/gcc-3.4.5
sys-devel/gcc-3.4.6

now you are able to emerge gcc 3.4

//edit: infact you are mentioning fortran, maybe this thread helps:
https://forums.gentoo.org/viewtopic-t-522783-highlight-.html
Back to top
View user's profile Send private message
tommoyer324
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2005
Posts: 104
Location: USA

PostPosted: Fri Dec 08, 2006 1:27 pm    Post subject: Reply with quote

First off no need to be condescending. I thought that the switch to a 2006.1 profile masked previous versions of gcc on all archs not just ppc. Second off I tried to just add that line to /etc/portage/package.keywords, but the problem becomes then the masking by the profile NOT the keyword. Hence the (masked by: profile, ~ppc) not just (masked by:~ppc). And anyways, if you weren't sure, and it wasn't posted then you should ask what the arch is instead of assuming which one it might be. Way to make someone feel about 2 inches tall.
Back to top
View user's profile Send private message
DocReedSolomon
Guru
Guru


Joined: 28 Aug 2006
Posts: 419

PostPosted: Fri Dec 08, 2006 4:25 pm    Post subject: Reply with quote

tommoyer324 wrote:
then you should ask what the arch is instead of assuming which one it might be..

wow, new rules in here? since when?
you need help, not us, boss!
have you actually checked the guidelines prior you posted?
https://forums.gentoo.org/viewtopic-t-525.html
obviously not. thats a sticky note! shows in any forum you post on this forums.
you might feel happy i replyed at all, because you didnt provide your "emerge info" at all.
see?
obviously you didnt see either there is a special forum for your needs:
https://forums.gentoo.org/viewforum-f-24.html
yes, this is specially for you guys, gentoo on PPC.
no, you would prolly not have to had to mention your arch there, though..
ah well, enough for today.
doodes like you make me close my browser, really.
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


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

PostPosted: Fri Dec 08, 2006 5:45 pm    Post subject: Reply with quote

Moved from Portage & Programming to Gentoo on PPC.

DocReedSolomon,
Change your tune and treat your fellow forum users with respect or we'll have to ban you. Your current behaviour does not cut it. Read the Forum Guidelines and pay specific attention to point 8.
_________________
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
DocReedSolomon
Guru
Guru


Joined: 28 Aug 2006
Posts: 419

PostPosted: Fri Dec 08, 2006 6:15 pm    Post subject: Reply with quote

nixnut wrote:

DocReedSolomon,
Change your tune and treat your fellow forum users with respect or we'll have to ban you.

if you would have shown at last a little respect you would have PMed me, no?
why are you doing this in public?
feel free to delete *this* post and PM me, thx.
and while you are at this, you might delete your post as well.

never ever saw such a rude behaviour by a mod, really.
please realize i spent a couple of hours helping the guy in question, until i realized he is on PPC. so what?
if my help is not wanted, i return a sucker and will not help others out.
thats what you want?
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Fri Dec 08, 2006 8:32 pm    Post subject: Re: GCC problems Reply with quote

tommoyer324 wrote:
I am trying to install some older software on a machine, and it won't compile with gfortran (problem with some missing "non-standard" extensions that do exist in g77). The machine in question is using a 2006.1 profile so I cannot just emerge =gcc-3.4* to get g77. What would be the easiest way to install gcc-3.4* so that I can use g77 for this code. It isn't code I can modify as it is needed as is for some scientific computing that I know nothing about ( I am the sys-admin trying to install this software).


Hello tommoyer,

sorry for that troll :( . It happened to me once to post non-ppc specific problem on ppc by
force of habits so this kinds of thing happens. No need to involve blood pressure.

No could you tell us about that software you are trying to install, I am a scientist myself
and I help a lot of colleagues install stuff on linux (Gentoo or otherwise) and I'd like to
know about this in advance in case I have to install it.

Thanks.
Back to top
View user's profile Send private message
pilla
Administrator
Administrator


Joined: 07 Aug 2002
Posts: 7693
Location: Pelotas, BR

PostPosted: Mon Dec 11, 2006 4:36 pm    Post subject: Reply with quote

DocReedSolomon wrote:
nixnut wrote:

DocReedSolomon,
Change your tune and treat your fellow forum users with respect or we'll have to ban you.

if you would have shown at last a little respect you would have PMed me, no?
why are you doing this in public?
feel free to delete *this* post and PM me, thx.
and while you are at this, you might delete your post as well.

never ever saw such a rude behaviour by a mod, really.
please realize i spent a couple of hours helping the guy in question, until i realized he is on PPC. so what?
if my help is not wanted, i return a sucker and will not help others out.
thats what you want?


Banned.
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
Macguyvok
n00b
n00b


Joined: 09 Mar 2004
Posts: 54
Location: ....right behind you....

PostPosted: Mon Dec 18, 2006 4:22 am    Post subject: Reply with quote

Getting back to the problem at hand, I too have run into the brick wall of needing gcc 3.X and not being able to emerge it because it's masked by profile. I've been trying to emerge qemu on my ppc laptop, and I can't due to this issue. It's rather annoying, seeing as how gnash is kinda cruddy for flash, and there are several things that I would like to try running, but are x86/windows only. I'm not sure what more information can be given, other than the fact that a 2006.1 profile masks gcc3.4 AND adding the package to package.unmask doesn't help one tiny bit.

So, anyone 'in the know' got an idea on how to emerge gcc3.4? Or even how to emerge qemu?

Thanks,

--Morgul
_________________
--Mac

"The DM is GOD!" No.... God's just my little NPC :-D

Coconut falls from sky... Take 2 points damage!
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Mon Dec 18, 2006 4:56 am    Post subject: Reply with quote

Adding to package.unmask doesn't work because it's masked by the "packages" file
in /usr/portage/profiles/default-linux/ppc/ppc32/2006.1/ :
Code:
# Copyright 2001-2006 Gentoo Foundation.
# Distributed under the terms of the GNU General Public License, v2
# $Header: /var/cvsroot/gentoo-x86/profiles/default-linux/ppc/ppc32/2006.1/packages,v 1.1 2006/06/26 11:31:18 pylon 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
# *

>=sys-apps/baselayout-1.11.13-r1
>=sys-devel/binutils-2.16.1
>=sys-devel/gcc-4.1.1
>=sys-libs/glibc-2.4

I don't know if you can create a packages file under /etc/portage/ to solve this
problem.
Back to top
View user's profile Send private message
DirtyHairy
l33t
l33t


Joined: 03 Jul 2006
Posts: 608
Location: Würzburg, Deutschland

PostPosted: Mon Dec 18, 2006 2:27 pm    Post subject: Reply with quote

Stupid idea, but couldn't you just abuse crossdev to emerge gcc 3.x? (it does exactly what fb suggested: it creates the necessary ebuilds in an overlay)
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Mon Dec 18, 2006 9:06 pm    Post subject: Reply with quote

DirtyHairy wrote:
Stupid idea, but couldn't you just abuse crossdev to emerge gcc 3.x? (it does exactly what fb suggested: it creates the necessary ebuilds in an overlay)

I think that's a very good idea. That probably won't solve all problems, like linking c++ apps, but it
should work for a number of things.
Now where did I suggest creating the ebuilds in an overlay?
The ebuilds are probably still there (for older profiles), but a miminum version is
imposed by the packages file. crossdev, if workable, would be way cleaner than touching
that file.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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