-
Notifications
You must be signed in to change notification settings - Fork 368
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
After having installed opam with msys, the command opam init fails #5713
Comments
Note that opam does not officially support running with a MSYS2 environment at the moment, we only officially support Cygwin. We currently do not have the knowledge or time necessary to support and test both. Hopefully in the future but not now. That said, with sufficiant knowledge of MSYS2 it should work in theory, if i remember correctly. A quick look at a search engine with the error you got, gives me msys2/MSYS2-packages#1794, which looks like it states that mixing mingw libraries and msys2 system libraries can lead to this kind of error. cc @jonahbeckford in case you’re interested. |
Yes, the latest versions of opam install Cygwin during its opam initialization; that uses a DLL And if you are just looking for prebuilt native Windows binaries (compatible with MSYS2), grab v2.2.0-alpha-20221228 from https://github.com/diskuv/dkml-component-opam/releases. |
Do you know what broke it? Is it the thing you explained in #5683 or is there something else? |
Hello, thanks all for your answer. I completely understand that the situation here is very specific, but I didn’t know if it was out of the scope or not. As I know you are still stabilizing the windows version, I’ve estimated this issue could be reported here. |
Yes, it is the thing in #5683 (which is being worked on). |
@Chimrod how did you use |
(Oh, I’ve answer in the wrong ticket. Sorry for the noise.) When I specify the path to msys (in my case
I’ve tried differents way to spectify the path, but I do not understand the hierarchy required |
Which term are you using ? i'm testing it with cmd (make cold on cygwin), and there is no path rewriting. It is not working because it detects that it is not an cygwin install, but looks for in the given path. |
I’ve upgraded opam to the latest version git version. The compilation process now works fine, but I have an error when creating a new fresh environnent.
I’ve extracted the log and the environment files generated by opam:
ocaml-base-compiler-25444-20665a.env.txt
ocaml-base-compiler-25444-20665a.out.txt
The text was updated successfully, but these errors were encountered: