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

Can offer some 32-bit distrubution for choose? #4215

Closed
xqdd opened this issue Jun 21, 2019 · 2 comments
Closed

Can offer some 32-bit distrubution for choose? #4215

xqdd opened this issue Jun 21, 2019 · 2 comments

Comments

@xqdd
Copy link

xqdd commented Jun 21, 2019

I found that run or compile the 32-bit project under the 64-bit system is a very troublesome event there are lots of compatibility errors. So can we simply use a 32-bit Linux distribution under 64-bit win10?

Why we need it? The reason is some arm CPU is 32-bit and only can run 32-bit ELF, so we need cross compile under WLS.

Why can't we just compile under Qemu, VMware, VirtualBox or a real Linux environment? Because WSL is very handy and faster than all of the virtual tool above.

@benhillis
Copy link
Member

I was curious so I tried importing http://dl-cdn.alpinelinux.org/alpine/v3.10/releases/x86/alpine-minirootfs-3.10.0-x86.tar.gz on WSL2 and it works like a charm.

@therealkenc
Copy link
Collaborator

Calling this ran course. It wasn't actually clear from the OP whether he/she wanted a x86 32-bit Linux distribution or a 32-bit Arm Linux distribution.

The latter being entirely doable under QEMU, and I suppose common for ARM-type people. For example, Arch still humors soft float ARMv5te.

The former, which Ben tried, gets an easy "yes of course works". But conflates the second paragraph of the OP stating "some arm CPU is 32-bit", which doesn't have a lot to do with 32-bit x86. Except, to the extent, some Arm cross compilation tooling (read: yocto) is I gather built 32-bit x86 for reasons. But that use case is already covered well by the fact that Ubuntu x64 multiarch works fine out of the box on WSL2. There is no need to spin a 32-bit Alpine (and a few good reasons not to) in order to run Yocto.

[That is all notwithstanding this week's brouhaha about Canonical dropping x86 support. That would make those Arm people's heads explode, nevermind #1644 Steam or #2258 Wine. ]

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

No branches or pull requests

3 participants