Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CONFIG_X86_X32 enabled but no binutils support #10849

Open
1 of 2 tasks
eimfach opened this issue Nov 30, 2023 · 8 comments
Open
1 of 2 tasks

CONFIG_X86_X32 enabled but no binutils support #10849

eimfach opened this issue Nov 30, 2023 · 8 comments
Labels
kconfig linux kernel configuration

Comments

@eimfach
Copy link

eimfach commented Nov 30, 2023

Windows Version

Microsoft Windows [Version 10.0.19045.3693]

WSL Version

2.0.9.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.133.1

Distro Version

22.04

Other Software

No response

Repro Steps

VERSION=5.15.133.1
sudo apt update && sudo apt upgrade -y && sudo apt install -y build-essential flex bison libgtk2.0-dev libelf-dev libncurses-dev autoconf libudev-dev libtool zip unzip v4l-utils libssl-dev python3-pip cmake git iputils-ping net-tools dwarves
sudo mkdir /usr/src
cd /usr/src
sudo git clone -b linux-msft-wsl-${VERSION} https://github.com/microsoft/WSL2-Linux-Kernel.git ${VERSION}-microsoft-standard && cd ${VERSION}-microsoft-standard
sudo cp /proc/config.gz config.gz
sudo gunzip config.gz
sudo mv config .config
sudo make menuconfig
sudo make -j$(nproc)
sudo make modules_install -j$(nproc)
sudo make install -j$(nproc)

Expected Behavior

Install the compiled kernel ?

Actual Behavior

arch/x86/Makefile:142: CONFIG_X86_X32 enabled but no binutils support
sh ./arch/x86/boot/install.sh 5.15.133.1-microsoft-standard-WSL2+
arch/x86/boot/bzImage System.map "/boot"
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 5.15.133.1-microsoft-standard-WSL2+ /boot/vmlinuz-5.15.133.1-microsoft-standard-WSL2+

Diagnostic Logs

No response

@nanjo712
Copy link

i meet the same problem.
have you solved it?

@zcobol
Copy link

zcobol commented Nov 30, 2023

@eimfach this might help https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/x86/Kconfig?h=v5.15.140#n2911

You will need a recent binutils (2.22 or later) with elf32_x86_64 support enabled to compile a kernel with this option set

@eimfach
Copy link
Author

eimfach commented Nov 30, 2023

@zcobol
Thanks, I think I don't even need this option I just want to be able to mount my SD Cards with ext4 via USBIPD-WIN (wsl --mount does not work see this). I am following this guide: https://www.youtube.com/watch?v=iyBfQXmyH4o

As I understand it I just reuse the currenct kernel config and just set the option for "USB Mass Storage" and that's it.

@OneBlue OneBlue added the kconfig linux kernel configuration label Nov 30, 2023
@ghost
Copy link

ghost commented Jan 11, 2024

Greetings,

I have a similar problem to this. Has this been resolved?

@WikiLiu
Copy link

WikiLiu commented Jan 19, 2024

no influence about this remind. So just let it go

@upsangel
Copy link

upsangel commented Jan 31, 2024

I am following this guide: https://www.youtube.com/watch?v=iyBfQXmyH4o

I am having the exact same problem when following this youtube. How many issues do I need to resolve before I can use USB via WSL.

edit: I set the CONFIG_X86_32 = Y to N in the .config file then make again the warning is gone. But it won't be able to use 32bit bin with this kernel.

@eimfach
Copy link
Author

eimfach commented Jan 31, 2024

Do you use Windows 10 or 11 ?

@upsangel
Copy link

upsangel commented Jan 31, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kconfig linux kernel configuration
Projects
None yet
Development

No branches or pull requests

6 participants