Antonio Lentini

Results 6 comments of Antonio Lentini

Asked to GPT-5 and told me to add some environment variables. The following appear to be the essential ones: ``` LLVM_PREFIX="$(brew --prefix llvm@19)" export CGO_CFLAGS="-I$LLVM_PREFIX/include -I$LLVM_PREFIX/include/llvm" export CGO_CPPFLAGS="$CGO_CFLAGS" export CGO_LDFLAGS="-L$LLVM_PREFIX/lib...

> > Don't know if ever happened before. I checked the current version of `version.go` in `go-llvm` and the line that contains the `include` is commented out. > > It's...

> brew --prefix llvm@19 ``` /opt/homebrew/opt/llvm@19 ```

> Hmm, that is the expected location. Can you try running `go install -x -p 1` (without the environment variables you added before!) and share the result? That might help...

I think it's searching specifically for `llvm@20`, or at least it's what I understand from the `cgo` command. I tried installing `llvm@20` and `lld@20` and `go install` was successful. Does...

> So you did `brew install llvm` before and that didn't work, but `brew install llvm@20` worked? Is that correct? Yes.