TC_BIN=/opt/mongodbtoolchain/v4/bin PYTHON=python3-venv/bin/python3 VARIANT="enterprise_dynamic_gcc_gdb_noopt_asan" SCONS_INVOCATION=( "$PYTHON" "buildscripts/scons.py" "VARIANT_DIR=${VARIANT}" "LLVM_SYMBOLIZER=${TC_BIN}/llvm-symbolizer" "VERBOSE=1" "LIBS=rt" "--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars" "--allocator=system" "--link-model=dynamic" ) opt=1 ; asan=0 # ok opt=1 ; asan=1 # ok opt=0 ; asan=0 # ok opt=0 ; asan=1 # fail [[ $opt == 0 ]] && SCONS_INVOCATION+=("--opt=off") [[ $asan == 1 ]] && SCONS_INVOCATION+=("--sanitize=address") # workaround SCONS_INVOCATION+=("--disable-warnings-as-errors") object_ext="dyn.o" TARGET="build/${VARIANT}/mongo/db/catalog/historical_catalogid_tracker.${object_ext}" # SCONS_INVOCATION+=( "--build-profile=opt" ) SCONS_INVOCATION+=( "${TARGET}" ) echo "scons command words: {" ; for w in "${SCONS_INVOCATION[@]}" ; do echo " [${w}]" ; done ; echo "}" scons command words: { [python3-venv/bin/python3] [buildscripts/scons.py] [VARIANT_DIR=enterprise_dynamic_gcc_gdb_noopt_asan] [LLVM_SYMBOLIZER=/opt/mongodbtoolchain/v4/bin/llvm-symbolizer] [VERBOSE=1] [LIBS=rt] [--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars] [--allocator=system] [--link-model=dynamic] [--opt=off] [--sanitize=address] [--disable-warnings-as-errors] [build/enterprise_dynamic_gcc_gdb_noopt_asan/mongo/db/catalog/historical_catalogid_tracker.dyn.o] } exec "${SCONS_INVOCATION[@]}" Checking required python packages... Requirements list: Cheetah3<=3.2.6.post1 PyYAML<=6.0.0,>=3.0.0 cryptography==2.3; platform_machine == "s390x" or platform_machine == "ppc64le" cryptography==36.0.2; platform_machine != "s390x" and platform_machine != "ppc64le" mongo-ninja-python==1.11.1.4; platform_machine == "x86_64" and sys_platform == "linux" mongo-tooling-metrics==1.0.7 ninja>=1.10.0; platform_machine != "x86_64" or sys_platform != "linux" packaging<=21.3 psutil<=5.8.0 pymongo==4.3.3 pypiwin32>=223; sys_platform == "win32" and python_version > "3" pywin32>=225; sys_platform == "win32" and python_version > "3" regex<=2021.11.10 requests<=2.26.0,>=2.0.0 requirements_parser<=0.3.1 setuptools types-PyYAML~=6.0.5 typing-extensions>=3.7.4 Resolved to these distributions: certifi 2022.12.7 cffi 1.15.1 charset-normalizer 2.0.12 cheetah3 3.2.6.post1 cryptography 36.0.2 distro 1.5.0 dnspython 2.1.0 gitdb 4.0.10 gitpython 3.1.31 idna 3.4 mongo-ninja-python 1.11.1.4 mongo-tooling-metrics 1.0.7 packaging 21.3 psutil 5.8.0 pycparser 2.21 pydantic 1.8.2 pymongo 4.3.3 pyparsing 2.4.0 pyyaml 5.4.1 regex 2021.11.10 requests 2.26.0 requirements-parser 0.3.1 setuptools 58.1.0 smmap 5.0.0 types-pyyaml 6.0.12.8 types-setuptools 57.4.12 typing-extensions 3.10.0.2 urllib3 1.26.7 scons: Reading SConscript files ... scons: running with args /home/ubuntu/mongo-dev/work/main/python3-venv/bin/python3 buildscripts/scons.py VARIANT_DIR=enterprise_dynamic_gcc_gdb_noopt_asan LLVM_SYMBOLIZER=/opt/mongodbtoolchain/v4/bin/llvm-symbolizer VERBOSE=1 LIBS=rt --variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars --allocator=system --link-model=dynamic --opt=off --sanitize=address --disable-warnings-as-errors build/enterprise_dynamic_gcc_gdb_noopt_asan/mongo/db/catalog/historical_catalogid_tracker.dyn.o Using variable customization file etc/scons/mongodbtoolchain_stable_gcc.vars WARNING: The build_metrics tool might not work as intended due to a failed import: No module named 'networkx' Mkdir("build/scons") scons version: 3.1.2 python version: 3 10 4 'final' 0 Mkdir("build/tmp_test_data") CC is /opt/mongodbtoolchain/v4/bin/gcc /opt/mongodbtoolchain/v4/bin/gcc resolves to /opt/mongodbtoolchain/revisions/11316f1e7b36f08dcdd2ad0640af18f9287876f4/stow/gcc-v4.zdM/bin/gcc CXX is /opt/mongodbtoolchain/v4/bin/g++ /opt/mongodbtoolchain/v4/bin/g++ resolves to /opt/mongodbtoolchain/revisions/11316f1e7b36f08dcdd2ad0640af18f9287876f4/stow/gcc-v4.zdM/bin/g++ Checking if dev env is valid... skipped Checking if C++ compiler "/opt/mongodbtoolchain/v4/bin/g++" is GCC... yes Checking if C compiler "/opt/mongodbtoolchain/v4/bin/gcc" is GCC... yes Detected a x86_64 processor Checking if target OS linux is supported by the toolchain... yes adding module: enterprise Checking if C compiler is GCC 11.3 or newer...yes Checking if C++ compiler is GCC 11.3 or newer...yes Checking if linker supports -fuse-ld=lld... 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 -Wno-psabi... yes 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... no Checking if C++ compiler supports -Wunused-exception-parameter... no Checking if C++ compiler supports -Wno-deprecated-builtins... no Checking if -Wnon-virtual-dtor works reasonably... no Checking if C compiler supports -fstack-protector-strong... yes Checking if we are using libstdc++... yes Checking if C++ compiler supports -std=c++20... yes Checking if C compiler supports -std=c11... yes Checking for C++20... 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 C compiler supports -fsanitize=address... yes Checking if C compiler supports -fsanitize-blacklist=etc/asan.denylist... no Checking if C compiler supports -gdwarf64... yes Checking that DWARF64 format is viable... no Checking if linker supports -Wl,--no-threads... no Checking if linker supports --Wl,--threads=1... 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=zlib-gabi... no Checking whether to define __STDC_LIMIT_MACROS... no Checking whether to define __STDC_CONSTANT_MACROS... no Checking whether to define __STDC_FORMAT_MACROS... no 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... yes 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 lzma... 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... yes Checking if std::atomic works... yes Checking if std::atomic works... yes Checking if std::atomic works... yes Checking if std::atomic works... yes Checking for extended alignment 64 for concurrency types... yes Checking for mongoc_get_major_version() in C library mongoc-1.0... no configuring module: enterprise Checking for curl_global_init(0) in C library curl... yes Checking for C header file sys/sdt.h... yes Enabled generation of gdb index into binaries. Checking if C compiler supports -Wno-unused-but-set-variable... yes 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 Checking if C compiler supports -Wimplicit-fallthrough=5... yes This is an Mongo Crypt Shared only build. Allowing to build with no http client and SSL libs. Checking for KRB5 Features...yes Checking for ldap_is_ldap_url("ldap://127.0.0.1") in C library ldap... yes Checking for ber_free(NULL, 0) in C library lber... yes Checking for sasl_version_info(0, 0, 0, 0, 0, 0) in C library sasl2... yes Checking for C library gssapi_krb5... yes scons: done reading SConscript files. scons: Building targets ... /home/ubuntu/mongo-dev/work/main/python3-venv/bin/python3 buildscripts/cheetah_source_generator.py -o build/enterprise_dynamic_gcc_gdb_noopt_asan/mongo/util/version/releases.h src/mongo/util/version/releases.h.tpl src/mongo/util/version/releases.yml 7.1.0-alpha-1153-g5f75bb8 Creating 'build/enterprise_dynamic_gcc_gdb_noopt_asan/mongo/config.h' /home/ubuntu/mongo-dev/work/main/python3-venv/bin/python3 src/mongo/base/generate_error_codes.py src/mongo/base/error_codes.yml src/mongo/base/error_codes.tpl.h build/enterprise_dynamic_gcc_gdb_noopt_asan/mongo/base/error_codes.h /home/ubuntu/mongo-dev/work/main/python3-venv/bin/python3 src/mongo/base/generate_error_codes.py src/mongo/base/error_codes.yml src/mongo/base/error_codes.tpl.cpp build/enterprise_dynamic_gcc_gdb_noopt_asan/mongo/base/error_codes.cpp /opt/mongodbtoolchain/v4/bin/g++ -o build/enterprise_dynamic_gcc_gdb_noopt_asan/mongo/db/catalog/historical_catalogid_tracker.dyn.o -c -Woverloaded-virtual -Wpessimizing-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++20 -include mongo/platform/basic.h -ffp-contract=off -fasynchronous-unwind-tables -g2 -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -gdwarf-5 -fno-omit-frame-pointer -fno-strict-aliasing -O0 -march=sandybridge -mtune=generic -mprefer-vector-width=128 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-psabi -fstack-protector-strong -fsanitize=address -fno-omit-frame-pointer -gdwarf32 -Wa,--nocompress-debug-sections -fno-builtin-memcmp -Wimplicit-fallthrough=5 -fPIC -DSAFEINT_USE_INTRINSICS=0 -DPCRE2_STATIC -DMONGO_USE_VISIBILITY -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -DADDRESS_SANITIZER -DABSL_FORCE_ALIGNED_ACCESS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_FILESYSTEM_NO_CXX20_ATOMIC_REF -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_THREAD_USES_DATETIME -DBOOST_THREAD_VERSION=5 -DBOOST_LOG_DYN_LINK -Isrc/third_party/s2 -Isrc/third_party/variant-1.4.0/include -Isrc/third_party/libstemmer_c/include -Isrc/third_party/SafeInt -Isrc/third_party/murmurhash3 -Isrc/third_party/immer/dist -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost -Isrc/third_party/abseil-cpp/dist -Ibuild/enterprise_dynamic_gcc_gdb_noopt_asan -Isrc src/mongo/db/catalog/historical_catalogid_tracker.cpp In file included from src/third_party/immer/dist/immer/map.hpp:12, from src/mongo/util/immutable/unordered_map.h:32, from src/mongo/db/catalog/historical_catalogid_tracker.h:34, from src/mongo/db/catalog/historical_catalogid_tracker.cpp:30: src/third_party/immer/dist/immer/detail/hamts/champ.hpp: In member function 'immer::detail::hamts::champ::add_result immer::detail::hamts::champ::do_add(immer::detail::hamts::champ::node_t*, T, immer::detail::hamts::hash_t, immer::detail::hamts::shift_t) const [with T = mongo::NamespaceString; Hash = absl::lts_20211102::hash_internal::Hash; Equal = std::equal_to; MemoryPolicy = immer::memory_policy, immer::refcount_policy, void, immer::no_transience_policy, true, true>; unsigned int B = 5]': src/third_party/immer/dist/immer/detail/hamts/champ.hpp:620:5: warning: control reaches end of non-void function [-Wreturn-type] 620 | } | ^ src/third_party/immer/dist/immer/detail/hamts/champ.hpp: In member function 'immer::detail::hamts::champ::add_result immer::detail::hamts::champ::do_add(immer::detail::hamts::champ::node_t*, T, immer::detail::hamts::hash_t, immer::detail::hamts::shift_t) const [with T = std::pair >; Hash = immer::map, absl::lts_20211102::hash_internal::Hash, std::equal_to, immer::memory_policy, immer::refcount_policy, void, immer::no_transience_policy, true, true>, 5>::hash_key; Equal = immer::map, absl::lts_20211102::hash_internal::Hash, std::equal_to, immer::memory_policy, immer::refcount_policy, void, immer::no_transience_policy, true, true>, 5>::equal_key; MemoryPolicy = immer::memory_policy, immer::refcount_policy, void, immer::no_transience_policy, true, true>; unsigned int B = 5]': src/third_party/immer/dist/immer/detail/hamts/champ.hpp:620:5: warning: control reaches end of non-void function [-Wreturn-type] 620 | } | ^ src/third_party/immer/dist/immer/detail/hamts/champ.hpp: In member function 'immer::detail::hamts::champ::add_result immer::detail::hamts::champ::do_add(immer::detail::hamts::champ::node_t*, T, immer::detail::hamts::hash_t, immer::detail::hamts::shift_t) const [with T = mongo::UUID; Hash = mongo::HashImprover; Equal = std::equal_to; MemoryPolicy = immer::memory_policy, immer::refcount_policy, void, immer::no_transience_policy, true, true>; unsigned int B = 5]': src/third_party/immer/dist/immer/detail/hamts/champ.hpp:620:5: warning: control reaches end of non-void function [-Wreturn-type] 620 | } | ^ src/third_party/immer/dist/immer/detail/hamts/champ.hpp: In member function 'immer::detail::hamts::champ::add_result immer::detail::hamts::champ::do_add(immer::detail::hamts::champ::node_t*, T, immer::detail::hamts::hash_t, immer::detail::hamts::shift_t) const [with T = std::pair >; Hash = immer::map, mongo::HashImprover, std::equal_to, immer::memory_policy, immer::refcount_policy, void, immer::no_transience_policy, true, true>, 5>::hash_key; Equal = immer::map, mongo::HashImprover, std::equal_to, immer::memory_policy, immer::refcount_policy, void, immer::no_transience_policy, true, true>, 5>::equal_key; MemoryPolicy = immer::memory_policy, immer::refcount_policy, void, immer::no_transience_policy, true, true>; unsigned int B = 5]': src/third_party/immer/dist/immer/detail/hamts/champ.hpp:620:5: warning: control reaches end of non-void function [-Wreturn-type] 620 | } | ^ scons: done building targets.