-
Notifications
You must be signed in to change notification settings - Fork 218
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
MingW build broke with latest MingW #641
Comments
Oh no! I'll take a look soon |
Great. I am ready to make Release 4.1.0 and this cropped up as I was updating the code-signing part of the build. I'm also getting warnings about node.js 12 actions being deprecated. This affects the seanmiddleditch ninja action. Probably the reference needs updating to a newer version. This build shows the issues. |
I have a repro and a local build fix but it seems like there are some serious test failures. I'll need to attach a debugger and hunt those down. This seems to happen regardless of whether or not I try to specify linking the ucrt or msvcrt. Though I may be messing that bit up.
|
This all seemed strange so on a different machine I tried building with a different mingw-w64 distribution. This time from https://github.com/skeeto/w64devkit instead of chocolatey. It doesn't have any problems building but does seem to exhibit similar test failures |
It's a different set of failing tests actually
|
I also tried doing a build with a gcc distribution from msys2 and I got the same issue. Everything builds fine but there seem to be some possibly valid test failures. Still need to dig in with a debugger. Using the github actions on my fork to see if gcc 11.2.0 from choco gives the same test failures |
Gotta run tests in release mode. gcc distro from w64devkit seems to be fine actually. |
Confirmed that with this working version of gcc 12 that we still need |
Reproed this in the ucrt64 environment in msys2. I have a simple change that will get it building but we still get some test failures:
|
GOT IT https://stackoverflow.com/questions/6404636/libstdc-6-dll-not-found |
Good grief! What an unholy mess from a change nothing to do with us. Thanks so much for delving into and fixing this. I'll be away for the next 24 hours, leaving in a couple of minutes. I'll review the PR when I return. |
The MingW build has been broken by an update to the MingW installation on GitHub Actions.
The issue is at
KTX-Software/lib/filestream.c
Lines 310 to 317 in f4feff2
The GCC version in the MingW where this works is 11.2. That in the version where it is broken is 12.2. I do not know the MingW version as cmake config does not report it. Presumably the later version is no longer using the msvcrt that had the problem. The obvious fix is to remove the
|| defined(__MINGW32__)
but that will break running, but not building, in earlier versions of MingW.@Honeybunch please provide a PR to fix this. I do not have a MingW installation so can't test a fix especially not on multiple versions. Presumably a fix that will not break earlier versions will involve using the
__MINGWXX_MAJOR_VERSION__
and ``MINGWXX_MAJOR_VERSION` defines.Why are we using
__MINGW32__
in the above and not__MINGW64__
We should be building 64-bit libraries and applications so the latter seems more appropriate.The text was updated successfully, but these errors were encountered: