zig icon indicating copy to clipboard operation
zig copied to clipboard

error: Unexpected on zig build MacOS 14.4

Open JoshuaKeegan3 opened this issue 1 year ago • 2 comments

Zig Version

0.11.0 (homebrew)

Steps to Reproduce and Observed Behavior

I updated my Mac from version 13.? to 14.4 and I can no longer run zig build. I get error: Unexpected. I am unsure if the update is related. I uninstalled zig and reinstalled it using the following steps.

  • brew uninstall zig
  • brew install zig
  • zig init-exe
  • zig build
image

As observed above zig run works. It doesn't create a executable though (idk if it should)

Expected Behavior

I expect it to build and create an executable.

JoshuaKeegan3 avatar Mar 24 '24 12:03 JoshuaKeegan3

Related?: https://github.com/Homebrew/homebrew-core/issues/134298

Note I didn't use -HEAD

JoshuaKeegan3 avatar Mar 24 '24 12:03 JoshuaKeegan3

Likely a duplicate of https://github.com/ziglang/zig/issues/17342

You could try the workarounds mentioned in the later comments in that thread.

squeek502 avatar Mar 24 '24 22:03 squeek502

This was a duplicate. Thanks for your help

JoshuaKeegan3 avatar Mar 26 '24 10:03 JoshuaKeegan3