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

Zig 0.14 no longer works with mounted drives #20674

Closed
oldwo opened this issue Jul 18, 2024 · 2 comments
Closed

Zig 0.14 no longer works with mounted drives #20674

oldwo opened this issue Jul 18, 2024 · 2 comments

Comments

@oldwo
Copy link

oldwo commented Jul 18, 2024

Zig Version

0.14.0-dev.362+9d9b5a11e

Steps to Reproduce and Observed Behavior

set ZIG_LOCAL_CACHE_DIR=D:\ZIG_LOCAL_CACHE_DIR
REM Where D: is RAMDISK (ImDisk, RadeonRAMDisk or ArsenalImageMounter) or a Samba network drive.
zig build
....

thread 5424 panic: invalid enum value C:\WinProg\zig\lib\std\Build\Step.zig:442:77: 0x1abe27 in evalZigProcess (build.exe.obj) const prefix_index: std.zig.Server.Message.PathPrefix = @enumFromInt(prefixed_path[0] - 1); ^ C:\WinProg\zig\lib\std\Build\Step\Compile.zig:1744:54: 0x1646c3 in make (build.exe.obj) const maybe_output_bin_path = step.evalZigProcess(zig_args, prog_node) catch |err| switch (err) { ^ C:\WinProg\zig\lib\std\Build\Step.zig:225:13: 0x120830 in make (build.exe.obj) s.makeFn(s, prog_node) catch |err| switch (err) { ^ C:\WinProg\zig\lib\compiler\build_runner.zig:1034:31: 0xdc508 in workerMakeOneStep (build.exe.obj) const make_result = s.make(sub_prog_node); ^ C:\WinProg\zig\lib\std\Thread\Pool.zig:115:39: 0xdcdb8 in runFn (build.exe.obj) @call(.auto, func, closure.arguments); ^ C:\WinProg\zig\lib\std\Thread\Pool.zig:291:32: 0x149a91 in worker (build.exe.obj) run_node.data.runFn(&run_node.data, id); ^ C:\WinProg\zig\lib\std\Thread.zig:409:13: 0x11f5dc in callFn__anon_13901 (build.exe.obj) @call(.auto, f, args); ^ C:\WinProg\zig\lib\std\Thread.zig:522:30: 0xdbaee in entryFn (build.exe.obj) return callFn(f, self.fn_args); ^ ???:?:?: 0x7ff82aec7343 in ??? (KERNEL32.DLL) ???:?:?: 0x7ff82b21cc90 in ??? (ntdll.dll) error: unable to read results of configure phase from 'D:\ZIG_LOCAL_CACHE_DIR\tmp\6eebbdfc7da4add8': FileNotFound

rust is known to not work with RAMDrives due to llvm limitations.
This was one of the main reasons I switched to zig. My sources reside on a network Samba-mounted drive.
See also #8997
#9215

Expected Behavior

Zig should create executable file in zig-out/bin directory.
It works fine with zig versions 0.11, 0.12 and "zig-windows-x86_64-0.13.0-dev.345+103b885fc".

@oldwo oldwo added the bug Observed behavior contradicts documented or intended behavior label Jul 18, 2024
@oldwo
Copy link
Author

oldwo commented Jul 18, 2024

The demo project from zig init is good enough to demonstrate the failure.

@andrewrk
Copy link
Member

andrewrk commented Jul 18, 2024

Pretty sure this is a duplicate of #20648. should be fixed soon

(it also has absolutely nothing to do with mounted drives)

@andrewrk andrewrk closed this as not planned Won't fix, can't repro, duplicate, stale Jul 18, 2024
@andrewrk andrewrk removed the bug Observed behavior contradicts documented or intended behavior label Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants