-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Build failures with GCC11 and libstdc++11 #7918
Comments
#7893 will solve this. |
From the description of #7893 it does not attempt to address the -Wno-maybe-uninitialized issue ( which seems to be new to gcc11) A correct fix here would perhaps be to add this extra flag (I'm not sure where) to cflags if the compiler we detect is gcc>=11 (not sure how) |
I disabled all the warnings for gmock. Can you help me try it again? If it still fails, please let me know which *.cc source file caused the error. |
still there onnxruntime.git/cmake/external/googletest/googletest/src/gtest-death-test.cc:1301:24
|
Ok, please duplicate this line https://github.com/microsoft/onnxruntime/blob/master/cmake/CMakeLists.txt#L610 and change gmock to gtest. |
This works ! Thanks |
You may submit a PR if you feel it is good. |
Here you go #7957 |
#7984 as well |
Describe the bug
GoogleTest fails to compile with -Wno-maybe-uninitialized warning (elevated to error)
Urgency
Broken build
System information
To Reproduce
Build on platforms with GCC11 and libstdc++11
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
-Wno-maybe-uninitialized warning (elevated to error) while compiling googletest
The text was updated successfully, but these errors were encountered: