-
Notifications
You must be signed in to change notification settings - Fork 570
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 vs2019 pre-commit failures relating to zlib warnings #5766
Conversation
PRs are currently held up by vs2019 warnings-as-errors, relating to lossy implicit integer conversions.
Further casts.
Further casts.
980ae7c
to
df9bdfe
Compare
@derekbruening Help! I'm trying to fix the vs2019 pre-commits, thinking that they were just caused by some simple lossy implicit conversions, but it's turning into something more complicated. I simply don't know about how the project is built, and I don't have access to a Windows machine I can try and build locally on. This is from the last successful build of vs2019-32 (aa99f09):
And this is from the my precommit:
The hosted runner images haves been updated, and it now includes zlib, which enables a define, which unlocks new code:
I corrected those errors, but I'm hitting unresolved symbol linker errors in the vs2019-32 build. However I think they're related to this, rather than a missing library:
The x64 builds are successful, but then go onto fail the unit tests quite badly. |
Filed #5767 as this also broke the weekly build |
So they only installed the 64-bit but not 32-bit zlib? And the cmake code finds the wrong-bitwidth one, which is not separated into a dir with the bitwidth in the name. I would think others might hit this too? Maybe we should file a bug vs the github actions runners if there is not one already and see if there is some solution when installing strawberry zlib. If we have to fix it ourselves we'll have to write cmake code to check the bitwidth and maybe add to PATH (see below).
Do you mean this:
That is a PATH issue. I wonder if it is a github runner issue as DR's private loader should search the PATH. |
I wouldn't consider this a bug with GH as we're building against a library that ships with an unrelated program. Ideally we should be asking Chocolatey or vcpkg to install a specific version of zlib, but that's a bigger change. |
I'm thinking let's unblock the suite by just disabling zlib when AUTOMATED_TESTING and WIN32 are both set and let #5767 cover further improvements. I'm putting that in now on top of the warnings you've already solved. |
…; instead set AUTOMATED_TESTING in base_cache
PRs are currently held up by vs2019 warnings-as-errors, relating to lossy implicit integer conversions.