Skip to content
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

Fix the compilation of opam on Windows with OCaml >= 5.0 (again) #6216

Merged
merged 5 commits into from
Oct 8, 2024

Conversation

kit-ty-kate
Copy link
Member

@kit-ty-kate kit-ty-kate commented Sep 30, 2024

It seems that after a couple of rebase of #6189 we forgot to commit one change to OpamStubs.ocaml5.ml which actually means that the file doesn't compile (since the Windows+OCaml5 combination wasn't tested in our CI).
This here PR should fix this issue for good.

Backported to 2.3 in #6224

@kit-ty-kate
Copy link
Member Author

I've merged #6211 (with additional improvements) into this PR because it makes more sense as one given this adds an actual CI for Windows + OCaml5.

Copy link
Member

@dra27 dra27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Notes only - this looks good to go, thank you!

.github/workflows/ci.ml Outdated Show resolved Hide resolved
matrix, [])
([], [
[("host", "x86_64-pc-cygwin"); ("build", "x86_64-pc-cygwin"); ("ocamlv", latest_ocaml4)];
[("host", "i686-w64-mingw32"); ("build", "x86_64-pc-cygwin"); ("ocamlv", latest_ocaml4)];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about having the mingw-w64 i686 test OCaml 5.2.0 and the MSVC i686 test OCaml 4.14.2?

Suggested change
[("host", "i686-w64-mingw32"); ("build", "x86_64-pc-cygwin"); ("ocamlv", latest_ocaml4)];
[("host", "i686-w64-mingw32"); ("build", "x86_64-pc-cygwin"); ("ocamlv", latest_ocaml5)];

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this would trigger the tests for the platform and it would be way too slow

.github/workflows/ci.ml Outdated Show resolved Hide resolved
Copy link
Collaborator

@rjbou rjbou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some nitpicking, otherwise, lgtm!!

Commit "GHA: Add OCaml 5.2.0 to the build matrix" adds 5.2.0 and adds also the possibility to have more that 1 version to test on all jobs. Commit text should reflect that, or the commit should be splitted in two.

.github/workflows/ci.ml Outdated Show resolved Hide resolved
master_changes.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@rjbou rjbou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Windows is an exception since MSVC isn't supported yet (will
be in 5.3.0), and Cygwin fails when used in combination with C++
stubs. So only MinGW x86_64 is tested because it's the only one that
both works and is reasonably fast to run (i686 is too slow since it's
using bytecode).
…upported by master

This marginally increases build time (by 30s best case scenario) but is a necessary fix
@kit-ty-kate kit-ty-kate merged commit bd5a746 into ocaml:master Oct 8, 2024
40 checks passed
@kit-ty-kate kit-ty-kate deleted the fix-win32-ocaml5 branch October 8, 2024 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants