Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What implications does the new x32 abi hold for gentoo?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
civilian
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jan 2007
Posts: 78

PostPosted: Sun Apr 15, 2012 2:33 pm    Post subject: What implications does the new x32 abi hold for gentoo? Reply with quote

This is about to hit the world (next kernel I believe). How will portage have to change to take advantage of this? I'm guessing that my system will end up with libx32 directories in conjunction with the lib32 and lib64 directories.
Back to top
View user's profile Send private message
genstorm
Advocate
Advocate


Joined: 05 Apr 2007
Posts: 2241
Location: Austria

PostPosted: Sun Apr 15, 2012 3:28 pm    Post subject: Reply with quote

No change I think. glibc will need to address that.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 7610

PostPosted: Sun Apr 15, 2012 4:45 pm    Post subject: Reply with quote

No change is required for Portage to continue to work as it does today. Some changes are required if you want to have Portage build/install x32 code.
Back to top
View user's profile Send private message
Ant P.
Veteran
Veteran


Joined: 18 Apr 2009
Posts: 1920
Location: UK

PostPosted: Sun Apr 15, 2012 5:01 pm    Post subject: Reply with quote

Portage currently doesn't have real multilib at all so there'll be no change for Gentoo.
Back to top
View user's profile Send private message
civilian
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jan 2007
Posts: 78

PostPosted: Sun Apr 15, 2012 7:43 pm    Post subject: Reply with quote

Can glibc actually take care of it? The way I understood it, x32 programs will effectively require a new set of x32 libraries.
If this is the case then it can be added via a third abi flag to the multilib overlay, yes?
Back to top
View user's profile Send private message
i92guboj
Moderator
Moderator


Joined: 30 Nov 2004
Posts: 9464
Location: Córdoba (Spain)

PostPosted: Sun Apr 15, 2012 9:36 pm    Post subject: Reply with quote

Well, I know that IA32 is not quite the same, but... it's been there for years. There's no support for it in portage (though you can get it mostly working using the multilib overlay), so I advice that you don't hold your breath to get yet-another-64/32-mix in Gentoo.

This is far from a simple change, since it requires to decouple support for both bitnesses in every single package, and handle the dependencies for that. If you want, let's say, 32 bits fvwm in a 64 bits gentoo, you need to install 32 bits X, drivers, librsvg, libpng, etc. etc. and so on. But you also need the 64 bits version of those libs, for the rest of your 64 bits software.

The multilib overlay does exactly that, but I have no idea if they are working in the x32 thing or not. It might "just work" just like with IA32, so if you are truly interested research on that.
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
Martin.Jansa
n00b
n00b


Joined: 09 Mar 2004
Posts: 55
Location: Prague

PostPosted: Fri May 04, 2012 9:12 am    Post subject: Reply with quote

civilian wrote:
Can glibc actually take care of it? The way I understood it, x32 programs will effectively require a new set of x32 libraries.
If this is the case then it can be added via a third abi flag to the multilib overlay, yes?


Do you really want multilib or are you looking for way to rebuild your world with x32 ABI?

For the later you can IMHO use /usr/portage/profiles/default/linux/amd64/10.0/x32 and vapier also published x32 stage3 image a while back
https://groups.google.com/group/x32-abi/browse_thread/thread/cbc07c4e3eb1e76c?pli=1

I haven't tested it yet..
Back to top
View user's profile Send private message
srcshelton
n00b
n00b


Joined: 10 Apr 2004
Posts: 12
Location: Cambridge

PostPosted: Mon May 21, 2012 6:42 pm    Post subject: Reply with quote

Now that Kernel 3.4 (with x32 ABI support) has been released, it's finally possible to try this out.

One question I have is how the filesystem will end up being laid out. I do like the SGI(/MIPS?) approach of having:

/lib -> o32/straight 32-bit shared-objects;
/lib32 -> n32/64-bit with 32-bit pointers shared-objects;
/lib64 -> 64-bit shared-objects.

... which is clean, obvious, but clashes with what's already used as standard in Gentoo :(

Currently, /lib is a symlink to /lib64, /lib64 contains 64-bit shared-objects, and /lib32 contains 32-bit shared-objects. Not all distros are the same: Ubuntu/Debian use /lib and /lib64, leaving /lib32 free for use. /libx32 is an option... but I'd argue a messy and easily-confused one.

Does portage have the capability to use different mappings for ABI=x32? Are there yet any definitive plans for how this issue will be addressed/resolved?
Back to top
View user's profile Send private message
steveL
Veteran
Veteran


Joined: 13 Sep 2006
Posts: 1670
Location: The Peanut Gallery

PostPosted: Wed May 23, 2012 6:23 pm    Post subject: Reply with quote

I'd prefer /lib32x as it contrasts with /lib32 better than /libx32, especially for tired eyes in a terminal. Then again libx32 will tab at the same point as lib, lib64 and lib32, and x is easier to select at that point, if it's relevant.

There's obviously no point on a 64-bit install in /lib pointing to /lib32, but /lib symlinked to /lib32x might be a nice default option, since few apps apart from things like database servers, really require a 64bit address space.

(For /lib* /usr/lib* also applies, of course. Bikeshedding ftw. ;)
_________________
creaker wrote:
systemd. It is a really ass pain

update - "a most excellent portage wrapper"

#friendly-coders -- We're still here for you™ ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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