-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Cannot compile ocaml-base-compiler.4.10.0 under MSVC+Cygwin #24186
Comments
You're doing this with normal opam-repository, right? This simply doesn't work at the moment - opam-repository doesn't support building ocaml-base-compiler on MSVC. |
Oh, thanks. |
Why doesn’t opam-repository support MSVC? What can be done to fix that? |
Start in ocaml/opam#246 and go from there 🙂 |
(also https://fdopen.github.io/opam-repository-mingw/ if you're not already aware) |
I'm on in this as part of the upgrade of |
i moved this issue to opam-repository as it is now mostly an opam-repository issue since the release of opam.2.2.0~alpha |
Hi,
I’m using Opam under Cygwin with the MSVC64 compiler. When initializing Opam, I configure it to build the ocaml-base-compiler.4.10.0 package. The build script I’m using is essentially the same as Opam CI.
You can see the build log on AppVeyor and the code that produced it.
The command is essentially:
However, I have two issues:
OCAML_STDLIB_DIR
This variable seems to be generated from OCaml's configure script. The problem is that the path is in the Windows format. The backlash are not escaped and are considered as 'unknown escape sequences' in C code. I have not been able to override this variable. I tried setting
OCAMLLIB
with mixed path style (Windows path with forward slashes), to no avail.An excerpt of the error:
flexdll.h: No such file or directory
My guess is that it is possible that during the compilation of ocaml-compiler-base, the
flexdll
directory of the OCaml sources is not populated with Flexdll, or that the compiler gets wrong paths to the flexdll installation. What’s the play here? Should Flexdll be installed globally?Thanks!
The text was updated successfully, but these errors were encountered: