-
Notifications
You must be signed in to change notification settings - Fork 357
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
opam on windows: Error while running ocamlc -version during opam install #6129
Comments
Could you try re-running it with |
I wonder if it could be ocaml/ocamlfind#64 |
What am I doing wrong?
( ~/AppData/Local/opam/log/coq-core-14964-4e7eac.out also has no additional information) Same results with |
Good question, how could I test that? |
mmh, weird. Maybe coq's configure script scrubs the environment somehow or something else. I'm not sure how to fix that.
should do it i believe |
I suspect the problem may run deeper. Perhaps I shouldn't have installed opam in my mingw shell, although I vaguely remember just installing in powershell had its own problems (perhaps because I was following the documentation on https://opam.ocaml.org/doc/Install.html without realizing that on windows, I should follow the steps from some blog post instead). Could that have caused the issue? How to uninstall opam on windows? Then perhaps I could reinstall from scratch |
Hi folks, I ran into this, and I've been tying to investigate, but indeed, so far debugging this hasn't been trivial. One particular problem is that The problem is that Coq's configure will call:
This makes ocamlfind crash with the above exception. Having Coq's configure script just call Finding the right magic to get ocamlfind print the debug info was not immediate, but I managed in the end:
|
So indeed it seems ocaml/ocamlfind#64 or a variation of it. |
I confirm the patch in |
@ejgallego pardon my ignorance, but how can I get that patch? Using |
Ah, I figured it out |
Yes, exactly! That's just the 1.9.5 tree with the fix applied. We will try to update the |
Now updated in ocaml/opam-repository#26510 |
after pinning
|
The error code seems scary:
No idea what is causing this, things do work fine for me. Only idea I have is that maybe you are hitting some kind of path length or command line arguments length limit? |
Trying to install coq-core.8.19.2
Manually running
D:\Users\...\AppData\Local\opam\default\bin/ocamlfind.exe ocamlc -version
outputs5.2.0
The text was updated successfully, but these errors were encountered: