[CXX-2354] Compilation failure (tests) with glibc 2.34 Created: 24/Aug/21  Updated: 30/Aug/21  Resolved: 30/Aug/21

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Unknown
Reporter: Laurent Stacul Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates CXX-2358 Compilation failure (tests) with glib... Closed

 Description   

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,


Generated at Wed Feb 07 22:05:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.