-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Description
Using zig-windows-x86_64-0.8.0-dev.2749+167754b31.zip on Win 10 1909.
Was testing that -dev version due to #8995.
With R: being a RAMDrive created with ImDisk, I got the following:
R:\zig-windows-x86_64-0.8.0-dev.2749+167754b31 > zig run hello.zig
Hello, world!
R:\zig-windows-x86_64-0.8.0-dev.2749+167754b31 >
R:\zig-windows-x86_64-0.8.0-dev.2749+167754b31 > zig build-exe hello.zig
lld-link: error: cannot open output file hello.exe: function not supported
error: LLDReportedFailure
R:\zig-windows-x86_64-0.8.0-dev.2749+167754b31 >
Suspecting the issue lies on RAMDrive incompatibility... moved the zig folder to a regular HDD, and there the build-exe was successful.
I've seen similar bugs related to RAMDrives on other languages/programs, for example, this bug in Python (a comment there mentions "The above-mentioned cases are all due to WINAPI CreateFileW failing").
Might be a too-niche use case, but... being able to run/build things from RAM helps a lot on older processors / slow HDDs.
In any case, I thought it is always better report this kind of things, right?
[EDIT]; Noticed that after each failed zig build-exe hello.zig invocation, a new empty file named hello.exe.tmpb9d9e3c appears in the current directory (last portion of the filename varies each time).