-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Zig 0.14.0 fails to compile hello world on WSL 1 #23153
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
Comments
In Zig 0.13.0, we formally required kernel version 4.19+, but didn't actually make use of any syscalls from that version. In Zig 0.14.0, we started actually using newer syscalls, e.g. It is very unlikely that we'll make any effort to support WSL 1 since it's emulating a very old kernel version, and it isn't even a 'real' Linux kernel underneath. Is there a reason you aren't just using WSL 2? |
For me, WSL is a Linux environment that can conveniently share a file system with Windows. Unfortunately, WSL 2 is terrible for this purpose because accessing the Windows file system in WSL2 is incredibly slow. When I tried to migrate from WSL 1 to WSL 2, the time to compile the same project increased from about two minutes to two hours and a quarter, so I had to go back to WSL 1. |
this works much better the other way: keep files on the WSL2 side, and have windows programs access the linux filesystem there's still an overhead, but it's rare for a windows program to access that many files, so it tends to be less of a problem in practice |
I know this, but it doesn't make sense to me. The only reason I use WSL is so I can use the Linux toolchain to work with files in the Windows file system. For other purposes, I use the Linux physical machine in the intranet directly. Accessing files in the WSL2 file system from Windows is no more convenient than accessing files on other devices via Samba. |
Maybe we can do version check in debug mode? The error above is quite confusing. |
Zig Version
0.15.0-dev.10+214750fcf
Steps to Reproduce and Observed Behavior
I'm using the following environment:
zig 0.13.0 works fine for me, but zig 0.14.0/0.15.0-dev.10+214750fcf can't compile or run anything even Hello World:
Expected Behavior
Compile normally
The text was updated successfully, but these errors were encountered: