I'm trying to figure out what is going on. I observe the following.
- exe binary compiled on Windows 10
- elf binary compiled on CentOS7 with
musl
- User 1 WSL2:
elf binary runs, exe binary runs
(updated) - User 2 WSL2:
elf binary error, exe binary runs (surprised #1)
- User 3 WSL2:
elf binary runs, exe binary runs (surprised #2)
Note, the errors are executable format errors from the OS, not program crashes.
On a new machine I can recreate the User 1 experience, but I have no clue why the other users are having their experiences. I have verified through screen sharing what they are observing.
EDIT This information about compatibility for running different types of executables in WSL and how it has changed over time may be helpful when I can learn more about the users during the next meeting. https://stackoverflow.com/questions/38920710/how-can-i-run-a-windows-executable-from-wsl-ubuntu-bash
EDIT I plan to gather more information next time I can meet with the users, such as:
- windows version
- WSL version
- terminal shell / how the terminal was invoked
Exec format error
? Also, confirm that each user really is using WSL2 withwsl -l -v
. Often times, even though the WSL2 subsystem itself is installed, the instance is still WSL1 for various reasons. Finally, checkuname -a
on each system.uname -a
to the diagnostics for our next meeting. Yes, exec format error - I will update my answer.