Hi, thanks for your quick reply.
The command I’m using is:
/wrkdirs/usr/ports/databases/mongodb70/work/mongo-r7.0.0-rc0/buildscripts/scons.py -C /wrkdirs/usr/ports/databases/mongodb70/work/mongo-r7.0.0-rc0 --cxx-std=20 --disable-warnings-as-errors --libc++ --runtime-hardening=on --use-system-icu --use-system-libunwind --use-system-pcre2 --use-system-snappy --use-system-stemmer --use-system-yaml --use-system-zlib --use-system-zstd -j2 AR=llvm-ar MONGO_VERSION=7.0.0-rc0 VERBOSE=on --use-sasl-client --ssl CC="cc" CCFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing " CPPPATH="/usr/local/include" CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing " LIBPATH="/usr/local/lib" LINKFLAGS=" -fstack-protector-strong " PKGCONFIGDIR="" PREFIX="/usr/local" destdir=/wrkdirs/usr/ports/databases/mongodb70/work/stage DESTDIR=/wrkdirs/usr/ports/databases/mongodb70/work/stage
And added “# define ASIO_HAS_STD_INVOKE_RESULT” to src/third_party/asio-master/asio/include/asio/detail/config.hpp to make asio compile.
In the meantime I found that mongod runs fine if I don’t use --use-system-* for various libraries. Currently trying to find which use-system was the cause. It runs at least if I disable all of them.