-
Notifications
You must be signed in to change notification settings - Fork 229
Enable testing against MPFR on windows-gnu #901
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
base: master
Are you sure you want to change the base?
Conversation
@mati865 any chance you'd be able to give me a hand here if you're familiar with MinGW on GHA? Our more thorough tests need to build |
I can take a look tomorrow. |
Feel free to scrap this if you know of a better way than going through msys2/setup-msys2 in GHA. The actual functional part of this diff is |
@tgross35 I think what is missing is just setting up the PATH to contain rustup. Windows has some questionable design decisions for using PATH for binaries and shared objects (dynamic libraries), so MSYS2 by default doesn't include it entirely: https://github.com/msys2/setup-msys2#path-type So the suggestion from Rustup:
Is not helpful at this time. EDIT: okay, adding PATH is not that easy with GHA. |
So there are 2 solutions:
Then Rust installed with rustup is found. I don't have much insight on what happens later, but if you still need help, let me know. |
Hmm, it fails on:
Which looks like a legit error, this code is plainly wrong. Maybe GCC <15 somehow allowed it but they fixed the problem? |
Great catch and thanks for finding it, I didn't get a chance to look into it further. This is a compiler version difference https://gcc.godbolt.org/z/YTd6hnbM3. I think the code is actually valid as the old school untyped function signatures, it would have to be |
Looks like they're aware of it https://gmplib.org/list-archives/gmp-bugs/2024-November/005550.html |
It has been fixed upstream but that hasn't made it to the Rust version yet. Opened https://gitlab.com/tspiteri/gmp-mpfr-sys/-/issues/39 requesting an update. |
ci: skip-extensive