Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I want to use systemd-wide x32, what should I do?
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
sgsdxzy
n00b
n00b


Joined: 22 May 2012
Posts: 24

PostPosted: Wed May 23, 2012 6:00 am    Post subject: I want to use systemd-wide x32, what should I do? Reply with quote

Linux 3.4 has introduced a new x32 ABI. I want to try it out. So I need to use kernel 3.4 and >=gcc-4.6.2(4.7.0 is better but I can't emerge it even though I unmasked it, could you tell me how?). What should I do? Does the stage3 I use matter much (it should be a plain amd64 one)?I found the x32 profile at /usr/portage/porfile/arch/amd64/x32 but I don't know how to enable it. I don't mean to use x32 alongside amd64. I want pure x32 support for every program I compile and use without amd64. I'm just having a try and it's obviously not my production system so I am prepared for unstability and bugs.

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


Joined: 05 Jul 2003
Posts: 31716
Location: 56N 3W

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

sgsdxzy,


gcc-4.7.0 is both hard masked and not keyworded.

You need an entry in package.unmask and in package.keywords
<catagory>/<package> **
matches any keyword, including nome.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
i92guboj
Moderator
Moderator


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

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

There's a discussion groups here:
https://groups.google.com/forum/?fromgroups#!topic/x32-abi/y8B8Tj6x52w

And an experimental stage3 with x32 here:
http://dev.gentoo.org/~vapier/x32/

Selecting a profile is a matter of symlinking /etc/make.profile to $PORTDIR/profiles/<whatever>, that's what eselect does as far as I can tell (and that's the way we did it in the past until eselect absorbed that functionality).

Once this is stable and ready for the masses, I guess that changing from a regular multilib amd64 setup to x32 should be a breeze.
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
sgsdxzy
n00b
n00b


Joined: 22 May 2012
Posts: 24

PostPosted: Thu May 24, 2012 1:59 am    Post subject: Reply with quote

Thank you all.

I keyworded and unmasked gcc4.7.0 but wasn't able to emerge it until I synced my portage last night, now I am using gcc4.7.0.

For that stage3, I have tried, but since the kernel of my liveCD doen't support x32, I can't chroot into it. I add everything in the x32 profile to my make.conf, but with that I can't compile gcc4.7.0......I am still finding my way out. Anyhow, thanks.
Back to top
View user's profile Send private message
i92guboj
Moderator
Moderator


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

PostPosted: Thu May 24, 2012 6:45 am    Post subject: Reply with quote

sgsdxzy wrote:
Thank you all.

I keyworded and unmasked gcc4.7.0 but wasn't able to emerge it until I synced my portage last night, now I am using gcc4.7.0.

For that stage3, I have tried, but since the kernel of my liveCD doen't support x32, I can't chroot into it. I add everything in the x32 profile to my make.conf, but with that I can't compile gcc4.7.0......I am still finding my way out. Anyhow, thanks.


If you have an amd64 installation with a recent kernel you can create a loopback file and install the x32 stage on it. Once it works you can move it to your /.

I don't know of any livecd that will support x32 yet, but it should be a matter of finding any with a 3.4 kernel and ia32 on.
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
Deathwing00
Moderator
Moderator


Joined: 13 Jun 2003
Posts: 4078
Location: Barcelona, Spain

PostPosted: Thu May 24, 2012 2:57 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Portage & Programming.
Back to top
View user's profile Send private message
jamapii
Guru
Guru


Joined: 16 Sep 2004
Posts: 528

PostPosted: Sat May 26, 2012 10:45 am    Post subject: Reply with quote

AFAIK that stage was broken by a last minute system call interface change before the feature went into 3.4

So I guess you need to recompile glibc against linux-headers 3.4, probably with ROOT=/unpacked/stage3 and CONFIG_ROOT=/unpacked/stage3, but maybe it's sufficient to extract the environment variables from the x32 profile.

When I tried to do this, it complained about a broken gcc (missing __threads support on the very first gcc check)

An x32 support patch has recently been removed from gentoo gcc 4.6, so go for 4.7
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