-
Notifications
You must be signed in to change notification settings - Fork 346
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 doesn't find any compiler for a switch creation on Windows #5798
Comments
Could you show us what’s the output of |
and
|
Ah, according to To try to reproduce it or fix it, could you try |
With the
I try the
I have submitted a ticket ocaml-opam/opam-repository-mingw#15 on the repository project. |
you used |
My bad, with
Note, I have both mingw and MSVC compilers installed. However, |
awesome! I’m still confused at how you ended up without any repositories despite giving the proper url in the first place (the original two first comments of this issue). Do you remember anything at all from the first time you called Running Also how did you end up from having an opam root to not having one in #5798 (comment) ? Did you remove your opam root by hand? |
@kit-ty-kate I have tried with the The issue with the msvc64c variant come from a PATH issue. ( |
Yes, but I was asking about the first time around (the reason why you opened this issue), do you remember anything from then? An empty |
Yes, it is possible that the first time I hit Ctrl-C since the actual compilation of ocaml in a switch takes a lot of time without printing anything. But I was sure to erase the opam directory. Note: I have finally manage to build a msvc32c variant: from CMD : call "c:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat" -arch=x86, then launch a Cygwin subshell, then create the switch. (-arch=amd64 is needed for a 64 bits switch). Launching a MSVC tool chain from cygwin is not straightforward! I guess the ticket can be closed. Thanks for the help. |
I have just installed opam-full-2.2.0-beta1 on Windows (
make cold; make cold-install; opam init git+https://github.com/ocaml-opam/opam-repository-mingw
).But I can't create a switch:
opam update
doesn't help (it quickly returns, no apparent download).Also:
The text was updated successfully, but these errors were encountered: