-
-
Notifications
You must be signed in to change notification settings - Fork 6.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
Tests do not compile with pre-release glibc #2686
Comments
Thanks for the PR! I was about to open one, but you were just too quick ;) |
@nlohmann Maybe it will be better to implement building tests with packaged doctest versions and use bundled only if not found? |
Update doctest from 2.4.4 to 2.4.6 (fixes #2686)
What do you mean with "packaged"? |
From distribution repositories. I can help with this. |
You mean something like |
No. Something like this: find_package(FOO 1.0.0 QUIET)
IF (NOT FOO_FOUND)
message(STATUS "Using bundled version of FOO library.")
add_subdirectory("${CMAKE_SOURCE_DIR}/3rdparty/foo" EXCLUDE_FROM_ALL)
ENDIF() |
I see. No, I don't think this is a good idea for this library. I only use the single header for doctest, and so far, updating was never an issue. |
We can use your old single-header logic under the IF statement. |
Yes, but what is the overall benefit? |
I want to use only packaged version of doctest in Fedora package. I'm Fedora maintainer. |
But this is only for the unit tests of this library, right? |
Yes, but if we use it during the build, we must provide virtual dependencies. That's why the packaged version is preferred. |
What is the issue you have?
In the next version of glibc, 2.34,
SIGSTKSZ
will be changed from a preprocessor constant to an expression involving a runtime function call. This has broken a lot of software that used it as a stack or static buffer size.Please describe the steps to reproduce the issue.
Can you provide a small but working code example?
Not applicable.
What is the expected behavior?
Tests compile (and hopefully pass).
And what is the actual behavior instead?
Which compiler and operating system are you using?
Which version of the library did you use?
develop
branchIf you experience a compilation error: can you compile and run the unit tests?
See “actual behavior” above.
Additional information
This was reported upstream in doctest (doctest/doctest#473), fixed (doctest/doctest@099d541). Version 2.4.6, released three days ago, is the first to contain the fix.
This bug can be fixed by updating
test/thirdparty/doctest/
to contain version 2.4.6.The text was updated successfully, but these errors were encountered: