Coverity builds with this command line:
/usr/local/bin/python3 buildscripts/scons.py --install-mode=hygienic install-all --keep-going --variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars --disable-warnings-as-errors -j6 --opt=off --dbg=off --allocator=system --link-model=dynamic
And as of last night, ran a build at the head of mongodb main branch and encountered this linker error:
Using tempfile /data/tmp/tmp8igx5fge.lnk for command line: /opt/mongodbtoolchain/v3/bin/g++ -o build/7a67446c/mongo/util/stacktrace_bm -Wl,--no-as-needed -pthread -Wl,-z,now -rdynamic -fstack-protector-strong -fuse-ld=gold -Wl,--gdb-index -Wl,--no-threads -Wl,--build-id -Wl,--hash-style=gnu -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro -Wl,-rpath,/usr/lib64/perl5/CORE -Wl,-z,origin -Wl,--enable-new-dtags -pie -Wl,-rpath=\$ORIGIN/../lib build/7a67446c/mongo/util/stacktrace_bm.o -Wl,-z,defs -Wl,--whole-archive build/7a67446c/mongo/unittest/libbenchmark_main.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/third_party/libshim_benchmark.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/third_party/benchmark/libbenchmark.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/mongo/db/libservice_context.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/mongo/util/net/libnetwork.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/mongo/util/libperiodic_runner.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/mongo/util/libfail_point.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/mongo/util/libclock_sources.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/mongo/util/concurrency/libspin_lock.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/mongo/db/storage/libwrite_unit_of_work.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/mongo/db/storage/librecovery_unit_base.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/mongo/db/libwrite_concern_options.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/mongo/db/libread_write_concern_provenance.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/mongo/bson/util/libbson_extract.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/mongo/db/libmulti_key_path_tracker.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/mongo/db/liblogical_session_id.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/mongo/idl/libserver_parameter.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/mongo/idl/libidl_parser.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/mongo/db/libcommand_generic_argument.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/mongo/db/commands/libserver_status_core.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/mongo/crypto/libsha_block_openssl.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/mongo/crypto/libsha1_block.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/mongo/crypto/libsha256_block.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/mongo/util/libsecure_compare_memory.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/mongo/libbase.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/third_party/murmurhash3/libmurmurhash3.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/third_party/libshim_fmt.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/third_party/fmt/libfmt.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/third_party/libshim_boost.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/third_party/boost-1.70.0/libboost_program_options.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/third_party/boost-1.70.0/libboost_log.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/third_party/boost-1.70.0/libboost_thread.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/third_party/boost-1.70.0/libboost_iostreams.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/third_party/boost-1.70.0/libboost_filesystem.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/third_party/boost-1.70.0/libboost_system.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/mongo/libboost_assert_shim.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/third_party/libshim_abseil.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/third_party/abseil-cpp-master/libabsl_container.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/third_party/abseil-cpp-master/libabsl_throw_delegate.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/third_party/abseil-cpp-master/libabsl_hash.so -Wl,--no-whole-archive -Wl,--whole-archive build/7a67446c/third_party/libshim_allocator.so -Wl,--no-whole-archive -llzma -llzma -llzma -lm -lresolv -lcrypto -lssl -lcrypto -ldl -lrt -ldl /opt/mongodbtoolchain/v3/bin/g++ @/data/tmp/tmp8igx5fge.lnk src/mongo/util/stacktrace_bm.cpp:113: error: undefined reference to '_Ux86_64_getcontext' src/mongo/util/stacktrace_bm.cpp:114: error: undefined reference to '_Ux86_64_strerror' src/mongo/util/stacktrace_bm.cpp:118: error: undefined reference to '_ULx86_64_init_local' src/mongo/util/stacktrace_bm.cpp:119: error: undefined reference to '_Ux86_64_strerror' src/mongo/util/stacktrace_bm.cpp:124: error: undefined reference to '_ULx86_64_step' src/mongo/util/stacktrace_bm.cpp:125: error: undefined reference to '_Ux86_64_strerror' collect2: error: ld returned 1 exit status scons: *** [build/7a67446c/mongo/util/stacktrace_bm] Error 1
- is depended on by
-
SERVER-49074 Change unittest pcrecpp dep from LIBDEP to LIBDEP_PRIVATE
- Closed
- is related to
-
SERVER-49148 Implement a facility for safer environment modifications
- Closed