-
Notifications
You must be signed in to change notification settings - Fork 358
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.2.2~alpha2 env error on Windows 10 with fresh cygwin64 install, libstdc++.6.dll was not found #5728
Comments
Same problem with 2.2~alpha3 that I just downloaded. |
It's from a fresh cygwin64 install, so not sure what's going on. I can manually fix some path and add some symlink to libsdc++6.dll but this seems gross (or the issue is cygwin is broken?) |
You need to add
|
Oh sorry, how did I miss that ... |
Regarding my other question, if I use mingw gcc, do the .exe produced by ocamlopt will require cygwin.dll? |
Compiled opam is always dependent on dlls. They can be on system (the addition in path), or you can fetch them on a single directory (the |
Also in the blog post, Hint is maybe not a great name; it's more than an Hint, it would not work without it. Moreover how to set the PATH? You mention a PATH in the blog post, but if you copy paste in cygwin terminal with PATH=$PATH:C:... it does not work because \ is interpreted as an escape character ... |
Maybe the instructions should mention explicitely the exact command to run to setup this PATH. |
I made a suggestion to try to improve the blog post for alpha3 in ocaml/platform-blog#96 (review). How does that sound? |
Also if the experimental prebuilt windows binary isn’t working for you, please feel free to open a new issue. This present issue should be fixed in the next release by #5680 |
done: ocaml/opam-repository#24791 failure with prebuild windows binary |
#5730 failure again with prebuild windows binary |
Ok I've removed cygwin, install vistual studio build tools 2022, and use the prebuild opam binary, and it seems to work!
|
spoke too fast, another error |
|
created new issue for that here: ocaml/opam-repository#24794 |
finally managed to opam switch create 4.14.1+mingw64 but then I can't opam env it:
|
I manually run ./opam env |
That’ll get fixed in #5715 |
I managed to install a few packages, but I have an error with conf-pkg-config. |
Any idea? Known problem? |
(I mean the first time I tried to install it, I didn't have pkg-config, but rerun cygwin setup to install pkg-config, now found it accessible in my PATH, but then I still get the error. Is there some some of caching preventing to retry?) |
what sort of error do you get? |
|
mmh, what does |
|
(BTW why CC=x86_64_w64-mingw32 when I asked to install 4.14.1+mingw64? ) |
mmh, and where is
the same reason |
$ command -v pkg-config |
Maybe you need to imitate https://fdopen.github.io/opam-repository-mingw/depext-cygwin/ ? |
BTW with the opam64 from fdopen, I can install it without problem:
|
I've followed the instructions on https://opam.ocaml.org/blog/opam-2-2-0-alpha2/ and installed cygwin on
my surface book 2 with windows 10, and installed make, curl, mingw-gcc-g++
but during the compilation of
make cold
, I got some popup windowstelling me "The code execution cannot proceed because libstdc++6.dll was not found. Reinstalling the program may fix this problem.
Then if I click OK I get another of this error, and so on.
BTW: once opam.exe is working, can ocaml produce executable that do not require cygwin dlls on user's machine?
The text was updated successfully, but these errors were encountered: