Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Multiple profiles for GCC (PPC64/PPC32)
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
bruda
Guru
Guru


Joined: 06 May 2004
Posts: 376
Location: Sherbrooke, QC, Canada

PostPosted: Fri Jul 09, 2004 2:45 am    Post subject: Multiple profiles for GCC (PPC64/PPC32) Reply with quote

Given the existence of gcc-config, it must be possible to install in parallel many GCC profiles. How does one do this for identical GCCs (thus identical slots)?

Motivation: I have a working 64-bit installation on my G5 (the dual 2GHz flavour) but I need applications that no matter what I do will not compile on 64-bit (though they are rock solid on my Powerbook G4). So my alternate question is: how does one build 32-bit applications from within a 64-bit environment?

Yes, I have heard about (and would like to try) the powerpc32 program, problem is it has disappeared from the face of the Earth (or so it seems).

Thanks in advance.
_________________
Quid latine dictum sit altum videtur
Back to top
View user's profile Send private message
SeJo
Retired Dev
Retired Dev


Joined: 08 Oct 2002
Posts: 298
Location: Belgium

PostPosted: Fri Jul 09, 2004 11:16 am    Post subject: Reply with quote

I can only answer a part of your question, and that is you can't have multiple gcc from the same slot installed, you can have them installed if they are from a different slot.


greetings,


Jochen
_________________
"I am not bound to please thee with my answers."
Back to top
View user's profile Send private message
DiskBreaker
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 224

PostPosted: Fri Jul 09, 2004 1:43 pm    Post subject: Reply with quote

ftp://ftp.linuxppc64.org/pub/people/tgall/gentoo-ppc64/powerpc32
The powerpc32 program you were looking for...
Back to top
View user's profile Send private message
pechang03
n00b
n00b


Joined: 16 Dec 2005
Posts: 1

PostPosted: Fri Dec 16, 2005 5:29 am    Post subject: Reply with quote

Hi I am trying to do something almost the same. I have an iMac G5 and was using the 64 bit profiles. But I really need to use gcc-2.95.3 to comple some old code I need.
But of couse I also want to use the latest compiler.

I downloaded your powerpc32 program but it said
Code:

 bash: ./powerpc32: Accessing a corrupted shared library


Can you help.
[/code]
Back to top
View user's profile Send private message
jedsen
Apprentice
Apprentice


Joined: 15 Oct 2004
Posts: 276
Location: Sacramento, California, USA

PostPosted: Fri Dec 16, 2005 7:49 am    Post subject: Reply with quote

Isn't this what crssdev is for?
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Fri Dec 16, 2005 10:34 am    Post subject: Reply with quote

crossdev is for crosscompiling stuff and i suppose ppc64 can generate 32bits code natively, as in amd64/x86 world.
I dont know if this is supposed to work in ppc but Im using eselect-compiler an my opterons box and have a 32bit specific slot available through gcc-config.

I think this is what youre loking for :

Code:
(/root)-(42:117Mb)-->  gcc-config -l
Available compilers for CTARGET i686-pc-linux-gnu
  [1]   x86_64-pc-linux-gnu-3.4.4/x86-hardened
  [2]   x86_64-pc-linux-gnu-3.4.4/x86-hardenednopie
  [3]   x86_64-pc-linux-gnu-3.4.4/x86-hardenednopiessp
  [4]   x86_64-pc-linux-gnu-3.4.4/x86-hardenednossp
  [5]   x86_64-pc-linux-gnu-3.4.4/x86-vanilla
Available compilers for CTARGET powerpc-unknown-linux-gnu
  [6]   powerpc-unknown-linux-gnu-3.4.4/default
  [7]   powerpc-unknown-linux-gnu-3.4.4/hardened
  [8]   powerpc-unknown-linux-gnu-3.4.4/hardenednopie
  [9]   powerpc-unknown-linux-gnu-3.4.4/hardenednopiessp
  [10]  powerpc-unknown-linux-gnu-3.4.4/hardenednossp
Available compilers for CTARGET x86_64-pc-linux-gnu
  [11]  x86_64-pc-linux-gnu-3.4.4/amd64-hardened
  [12]  x86_64-pc-linux-gnu-3.4.4/amd64-hardenednopie
  [13]  x86_64-pc-linux-gnu-3.4.4/amd64-hardenednopiessp
  [14]  x86_64-pc-linux-gnu-3.4.4/amd64-hardenednossp
  [15]  x86_64-pc-linux-gnu-3.4.4/amd64-vanilla

Activated profiles:
  powerpc-unknown-linux-gnu powerpc-unknown-linux-gnu-3.4.4/default
  x86_64-pc-linux-gnu *     x86_64-pc-linux-gnu-3.4.4/amd64-vanilla


As you can see i have two native targets (64 and 32 bits) and another ppc target created by crossdev.
For the setup: just emerge eselect-compiler, re-emerge gcc and thats it. Take car of having a backup of old gcc-config just in case the new one f*cks up your setup

Hope that helps ;)

cheers
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