-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
[c++] googletest tests fail on newer versions of googletest which dropped C++11 support #5976
Comments
Thanks for using LightGBM. Please provide the exact commands you ran which produced this error message. With just an error message, it's difficult for us to help you. |
Complete log is here. |
Can you explain the context of what this build is? It looks quite complicated. For example, what are these patches?
We'd very much appreciate if you could reduce this report to a minimal one that reproduces the problem you're facing. |
This is a FreeBSD port build.
It shouldn't matter for this issue. The core problem is that googletest no longer supports c++11, and the project uses c++11. You should change that to c++20, for example. |
Interesting! I guess we haven't experienced that in this project's CI because we don't preinstall googletest, and instead rely on CMake to pull in a specific, fairly-old version. Lines 607 to 617 in d73c6b5
That version of googletest still supported C++11. That support was dropped in v1.12.1 (June 30, 2022.
I absolutely don't support dropping C++11, C++14, and C++17 support yet in LightGBM. That would impact a lot of the project's users, and so far we haven't found that maintaining such compatibility has been a major issue. There is some discussion in #5691 if you're curious. However... I'd definitely support upgrading to the latest release of googletest and using the C++20 standard when running those tests. That'd give us some minimal test coverage on C++20 (we currently have none) and make it easier for repackagers like you. I'll put up a PR for that shortly, thanks for the report and sorry for the inconvenience. |
This issue has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this. |
Description
Failure message:
Environment info
LightGBM version or commit hash: 4.0.0
clang-15
pytest-7.3.1
FreeBSD 13.2
The text was updated successfully, but these errors were encountered: