-
Notifications
You must be signed in to change notification settings - Fork 372
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
problem with OCAMLFIND_DESTDIR and OCAMLPATH #164
Comments
Fixing this comprehensively either requires enumerating all the environment variables which might affect compilation (there are a lot) and overriding them, or by not inheriting any of the parent shell variables and specifically setting them in any OPAM-invoked shells. The latter is somewhat more preferable in terms of deterministic output, but would need some support for the user to override some env variables (e.g. to support http://caml.inria.fr/mantis/view.php?id=5723 ) |
Not inheriting parent shell variables sounds good. I'm probably being naive, but I don't understand why that would |
Right, mandating a specific set of environment variables would be Although, it occurs to me that you can also already do this via compiler -anil On 17 Sep 2012, at 20:31, Stephen Weeks [email protected] wrote:
|
You seem not to be the first one to hit this issue, so I guess we should do something about it. Maybe starting from a fresh environment is the right way to go. And yes, for the compiler env variables, the right way to define them is in the compiler description files. |
This should be fixed in 0.7. OPAM now displays a warning if the wrong environment variables are set. |
The recently-reported issue ocaml/Zarith#136 might be an instance of this old problem. I'll let you decide. [ Edit: fixed the URL ]. |
If I have OCAMLFIND_DESTDIR and OCAMLPATH set in my environment, then
opam install res
fails with the complaint below:I did run
eval $(opam config -env)
, but I see that isn't setting (orclearing) those variables.
The text was updated successfully, but these errors were encountered: