Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing conf-openblas 0.2.1 needs PKG_CONFIG_PATH extended. #25075

Closed
tmcgilchrist opened this issue Jan 14, 2024 · 0 comments · Fixed by #25076 or #25196
Closed

Installing conf-openblas 0.2.1 needs PKG_CONFIG_PATH extended. #25075

tmcgilchrist opened this issue Jan 14, 2024 · 0 comments · Fixed by #25076 or #25196

Comments

@tmcgilchrist
Copy link
Contributor

Installing the conf-openblas package on macOS Sonoma ARM fails with:

#=== ERROR while compiling conf-openblas.0.2.1 ================================#
# context     2.1.5 | macos/arm64 | ocaml-base-compiler.5.0.0 | https://opam.ocaml.org#7600b9b6
# path        ~/code/ocaml/par-matmul-profiling/_opam/.opam-switch/build/conf-openblas.0.2.1
# command     ~/.opam/opam-init/hooks/sandbox.sh build sh -exc cc $CFLAGS $(pkg-config --cflags openblas) test.c $(pkg-config --libs openblas)
# exit-code   1
# env-file    ~/.opam/log/conf-openblas-60410-e8868b.env
# output-file ~/.opam/log/conf-openblas-60410-e8868b.out
### output ###
# [...]
# to the PKG_CONFIG_PATH environment variable
# No package 'openblas' found
# ++ pkg-config --libs openblas
# Package openblas was not found in the pkg-config search path.
# Perhaps you should add the directory containing `openblas.pc'
# to the PKG_CONFIG_PATH environment variable
# No package 'openblas' found
# + cc test.c
# test.c:2:10: fatal error: 'cblas.h' file not found
# #include <cblas.h>
#          ^~~~~~~~~
# 1 error generated.



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><>  🐫 
┌─ The following actions failed
│ λ build conf-openblas 0.2.1
└─ 

Installing openblas via brew suggests setting export PKG_CONFIG_PATH="/opt/homebrew/opt/openblas/lib/pkgconfig" to get pkg-config --cflags openblas to work correctly. Running this manually works and correctly installs the package.

What is the recommended way to set PKG_CONFIG_PATH for this package?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants