Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-2358

Compilation failure (tests) with glibc 2.34

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.7.0, 3.7.0-beta1, 3.6.7
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      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,

            Assignee:
            jesse.williamson@mongodb.com Jesse Williamson (Inactive)
            Reporter:
            laurent.stacul@gmail.com Laurent Stacul
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: