so I have a problem with Mongodb build which I think happened after dev-libs/boost got updated. But build output also seems to indicate some boost problem. Does anyone have any idea how to solve this?
Thanks!
Code: Select all
emerge --info '=dev-db/mongodb-5.0.32::gentoo'
Portage 3.0.77 (python 3.13.11-final-0, default/linux/amd64/23.0/no-multilib, gcc-15, glibc-2.42-r5, 6.12.61-gentoo x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-6.12.61-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E5-2690_v3_@_2.60GHz-with-glibc2.42
KiB Mem: 197936980 total, 183485428 free
KiB Swap: 0 total, 0 free
Timestamp of repository gentoo: Thu, 29 Jan 2026 17:15:00 +0000
Head commit of repository gentoo: dfcf5cccd9e3924f0494a410f41b2d4305a040f4
Timestamp of repository guru: Thu, 29 Jan 2026 10:31:04 +0000
Head commit of repository guru: f25fe730ce5f580a5d43832dfa3f8304e0c1e3e6
Head commit of repository slonko: bca5aa0bb1d260d345aed043d674391a5ff44355
sh bash 5.3_p9
ld GNU ld (Gentoo 2.45.1 p1) 2.45.1
app-misc/pax-utils: 1.3.10::gentoo
app-shells/bash: 5.3_p9::gentoo
dev-build/autoconf: 2.72-r6::gentoo
dev-build/automake: 1.18.1::gentoo
dev-build/cmake: 4.2.1-r1::gentoo
dev-build/libtool: 2.5.4::gentoo
dev-build/make: 4.4.1-r102::gentoo
dev-build/meson: 1.10.1::gentoo
dev-java/java-config: 2.3.4::gentoo
dev-lang/perl: 5.42.0-r1::gentoo
dev-lang/python: 3.13.11::gentoo, 3.14.2::gentoo
dev-lang/rust-bin: 1.91.0::gentoo, 1.92.0::gentoo
sys-apps/baselayout: 2.18-r1::gentoo
sys-apps/openrc: 0.63::gentoo
sys-apps/sandbox: 2.46::gentoo
sys-devel/binutils: 2.45.1::gentoo
sys-devel/binutils-config: 5.6::gentoo
sys-devel/gcc: 15.2.1_p20251122::gentoo
sys-devel/gcc-config: 2.12.2::gentoo
sys-kernel/linux-headers: 6.18::gentoo (virtual/os-headers)
sys-libs/glibc: 2.42-r5::gentoo
Repositories:
gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
priority: -1000
volatile: False
sync-rsync-verify-max-age: 3
sync-rsync-verify-metamanifest: yes
sync-rsync-extra-opts:
sync-rsync-verify-jobs: 1
guru
location: /var/db/repos/guru
sync-type: git
sync-uri: https://github.com/gentoo-mirror/guru.git
masters: gentoo
volatile: False
slonko
location: /var/db/repos/slonko
sync-type: git
sync-uri: https://slonko.net/git/portage
masters: gentoo
volatile: False
Binary Repositories:
gentoobinhost
location: /var/cache/binhost/gentoobinhost
priority: 1
sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64
verify-signature: None
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE @BINARY-REDISTRIBUTABLE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=haswell -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/unifi"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-march=haswell -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS=" --buildpkg-exclude 'acct-*/* sys-kernel/*-sources virtual/* sys-fs/zfs sys-fs/zfs-kmod'"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=haswell -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live compress-index config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=haswell -O2 -pipe"
GENTOO_MIRRORS="https://ftp.lysator.liu.se/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j48 -l54"
PKGDIR="/var/cache/binpkgs"
PORTAGE_COMPRESS="bzip2"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="acl amd64 avif bash-completion bzip2 cet crypt ffmpeg gdbm heic heif iconv imagemagick jpeg libtirpc ncurses nginx nls openmp pam pcre png postgres readline seccomp ssl test-rust tiff unicode webp xattr zlib" ABI_X86="64" ADA_TARGET="gcc_15" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_TARGETS="X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-3" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_13" PYTHON_TARGETS="python3_13" RUBY_TARGETS="ruby32 ruby33" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
=================================================================
Package Settings
=================================================================
dev-db/mongodb-5.0.32::gentoo was built with the following:
USE="ssl tools -debug -kerberos -mongosh" CPU_FLAGS_X86="avx"
CFLAGS="-pipe"
CXXFLAGS="-pipe"
Code: Select all
emerge -pqv '=dev-db/mongodb-5.0.32::gentoo'
[ebuild R ] dev-db/mongodb-5.0.32 USE="ssl tools -debug -kerberos -mongosh" CPU_FLAGS_X86="avx"
Code: Select all
cat /var/tmp/portage/dev-db/mongodb-5.0.32/temp/build.log
* Package: dev-db/mongodb-5.0.32:0
* Repository: gentoo
* USE: abi_x86_64 amd64 cpu_flags_x86_avx elibc_glibc kernel_linux ssl tools
* FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox
* Checking whether python3_14 is suitable ...
* dev-lang/python:3.14 ... [ ok ]
* python_check_deps ...
* >=dev-build/scons-3.1.1[python_targets_python3_14(-)] ... [ !! ] [ !! ]
* Checking whether python3_13 is suitable ...
* dev-lang/python:3.13 ... [ ok ]
* python_check_deps ...
* >=dev-build/scons-3.1.1[python_targets_python3_13(-)] ... [ ok ]
* dev-python/cheetah3[python_targets_python3_13(-)] ... [ ok ]
* dev-python/psutil[python_targets_python3_13(-)] ... [ ok ]
* dev-python/pyyaml[python_targets_python3_13(-)] ... [ ok ]
* dev-python/pymongo[python_targets_python3_13(-)] ... [ ok ] [ ok ]
* Using python3.13 to build (via PYTHON_COMPAT iteration)
>>> Unpacking source...
>>> Unpacking 'mongodb-5.0.32.gh.tar.gz' to /var/tmp/portage/dev-db/mongodb-5.0.32/work
>>> Unpacking 'mongodb-5.0.30-patches.tar.xz' to /var/tmp/portage/dev-db/mongodb-5.0.32/work
>>> Source unpacked in /var/tmp/portage/dev-db/mongodb-5.0.32/work
>>> Preparing source in /var/tmp/portage/dev-db/mongodb-5.0.32/work/mongo-r5.0.32 ...
* Applying mongodb-4.4.1-boost.patch ... [ ok ]
* Applying mongodb-5.0.30-gcc-11.patch ... [ ok ]
* Applying mongodb-5.0.2-fix-scons.patch ... [ ok ]
* Applying mongodb-5.0.2-no-compass.patch ... [ ok ]
* Applying mongodb-5.0.2-skip-no-exceptions.patch ... [ ok ]
* Applying mongodb-5.0.2-skip-reqs-check.patch ... [ ok ]
* Applying mongodb-5.0.2-boost-1.79.patch ... [ ok ]
* Applying mongodb-5.0.5-no-force-lld.patch ... [ ok ]
* Applying mongodb-4.4.10-boost-1.81.patch ... [ ok ]
* Applying mongodb-5.0.5-boost-1.81-extra.patch ... [ ok ]
* Applying mongodb-5.0.16-arm64-assert.patch ... [ ok ]
* Applying mongodb-4.4.29-no-enterprise.patch ... [ ok ]
* Applying mongodb-5.0.26-boost-1.85.patch ... [ ok ]
* Applying mongodb-5.0.26-boost-1.85-extra.patch ... [ ok ]
* Applying mongodb-5.0.30-gcc-15.patch ... [ ok ]
* Applying mongodb-5.0.26-scons.patch ... [ ok ]
* Applying mongodb-5.0.26-mozjs-remove-unused-constructor.patch ... [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-db/mongodb-5.0.32/work/mongo-r5.0.32 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-db/mongodb-5.0.32/work/mongo-r5.0.32 ...
scons: Reading SConscript files ...
/var/tmp/portage/dev-db/mongodb-5.0.32/work/mongo-r5.0.32/SConstruct:19: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
from pkg_resources import parse_version
scons: running with args /usr/bin/python3.13 ./buildscripts/scons.py AR=x86_64-pc-linux-gnu-ar CC=x86_64-pc-linux-gnu-gcc CXX=x86_64-pc-linux-gnu-g++ CCFLAGS=-march=haswell -O2 -pipe VERBOSE=1 VARIANT_DIR=gentoo MONGO_VERSION=5.0.32 MONGO_GIT_HASH=ba92303e18e7ed4701572aa15acd161c97796f2f --disable-warnings-as-errors --force-jobs --jobs=48 --use-system-boost --use-system-pcre --use-system-snappy --use-system-stemmer --use-system-yaml --use-system-zlib --use-system-zstd --experimental-optimization=-sandybridge --ssl=on --runtime-hardening=off --linker=bfd install-devcore
Mkdir("build/scons")
scons version: 3.1.2
python version: 3 13 11 'final' 0
CC is x86_64-pc-linux-gnu-gcc
x86_64-pc-linux-gnu-gcc found in $PATH at /usr/bin/x86_64-pc-linux-gnu-gcc
/usr/bin/x86_64-pc-linux-gnu-gcc resolves to /usr/x86_64-pc-linux-gnu/gcc-bin/15/x86_64-pc-linux-gnu-gcc
CXX is x86_64-pc-linux-gnu-g++
x86_64-pc-linux-gnu-g++ found in $PATH at /usr/bin/x86_64-pc-linux-gnu-g++
/usr/bin/x86_64-pc-linux-gnu-g++ resolves to /usr/x86_64-pc-linux-gnu/gcc-bin/15/x86_64-pc-linux-gnu-g++
Checking if C++ compiler "x86_64-pc-linux-gnu-g++" is GCC... yes
Checking if C compiler "x86_64-pc-linux-gnu-gcc" is GCC... yes
Detected a x86_64 processor
Checking if target OS linux is supported by the toolchain... yes
Checking if C compiler is GCC 8.2 or newer...yes
Checking if C++ compiler is GCC 8.2 or newer...yes
Checking whether the C compiler works... yes
Checking whether the C++ compiler works... yes
Checking that the C++ compiler can link a C++ program... yes
Checking if C compiler supports -Wno-unused-local-typedefs... yes
Checking if C compiler supports -Wno-unused-function... yes
Checking if C compiler supports -Wno-unused-private-field... no
Checking if C compiler supports -Wno-deprecated-declarations... yes
Checking if C compiler supports -Wno-tautological-constant-out-of-range-compare... no
Checking if C compiler supports -Wno-tautological-constant-compare... no
Checking if C compiler supports -Wno-tautological-unsigned-zero-compare... no
Checking if C compiler supports -Wno-tautological-unsigned-enum-zero-compare... no
Checking if C compiler supports -Wno-unused-const-variable... yes
Checking if C compiler supports -Wno-unused-but-set-variable... yes
Checking if C compiler supports -Wno-missing-braces... yes
Checking if C compiler supports -Wno-inconsistent-missing-override... no
Checking if C compiler supports -Wno-potentially-evaluated-expression... no
Checking if C++ compiler supports -Wpessimizing-move... yes
Checking if C++ compiler supports -Wno-maybe-uninitialized... yes
Checking if C++ compiler supports -Wno-undefined-var-template... no
Checking if C++ compiler supports -Wno-instantiation-after-specialization... no
Checking if C compiler supports -Wno-unused-lambda-capture... no
Checking if C++ compiler supports -fsized-deallocation... yes
Checking if C++ compiler supports -Wno-defaulted-function-deleted... yes
Checking if C++ compiler supports -Wunused-exception-parameter... no
Checking if -Wnon-virtual-dtor works reasonably... no
Checking if we are using libstdc++... yes
Checking if C++ compiler supports -std=c++17... yes
Checking if C compiler supports -std=c11... yes
WARNING: System versions of C++ libraries must be compiled with C++17 support
Checking for C++17... yes
Checking for memset_s... no
Checking for C function strnlen()... yes
Checking for C function explicit_bzero()... yes
Checking for libstdc++ 5.3.0 or better... yes
Checking if we are on a POSIX system... yes
Checking if the POSIX monotonic clock is supported... yes
Checking off_t is 8 bytes... yes
Checking if linker supports -Wl,--no-threads... no
Checking if linker supports -Wl,--build-id... yes
Checking if linker supports -Wl,--hash-style=gnu... yes
Checking if linker supports -Wl,-z,noexecstack... yes
Checking if linker supports -Wl,--warn-execstack... yes
Checking if linker supports -Wl,-z,relro... yes
Checking if C compiler supports -Wa,--nocompress-debug-sections... yes
Checking elf.h for SHF_COMPRESSED... yes
Checking if linker supports -Wl,--compress-debug-sections=none... yes
Checking if C compiler supports -fno-builtin-memcmp... yes
Checking if pthread_setname_np is supported... yes
Checking for SSLeay_version(0) in C library crypto... yes
Checking for SSL_version(NULL) in C library ssl... yes
Checking that linking to OpenSSL works...yes
Checking whether FIPS_mode_set is declared... no
Checking whether d2i_ASN1_SEQUENCE_ANY is declared... yes
Checking if SSL_[CTX_]_set_ecdh_auto is supported... yes
Checking if EC_KEY_new_by_curve_name is supported... yes
Using SSL Provider: openssl
Checking for C library pcre... yes
Checking for C library pcrecpp... yes
Checking for C library snappy... yes
Checking for C library z... yes
Checking for C library zstd... yes
Checking for C library stemmer... yes
Checking for C library yaml-cpp... yes
Checking for C library lzma... yes
Checking for C++ header file boost/filesystem/operations.hpp... yes
Checking if system boost version is 1.49 or newer...yes
Checking for C++ library boost_filesystem-mt... no
Checking for C++ library boost_filesystem... yes
Checking for C++ library boost_program_options-mt... no
Checking for C++ library boost_program_options... yes
Checking for C++ library boost_system-mt... no
Checking for C++ library boost_system... no
Checking for C++ library boost_iostreams-mt... no
Checking for C++ library boost_iostreams... yes
Checking for C++ library boost_thread-mt... no
Checking for C++ library boost_thread... yes
Checking for C++ library boost_log-mt... no
Checking for C++ library boost_log... yes
Checking for C library rt... yes
Checking for C library dl... yes
Checking for C++ header file execinfo.h... yes
Checking whether backtrace is declared... yes
Checking whether backtrace_symbols is declared... yes
Checking whether backtrace_symbols_fd is declared... yes
Checking for C library pcap... no
Checking for C library wpcap... no
Checking if std::atomic<int64_t> works... yes
Checking if std::atomic<uint64_t> works... yes
Checking if std::atomic<int32_t> works... yes
Checking if std::atomic<uint32_t> works... yes
Checking for extended alignment 64 for concurrency types... yes
Checking for mongoc_get_major_version() in C library mongoc-1.0... no
Checking for curl_global_init(0) in C library curl... yes
Checking for C header file sys/sdt.h... no
Checking for C function fallocate()... yes
Checking for C function sync_file_range()... yes
Checking for C header file x86intrin.h... yes
Checking for C header file arm_neon.h... no
scons: warning: Two different environments were specified for target duplicate_key_tracker.o,
but they appear to have the same action: $CXX -o $TARGET -c $PROGCXXFLAGS $PROGCCFLAGS $_CCCOMCOM $SOURCES
File "/var/tmp/portage/dev-db/mongodb-5.0.32/work/mongo-r5.0.32/src/mongo/db/index/SConscript", line 52, in <module>
/var/tmp/portage/dev-db/mongodb-5.0.32/work/mongo-r5.0.32/src/mongo/installer/msi/SConscript:49: SyntaxWarning: invalid escape sequence '\m'
enterprisebase = 'src\mongo\db\modules\enterprise'
scons: done reading SConscript files.
scons: Building targets ...
Install file: "distsrc/LICENSE-Community.txt" as "build/install/LICENSE-Community.txt"
Install file: "distsrc/THIRD-PARTY-NOTICES" as "build/install/THIRD-PARTY-NOTICES"
Install file: "distsrc/README" as "build/install/README"
Install file: "distsrc/MPL-2" as "build/install/MPL-2"
Creating 'build/gentoo/mongo/resmoke/resmoke.py'
scons: *** [build/install/bin/mongo] LibdepsError:
Target 'build/gentoo/mongo/shell/mongo' depends on the availability of a
system provided library for 'boost_system',
but no suitable library was found during configuration.
scons: building terminated because of errors.
build/install/bin/mongo failed: LibdepsError:
Target 'build/gentoo/mongo/shell/mongo' depends on the availability of a
system provided library for 'boost_system',
but no suitable library was found during configuration.
* ERROR: dev-db/mongodb-5.0.32::gentoo failed (compile phase):
* (no error message)
*
* Call stack:
* ebuild.sh, line 143: Called src_compile
* environment, line 2275: Called die
* The specific snippet of code:
* PREFIX="${EPREFIX}/usr" ./buildscripts/scons.py "${scons_opts[@]}" install-devcore || die
*
* If you need support, post the output of `emerge --info '=dev-db/mongodb-5.0.32::gentoo'`,
* the complete build log and the output of `emerge -pqv '=dev-db/mongodb-5.0.32::gentoo'`.
* The complete build log is located at '/var/tmp/portage/dev-db/mongodb-5.0.32/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-db/mongodb-5.0.32/temp/environment'.
* Working directory: '/var/tmp/portage/dev-db/mongodb-5.0.32/work/mongo-r5.0.32'
* S: '/var/tmp/portage/dev-db/mongodb-5.0.32/work/mongo-r5.0.32'

