llvm@16
's version of llvm-config
doesn't include the correct -L
flag for zstd
when passed --link-static
on Apple-silicon-based Macs
#158534
Labels
bug
Reproducible Homebrew/homebrew-core bug
outdated
PR was locked due to age
stale
No recent activity
upstream issue
An upstream issue report is needed
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputVerification
brew doctor
output" saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
I was trying to use the OCaml LLVM bindings (package
llvm
) available via OPAM. This depends onconf-llvm
which in turn depends on the Homebrew installation ofllvm@16
.What happened (include all command output)?
The OPAM package fails to install (see here) due to not being able to find
zstd
. Moreover,/opt/homebrew/Cellar/llvm@16/16.0.6/bin/llvm-config --cflags --system-libs --ldflags --link-static --libs Core
fails to provide the correct linker flags forzstd
. (In particular, it is missing the flag-L/opt/homebrew/opt/zstd/lib
.)What did you expect to happen?
I expected the output of
/opt/homebrew/Cellar/llvm@16/16.0.6/bin/llvm-config --cflags --system-libs --ldflags --link-static --libs Core
to include the flag-L/opt/homebrew/opt/zstd/lib
.Step-by-step reproduction instructions (by running
brew
commands)The text was updated successfully, but these errors were encountered: