valeriansaliou / sonic

🦔 Fast, lightweight & schema-less search backend. An alternative to Elasticsearch that runs on a few MBs of RAM.

Home Page:https://crates.io/crates/sonic-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

clang - llvm@17 not compatible

MartinClement opened this issue · comments

llvm compatibility issue

Context

  • Macbook Pro M2
  • MacOS Venture ( 13.6.1 ) fresh install
  • rustup 1.26 | rustrc 1.74.0

Reproduce

cargo install sonic-server
### download / compile crates
### --> compilation error related to `librocksdb-sys v6.11.4`
### I would have loved to share a couple error logs but, I was in a hurry and totally forgot to keep it.

Possible fix

### check your clang | llvm version
clang --version

### in case llvm version > 15 or is not installed
brew install llvm@15

### specify the right llvm version in your $PATH using /opt/homebrew/opt/llvm@15/bin
## i.e
fish_add_path /opt/homebrew/opt/llvm@15/bin

### Check used version
clang --version
### in case llvm version === 15 your're good to go!