Generating build/opt/mongo/db/query/expression_index_knobs_gen.cpp Compiling build/opt/mongo/db/curop_failpoint_helpers.o Compiling build/opt/mongo/db/query/expression_index.o Compiling build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_round_integral.o Compiling build/opt/mongo/util/processinfo_linux.o Generating build/opt/mongo/db/query/distinct_command_gen.cpp Generating build/opt/mongo/db/traffic_recorder_gen.cpp Generating library build/opt/mongo/db/catalog/libcommit_quorum_idl.a Skipping ranlib for thin archive build/opt/mongo/db/catalog/libcommit_quorum_idl.a Compiling build/opt/mongo/db/query/distinct_command_gen.o Compiling build/opt/mongo/rpc/legacy_reply.o Compiling build/opt/mongo/client/replica_set_monitor_manager.o Compiling build/opt/mongo/db/traffic_recorder.o Compiling build/opt/mongo/client/server_ping_monitor.o Compiling build/opt/mongo/client/dbclient_rs.o src/mongo/util/processinfo_linux.cpp: In function 'void mongo::{anonymous}::appendMountInfo(mongo::BSONObjBuilder&)': src/mongo/util/processinfo_linux.cpp:301:22: error: variable 'std::ifstream ifs' has initializer but incomplete type 301 | std::ifstream ifs("/proc/self/mountinfo"); | ^ src/mongo/util/processinfo_linux.cpp: In member function 'void mongo::{anonymous}::CpuInfoParser::run()': src/mongo/util/processinfo_linux.cpp:324:24: error: variable 'std::ifstream f' has initializer but incomplete type 324 | std::ifstream f("/proc/cpuinfo"); | ^ Compiling build/opt/mongo/client/streamable_replica_set_monitor.o Compiling build/opt/mongo/client/streamable_replica_set_monitor_query_processor.o Compiling build/opt/mongo/client/global_conn_pool_gen.o Compiling build/opt/mongo/client/mongo_uri_connect.o scons: *** [build/opt/mongo/util/processinfo_linux.o] Error 1 In file included from /usr/include/string.h:535, from /usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/include/g++-v11/cstring:42, from src/mongo/base/string_data.h:33, from build/opt/mongo/base/error_codes.h:36, from src/mongo/base/status.h:35, from src/mongo/db/auth/action_set.h:36, from src/mongo/s/commands/cluster_enable_sharding_cmd.cpp:34: In function 'void* memcpy(void*, const void*, size_t)', inlined from 'void mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:250:15, inlined from 'void mongo::StringBuilderImpl<Allocator>::append(mongo::StringData) [with Builder = mongo::BufBuilder]' at src/mongo/bson/util/builder.h:635:19, inlined from 'mongo::StringBuilderImpl<Allocator>& mongo::StringBuilderImpl<Allocator>::operator<<(mongo::StringData) [with Builder = mongo::BufBuilder]' at src/mongo/bson/util/builder.h:591:15, inlined from 'mongo::str::stream& mongo::str::stream::operator<<(const T&) [with T = std::__cxx11::basic_string<char>]' at src/mongo/util/str.h:69:12, inlined from 'mongo::{anonymous}::EnableShardingCmd::errmsgRun(mongo::OperationContext*, const string&, const mongo::BSONObj&, std::string&, mongo::BSONObjBuilder&)::<lambda()>' at src/mongo/s/commands/cluster_enable_sharding_cmd.cpp:113:9, inlined from 'void mongo::uassertStatusOKWithContextAndLocation(const mongo::Status&, ContextExpr&&, const char*, unsigned int) [with ContextExpr = mongo::{anonymous}::EnableShardingCmd::errmsgRun(mongo::OperationContext*, const string&, const mongo::BSONObj&, std::string&, mongo::BSONObjBuilder&)::<lambda()>]' at src/mongo/util/assert_util.h:414:30, inlined from 'virtual bool mongo::{anonymous}::EnableShardingCmd::errmsgRun(mongo::OperationContext*, const string&, const mongo::BSONObj&, std::string&, mongo::BSONObjBuilder&)' at src/mongo/s/commands/cluster_enable_sharding_cmd.cpp:113:9: /usr/include/bits/string_fortified.h:29:33: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' offset [0, 503] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ scons: building terminated because of errors. build/opt/mongo/util/processinfo_linux.o failed: Error 1 * ERROR: dev-db/mongodb-5.0.5-r1::gentoo failed (compile phase): * (no error message) * * Call stack: * ebuild.sh, line 127: Called src_compile * environment, line 3244: Called die * The specific snippet of code: * PREFIX="${EPREFIX}/usr" ./buildscripts/scons.py "${scons_opts[@]}" install-core || die * * If you need support, post the output of `emerge --info '=dev-db/mongodb-5.0.5-r1::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-db/mongodb-5.0.5-r1::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-db/mongodb-5.0.5-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-db/mongodb-5.0.5-r1/temp/environment'. * Working directory: '/var/tmp/portage/dev-db/mongodb-5.0.5-r1/work/mongodb-src-r5.0.5' * S: '/var/tmp/portage/dev-db/mongodb-5.0.5-r1/work/mongodb-src-r5.0.5' Reproducible: Always
Created attachment 777497 [details] build.log.gz
Created attachment 777500 [details] emerge-info.txt
Compiles fine with boost-1.78.0-r2, not with boost-1.79.0
Created attachment 778664 [details, diff] boost-1.79.patch Can someone who uses mongodb *at runtime* (not just got it installed as a random dependency, but uses it) verify this patch works OK?
(In reply to Sam James from comment #4) > Created attachment 778664 [details, diff] [details, diff] > boost-1.79.patch > > Can someone who uses mongodb *at runtime* (not just got it installed as a > random dependency, but uses it) verify this patch works OK? Many thanks, that fixes it, Helmut
*** Bug 844175 has been marked as a duplicate of this bug. ***
(In reply to Sam James from comment #4) > Created attachment 778664 [details, diff] [details, diff] > boost-1.79.patch > > Can someone who uses mongodb *at runtime* (not just got it installed as a > random dependency, but uses it) verify this patch works OK? Seems to do the job. I also needed the patch with mondodb-4, since I can't use mongodb-5, as I don't have AVX. Using UniFi, which connects to mongodb.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cb835b1e4e2e4bd5e279c16ece133a0225dedc6 commit 7cb835b1e4e2e4bd5e279c16ece133a0225dedc6 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-05-14 21:27:09 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-05-14 21:27:09 +0000 dev-db/mongodb: fix build with Boost 1.79; fix automagic SSL usage Bug: https://bugs.gentoo.org/843290 Signed-off-by: Sam James <sam@gentoo.org> .../mongodb/files/mongodb-5.0.2-boost-1.79.patch | 71 ++++++++ dev-db/mongodb/mongodb-5.0.5-r2.ebuild | 188 +++++++++++++++++++++ 2 files changed, 259 insertions(+)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e5b47da8f273d33e6925688c794be2332ab5142 commit 5e5b47da8f273d33e6925688c794be2332ab5142 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-05-14 21:49:35 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-05-14 21:49:49 +0000 dev-db/mongodb: fix build with Boost 1.79 (for Mongo 4.4.10) Closes: https://bugs.gentoo.org/843290 Signed-off-by: Sam James <sam@gentoo.org> .../mongodb/files/mongodb-4.4.10-boost-1.79.patch | 84 ++++++++++++++++++++++ dev-db/mongodb/mongodb-4.4.10-r1.ebuild | 5 ++ 2 files changed, 89 insertions(+)
*** Bug 839642 has been marked as a duplicate of this bug. ***
*** Bug 841191 has been marked as a duplicate of this bug. ***
*** Bug 839519 has been marked as a duplicate of this bug. ***
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5fec07c1189e779dfb1c9ec2bfd148871c49297b commit 5fec07c1189e779dfb1c9ec2bfd148871c49297b Author: Sam James <sam@gentoo.org> AuthorDate: 2022-06-17 17:55:06 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-06-17 17:55:14 +0000 dev-db/mongodb: fix build with Boost 1.79 for 4.2.17 Closes: https://bugs.gentoo.org/843290 Signed-off-by: Sam James <sam@gentoo.org> .../mongodb/files/mongodb-4.2.17-boost-1.79.patch | 41 +++++ dev-db/mongodb/files/mongodb-4.4.1-boost.patch | 2 - .../mongodb/files/mongodb-4.4.10-boost-1.79.patch | 15 +- dev-db/mongodb/mongodb-4.2.17-r2.ebuild | 182 +++++++++++++++++++++ 4 files changed, 224 insertions(+), 16 deletions(-)
*** Bug 854048 has been marked as a duplicate of this bug. ***