Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zig libc panics on Apple M2 / Ventura #15024

Closed
telekid opened this issue Mar 20, 2023 · 3 comments · Fixed by #16058
Closed

zig libc panics on Apple M2 / Ventura #15024

telekid opened this issue Mar 20, 2023 · 3 comments · Fixed by #16058
Labels
bug Observed behavior contradicts documented or intended behavior os-macos
Milestone

Comments

@telekid
Copy link

telekid commented Mar 20, 2023

Zig Version

0.11.0-dev.2191+30427ff79

Steps to Reproduce and Observed Behavior

Looks similar to this (closed) issue.

  1. Download the above zig version from the releases page.
  2. Ensure zig is on $PATH
  3. run zig libc

Output:

% zig libc
thread 4918749 panic: Darwin is handled separately via std.zig.system.darwin module
Unable to dump stack trace: debug info stripped
zsh: abort      zig libc

zig env works fine:

{
 "zig_exe": "/Users/jake/.local/bin/zig/zig",
 "lib_dir": "/Users/jake/.local/bin/zig/lib",
 "std_dir": "/Users/jake/.local/bin/zig/lib/std",
 "global_cache_dir": "/Users/jake/.cache/zig",
 "version": "0.11.0-dev.2191+30427ff79",
 "target": "aarch64-macos.13.2...13.2-none"
}

Expected Behavior

Normal output from zig libc.

macOS verison: 13.2 (22D49)
On Apple Silicon M2

@telekid telekid added the bug Observed behavior contradicts documented or intended behavior label Mar 20, 2023
@jedisct1
Copy link
Contributor

Did you compile Zig yourself, or did you download a tarball from the website?

@telekid
Copy link
Author

telekid commented Mar 20, 2023

It's this tarball from the website (found here.)

@jiacai2050
Copy link
Contributor

@panic("Darwin is handled separately via std.zig.system.darwin module");

I found this was caused by this commit 4270f23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Observed behavior contradicts documented or intended behavior os-macos
Projects
None yet
5 participants