c3c icon indicating copy to clipboard operation
c3c copied to clipboard

macOS install instructions incomplete?

Open moomerman opened this issue 2 weeks ago • 1 comments

I'm looking forward to trying out C3. I just followed the macOS install instructions from the website that state:

Installing on Mac Arm64
* Make sure you have XCode with command line tools installed.
* [Download the C3 compiler. ](https://github.com/c3lang/c3c/releases/latest/download/c3-macos.zip)Or the [debug build ](https://github.com/c3lang/c3c/releases/latest/download/c3-macos-debug.zip).
* Unzip executable and standard lib.
* Run ./c3c.

However following these instructions results in:

./c3c
dyld[28179]: Library not loaded: /opt/homebrew/opt/llvm@18/lib/libunwind.1.dylib
  Referenced from: <5CFAB7E2-3E1C-3826-A8C9-D5360C535C17> /Users/richard/Downloads/macos/c3c
  Reason: tried: '/opt/homebrew/opt/llvm@18/lib/libunwind.1.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/llvm@18/lib/libunwind.1.dylib' (no such file), '/opt/homebrew/opt/llvm@18/lib/libunwind.1.dylib' (no such file)
fish: Job 1, './c3c -v' terminated by signal SIGABRT (Abort)

brew install llvm@18 fixes the problem

moomerman avatar Dec 11 '25 10:12 moomerman

Also related: #1388 #1585. Short story is that it builds by grabbing the static LLVM libraries from Homebrew. But those are idiotically built with dynamic dependencies to other homebrew packages. The solution is for the CI to use its own compiled LLVM static libraries. There is only a little work that has been done on that so far.

lerno avatar Dec 11 '25 14:12 lerno

I also hit this. brew install llvm@18 worked.

lfnoise avatar Dec 17 '25 21:12 lfnoise

can macos intel version works?

fireinrain avatar Dec 20 '25 05:12 fireinrain