-
Notifications
You must be signed in to change notification settings - Fork 295
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
Update CMakeLists.txt: set required std version to gnu++14 #504
Conversation
New googletest 1.13.0 defaults to gnu++14, so makes this package FTBFS when building testsuite with this error: In file included from /usr/include/gtest/gtest-message.h:57, from /usr/include/gtest/gtest-assertion-result.h:46, from /usr/include/gtest/gtest.h:64, from /build/1st/dlt-daemon-2.18.9/tests/gtest_dlt_user.cpp:27: /usr/include/gtest/internal/gtest-port.h:270:2: error: #error C++ versions less than C++14 are not supported. 270 | #error C++ versions less than C++14 are not supported. | ^~~~~ Thanks Adrian Bunk <bunk@debian.org> for the report and the fix!
Hello @LocutusOfBorg There are some reasons for DLT team to keep googletest version 1.11.0. First, we need to make sure dlt backward compatible. Furthermore, no new macros from googletest 1.13.0 are used in our test suite. Hence, googletest 1.11.0 is still good to be used for our current test binaries. For the unit tests in dlt, we build a convenient option for users, say WITH_DLT_UNIT_TESTS.
before you could use the option. This happens due to our recent activity of refactor and optimize dlt unit tests. This submodule initialization process will be automatically triggered in the future, and we are working for that, I will update soon in a PR. Hello @michael-methner, what do think about this case? Regards |
Hello @LocutusOfBorg |
Hello, as Debian maintainer, I can't use submodules, and I have to use whatever is provided by apt. |
btw I checked with my pr, and the code compiles also on old googletest e.g. 1.11.0-3 |
Hello @LocutusOfBorg I do not have good experience in Debian, so please support me a little bit.
I could not get the version I want, does it mean that I need to apt install the correct Deb dist. (say, Deb Sid) to have correct version? Thank you |
Hello all, I could successfully reproduce the issue on Debian:Sid docker container.
The information of my dev environment:
I checked and I could use git submodule here, hence I applied my patch in #505 |
Hello @michael-methner |
New googletest 1.13.0 defaults to gnu++14, so makes this package FTBFS when building testsuite with this error:
In file included from /usr/include/gtest/gtest-message.h:57,
from /usr/include/gtest/gtest-assertion-result.h:46,
from /usr/include/gtest/gtest.h:64,
from /build/1st/dlt-daemon-2.18.9/tests/gtest_dlt_user.cpp:27:
/usr/include/gtest/internal/gtest-port.h:270:2: error: #error C++ versions less than C++14 are not supported.
270 | #error C++ versions less than C++14 are not supported.
| ^~~~~
Thanks Adrian Bunk bunk@debian.org for the report and the fix!