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
Fails with gcc 12 compiler #611
Comments
The warnings are harmless (and arguably wrong) - removal of the pointer from a set, memory is not accessed. But that GCC change seems quite related. Perhaps the warnings appeared as a result of that change. |
We are able to reproduce this with gcc/g++ 12 on Fedora 36, but only if SCons is used to build the code. Given that Galera SCons scritps are not actively maintained, it would be better to switch the build to use CMake if possible. |
Correct, we cannot build the package with cmake due to:
|
Is there a link to complete build log containing this error? |
Sure, I built it locally and complete build log is here: |
The build failure is caused by The attached patch made the build pass for me |
Thanks, I can confirm the patch fixed cmake build for me. |
Fixed in 4.11 |
Fails here:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/galera-4/standard/x86_64
with:
It started with the following GCC revision:
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=e3ef832a9e8d6a950a439e34e576eb4cb202dc48
which is an optimization for libstdc++.
I bet the root cause are the following warnings:
The text was updated successfully, but these errors were encountered: