-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
Hello,
We are compiling the MongoDB C++ driver with gcc 11.2.1 and glibc 2.34. We have the following error:
In file included from /opt/1A/toolchain/x86_64-v21.0.26/include/signal.h:328, from /home/jenkins/workspace/b-libmongocxxdriver_release_21.1/BUILD/mongo-cxx-driver-r3.6.5/src/third_party/catch/include/catch.hpp:8034, from /home/jenkins/workspace/b-libmongocxxdriver_release_21.1/BUILD/mongo-cxx-driver-r3.6.5/src/third_party/catch/main.cpp:16: /home/jenkins/workspace/b-libmongocxxdriver_release_21.1/BUILD/mongo-cxx-driver-r3.6.5/src/third_party/catch/include/catch.hpp:10822:58: error: call to non-'constexpr' function 'long int sysconf(int)' 10822 | static constexpr std::size_t sigStackSize = 32768 >= MINSIGSTKSZ ? 32768 : MINSIGSTKSZ; | ^~~~~~~~~~~
I can see that the embedded version of Catch2 is 2.3.4 which suffers from this bug https://github.com/catchorg/Catch2/issues/2178 and is fixed in Catch2 2.3.5 (see https://github.com/catchorg/Catch2/commit/8f277a54c0b9c1d1024dedcb2dec1d206971e745).
Can you update the version of Catch2 to latest ?
Regards,
- duplicates
-
CXX-2358 Compilation failure (tests) with glibc 2.34
- Closed