0.14 Errors libc++

Hi, I upgraded Zig to 0.14.0 using homeBrew and now i get this error when running any Zig command. MacOS is Ventura 13.7.4.

Zig is in.

/usr/local/bin/zig

Mac Version

ProductName:            macOS
ProductVersion:         13.7.4
BuildVersion:           22H420

Error:

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 

It means Hombrew has improperly packaged Zig and you should not use it.

Tracking issue:

3 Likes