* Package: dev-db/mongodb-3.4.6 * Repository: gentoo * Maintainer: julien@thebault.co ultrabug@gentoo.org,proxy-maint@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux ssl tools userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking mongodb-src-r3.4.6.tar.gz to /var/tmp/portage/dev-db/mongodb-3.4.6/work >>> Source unpacked in /var/tmp/portage/dev-db/mongodb-3.4.6/work >>> Preparing source in /var/tmp/portage/dev-db/mongodb-3.4.6/work/mongodb-src-r3.4.6 ... * Applying mongodb-3.4.0-fix-scons.patch ... [ ok ] * Applying mongodb-3.4.6-no-boost-check.patch ... [ ok ] * Applying mongodb-3.2.10-boost-1.62.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-db/mongodb-3.4.6/work/mongodb-src-r3.4.6 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-db/mongodb-3.4.6/work/mongodb-src-r3.4.6 ... scons -j1 CC=x86_64-pc-linux-gnu-gcc CXX=x86_64-pc-linux-gnu-g++ --disable-warnings-as-errors --use-system-boost --use-system-pcre --use-system-snappy --use-system-stemmer --use-system-yaml --use-system-zlib --ssl core tools scons: Reading SConscript files ... Mkdir("build/scons") scons version: 2.5.1 python version: 2 7 13 'final' 0 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 "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 5.3.0 or newer...yes Checking if C++ compiler is GCC 5.3.0 or newer...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-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... no Checking if C++ compiler supports -Wredundant-move... no Checking if C++ compiler supports -Wno-maybe-uninitialized... yes Checking if C++ compiler supports -Wno-undefined-var-template... no Checking -Wnon-virtual-dtor for false positives... no Checking if C compiler supports -fstack-protector-strong... yes Checking if we are using libstdc++... yes Checking if C++ compiler supports -std=c++11... yes Checking if C compiler supports -std=c11... yes WARNING: System versions of C++ libraries must be compiled with C++11/14 support Checking for C++11... yes Checking for memset_s... no Checking for C function strnlen()... 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 -fuse-ld=gold... yes Checking if linker supports -Wl,--build-id... 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 for glibc with non-broken _FORTIFY_SOURCE...yes Checking if C compiler supports -fno-builtin-memcmp... no Checking for storage class thread_local yes Checking for storage class __thread yes Checking for storage class __declspec(thread) no Checking for C++11 is_trivially_copyable support... yes Checking for C++14 std::enable_if_t support...no Checking for C++14 std::make_unique support... no Checking for C++11 std::align support... yes Checking if pthread_setname_np is supported... yes Checking for SSL_version(NULL) in C library ssl... yes Checking for SSLeay_version(0) in C library crypto... 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 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 stemmer... yes Checking for C library yaml-cpp... yes Checking for C++ header file boost/filesystem/operations.hpp... yes Checking for C++ library boost_thread-mt... yes Checking for C++ library boost_filesystem-mt... yes Checking for C++ library boost_program_options-mt... yes Checking for C++ library boost_system-mt... yes Checking for C++ library boost_regex-mt... yes Checking for C++ library boost_chrono-mt... yes Checking for C++ library boost_iostreams-mt... 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 if __malloc_hook is declared volatile... yes Checking for C function fallocate()... yes Checking for C function sync_file_range()... yes Checking for C header file x86intrin.h... yes scons: done reading SConscript files. scons: Building targets ... /usr/bin/python2.7 src/mongo/base/generate_error_codes.py cpp src/mongo/base/error_codes.err --cpp-header=build/opt/mongo/base/error_codes.h --cpp-source=build/opt/mongo/base/error_codes.cpp Creating 'build/opt/mongo/config.h' Compiling build/opt/mongo/shell/dbshell.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/base/secure_allocator.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/base/libsecure_allocator.a Skipping ranlib for build/opt/mongo/base/libsecure_allocator.a Compiling build/opt/mongo/base/system_error.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/base/libsystem_error.a Skipping ranlib for build/opt/mongo/base/libsystem_error.a Compiling build/opt/mongo/bson/mutable/document.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/bson/mutable/element.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/bson/mutable/libmutable_bson.a Skipping ranlib for build/opt/mongo/bson/mutable/libmutable_bson.a Compiling build/opt/mongo/bson/util/bson_extract.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/bson/util/libbson_extract.a Skipping ranlib for build/opt/mongo/bson/util/libbson_extract.a Compiling build/opt/mongo/client/authenticate.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/client/libauthentication.a Skipping ranlib for build/opt/mongo/client/libauthentication.a Compiling build/opt/mongo/client/query.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/client/libclient_query.a Skipping ranlib for build/opt/mongo/client/libclient_query.a Compiling build/opt/mongo/client/connection_string_connect.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/client/mongo_uri_connect.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/client/connpool.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition /usr/bin/python2.7 src/mongo/db/auth/generate_action_types.py src/mongo/db/auth/action_types.txt build/opt/mongo/db/auth/action_type.h build/opt/mongo/db/auth/action_type.cpp Compiling build/opt/mongo/client/dbclient.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/client/dbclient_rs.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/client/dbclientcursor.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/client/index_spec.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/client/global_conn_pool.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/client/replica_set_monitor.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/client/replica_set_monitor_manager.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/client/libclientdriver.a Skipping ranlib for build/opt/mongo/client/libclientdriver.a Compiling build/opt/mongo/client/connection_string.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/client/mongo_uri.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/client/libconnection_string.a Skipping ranlib for build/opt/mongo/client/libconnection_string.a Compiling build/opt/mongo/client/read_preference.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/client/libread_preference.a Skipping ranlib for build/opt/mongo/client/libread_preference.a Compiling build/opt/mongo/client/native_sasl_client_session.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/client/sasl_client_authenticate.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/client/sasl_client_authenticate_impl.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/client/sasl_client_conversation.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/client/sasl_client_session.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/client/sasl_plain_client_conversation.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/client/sasl_scramsha1_client_conversation.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/client/scram_sha1_client_cache.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/client/libsasl_client.a Skipping ranlib for build/opt/mongo/client/libsasl_client.a Compiling build/opt/mongo/crypto/mechanism_scram.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/crypto/libscramauth.a Skipping ranlib for build/opt/mongo/crypto/libscramauth.a Compiling build/opt/mongo/crypto/sha1_block.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/crypto/libsha1_block.a Skipping ranlib for build/opt/mongo/crypto/libsha1_block.a Compiling build/opt/mongo/crypto/sha1_block_openssl.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/crypto/libsha1_block_openssl.a Skipping ranlib for build/opt/mongo/crypto/libsha1_block_openssl.a Compiling build/opt/mongo/db/auth/role_name.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/db/auth/libauth_rolename.a Skipping ranlib for build/opt/mongo/db/auth/libauth_rolename.a Compiling build/opt/mongo/db/auth/internal_user_auth.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/db/auth/libauthcommon.a Skipping ranlib for build/opt/mongo/db/auth/libauthcommon.a Compiling build/opt/mongo/db/bson/dotted_path_support.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/db/bson/libdotted_path_support.a Skipping ranlib for build/opt/mongo/db/bson/libdotted_path_support.a Compiling build/opt/mongo/db/catalog/index_key_validate.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/db/catalog/libindex_key_validate.a Skipping ranlib for build/opt/mongo/db/catalog/libindex_key_validate.a Compiling build/opt/mongo/db/commands/test_commands_enabled.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/db/commands/libtest_commands_enabled.a Skipping ranlib for build/opt/mongo/db/commands/libtest_commands_enabled.a Compiling build/opt/mongo/db/fts/fts_index_format.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/fts/fts_matcher.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/fts/fts_query_impl.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/fts/fts_query_parser.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/fts/fts_spec.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/fts/fts_spec_legacy.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/fts/fts_language.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/fts/fts_basic_phrase_matcher.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/fts/fts_basic_tokenizer.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/fts/fts_unicode_phrase_matcher.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/fts/fts_unicode_tokenizer.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/fts/fts_util.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/fts/fts_element_iterator.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/fts/stemmer.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/fts/stop_words.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition /usr/bin/python2.7 src/mongo/db/fts/generate_stop_words.py src/mongo/db/fts/stop_words_danish.txt src/mongo/db/fts/stop_words_dutch.txt src/mongo/db/fts/stop_words_english.txt src/mongo/db/fts/stop_words_finnish.txt src/mongo/db/fts/stop_words_french.txt src/mongo/db/fts/stop_words_german.txt src/mongo/db/fts/stop_words_hungarian.txt src/mongo/db/fts/stop_words_italian.txt src/mongo/db/fts/stop_words_norwegian.txt src/mongo/db/fts/stop_words_portuguese.txt src/mongo/db/fts/stop_words_romanian.txt src/mongo/db/fts/stop_words_russian.txt src/mongo/db/fts/stop_words_spanish.txt src/mongo/db/fts/stop_words_swedish.txt src/mongo/db/fts/stop_words_turkish.txt build/opt/mongo/db/fts/stop_words_list.h build/opt/mongo/db/fts/stop_words_list.cpp header: build/opt/mongo/db/fts/stop_words_list.h source: build/opt/mongo/db/fts/stop_words_list.cpp language_files: src/mongo/db/fts/stop_words_danish.txt src/mongo/db/fts/stop_words_dutch.txt src/mongo/db/fts/stop_words_english.txt src/mongo/db/fts/stop_words_finnish.txt src/mongo/db/fts/stop_words_french.txt src/mongo/db/fts/stop_words_german.txt src/mongo/db/fts/stop_words_hungarian.txt src/mongo/db/fts/stop_words_italian.txt src/mongo/db/fts/stop_words_norwegian.txt src/mongo/db/fts/stop_words_portuguese.txt src/mongo/db/fts/stop_words_romanian.txt src/mongo/db/fts/stop_words_russian.txt src/mongo/db/fts/stop_words_spanish.txt src/mongo/db/fts/stop_words_swedish.txt src/mongo/db/fts/stop_words_turkish.txt Compiling build/opt/mongo/db/fts/stop_words_list.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/fts/tokenizer.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/db/fts/libbase.a Skipping ranlib for build/opt/mongo/db/fts/libbase.a /usr/bin/python2.7 src/mongo/db/fts/unicode/gen_casefold_map.py src/third_party/unicode-8.0.0/CaseFolding.txt build/opt/mongo/db/fts/unicode/codepoints_casefold.cpp Compiling build/opt/mongo/db/fts/unicode/codepoints_casefold.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition /usr/bin/python2.7 src/mongo/db/fts/unicode/gen_delimiter_list.py src/third_party/unicode-8.0.0/PropList.txt build/opt/mongo/db/fts/unicode/codepoints_delimiter_list.cpp Compiling build/opt/mongo/db/fts/unicode/codepoints_delimiter_list.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition /usr/bin/python2.7 src/mongo/db/fts/unicode/gen_diacritic_list.py src/third_party/unicode-8.0.0/PropList.txt build/opt/mongo/db/fts/unicode/codepoints_diacritic_list.cpp Compiling build/opt/mongo/db/fts/unicode/codepoints_diacritic_list.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/fts/unicode/codepoints_diacritic_map.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/fts/unicode/string.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/db/fts/unicode/libunicode.a Skipping ranlib for build/opt/mongo/db/fts/unicode/libunicode.a Compiling build/opt/mongo/db/geo/hash.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/geo/shapes.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/geo/big_polygon.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/geo/r2_region_coverer.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/db/geo/libgeometry.a Skipping ranlib for build/opt/mongo/db/geo/libgeometry.a Compiling build/opt/mongo/db/geo/geoparser.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/geo/geometry_container.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/db/geo/libgeoparser.a Skipping ranlib for build/opt/mongo/db/geo/libgeoparser.a Compiling build/opt/mongo/db/index/expression_params.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/index/s2_common.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/db/index/libexpression_params.a Skipping ranlib for build/opt/mongo/db/index/libexpression_params.a Compiling build/opt/mongo/db/index/external_key_generator.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/db/index/libexternal_key_generator.a Skipping ranlib for build/opt/mongo/db/index/libexternal_key_generator.a Compiling build/opt/mongo/db/index/index_descriptor.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/db/index/libindex_descriptor.a Skipping ranlib for build/opt/mongo/db/index/libindex_descriptor.a Compiling build/opt/mongo/db/index/btree_key_generator.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/index/expression_keys_private.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/db/index/libkey_generator.a Skipping ranlib for build/opt/mongo/db/index/libkey_generator.a Compiling build/opt/mongo/db/field_ref.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/field_ref_set.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/field_parser.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/keypattern.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/db/libcommon.a Skipping ranlib for build/opt/mongo/db/libcommon.a Compiling build/opt/mongo/db/dbmessage.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/db/libdbmessage.a Skipping ranlib for build/opt/mongo/db/libdbmessage.a Compiling build/opt/mongo/db/index_names.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/db/libindex_names.a Skipping ranlib for build/opt/mongo/db/libindex_names.a Compiling build/opt/mongo/db/hasher.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/db/libmongohasher.a Skipping ranlib for build/opt/mongo/db/libmongohasher.a Compiling build/opt/mongo/db/namespace_string.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/db/libnamespace_string.a Skipping ranlib for build/opt/mongo/db/libnamespace_string.a Compiling build/opt/mongo/db/server_options.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/db/libserver_options_core.a Skipping ranlib for build/opt/mongo/db/libserver_options_core.a Compiling build/opt/mongo/db/server_parameters.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/db/libserver_parameters.a Skipping ranlib for build/opt/mongo/db/libserver_parameters.a Compiling build/opt/mongo/db/client.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/operation_context.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/service_context.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/service_context_noop.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/db/libservice_context.a Skipping ranlib for build/opt/mongo/db/libservice_context.a Compiling build/opt/mongo/db/wire_version.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/db/libwire_version.a Skipping ranlib for build/opt/mongo/db/libwire_version.a Compiling build/opt/mongo/db/write_concern_options.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/db/libwrite_concern_options.a Skipping ranlib for build/opt/mongo/db/libwrite_concern_options.a Compiling build/opt/mongo/db/query/collation/collator_factory_interface.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/db/query/collation/libcollator_factory_interface.a Skipping ranlib for build/opt/mongo/db/query/collation/libcollator_factory_interface.a Compiling build/opt/mongo/db/query/collation/collation_index_key.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/query/collation/collation_spec.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/query/collation/collator_interface.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/db/query/collation/libcollator_interface.a Skipping ranlib for build/opt/mongo/db/query/collation/libcollator_interface.a Compiling build/opt/mongo/db/query/count_request.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/query/cursor_request.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/query/cursor_response.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/query/find_and_modify_request.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/query/getmore_request.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/query/killcursors_request.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/query/killcursors_response.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/query/view_response_formatter.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/db/query/libcommand_request_response.a Skipping ranlib for build/opt/mongo/db/query/libcommand_request_response.a Compiling build/opt/mongo/db/query/query_request.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/db/query/libquery_request.a Skipping ranlib for build/opt/mongo/db/query/libquery_request.a Compiling build/opt/mongo/db/repl/bson_extract_optime.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/db/repl/optime.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/db/repl/liboptime.a Skipping ranlib for build/opt/mongo/db/repl/liboptime.a Compiling build/opt/mongo/db/repl/read_concern_args.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/db/repl/libread_concern_args.a Skipping ranlib for build/opt/mongo/db/repl/libread_concern_args.a Compiling build/opt/mongo/db/stats/counters.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/db/stats/libcounters.a Skipping ranlib for build/opt/mongo/db/stats/libcounters.a Compiling build/opt/mongo/executor/async_secure_stream.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/executor/async_secure_stream_factory.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/executor/async_stream.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/executor/async_stream_common.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/executor/async_stream_factory.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/executor/libasync_stream.a Skipping ranlib for build/opt/mongo/executor/libasync_stream.a Compiling build/opt/mongo/executor/async_timer_asio.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/executor/libasync_timer_asio.a Skipping ranlib for build/opt/mongo/executor/libasync_timer_asio.a Compiling build/opt/mongo/executor/connection_pool.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/executor/libconnection_pool.a Skipping ranlib for build/opt/mongo/executor/libconnection_pool.a Compiling build/opt/mongo/executor/connection_pool_stats.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/executor/libconnection_pool_stats.a Skipping ranlib for build/opt/mongo/executor/libconnection_pool_stats.a Compiling build/opt/mongo/executor/network_interface.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/executor/libnetwork_interface.a Skipping ranlib for build/opt/mongo/executor/libnetwork_interface.a Compiling build/opt/mongo/executor/connection_pool_asio.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/executor/network_interface_asio.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/executor/network_interface_asio_auth.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/executor/network_interface_asio_command.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/executor/network_interface_asio_connect.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/executor/network_interface_asio_operation.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/executor/libnetwork_interface_asio.a Skipping ranlib for build/opt/mongo/executor/libnetwork_interface_asio.a Compiling build/opt/mongo/executor/network_interface_factory.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/executor/libnetwork_interface_factory.a Skipping ranlib for build/opt/mongo/executor/libnetwork_interface_factory.a Compiling build/opt/mongo/executor/network_interface_thread_pool.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/executor/libnetwork_interface_thread_pool.a Skipping ranlib for build/opt/mongo/executor/libnetwork_interface_thread_pool.a Compiling build/opt/mongo/executor/remote_command_request.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/executor/remote_command_response.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/executor/libremote_command.a Skipping ranlib for build/opt/mongo/executor/libremote_command.a Compiling build/opt/mongo/executor/task_executor.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/executor/libtask_executor_interface.a Skipping ranlib for build/opt/mongo/executor/libtask_executor_interface.a Compiling build/opt/mongo/executor/thread_pool_task_executor.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/executor/libthread_pool_task_executor.a Skipping ranlib for build/opt/mongo/executor/libthread_pool_task_executor.a Compiling build/opt/mongo/base/data_range.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/base/data_range_cursor.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/base/data_type.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/base/data_type_string_data.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/base/data_type_terminated.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/base/error_codes.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/base/global_initializer.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/base/global_initializer_registerer.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/base/init.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/base/initializer.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/base/initializer_context.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/base/initializer_dependency_graph.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/base/make_string_vector.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/base/parse_number.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/base/simple_string_data_comparator.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/base/status.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/base/string_data.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/base/validate_locale.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/bson/bson_comparator_interface_base.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/bson/bson_depth.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/bson/bson_validate.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/bson/bsonelement.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/bson/bsonmisc.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/bson/bsonobj.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/bson/bsonobjbuilder.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/bson/bsontypes.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/bson/json.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/bson/oid.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/bson/simple_bsonelement_comparator.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/bson/simple_bsonobj_comparator.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/bson/timestamp.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/logger/component_message_log_domain.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/logger/console.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/logger/log_component.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/logger/log_component_settings.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/logger/log_manager.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/logger/log_severity.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/logger/logger.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/logger/logstream_builder.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/logger/message_event_utf8_encoder.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/logger/message_log_domain.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/logger/ramlog.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/logger/redaction.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/logger/rotatable_file_manager.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/logger/rotatable_file_writer.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/platform/decimal128.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/platform/posix_fadvise.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/platform/process_id.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/platform/random.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/platform/shared_library.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/platform/shared_library_posix.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/platform/stack_locator.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/platform/stack_locator_linux.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/platform/strcasestr.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/platform/strnlen.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/util/allocator.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/util/assert_util.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/util/base64.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/util/concurrency/idle_thread_block.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/util/concurrency/thread_name.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/util/duration.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/util/exception_filter_win32.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/util/exit.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/util/file.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/util/hex.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/util/itoa.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/util/log.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/util/platform_init.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/util/signal_handlers_synchronous.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/util/stacktrace.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/util/stacktrace_posix.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/util/startup_test.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/util/static_observer.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/util/stringutils.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/util/system_clock_source.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/util/system_tick_source.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/util/text.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/util/time_support.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/util/timer.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Compiling build/opt/mongo/util/version.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/libbase.a Skipping ranlib for build/opt/mongo/libbase.a Compiling build/opt/mongo/shell/linenoise_utf8.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition Generating placeholder library build/opt/mongo/liblinenoise_utf8.a Skipping ranlib for build/opt/mongo/liblinenoise_utf8.a Compiling build/opt/mongo/shell/bench.o :0:0: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition src/mongo/shell/bench.cpp: In member function 'void mongo::BenchRunWorker::generateLoadOnConnection(mongo::DBClientBase*)': src/mongo/shell/bench.cpp:677:9: error: 'string' was not declared in this scope string errmsg; ^~~~~~ src/mongo/shell/bench.cpp:677:9: note: suggested alternatives: In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/g++-v6/string:39:0, from src/mongo/shell/bench.h:31, from src/mongo/shell/bench.cpp:35: /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/g++-v6/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' typedef basic_string string; ^~~~~~ /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/g++-v6/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/g++-v6/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' src/mongo/shell/bench.cpp:678:72: error: 'errmsg' was not declared in this scope if (!conn->auth("admin", _config->username, _config->password, errmsg)) { ^~~~~~ src/mongo/shell/bench.cpp:921:52: error: 'string' was not declared in this scope throw DBException((string) "From benchRun GLE" + ^~~~~~ src/mongo/shell/bench.cpp:921:52: note: suggested alternatives: In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/g++-v6/string:39:0, from src/mongo/shell/bench.h:31, from src/mongo/shell/bench.cpp:35: /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/g++-v6/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' typedef basic_string string; ^~~~~~ /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/g++-v6/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/g++-v6/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' src/mongo/shell/bench.cpp:987:52: error: 'string' was not declared in this scope throw DBException((string) "From benchRun GLE" + ^~~~~~ src/mongo/shell/bench.cpp:987:52: note: suggested alternatives: In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/g++-v6/string:39:0, from src/mongo/shell/bench.h:31, from src/mongo/shell/bench.cpp:35: /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/g++-v6/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' typedef basic_string string; ^~~~~~ /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/g++-v6/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/g++-v6/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' src/mongo/shell/bench.cpp:1034:52: error: 'string' was not declared in this scope throw DBException((string) "From benchRun GLE " + ^~~~~~ src/mongo/shell/bench.cpp:1034:52: note: suggested alternatives: In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/g++-v6/string:39:0, from src/mongo/shell/bench.h:31, from src/mongo/shell/bench.cpp:35: /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/g++-v6/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' typedef basic_string string; ^~~~~~ /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/g++-v6/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/g++-v6/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' src/mongo/shell/bench.cpp: In member function 'void mongo::BenchRunWorker::run()': src/mongo/shell/bench.cpp:1136:13: error: 'string' was not declared in this scope string errmsg; ^~~~~~ src/mongo/shell/bench.cpp:1136:13: note: suggested alternatives: In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/g++-v6/string:39:0, from src/mongo/shell/bench.h:31, from src/mongo/shell/bench.cpp:35: /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/g++-v6/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' typedef basic_string string; ^~~~~~ /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/g++-v6/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/g++-v6/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' src/mongo/shell/bench.cpp:1137:76: error: 'errmsg' was not declared in this scope if (!conn->auth("admin", _config->username, _config->password, errmsg)) { ^~~~~~ src/mongo/shell/bench.cpp: In member function 'void mongo::BenchRunner::start()': src/mongo/shell/bench.cpp:1168:13: error: 'string' was not declared in this scope string errmsg; ^~~~~~ src/mongo/shell/bench.cpp:1168:13: note: suggested alternatives: In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/g++-v6/string:39:0, from src/mongo/shell/bench.h:31, from src/mongo/shell/bench.cpp:35: /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/g++-v6/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' typedef basic_string string; ^~~~~~ /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/g++-v6/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/g++-v6/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' src/mongo/shell/bench.cpp:1169:76: error: 'errmsg' was not declared in this scope if (!conn->auth("admin", _config->username, _config->password, errmsg)) { ^~~~~~ src/mongo/shell/bench.cpp: In member function 'void mongo::BenchRunner::stop()': src/mongo/shell/bench.cpp:1204:13: error: 'string' was not declared in this scope string errmsg; ^~~~~~ src/mongo/shell/bench.cpp:1204:13: note: suggested alternatives: In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/g++-v6/string:39:0, from src/mongo/shell/bench.h:31, from src/mongo/shell/bench.cpp:35: /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/g++-v6/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' typedef basic_string string; ^~~~~~ /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/g++-v6/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/g++-v6/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' src/mongo/shell/bench.cpp:1206:76: error: 'errmsg' was not declared in this scope if (!conn->auth("admin", _config->username, _config->password, errmsg)) { ^~~~~~ scons: *** [build/opt/mongo/shell/bench.o] Error 1 scons: building terminated because of errors. build/opt/mongo/shell/bench.o failed: Error 1 * ERROR: dev-db/mongodb-3.4.6::gentoo failed (compile phase): * escons failed. * * Call stack: * ebuild.sh, line 115: Called src_compile * environment, line 3387: Called escons 'CC=x86_64-pc-linux-gnu-gcc' 'CXX=x86_64-pc-linux-gnu-g++' '--disable-warnings-as-errors' '--use-system-boost' '--use-system-pcre' '--use-system-snappy' '--use-system-stemmer' '--use-system-yaml' '--use-system-zlib' '--ssl' 'core' 'tools' * environment, line 1638: Called die * The specific snippet of code: * die "escons failed." * * If you need support, post the output of `emerge --info '=dev-db/mongodb-3.4.6::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-db/mongodb-3.4.6::gentoo'`. * The complete build log is located at '/var/log/portage/dev-db:mongodb-3.4.6:20170731-180609.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-db/mongodb-3.4.6/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-db/mongodb-3.4.6/temp/environment'. * Working directory: '/var/tmp/portage/dev-db/mongodb-3.4.6/work/mongodb-src-r3.4.6' * S: '/var/tmp/portage/dev-db/mongodb-3.4.6/work/mongodb-src-r3.4.6'