gpu-dawn binaries for Mac not available for latest zig #292

Closed
opened 2022-05-23 13:02:17 +00:00 by kamidev · 4 comments
kamidev commented 2022-05-23 13:02:17 +00:00 (Migrated from github.com)

Zig 0.10 has changed the Darwin default ABI from "gnu" to "none", with this breaking PR: https://github.com/ziglang/zig/pull/11684. As a consequence, the expected gpu-dawn binaries currently does not exist for Mac users.

Below an example using zig-gamedev. The problem is general, though.

➜  zig-gamedev git:(main) rm -rf git-cache; stage1 build
error: gpu-dawn binaries for aarch64-macos.12.4...12.4-none not available.
error: -> open an issue: https://github.com/hexops/mach/issues
error: -> build from source (takes 5-15 minutes):
error:        use -Ddawn-from-source=true or set `Options.from_source = true`
...

Building from source still works as expected.

Zig 0.10 has changed the Darwin default ABI from "gnu" to "none", with this breaking PR: https://github.com/ziglang/zig/pull/11684. As a consequence, the expected gpu-dawn binaries currently does not exist for Mac users. Below an example using zig-gamedev. The problem is general, though. ``` ➜ zig-gamedev git:(main) rm -rf git-cache; stage1 build error: gpu-dawn binaries for aarch64-macos.12.4...12.4-none not available. error: -> open an issue: https://github.com/hexops/mach/issues error: -> build from source (takes 5-15 minutes): error: use -Ddawn-from-source=true or set `Options.from_source = true` ... ``` Building from source still works as expected.
emidoots commented 2022-05-23 16:25:05 +00:00 (Migrated from github.com)

Thanks for filing, we're not yet up-to-date with that Zig version. We generally try to track latest nightly, but can lag behind a few weeks. You can find the latest supported version Mach tracks in the CI config here:

github.com/hexops/mach@f3e2b8b74c/.github/workflows/ci.yml (L94)

I'll leave this issue open until we do update.

Thanks for filing, we're not yet up-to-date with that Zig version. We generally try to track latest nightly, but can lag behind a few weeks. You can find the latest supported version Mach tracks in the CI config here: https://github.com/hexops/mach/blob/f3e2b8b74c38f829e5717a75f6a07017ab6b8872/.github/workflows/ci.yml#L94 I'll leave this issue open until we do update.
kamidev commented 2022-05-24 08:56:59 +00:00 (Migrated from github.com)

Thank you for all the great work on Mach!

Thank you for all the great work on Mach!
emidoots commented 2022-05-31 18:40:57 +00:00 (Migrated from github.com)

This is fixed, and you can now find the version of Zig we test with here: https://github.com/hexops/mach#supported-zig-version

Should be easier for us to keep up to date in the future, too.

Let me know if you run into any trouble.

This is fixed, and you can now find the version of Zig we test with here: https://github.com/hexops/mach#supported-zig-version Should be easier for us to keep up to date in the future, too. Let me know if you run into any trouble.
kamidev commented 2022-05-31 20:31:53 +00:00 (Migrated from github.com)

Works like a charm! We just changed zig-gamedev to use the right Mac binaries. And I can now play with the Mach samples without building from source. Thanks a lot!

Works like a charm! We just changed zig-gamedev to use the right Mac binaries. And I can now play with the Mach samples without building from source. Thanks a lot!
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#292
No description provided.