Skip to content

Support for 32-bit i386 ELF binariesΒ #390

Closed

Description

Currently it does not seem to be possible to execute 32-bit Linux ELF binaries in BashOnWindows environment. An attempt to execute an 32-bit ELF binary fails with the following error:

bash: ./program: cannot execute binary file: Exec format error

Adding i386 architecture to dpkg and installing i386 versions of relevant libraries (libc6, libncurses5, libstdc++6) does not help.

Generally this is not a big deal if the source of the program is available in a way or another, however, there is quite a lot of 32-bit proprietary tools that are distributed in binary-only form, and currently those are unusable within BashOnWindows.

Activity

  1. stehufntdev commented on May 18, 2016

    @stehufntdev

    Thanks for trying out WSL! Currently WSL only supports amd64 (native 64bit), and this was brought up in #228 as well.

    To get this on our priority list can you add it to our UserVoice?

  2. Timvrakas commented on Mar 17, 2017

    @Timvrakas

    Could we have the message returned when 32 bit binaries are run mention this limitation. Its not a big problem but I was a head scratcher for a bit.

  3. yuhong commented on Jul 7, 2017

    @yuhong

    I wonder how they will deal with syscall/sysenter and the vDSO or will they just use int 80h?

  4. ffainelli commented on Apr 7, 2019

    @ffainelli

    You can work around this with installing 'qemu-user' and running your programs with "qemu-i386 ", not the fastest thing in the world, but if you are stuck with 32-bit binaries (not sources), that should do it.

  5. MPeti1 commented on Feb 22, 2021

    @MPeti1

    The above mentioned uservoice instance is no longer available (or at least it says so to me), so I think this issue should be reopened.
    Unless the devs don't want to deal with this problem, in which case it would be nice to have an official statement (at least in this issue) regarding that.
    Blue (@OneBlue) (tagging you because you seem to be the only active dev nowadays)

  6. windowsair commented on Feb 22, 2021

    @windowsair

    The above mentioned uservoce instance is no longer available (or at least it says so to me), so I think this issue should be reopened.
    Unless the devs don't want to deal with this problem, in which case it would be nice to have an official statement (at least in this issue) regarding that.
    Blue (@OneBlue) (tagging you because you seem to be the only active dev nowadays)

    WSL1 has ceased development. This problem does not exist in WSL2.

  7. GitMensch commented on Apr 22, 2021

    @GitMensch

    WSL1 has ceased development. This problem does not exist in WSL2.

    The likely sole question is: even if WSL2 is installed and used on a system, installing another distro via MS Store still installs it with with WSL1 - Why? (works after manual upgrade via wsl --list --verbose + wsl --set-version $distro_name 2)

  8. deven commented on Sep 17, 2021

    @deven
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions