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

Invalid_argument("OpamEnv.unzip_to") opam error after installing conf-openblas #25194

Closed
pklehre opened this issue Feb 7, 2024 · 2 comments
Closed
Labels

Comments

@pklehre
Copy link

pklehre commented Feb 7, 2024

The following sequence of commands on a fresh opam init (opam v2.1.3) leads to an error that renders the opam switch in an unusable state (e.g., impossible to install new packages)

opam switch create 5.1.1+flambda ocaml-variants.5.1.1+options ocaml-option-flambda
opam install conf-openblas

Error:

[pkl@zeta ~]$ opam env
Fatal error:
Invalid_argument("OpamEnv.unzip_to")
@mseri
Copy link
Member

mseri commented Feb 7, 2024

I see, I think it is due to a bug in opam < 2.1.5:

2.1.5:
* [BUG] Variables are now expanded in build-env (as for setenv) [#5352 @dra27]
* Correctly handle empty environment variable additions [#5350 @dra27]
* Skip empty environment variable additions [#5350 @dra27]
[…]

@mseri
Copy link
Member

mseri commented Feb 7, 2024

Ping @dra27, what do you suggest to keep openblas installable? I think we should probably revert your commit and simply ask people to configure PKG_CONFIG_PATH appropriately in a post message

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

No branches or pull requests

2 participants