Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mixed 64-bit/32-bit userland?
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
Atha
Apprentice
Apprentice


Joined: 22 Sep 2004
Posts: 168

PostPosted: Tue Jun 30, 2009 11:19 am    Post subject: mixed 64-bit/32-bit userland? Reply with quote

Hi!

I'm installing (at least trying to) Gentoo on a Power Mac G5. I chose to use 64-bit where ever possible. One reason is the huge memory I want for every application available: 16GB.
You should know that this is my first 64-bit system. My x86 is a true 32-bit system, and the PPC I had before was too (G4).

I realized that some apps don't compile on a 64-bit system (the /lib64 part makes them stumble).

I know that verious Linux distros on x86 (with AMD64) use a mixed system that has both versions of system libraries installed. So you could run 32-bit apps and 64-bit apps side by side, only the shared libraries occupy memory twice (once for the 32-bit version and once for the 64-bit version).
I don't know the details, but there is some kind of /lib32 and /lib64 on the system.

I read in another thread that it's possible to chroot into 32-bit userland. I don't want that, if it can be avoided somehow.

Thanks in advance, expecting many answers and solutions,
A.
Back to top
View user's profile Send private message
MaximeG
l33t
l33t


Joined: 15 Apr 2008
Posts: 722
Location: Belgium

PostPosted: Tue Jun 30, 2009 11:59 am    Post subject: Reply with quote

Hi,

Just install the regular Gentoo 64bits distribution with the desktop profile.
It is multilib, and means you'll be able to run both 64bits and 32bits with it.

Regards,
Maxime
_________________
Future is wide open.
Back to top
View user's profile Send private message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Tue Jun 30, 2009 12:04 pm    Post subject: Reply with quote

--- ADVERTISMENT --- ADVERTISMENT --- ADVERTISMENT ---
maybe you want to try out the multilib overlay.
it compiles the needed libraries in both 32 and 64 bit for you.
since yesterday it is available via layman.
we talk about that topic on irc://irc.freenode.net/gentoo-multilib-overlay
the ppc guru is nigoro.
--- ADVERTISMENT --- ADVERTISMENT --- ADVERTISMENT ---
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Tue Jun 30, 2009 2:20 pm    Post subject: Reply with quote

alex.blackbit wrote:
--- ADVERTISMENT --- ADVERTISMENT --- ADVERTISMENT ---
maybe you want to try out the multilib overlay.
it compiles the needed libraries in both 32 and 64 bit for you.
since yesterday it is available via layman.
we talk about that topic on irc://irc.freenode.net/gentoo-multilib-overlay
the ppc guru is nigoro.
--- ADVERTISMENT --- ADVERTISMENT --- ADVERTISMENT ---


cool, thanks for pointing that out, didn´t know such thing was even in development :-)

cheers
_________________
Error: Failing not supported by current locale
Back to top
View user's profile Send private message
Atha
Apprentice
Apprentice


Joined: 22 Sep 2004
Posts: 168

PostPosted: Tue Jun 30, 2009 7:03 pm    Post subject: Reply with quote

MaximeG wrote:
Hi,

Just install the regular Gentoo 64bits distribution with the desktop profile.
It is multilib, and means you'll be able to run both 64bits and 32bits with it.

Regards,
Maxime


That's good to know, but still some programs will not compile correctly in a 64-bit environment.
One example is yaboot, so there is yaboot-static provided, which is good.
Another is mc (Midnight Commander) which I use very much on the console. It dosn't compile at all.

Thanks.
Back to top
View user's profile Send private message
Atha
Apprentice
Apprentice


Joined: 22 Sep 2004
Posts: 168

PostPosted: Tue Jun 30, 2009 7:07 pm    Post subject: Reply with quote

alex.blackbit wrote:
--- ADVERTISMENT --- ADVERTISMENT --- ADVERTISMENT ---
maybe you want to try out the multilib overlay.
it compiles the needed libraries in both 32 and 64 bit for you.
since yesterday it is available via layman.
we talk about that topic on irc://irc.freenode.net/gentoo-multilib-overlay
the ppc guru is nigoro.
--- ADVERTISMENT --- ADVERTISMENT --- ADVERTISMENT ---


I'll check it out. The home page states only x86/amd64, so it would be hard work to use it on ppc/ppc64 I guess.

My system is aimed at a stable desktop system with a view unstable/testing apps for convenience only. It is too much work for me now to get into the details of this overlay.

(Right now I'm at the state that I will soon be able to boot from the hard disk via yaboot, and don't have to chroot into the system. X and KDE is not yet installed, neighter are any useful apps. It takes so long when something doesn't work as it should...)

I will have a look at it later.
Thanks.
Back to top
View user's profile Send private message
nigoro
Retired Dev
Retired Dev


Joined: 27 Dec 2004
Posts: 12
Location: Japan

PostPosted: Thu Jul 02, 2009 11:19 am    Post subject: Reply with quote

Atha wrote:

That's good to know, but still some programs will not compile correctly in a 64-bit environment.
One example is yaboot, so there is yaboot-static provided, which is good.
Another is mc (Midnight Commander) which I use very much on the console. It dosn't compile at all.


Hi,

mc fails to builds on ppc64, it's a bug.
Please check Gentoo Bug #208949.

You will succeed in compiling mc in the following step.

mkdir /etc/portage (if the directory doesn't exist)
echo '=app-misc/mc-4.6.2_pre1 ~ppc64' >> /etc/portage/package.keywords
emerge app-misc/mc
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