immunant / c2rust

Migrate C code to Rust
https://c2rust.com/
Other
3.95k stars 234 forks source link

Darwin build is broken with LLVM 17 #1039

Closed dgherzka closed 11 months ago

dgherzka commented 11 months ago

I have observed this locally after updating MacOS to Sonoma, and it is also happening on CI: https://dev.azure.com/immunant/c2rust/_build/results?buildId=3921&view=logs&j=02bad918-85c8-5a4b-30eb-93cb7f58f78e&t=4e141b9f-cf66-5021-c262-96c31d2de06c

Locally, this can be worked around by installing LLVM 16 via Homebrew:

brew install llvm@16

and building c2rust with:

export LLVM_CONFIG_PATH=/opt/homebrew/opt/llvm@16/bin/llvm-config