I installed recently ocaml with diskuv distribution. I wanted to install pyml package but I get the following error when I try to install the package :
@Note : Can you file an issue with Issues · thierry-martinez/pyml · GitHub and place @jonahbeckford in the description (so I can see it and help the maintainer)? You can just link to this post.
The cl.exe command line is using -o which is really only supported on Unix C compilers. That makes me think the package does not support the Microsoft compiler (which is common). Should be straightforward to fix that.
The stdcompat package does not copy the stdcompat.lib (and libstdcompat__stubs.lib) during its install. Should be straightforward to fix that as well, and it has the same maintainer. To hack around that (for now only!) you can do the following in PowerShell:
PS1> opam reinstall stdcompat -b
PS1> Copy-Item "$(opam var stdcompat:build)\stdcompat.lib" "$(opam var stdcompat:lib)"
PS1> Copy-Item "$(opam var stdcompat:build)\libstdcompat__stubs.lib" "$(opam var stdcompat:lib)"
PS1> opam install pyml
My anti-virus flagged stdcompat’s conftest.exe (version 18) as malware. I looked at it and seems innocuous. But being flagged as malware will mess up some Windows users eventually. If there is a way for the maintainer to avoid using GNU autoconf probing on Windows then that would eliminate this problem (but that is usually a difficult change).
Thank you, @Note, for reporting, and thank you, @jbeckford, for your analysis.
These issues disappear with the more recent versions of the packages, since dune is now used as default build system, and does the right thing. However, I fixed the Makefile-based build system of stdcompat to install *.lib files on Windows.
I would like not to use autoconf anymore, but I need to find a replacement method and the time to implement it (without any additional dependency).