lukewilliamboswell/roc-wasm4

Unable to `zig build run` on Mac M2 Max Sonoma 14.4.1 and zig 0.13.0-dev.267+793f820b3

Opened this issue · 2 comments

I cloned the repo and typed: zig build run but get this:

glenn@glenn-MacM2Pro ~/src/github.com/lukewilliamboswell/roc-wasm4 (main) $ zig build run
/Users/glenn/src/github.com/lukewilliamboswell/roc-wasm4/build.zig:19:33: error: no field named 'path' in union 'Build.LazyPath'
        .root_source_file = .{ .path = "build_roc.zig" },
                                ^~~~
/usr/local/zig-macos-aarch64-0.13.0-dev.267+793f820b3/lib/std/Build.zig:2133:22: note: union declared here
pub const LazyPath = union(enum) {
                     ^~~~~
referenced by:
    runBuild__anon_8350: /usr/local/zig-macos-aarch64-0.13.0-dev.267+793f820b3/lib/std/Build.zig:2079:37
    main: /usr/local/zig-macos-aarch64-0.13.0-dev.267+793f820b3/lib/compiler/build_runner.zig:300:29
    remaining reference traces hidden; use '-freference-trace' to see all reference traces
glenn@glenn-MacM2Pro ~/src/github.com/lukewilliamboswell/roc-wasm4 (main) $ zig version
0.13.0-dev.267+793f820b3

A Google search was not terribly helpful for a zig newbie, unfortunately.

Any ideas how to fix this?

It currently uses zig version 0.11.0.

It would be nice to upgrade to 0.12.0 at least. I'm not sure how much work it would be to track the latest zig branch.

Is this something you would be interested in helping with?

Thank you, @lukewilliamboswell !
I'm probably the wrong person for the job as I don't know Zig or Roc (yet). Sorry.
If I figure it out, I'll come back and report, but you should probably open this up to others who know Zig better than I do.