...
Building the server fails with: from src/mongo/db/auth/authorization_session.h:39, from src/mongo/s/commands/cluster_refine_collection_shard_key_cmd.cpp:34: src/mongo/stdx/thread.h:110:56: error: call to non-‘constexpr’ function ‘long int sysconf(int)’ 110 | std::max(kMongoMinSignalStackSize, std::size_t{MINSIGSTKSZ}); | ^~~~~~~~~~~ In file included from /usr/include/boost/config/stdlib/libstdcpp3.hpp:78, from /usr/include/boost/config.hpp:48, This is due to changes in glibc-2.34 (https://sourceware.org/pipermail/libc-alpha/2021-August/129718.html): * Add _SC_MINSIGSTKSZ and _SC_SIGSTKSZ. When _DYNAMIC_STACK_SIZE_SOURCE or _GNU_SOURCE are defined, MINSIGSTKSZ and SIGSTKSZ are no longer constant on Linux. MINSIGSTKSZ is redefined to sysconf(_SC_MINSIGSTKSZ) and SIGSTKSZ is redefined to sysconf (_SC_SIGSTKSZ). This supports dynamic sized register sets for modern architectural features like Arm SVE. Downstream bug: https://bugs.gentoo.org/806773
xgen-internal-githook commented on Tue, 2 Nov 2021 13:16:23 +0000: Author: {'name': 'Andrew Morrow', 'email': 'acm@mongodb.com', 'username': 'acmorrow'} Message: SERVER-59459 With glibc-2.34, MINSIGSTKSZ is no longer a constant (cherry picked from commit ef08d0dbc99db8c4620512e92bfb3154282eb5d3) (cherry picked from commit 959d10ecad8f59dbbb755b2eebab2bffed6bab32) (cherry picked from commit 167a957f8d4d71db7a3a720052ec72e5d68724f7) (cherry picked from commit ddee85735f38dc77f233dc16840658c8764e65cb) Branch: v4.2 https://github.com/mongodb/mongo/commit/8ddc9941280e8bf4a07082e9cc6889d944de4ae9 xgen-internal-githook commented on Wed, 20 Oct 2021 01:10:43 +0000: Author: {'name': 'Andrew Morrow', 'email': 'acm@mongodb.com', 'username': 'acmorrow'} Message: SERVER-59459 With glibc-2.34, MINSIGSTKSZ is no longer a constant (cherry picked from commit ef08d0dbc99db8c4620512e92bfb3154282eb5d3) (cherry picked from commit 959d10ecad8f59dbbb755b2eebab2bffed6bab32) (cherry picked from commit 167a957f8d4d71db7a3a720052ec72e5d68724f7) Branch: v4.4 https://github.com/mongodb/mongo/commit/ddee85735f38dc77f233dc16840658c8764e65cb xgen-internal-githook commented on Tue, 19 Oct 2021 20:07:24 +0000: Author: {'name': 'Andrew Morrow', 'email': 'acm@mongodb.com', 'username': 'acmorrow'} Message: SERVER-59459 With glibc-2.34, MINSIGSTKSZ is no longer a constant (cherry picked from commit ef08d0dbc99db8c4620512e92bfb3154282eb5d3) (cherry picked from commit 959d10ecad8f59dbbb755b2eebab2bffed6bab32) Branch: v5.0 https://github.com/mongodb/mongo/commit/167a957f8d4d71db7a3a720052ec72e5d68724f7 xgen-internal-githook commented on Tue, 19 Oct 2021 14:29:53 +0000: Author: {'name': 'Andrew Morrow', 'email': 'acm@mongodb.com', 'username': 'acmorrow'} Message: SERVER-59459 With glibc-2.34, MINSIGSTKSZ is no longer a constant (cherry picked from commit ef08d0dbc99db8c4620512e92bfb3154282eb5d3) Branch: v5.1 https://github.com/mongodb/mongo/commit/959d10ecad8f59dbbb755b2eebab2bffed6bab32 acm commented on Fri, 8 Oct 2021 14:00:42 +0000: hydrapolic@gmail.com - I've committed a fix that should unblock this. Right now it is only on the master branch, but I've filed in the internal tickets to backport through to v4.4. xgen-internal-githook commented on Thu, 7 Oct 2021 23:11:12 +0000: Author: {'name': 'Andrew Morrow', 'email': 'acm@mongodb.com', 'username': 'acmorrow'} Message: SERVER-59459 With glibc-2.34, MINSIGSTKSZ is no longer a constant Branch: master https://github.com/mongodb/mongo/commit/ef08d0dbc99db8c4620512e92bfb3154282eb5d3 JIRAUSER1257066 commented on Fri, 20 Aug 2021 15:24:02 +0000: Hi hydrapolic@gmail.com, Thanks for your report. I've assigned this to the appropriate team to investigate the changes in glibc 2.34. Best, Edwin
update to glibc 2.34 build mongodb server