zig build run-example-boids build failed #252

Closed
opened 2022-04-24 08:04:45 +00:00 by domesticmouse · 1 comment
domesticmouse commented 2022-04-24 08:04:45 +00:00 (Migrated from github.com)
$ zig build run-example-boids
./gpu/libs/mach-gpu-dawn/build.zig:238:9: error: no member named 'addLibraryPath' in struct 'std.build.LibExeObjStep'
    step.addLibraryPath(target_cache_dir);
        ^
./gpu/libs/mach-gpu-dawn/build.zig:398:66: error: no member named 'mode' in struct 'std.fs.file.OpenFlags'
    var file = try std.fs.openFileAbsolute(src_absolute_path, .{ .mode = .read_only });
                                                                 ^
$ uname -a
Darwin 21.4.0 Darwin Kernel Version 21.4.0: Fri Mar 18 00:46:32 PDT 2022; root:xnu-8020.101.4~15/RELEASE_ARM64_T6000 arm64
$ zig version
0.9.1
```console $ zig build run-example-boids ./gpu/libs/mach-gpu-dawn/build.zig:238:9: error: no member named 'addLibraryPath' in struct 'std.build.LibExeObjStep' step.addLibraryPath(target_cache_dir); ^ ./gpu/libs/mach-gpu-dawn/build.zig:398:66: error: no member named 'mode' in struct 'std.fs.file.OpenFlags' var file = try std.fs.openFileAbsolute(src_absolute_path, .{ .mode = .read_only }); ^ ``` ```console $ uname -a Darwin 21.4.0 Darwin Kernel Version 21.4.0: Fri Mar 18 00:46:32 PDT 2022; root:xnu-8020.101.4~15/RELEASE_ARM64_T6000 arm64 $ zig version 0.9.1 ```
michal-z commented 2022-04-24 08:21:27 +00:00 (Migrated from github.com)

You need zig 0.10.x (master).

You need zig 0.10.x (master).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
hexops/mach#252
No description provided.