Cannot find path #517
Labels
No labels
CI
all
basisu
blog
bug
build
contributor-friendly
core
correctness
deferred
dev
direct3d-headers
docs
driver-os-issue
duplicate
dxcompiler
editor
examples
experiment
feature-idea
feedback
flac
freetype
gamemode
gkurve
glfw
gpu
gpu-dawn
harfbuzz
help welcome
in-progress
infrastructure
invalid
libmach
linux-audio-headers
long-term
mach
mach.gfx
mach.math
mach.physics
mach.testing
model3d
needs-triage
object
opengl-headers
opus
os/linux
os/macos
os/wasm
os/windows
package-manager
priority
proposal
proposal-accepted
question
roadmap
slipped
stability
sysaudio
sysgpu
sysjs
validating-fix
vulkan-zig-generated
wayland-headers
website
wontfix
wrench
www
x11-headers
xcode-frameworks
zig-update
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
hexops/mach#517
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I installed Zig and performed the first two steps of the following successfully:
git clone https://github.com/hexops/mach cd mach/ zig build run-example-boidsBut when I try the 'zig build run-example-boids' line, it fails with this error:
PS E:\mach> zig build run-example-boids E:\mach\libs\sysaudio\build.zig:3:23: error: unable to load 'E:\mach\libs\sysaudio\libs\mach-sysjs\build.zig': FileNotFound const sysjs = @import("libs/mach-sysjs/build.zig");I am running Zig version:
PS E:\mach\libs> zig version 0.10.0-dev.980+db82c1b98mach-sysjs appears to be a file, and not a directory containing build.zig.
Very excited for this to work! Thank you!
could u provide some more info?
I just edited my issue with the proper error I received. Thanks!
I am on Windows 11. I turned on Developer Mode and set git to use symlinks per the Known Issues page.
It runs a bit further and then spits all of this out:
PS E:\> cd mach PS E:\mach> zig build run-example-boids .\build.zig:205:9: error: no member named 'source' in struct 'std.build.Pkg' .source = .{ .path = "examples/libs/zmath/src/zmath.zig" }, ^ .\libs\freetype\build.zig:12:5: error: no member named 'source' in struct 'std.build.Pkg' .source = .{ .path = thisDir() ++ "/src/main.zig" }, ^ .\libs\ecs\build.zig:14:15: error: no member named 'use_stage1' in struct 'std.build.LibExeObjStep' main_tests.use_stage1 = true; ^ .\libs\sysaudio\build.zig:15:5: error: no member named 'source' in struct 'std.build.Pkg' .source = .{ .path = thisDir() ++ "/soundio/main.zig" }, ^ .\build.zig:402:5: error: no member named 'source' in struct 'std.build.Pkg' .source = .{ .path = thisDir() ++ "/src/main.zig" }, ^ .\build.zig:416:10: error: type '@typeInfo(@typeInfo(@TypeOf(std.child_process.ChildProcess.init)).Fn.return_type.?).ErrorUnion.error_set!*std.child_process.ChildProcess' does not support field access child.cwd = (comptime thisDir()); ^ .\libs\glfw\build.zig:157:10: error: type '@typeInfo(@typeInfo(@TypeOf(std.child_process.ChildProcess.init)).Fn.return_type.?).ErrorUnion.error_set!*std.child_process.ChildProcess' does not support field access child.cwd = thisDir(); ^ .\libs\gpu-dawn\sdk.zig:157:18: error: type '@typeInfo(@typeInfo(@TypeOf(std.child_process.ChildProcess.init)).Fn.return_type.?).ErrorUnion.error_set!*std.child_process.ChildProcess' does not support field access child.cwd = comptime thisDir(); ^ .\libs\basisu\build.zig:106:10: error: type '@typeInfo(@typeInfo(@TypeOf(std.child_process.ChildProcess.init)).Fn.return_type.?).ErrorUnion.error_set!*std.child_process.ChildProcess' does not support field access child.cwd = (comptime thisDir()); ^ .\libs\sysaudio\build.zig:135:10: error: type '@typeInfo(@typeInfo(@TypeOf(std.child_process.ChildProcess.init)).Fn.return_type.?).ErrorUnion.error_set!*std.child_process.ChildProcess' does not support field access child.cwd = (comptime thisDir()); ^ .\libs\glfw\system_sdk.zig:246:10: error: type '@typeInfo(@typeInfo(@TypeOf(std.child_process.ChildProcess.init)).Fn.return_type.?).ErrorUnion.error_set!*std.child_process.ChildProcess' does not support field access child.cwd = cwd; ^ .\libs\gpu-dawn\sdk.zig:452:18: error: type '@typeInfo(@typeInfo(@TypeOf(std.child_process.ChildProcess.init)).Fn.return_type.?).ErrorUnion.error_set!*std.child_process.ChildProcess' does not support field access child.cwd = comptime thisDir(); ^ PS E:\mach>You need newer version of Zig compiler.
Do I need to build it? The Zig page had this as the latest from master.
I will try a Choco install for Windows. Thanks!
I don't think you have the latest. Latest is here: https://ziglang.org/builds/zig-windows-x86_64-0.10.0-dev.3885+a7661f115.zip
Ok, I'll try this one, but it looks very similar to what I had: zig version 0.10.0-dev.980+db82c1b98
No luck. I did the first step on the "Known issues" page by turning on Developer Mode in Windows and enabling symlinks in git.
The recommended step has "cd mach/gpu". I don't have a mach/gpu directory in my cloned repository of mach. Any ideas or more steps to carry out the first recommendation? I have WSL, but I am not sure what the last step "Run the exe in zig-out/bin/ outside of WSL" means.
The latest version is 0.10.0-dev.3885+db82c1b98 (not 0.10.0-dev.980+db82c1b98). You are using very old version. Looks like you have the old version in the path.
@rpherman github issues isn't the right place to help you. please consider to join Mach's Discord server
@alichraghi Sorry, not very experienced with Github. I will look there. Thanks.
Excited to see you in the discord! :) We can definitely help quicker / more interactively there, GitHub issues are a bit slower to respond to for things like this. I'll close this for now.