| View previous topic :: View next topic |
| Author |
Message |
sgsdxzy n00b

Joined: 22 May 2012 Posts: 18
|
Posted: Wed May 23, 2012 6:00 am Post subject: I want to use systemd-wide x32, what should I do? |
|
|
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 |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 30005 Location: 56N 3W
|
Posted: Wed May 23, 2012 8:59 pm Post subject: |
|
|
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 |
|
 |
i92guboj Moderator


Joined: 30 Nov 2004 Posts: 9464 Location: Córdoba (Spain)
|
Posted: Wed May 23, 2012 9:30 pm Post subject: |
|
|
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 |
|
 |
sgsdxzy n00b

Joined: 22 May 2012 Posts: 18
|
Posted: Thu May 24, 2012 1:59 am Post subject: |
|
|
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 |
|
 |
i92guboj Moderator


Joined: 30 Nov 2004 Posts: 9464 Location: Córdoba (Spain)
|
Posted: Thu May 24, 2012 6:45 am Post subject: |
|
|
| 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 |
|
 |
Deathwing00 Moderator


Joined: 13 Jun 2003 Posts: 4074 Location: Barcelona, Spain
|
Posted: Thu May 24, 2012 2:57 pm Post subject: |
|
|
| Moved from Installing Gentoo to Portage & Programming. |
|
| Back to top |
|
 |
jamapii Guru


Joined: 16 Sep 2004 Posts: 517
|
Posted: Sat May 26, 2012 10:45 am Post subject: |
|
|
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 |
|
 |
|