Skip to content

Zig compiler not working as expected on 601ab9a #14093

@ddeletedaccount

Description

@ddeletedaccount

Zig Version

0.11.0-dev.980+601ab9a25

Steps to Reproduce and Observed Behavior

System: Apple M1 Pro

Installation:

brew install zig --HEAD


Commands & output:

zig env

error: Zig was built/linked incorrectly: LLVM and Clang have separate copies of libc++
       If you are dynamically linking LLVM, make sure you dynamically link libc++ too

zig libc

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

Expected Behavior

Based on output of 0.10.0.
Earlier commit from yesterday was working well, I believe 81443fc.

zig env

{
 "zig_exe": "/opt/homebrew/Cellar/zig/0.10.0/bin/zig",
 "lib_dir": "/opt/homebrew/Cellar/zig/0.10.0/lib/zig",
 "std_dir": "/opt/homebrew/Cellar/zig/0.10.0/lib/zig/std",
 "global_cache_dir": "/Users/lamersc/.cache/zig",
 "version": "0.11.0",
 "target": "aarch64-macos.13.1...13.1-none"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    os-macosmacOSregressionIt worked in a previous version of Zig, but stopped working.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions