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

configure: Ensure a complementary (32bit on 64bit platforms and 64bit on 32bit platforms) C compiler is installed on Windows #5522

Merged
merged 1 commit into from
Jul 24, 2023

Conversation

kit-ty-kate
Copy link
Member

@kit-ty-kate kit-ty-kate commented Apr 24, 2023

src/stubs/win32/cc64 was never written before because the C compiler was always the wrong one (x86_32 when only the x86_64 is available and x86_64 when only the x86_32 one is available)

I'm not sure how it ever worked before. Maybe the typical setup always has both x86_64 and x86_32 so it somehow worked out.

A complementary C compiler (32bit on 64bit platforms and 64bit on 32bit platforms) is required to build opam-putenv on Windows, but the check for those compilers only output a warning instead of an error. Said warning made it seem like it way an optional binary, however this is not the case and is always required on Windows AFAIK.

cc @MisterDA

@kit-ty-kate
Copy link
Member Author

kit-ty-kate commented Apr 24, 2023

Reading 316f7ac (the commit that introduced this line and the cc64 concept), I'm even more confused now.

@kit-ty-kate kit-ty-kate marked this pull request as draft April 24, 2023 23:56
@kit-ty-kate kit-ty-kate force-pushed the fix-mingw branch 2 times, most recently from b7b2aa7 to c22b3e2 Compare May 8, 2023 14:18
@kit-ty-kate kit-ty-kate changed the title Fix compilation with mingw configure: Ensure a complementary (32bit on 64bit platforms and 64bit on 32bit platforms) C compiler is installed on Windows May 8, 2023
@kit-ty-kate kit-ty-kate marked this pull request as ready for review May 8, 2023 14:21
@rjbou rjbou removed this from the 2.2.0~alpha milestone Jun 7, 2023
… on 32bit platforms) C compiler is installed on Windows
@rjbou
Copy link
Collaborator

rjbou commented Jul 19, 2023

Having a warning makes more difficult to debug, see #5601

@rjbou rjbou added this to the 2.2.0~alpha2 milestone Jul 19, 2023
@kit-ty-kate kit-ty-kate merged commit 72a0d54 into ocaml:master Jul 24, 2023
@kit-ty-kate kit-ty-kate deleted the fix-mingw branch July 24, 2023 12:10
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.

2 participants