Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 908599 - Minimal CD Kernel not compiled with X32 support.
Summary: Minimal CD Kernel not compiled with X32 support.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: InstallCD (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Release Team
URL:
Whiteboard:
Keywords:
: 910165 (view as bug list)
Depends on:
Blocks: x32
  Show dependency tree
 
Reported: 2023-06-16 08:57 UTC by Tiago Marques
Modified: 2024-02-28 00:15 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tiago Marques 2023-06-16 08:57:59 UTC
When trying to chroot into an ABI X32 stage3 tar, one is unable to.

Checking the kernel /proc/config.gz, it shows CONFIG_X86_X32 is not set.

Please enable it, so one can install Gentoo without 3rd party boot media.
Comment 1 Tiago Marques 2023-06-16 09:43:43 UTC
Also tested the liveGUI and it is the same.

A correction though, the option is CONFIG_X86_X32_ABI.
Comment 2 Ben Kohler gentoo-dev 2023-06-16 12:21:11 UTC
You do know that x32 is an experimental hybrid arch, and is not the same as standard 32bit x86, right?

I've not heard of anyone using x32 on purpose in many years.
Comment 3 Ben Kohler gentoo-dev 2023-06-16 12:21:32 UTC
Furthermore, if you can boot the amd64 livegui, why are you looking for any stage3 with "32" in it?
Comment 4 Tiago Marques 2023-06-20 13:30:13 UTC
(In reply to Ben Kohler from comment #3)
> Furthermore, if you can boot the amd64 livegui, why are you looking for any
> stage3 with "32" in it?

Yes, I am aware. I have been an X32 on and off user for 10y now.
X32 can run on lower memory and is faster on most architectures. IMHO this should be replacing i686 builds for people wanting those, as x86-64 has now been available for 20y.

For instance, I have a 4GB laptop with soldered RAM where I'm using i686 Firefox because the AMD64 version is too much of a memory hog to be useful.

This is just adding a config option when building the kernel. Can you please add it? Right now I have to download the Debian AMD64 image to install Gentoo X32.
Comment 5 Ben Kohler gentoo-dev 2023-06-20 13:51:15 UTC
For now you can use either the minimal installcd or admincd, those have x32 support.  I'll add it to the livegui so it should be available after next build.  Builds happen every Sunday but we've had failures on the livegui build the last few weeks, so it could be another week or 2.
Comment 6 Tiago Marques 2023-06-21 10:49:32 UTC
Thank you Ben.

Either of those is enough for me and probably most X32 users right now. Live GUI is more of a positive than a priority, I think.
Comment 7 Denis Drakhnia 2023-07-09 16:18:22 UTC
*** Bug 910165 has been marked as a duplicate of this bug. ***
Comment 8 Denis Drakhnia 2023-07-10 05:56:44 UTC
(In reply to Ben Kohler from comment #5)
> For now you can use either the minimal installcd or admincd, those have x32
> support.  I'll add it to the livegui so it should be available after next
> build.  Builds happen every Sunday but we've had failures on the livegui
> build the last few weeks, so it could be another week or 2.

Hi, Ben.

The InstallCD and AdminCD do not have x32 ABI support.

# install-amd64-minimal-20230705T183202Z.iso
livecd ~ # zgrep X32 /proc/config.gz
# CONFIG_X86_X32_ABI is not set

# admincd-amd64-20230705T183202Z.iso
livecd ~ # zgrep X32 /proc/config.gz
# CONFIG_X86_X32_ABI is not set
Comment 9 Ben Kohler gentoo-dev 2023-07-10 19:03:27 UTC
Looks like the option was recently renamed and that's how we lost it
Comment 10 Larry the Git Cow gentoo-dev 2023-07-10 19:06:15 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/releng.git/commit/?id=e39d5c3dee9d7cc5a2369d498eb1796c17a7d1ab

commit e39d5c3dee9d7cc5a2369d498eb1796c17a7d1ab
Author:     Ben Kohler <bkohler@gentoo.org>
AuthorDate: 2023-07-10 19:05:18 +0000
Commit:     Ben Kohler <bkohler@gentoo.org>
CommitDate: 2023-07-10 19:06:08 +0000

    specs/amd64: use new kernel configs on admincd & installcd
    
    Bug: https://bugs.gentoo.org/908599
    
    Signed-off-by: Ben Kohler <bkohler@gentoo.org>

 releases/specs/amd64/hardened/admincd-stage2.spec  | 2 +-
 releases/specs/amd64/installcd-stage2-minimal.spec | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

https://gitweb.gentoo.org/proj/releng.git/commit/?id=f68fa16ad52cb1a4b41e117c323c67fb4af13200

commit f68fa16ad52cb1a4b41e117c323c67fb4af13200
Author:     Ben Kohler <bkohler@gentoo.org>
AuthorDate: 2023-07-10 19:02:35 +0000
Commit:     Ben Kohler <bkohler@gentoo.org>
CommitDate: 2023-07-10 19:06:07 +0000

    kconfig/amd64: add X32 support back
    
    Bug: https://bugs.gentoo.org/908599
    
    Signed-off-by: Ben Kohler <bkohler@gentoo.org>

 releases/kconfig/amd64/amd64-6.1.38.config | 6520 ++++++++++++++++++++++++++++
 1 file changed, 6520 insertions(+)
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-19 03:49:11 UTC
Are we all done here?