-
Notifications
You must be signed in to change notification settings - Fork 28
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
[Windows|macOS|Linux|BSD] - Qt6 version FTBFS on Clang due to C++17 #506
Comments
I think this is a problem that will be solved if we switch to C++17. I can't check now, but C++17 is not supported by the old systems used by appveyor and others? |
The 32-bit Qt 5¹ Windows 7 builds use MinGW 8.1.0, which is the last version that Qt 5 gets tested with to this day. GCC 8.1.0 should support C++17 according to its docs, so it might be worth a try. The AppVeyor environment only ships Qt 5.15.2, while the latest released version is 5.15.16. Not sure if any changes in the 3 years between those versions affects C++17 compatibility. At least the GitHub CI build should be upgradable to 5.15.16 if that's the case. The only other build that could imagine maybe having issues is the Ubuntu GitHub CI build, which still uses Qt 5.12. But an update to ubuntu-22.04 is prolly warranted, which should bring it to 5.15.3. |
For now, we try to make a MR using C++17. and let's see what happened. To be honest, Windows is no longer officially supported up to 8.1, so I think it should be upgraded to 10, and to Monterey on macOS. wrt Ubuntu, 24.04 is out now, and I think it's okay to bump it up to 22.04. |
Bug Description
Seeing this in Nixpkgs on the Qt6 macOS builds.
We request C++14, but Qt6 demands C++17 or greater. And Clang seems very strict about this deprecation, which triggers
-Werror
to abort the build.There are already comments in the code that acknowledge this deprecation:
BambooTracker/BambooTracker/utils.hpp
Lines 95 to 96 in e91eb3f
Example log: https://hydra.nixos.org/build/256589183/nixlog/1
How to reproduce
nix-build -A nixpkgs.bambootracker-qt6
on macOS with Nix installedSystem Information
The text was updated successfully, but these errors were encountered: