i got error below when i want to compile mongodb50 on freebsd 13.1 Using tempfile /tmp/tmpqrig88nk.lnk for command line: c++ -o build/opt/mongo/s/mongos -Wl,-rpath,/usr/local/lib -fstack-protector-strong -pthread -Wl,-z,now -fuse-ld=lld -fstack-protector-st rong -stdlib=libc++ -Wl,--build-id -Wl,--hash-style=gnu -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro -Wl,--compress-debug-sectio ns=none -flto -Wl,-z,origin -Wl,--enable-new-dtags -pie -rdynamic -Wl,-rpath=/usr/local/lib build/opt/mongo/s/mongos.o -L/usr/local/lib -Wl,--whole-archive build/opt/mongo/s/libmongos_main.a build/opt/mongo/s/libsessions_collection_sharded.a build/opt/mongo/s/libmongos_in itializers.a build/opt/mongo/util/options_parser/liboptions_parser_init.a build/opt/mongo/util/net/libssl_options_server.a build/opt/mon go/util/net/libhttp_client_impl.a build/opt/mongo/util/libalarm.a build/opt/mongo/util/libversion_impl.a build/opt/mongo/util/libtesting _options.a build/opt/mongo/util/liblatch_analyzer.a build/opt/mongo/transport/libservice_entry_point.a build/opt/mongo/transport/libmess age_compressor_options_server.a build/opt/mongo/s/libsharding_initialization.a build/opt/mongo/util/libperiodic_runner_factory.a build/o pt/mongo/util/libperiodic_runner_impl.a build/opt/mongo/s/libsharding_task_executor.a build/opt/mongo/s/libsharding_egress_metadata_hook _for_mongos.a build/opt/mongo/db/process_health/libconfig_server_health_observer.a build/opt/mongo/db/pipeline/process_interface/libmong os_process_interface_factory.a build/opt/mongo/db/libdbdirectclient.a build/opt/mongo/db/commands/libserver_status_servers.a build/opt/m ongo/s/libcommitted_optime_metadata_hook.a build/opt/mongo/s/commands/libcluster_commands.a build/opt/mongo/s/query/libcluster_aggregate .a build/opt/mongo/s/libvector_clock_mongos.a build/opt/mongo/s/libsharding_api.a build/opt/mongo/s/write_ops/libcluster_write_ops.a bui ld/opt/mongo/db/pipeline/process_interface/libmongos_process_interface.a build/opt/mongo/db/pipeline/process_interface/libcommon_process _interface.a build/opt/mongo/db/timeseries/libtimeseries_update_delete_util.a build/opt/mongo/s/libmongos_topology_coordinator.a build/o pt/mongo/s/libmongos_hello_response.a build/opt/mongo/s/libload_balancer_support.a build/opt/mongo/s/libcluster_last_error_info.a build/ opt/mongo/executor/libasync_request_executor.a build/opt/mongo/executor/libasync_multicaster.a build/opt/mongo/db/views/libviews.a build /opt/mongo/db/timeseries/libtimeseries_commands_conversion_helper.a build/opt/mongo/db/stats/libapi_version_metrics.a build/opt/mongo/db /repl/libhello_auth.a build/opt/mongo/db/repl/libhello_command.a build/opt/mongo/db/query/libmap_reduce_output_format.a build/opt/mongo/ db/libinitialize_api_parameters.a build/opt/mongo/db/commands/libvalidate_db_metadata_command.a build/opt/mongo/db/commands/libshutdown_ idl.a build/opt/mongo/db/commands/libset_index_commit_quorum_idl.a build/opt/mongo/db/librw_concern_d.a build/opt/mongo/db/storage/libst orage_control.a build/opt/mongo/db/storage/libjournal_flusher.a build/opt/mongo/db/storage/libcheckpointer.a build/opt/mongo/db/commands /libset_feature_compatibility_version_idl.a build/opt/mongo/db/commands/librename_collection_idl.a build/opt/mongo/db/commands/libprofil e_common.a build/opt/mongo/db/commands/libmap_reduce_parser.a build/opt/mongo/db/commands/liblist_databases_command.a build/opt/mongo/db /commands/libkill_common.a build/opt/mongo/db/liboperation_killer.a build/opt/mongo/db/commands/libcurrent_op_common.a build/opt/mongo/d b/auth/libauth_checks.a build/opt/mongo/db/update/libupdate_driver.a build/opt/mongo/db/update/libupdate.a build/opt/mongo/db/update/lib update_nodes.a build/opt/mongo/db/libvector_clock_mutable.a build/opt/mongo/db/catalog/libdocument_validation.a build/opt/mongo/db/proce ss_health/libfault_manager.a build/opt/mongo/db/libstartup_warnings_common.a build/opt/mongo/db/libservice_liaison_mongos.a build/opt/mo ngo/db/libserverinit.a build/opt/mongo/db/liblasterror.a build/opt/mongo/db/ftdc/libftdc_mongos.a build/opt/mongo/db/ftdc/libftdc_server .a build/opt/mongo/db/ftdc/libftdc.a build/opt/mongo/db/commands/libservers.a build/opt/mongo/util/libntservice.a build/opt/mongo/util/l ibsignal_handlers.a build/opt/mongo/db/repl/libisself.a build/opt/mongo/db/pipeline/libchange_stream_pipeline.a build/opt/mongo/db/pipel ine/libsharded_agg_helpers.a build/opt/mongo/s/query/libcluster_query.a build/opt/mongo/s/query/libstore_possible_cursor.a build/opt/mon go/s/query/libcluster_cursor_cleanup_job.a build/opt/mongo/db/libcursor_server_params.a build/opt/mongo/s/query/libcluster_client_cursor .a build/opt/mongo/s/query/librouter_exec_stage.a build/opt/mongo/s/query/libasync_results_merger.a build/opt/mongo/s/catalog/libshardin g_catalog_client_impl.a build/opt/mongo/db/storage/libduplicate_key_error_info.a build/opt/mongo/s/libsharding_router_api.a build/opt/mo ngo/db/pipeline/process_interface/libmongo_process_interface.a build/opt/mongo/db/commands/libtxn_cmd_request.a build/opt/mongo/db/query /libquery_common.a build/opt/mongo/db/query/datetime/libinit_timezone_data.a build/opt/mongo/db/query/collation/libcollator_factory_icu. a build/opt/mongo/db/query/collation/libcollator_icu.a build/opt/mongo/s/libasync_requests_sender.a build/opt/mongo/s/libmongos_server_p arameters.a build/opt/mongo/s/client/libsharding_client.a build/opt/mongo/client/libfetcher.a build/opt/mongo/executor/libscoped_task_ex ecutor.a build/opt/mongo/s/commands/libshared_cluster_commands.a build/opt/mongo/db/pipeline/libaggregation.a build/opt/mongo/db/libtraf fic_recorder.a build/opt/mongo/db/libshared_request_handling.a build/opt/mongo/db/libsession_catalog.a build/opt/mongo/db/liblog_process _details.a build/opt/mongo/db/repl/libreplica_set_messages.a build/opt/mongo/db/repl/libsplit_horizon.a build/opt/mongo/db/libserver_opt ions_servers.a build/opt/mongo/db/libserver_options_base.a build/opt/mongo/db/commands/libcore.a build/opt/mongo/db/liblogical_session_c ache_impl.a build/opt/mongo/db/s/libsharding_api_d.a build/opt/mongo/db/librange_arithmetic.a build/opt/mongo/db/libservice_liaison.a bu ild/opt/mongo/db/commands/librwc_defaults_commands.a build/opt/mongo/db/libread_write_concern_defaults.a build/opt/mongo/db/repl/librepl _server_parameters.a build/opt/mongo/db/auth/libauthmongos.a build/opt/mongo/s/libcoreshard.a build/opt/mongo/s/libgrid.a build/opt/mong o/s/query/libcluster_cursor_manager.a build/opt/mongo/db/libkill_sessions.a build/opt/mongo/s/libsharding_routing_table.a build/opt/mong o/s/libchunk_writes_tracker.a build/opt/mongo/db/update/libupdate_common.a build/opt/mongo/db/query/libquery_planner.a build/opt/mongo/d b/query/libcanonical_query.a build/opt/mongo/db/cst/libcst.a build/opt/mongo/db/pipeline/libpipeline.a build/opt/mongo/db/views/libresol ved_view.a build/opt/mongo/db/update/libupdate_document_diff.a build/opt/mongo/db/libupdate_index_data.a build/opt/mongo/db/timeseries/l ibtimeseries_index_schema_conversion_functions.a build/opt/mongo/db/repl/libspeculative_majority_read_info.a build/opt/mongo/db/repl/lib image_collection_entry.a build/opt/mongo/db/repl/liboplog_entry.a build/opt/mongo/db/pipeline/libgranularity_rounder.a build/opt/mongo/d b/pipeline/libchange_stream_invalidation_info.a build/opt/mongo/db/pipeline/libaccumulator.a build/opt/mongo/db/libsessions_collection.a build/opt/mongo/db/liblogical_session_id_helpers.a build/opt/mongo/db/liblogical_session_cache.a build/opt/mongo/db/libcurop_failpoint_ helpers.a build/opt/mongo/db/exec/libsort_executor.a build/opt/mongo/db/storage/libencryption_hooks.a build/opt/mongo/db/sorter/libsorte r_idl.a build/opt/mongo/db/exec/libscoped_timer.a build/opt/mongo/db/exec/libbucket_unpacker.a build/opt/mongo/bson/util/libbson_column. a build/opt/mongo/db/index/libkey_generator.a build/opt/mongo/db/query/libsort_pattern.a build/opt/mongo/db/query/libprojection_ast.a bu ild/opt/mongo/db/pipeline/libdocument_path_support.a build/opt/mongo/db/librecord_id_helpers.a build/opt/mongo/db/index/libindex_descrip tor.a build/opt/mongo/db/catalog/libindex_catalog.a build/opt/mongo/db/catalog/libindex_catalog_entry.a build/opt/mongo/db/fts/libbase_f ts.a build/opt/third_party/libshim_stemmer.a -Wl,--no-whole-archive build/opt/third_party/libstemmer_c/libstemmer.a -Wl,--whole-archive build/opt/mongo/db/fts/unicode/libunicode.a build/opt/mongo/shell/liblinenoise_utf8.a build/opt/mongo/db/exec/libworking_set.a build/opt /mongo/db/index/libexpression_params.a build/opt/mongo/db/exec/sbe/libquery_sbe_plan_stats.a build/opt/mongo/db/exec/libprojection_execu tor.a build/opt/mongo/db/matcher/libexpressions.a build/opt/mongo/db/pipeline/libexpression_context.a build/opt/mongo/util/libsummation. a build/opt/mongo/util/libregex_util.a build/opt/mongo/scripting/libscripting.a build/opt/third_party/libshim_mozjs.a build/opt/third_pa rty/mozjs-60/libmozjs.a build/opt/mongo/scripting/libscripting_common.a build/opt/mongo/shell/libmongojs.a build/opt/mongo/scripting/lib bson_template_evaluator.a build/opt/mongo/db/query/collation/libcollator_factory_interface.a build/opt/mongo/db/pipeline/libvariable_val idation.a build/opt/mongo/db/pipeline/libdependencies.a build/opt/mongo/db/libmongohasher.a build/opt/mongo/db/matcher/libpath.a build/o pt/mongo/db/geo/libgeoparser.a build/opt/mongo/db/geo/libgeometry.a build/opt/third_party/s2/libs2.a build/opt/third_party/s2/util/math/ libmath.a build/opt/third_party/s2/util/coding/libcoding.a build/opt/third_party/s2/strings/libstrings.a build/opt/third_party/s2/base/l ibbase_s2.a build/opt/mongo/db/fts/libfts_query_noop.a build/opt/mongo/s/client/libshard_interface.a build/opt/mongo/s/write_ops/libbatc h_write_types.a build/opt/mongo/db/liberror_labels.a build/opt/mongo/db/pipeline/liblite_parsed_document_source.a build/opt/mongo/client /libremote_command_retry_scheduler.a build/opt/mongo/executor/libtask_executor_pool.a build/opt/mongo/db/liblogical_time_metadata_hook.a build/opt/mongo/db/libclient_metadata_propagation_egress_hook.a build/opt/mongo/db/auth/libauthservercommon.a build/opt/mongo/db/comman ds/libauthentication_commands.a build/opt/mongo/db/auth/libsasl_options_init.a build/opt/mongo/db/auth/libsasl_commands.a build/opt/mong o/db/auth/libauthentication_session.a build/opt/mongo/db/auth/libsaslauth.a build/opt/mongo/db/auth/libauth_impl_internal.a build/opt/mo ngo/db/libcurop.a build/opt/mongo/util/libprogress_meter.a build/opt/mongo/util/libdiagnostic_info.a build/opt/mongo/db/stats/libtimer_s tats.a build/opt/mongo/db/stats/libresource_consumption_metrics.a build/opt/mongo/db/commands/libserver_status.a build/opt/mongo/db/libp repare_conflict_tracker.a build/opt/mongo/db/libgeneric_cursor.a build/opt/mongo/db/libcommands.a build/opt/mongo/db/libcreate_indexes_i dl.a build/opt/mongo/db/catalog/libcommit_quorum_idl.a build/opt/mongo/db/catalog/libcommit_quorum_options.a build/opt/mongo/db/concurre ncy/liblock_manager.a build/opt/mongo/util/concurrency/libticketholder.a build/opt/mongo/db/concurrency/libflow_control_ticketholder.a b uild/opt/mongo/db/auth/libuser_cache_acquisition_stats.a build/opt/mongo/db/libaudit.a build/opt/mongo/db/auth/libuser_document_parser.a build/opt/mongo/db/auth/libbuiltin_roles.a build/opt/mongo/db/auth/libauthorization_manager_global.a build/opt/mongo/util/net/libssl_pa rameters_auth.a build/opt/mongo/db/auth/libsecurity_key.a build/opt/mongo/db/auth/libuser.a build/opt/mongo/db/auth/libsecurity_file.a b uild/opt/mongo/db/auth/libauth_umc.a build/opt/mongo/db/auth/libauth_types.a build/opt/mongo/db/auth/libaddress_restriction.a build/opt/ mongo/client/libremote_command_targeter.a build/opt/mongo/client/libclientdriver_network.a build/opt/mongo/executor/libthread_pool_task_ executor.a build/opt/mongo/executor/libnetwork_interface_thread_pool.a build/opt/mongo/executor/libnetwork_interface_factory.a build/opt /mongo/executor/libnetwork_interface_tl.a build/opt/mongo/transport/libtransport_layer_manager.a build/opt/mongo/transport/libservice_ex ecutor.a build/opt/mongo/transport/libtransport_layer.a build/opt/mongo/util/libexecutor_stats.a build/opt/mongo/db/auth/libauthenticati on_restriction.a build/opt/mongo/base/libsystem_error.a build/opt/mongo/executor/libhedging_metrics.a build/opt/mongo/client/libasync_cl ient.a build/opt/mongo/transport/libmessage_compressor.a build/opt/third_party/libshim_zstd.a -Wl,--no-whole-archive build/opt/third_par ty/zstandard-1.4.4/libzstd.a -Wl,--whole-archive build/opt/third_party/libshim_zlib.a build/opt/third_party/libshim_snappy.a build/opt/m ongo/executor/libconnection_pool_executor.a build/opt/mongo/executor/libegress_tag_closer_manager.a build/opt/mongo/executor/libnetwork_ interface.a build/opt/mongo/executor/libconnection_pool_stats.a build/opt/mongo/client/sdam/libsdam.a build/opt/mongo/executor/libtask_e xecutor_interface.a build/opt/mongo/client/sdam/libsdam_configuration_parameters.a build/opt/mongo/client/libreplica_set_monitor_server_ parameters.a build/opt/mongo/client/libclientdriver_minimal.a build/opt/mongo/db/pipeline/libaggregation_request_helper.a build/opt/mong o/db/query/libcommon_query_enums_and_helpers.a build/opt/mongo/db/query/libcommand_request_response.a build/opt/mongo/rpc/librpc.a build /opt/mongo/rpc/librewrite_state_change_errors.a build/opt/mongo/rpc/libprotocol.a build/opt/third_party/wiredtiger/libwiredtiger_checksu m.a build/opt/mongo/db/bson/libdotted_path_support.a build/opt/mongo/db/ops/libwrite_ops_parsers.a build/opt/mongo/db/pipeline/libdocume nt_sources_idl.a build/opt/mongo/s/libcommon_s.a build/opt/mongo/s/libload_balancer_feature_flag.a build/opt/mongo/db/query/libquery_req uest.a build/opt/mongo/db/query/libhint_parser.a build/opt/mongo/db/query/libcursor_response_idl.a build/opt/mongo/db/catalog/libcollect ion_catalog.a build/opt/mongo/db/storage/libsnapshot_helper.a build/opt/mongo/db/repl/libread_concern_args.a build/opt/mongo/db/concurre ncy/liblock_manager_defs.a build/opt/mongo/db/storage/libbson_collection_catalog_entry.a build/opt/mongo/db/catalog/libcollection_option s.a build/opt/mongo/db/query/collation/libcollator_interface.a build/opt/mongo/db/commands/libcreate_command.a build/opt/mongo/db/timese ries/libtimeseries_options.a build/opt/mongo/db/catalog/libcollection_options_idl.a build/opt/mongo/db/libprofile_filter.a build/opt/mon go/db/concurrency/libwrite_conflict_exception.a build/opt/mongo/util/liblog_and_backoff.a build/opt/mongo/db/catalog/libcollection.a bui ld/opt/mongo/db/pipeline/libruntime_constants_idl.a build/opt/mongo/db/exec/document_value/libdocument_value.a build/opt/mongo/util/libi ntrusive_counter.a build/opt/mongo/db/query/datetime/libdate_time_support.a build/opt/third_party/libshim_timelib.a -Wl,--no-whole-archi ve build/opt/third_party/timelib-2021.06/libtimelib.a -Wl,--whole-archive build/opt/mongo/db/pipeline/libfield_path.a build/opt/mongo/db /query/libquery_knobs.a build/opt/mongo/db/libdbmessage.a build/opt/mongo/client/libclient_query.a build/opt/mongo/client/libauthenticat ion.a build/opt/mongo/client/libsasl_client.a build/opt/mongo/rpc/libcommand_status.a build/opt/mongo/executor/libremote_command.a build /opt/mongo/rpc/libmetadata.a build/opt/mongo/rpc/libmetadata_impersonated_user.a build/opt/mongo/db/libserver_options.a build/opt/mongo/ util/cmdline_utils/libcmdline_utils.a build/opt/mongo/rpc/libclient_metadata.a build/opt/mongo/s/libis_mongos.a build/opt/mongo/db/libve ctor_clock.a build/opt/mongo/transport/libtransport_layer_common.a build/opt/mongo/util/net/libssl_manager.a build/opt/third_party/libsh im_asio.a build/opt/third_party/asio-master/libasio.a build/opt/mongo/util/net/libssl_types.a build/opt/mongo/util/net/libopenssl_init.a build/opt/mongo/util/net/libssl_options.a build/opt/mongo/util/libicu.a build/opt/mongo/util/libicu_init.a build/opt/third_party/libshi m_icu.a build/opt/third_party/icu4c-57.1/source/libicu_i18n.a build/opt/third_party/icu4c-57.1/source/libicu_common.a build/opt/third_pa rty/icu4c-57.1/source/libicu_data.a build/opt/mongo/util/libcaching.a build/opt/mongo/util/libbackground_job.a build/opt/mongo/util/conc urrency/libthread_pool.a build/opt/mongo/db/libwire_version.a build/opt/mongo/db/repl/librepl_coordinator_interface.a build/opt/mongo/db /repl/libreplication_process.a build/opt/mongo/db/repl/libstorage_interface.a build/opt/mongo/db/repl/librollback_idl.a build/opt/mongo/ db/libkeys_collection_client_sharded.a build/opt/mongo/s/catalog/libsharding_catalog_client.a build/opt/mongo/db/libkeys_collection_docu ment.a build/opt/mongo/db/libtime_proof_service.a build/opt/mongo/db/libglobal_settings.a build/opt/mongo/db/repl/librepl_settings.a bui ld/opt/mongo/db/auth/libauthprivilege.a build/opt/mongo/db/libcommon.a build/opt/mongo/db/repl/libtenant_migration_errors.a build/opt/mo ngo/db/libshutdown_in_progress_quiesce_info.a build/opt/mongo/db/libprocess_health_feature_flag.a build/opt/mongo/db/libindex_names.a bu ild/opt/mongo/db/commands/libtest_commands_enabled.a build/opt/mongo/bson/mutable/libmutable_bson.a build/opt/mongo/util/libsafe_num.a b uild/opt/mongo/db/libsigned_logical_time.a build/opt/mongo/db/liblogical_time.a build/opt/mongo/client/libread_preference.a build/opt/mo ngo/db/libapi_parameters.a build/opt/mongo/client/libsasl_aws_client.a build/opt/third_party/libshim_kms_message.a -Wl,--no-whole-archiv e build/opt/third_party/kms-message/libkms-message.a -Wl,--whole-archive build/opt/mongo/client/libsasl_aws_common.a build/opt/mongo/bas e/libsecure_allocator.a build/opt/mongo/util/libsecure_zero_memory.a build/opt/mongo/util/libprocessinfo.a build/opt/mongo/client/libint ernal_auth.a build/opt/mongo/util/libmd5.a build/opt/mongo/db/auth/libauth.a build/opt/mongo/db/libservice_context.a build/opt/mongo/uti l/libperiodic_runner.a build/opt/mongo/util/libclock_sources.a build/opt/mongo/db/storage/libwrite_unit_of_work.a build/opt/mongo/db/sto rage/libstorage_options.a build/opt/mongo/idl/libfeature_flag.a build/opt/mongo/db/commands/libfeature_compatibility_parsers.a build/opt /mongo/db/libnamespace_string.a build/opt/mongo/db/repl/liboptime.a build/opt/mongo/db/repl/liboptime_base.a build/opt/mongo/db/storage/ librecovery_unit_base.a build/opt/mongo/util/libfail_point.a build/opt/mongo/db/libwrite_concern_options.a build/opt/mongo/db/libread_wr ite_concern_provenance.a build/opt/mongo/idl/libbasic_types.a build/opt/mongo/db/libmulti_key_path_tracker.a build/opt/mongo/db/storage/ libkey_string.a build/opt/mongo/db/liblogical_session_id.a build/opt/mongo/idl/libidl_parser.a build/opt/mongo/db/auth/libsasl_options.a build/opt/mongo/db/stats/libcounters.a build/opt/mongo/db/commands/libserver_status_core.a build/opt/mongo/db/auth/libcluster_auth_mode .a build/opt/mongo/db/auth/libauth_options.a build/opt/mongo/idl/libserver_parameter.a build/opt/mongo/util/options_parser/liboptions_pa rser.a build/opt/third_party/libshim_yaml.a build/opt/third_party/yaml-cpp/libyaml.a build/opt/mongo/util/net/libhttp_client.a build/opt /mongo/crypto/libsha_block_openssl.a build/opt/mongo/crypto/libsha256_block.a build/opt/mongo/crypto/libsha1_block.a build/opt/mongo/uti l/libsecure_compare_memory.a build/opt/mongo/client/libconnection_string.a build/opt/mongo/util/net/libnetwork.a build/opt/mongo/util/li bwinutil.a build/opt/mongo/util/concurrency/libspin_lock.a build/opt/mongo/db/libserver_options_core.a build/opt/mongo/util/libdns_query .a build/opt/mongo/bson/util/libbson_extract.a build/opt/mongo/libbase.a build/opt/third_party/murmurhash3/libmurmurhash3.a build/opt/th ird_party/libshim_pcrecpp.a build/opt/third_party/libshim_intel_decimal128.a -Wl,--no-whole-archive build/opt/third_party/IntelRDFPMathL ib20U1/libintel_decimal128.a -Wl,--whole-archive build/opt/third_party/libshim_fmt.a build/opt/third_party/fmt/libfmt.a build/opt/third_ party/libshim_boost.a build/opt/third_party/boost/libboost_program_options.a build/opt/third_party/boost/libboost_log.a build/opt/third_ party/boost/libboost_thread.a build/opt/third_party/boost/libboost_iostreams.a build/opt/third_party/boost/libboost_filesystem.a build/o pt/third_party/boost/libboost_system.a build/opt/third_party/libshim_abseil.a build/opt/third_party/abseil-cpp-master/libabsl_numeric.a build/opt/third_party/abseil-cpp-master/libabsl_container.a build/opt/third_party/abseil-cpp-master/libabsl_throw_delegate.a build/opt/t hird_party/abseil-cpp-master/libabsl_hash.a build/opt/mongo/util/libboost_assert_shim.a build/opt/mongo/stdx/libstdx.a build/opt/third_p arty/libshim_allocator.a -Wl,--no-whole-archive -lcurl -lz -lsnappy -lsasl2 -lpcre -lpcrecpp -lkvm -lcrypto -lssl -lcrypto -lrt -ldl -le xecinfo c++ @/tmp/tmpqrig88nk.lnk c++: error: unable to execute command: Killed c++: error: linker command failed due to signal (use -v to see invocation) scons: *** [build/opt/mongo/shell/mongo] Error 254 c++: error: unable to execute command: Killed c++: error: linker command failed due to signal (use -v to see invocation) scons: *** [build/opt/mongo/db/mongod] Error 254 q*** Signal 9 Stop. make[1]: stopped in /usr/ports/databases/mongodb50 *** Error code 1 Stop. make: stopped in /usr/ports/databases/mongodb50
make MAKE_JOBS_UNSAFE=yes compilation also gives error. Using tempfile /tmp/tmp88yrsx84.lnk for command line: c++ -o build/opt/mongo/s/mongos -Wl,-rpath,/usr/local/lib -fstack-protector-strong -pthread -Wl,-z,now -fuse-ld=lld -fstack-protector-strong -stdlib=libc++ -Wl,--build-id -Wl,--hash-style=gnu -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro -Wl,--compress-debug-sections=none -flto -Wl,-z,origin -Wl,--enable-new-dtags -pie -rdynamic -Wl,-rpath=/usr/local/lib build/opt/mongo/s/mongos.o -L/usr/local/lib -Wl,--whole-archive build/opt/mongo/s/libmongos_main.a build/opt/mongo/s/libsessions_collection_sharded.a build/opt/mongo/s/libmongos_initializers.a build/opt/mongo/util/options_parser/liboptions_parser_init.a build/opt/mongo/util/net/libssl_options_server.a build/opt/mongo/util/net/libhttp_client_impl.a build/opt/mongo/util/libalarm.a build/opt/mongo/util/libversion_impl.a build/opt/mongo/util/libtesting_options.a build/opt/mongo/util/liblatch_analyzer.a build/opt/mongo/transport/libservice_entry_point.a build/opt/mongo/transport/libmessage_compressor_options_server.a build/opt/mongo/s/libsharding_initialization.a build/opt/mongo/util/libperiodic_runner_factory.a build/opt/mongo/util/libperiodic_runner_impl.a build/opt/mongo/s/libsharding_task_executor.a build/opt/mongo/s/libsharding_egress_metadata_hook_for_mongos.a build/opt/mongo/db/process_health/libconfig_server_health_observer.a build/opt/mongo/db/pipeline/process_interface/libmongos_process_interface_factory.a build/opt/mongo/db/libdbdirectclient.a build/opt/mongo/db/commands/libserver_status_servers.a build/opt/mongo/s/libcommitted_optime_metadata_hook.a build/opt/mongo/s/commands/libcluster_commands.a build/opt/mongo/s/query/libcluster_aggregate.a build/opt/mongo/s/libvector_clock_mongos.a build/opt/mongo/s/libsharding_api.a build/opt/mongo/s/write_ops/libcluster_write_ops.a build/opt/mongo/db/pipeline/process_interface/libmongos_process_interface.a build/opt/mongo/db/pipeline/process_interface/libcommon_process_interface.a build/opt/mongo/db/timeseries/libtimeseries_update_delete_util.a build/opt/mongo/s/libmongos_topology_coordinator.a build/opt/mongo/s/libmongos_hello_response.a build/opt/mongo/s/libload_balancer_support.a build/opt/mongo/s/libcluster_last_error_info.a build/opt/mongo/executor/libasync_request_executor.a build/opt/mongo/executor/libasync_multicaster.a build/opt/mongo/db/views/libviews.a build/opt/mongo/db/timeseries/libtimeseries_commands_conversion_helper.a build/opt/mongo/db/stats/libapi_version_metrics.a build/opt/mongo/db/repl/libhello_auth.a build/opt/mongo/db/repl/libhello_command.a build/opt/mongo/db/query/libmap_reduce_output_format.a build/opt/mongo/db/libinitialize_api_parameters.a build/opt/mongo/db/commands/libvalidate_db_metadata_command.a build/opt/mongo/db/commands/libshutdown_idl.a build/opt/mongo/db/commands/libset_index_commit_quorum_idl.a build/opt/mongo/db/librw_concern_d.a build/opt/mongo/db/storage/libstorage_control.a build/opt/mongo/db/storage/libjournal_flusher.a build/opt/mongo/db/storage/libcheckpointer.a build/opt/mongo/db/commands/libset_feature_compatibility_version_idl.a build/opt/mongo/db/commands/librename_collection_idl.a build/opt/mongo/db/commands/libprofile_common.a build/opt/mongo/db/commands/libmap_reduce_parser.a build/opt/mongo/db/commands/liblist_databases_command.a build/opt/mongo/db/commands/libkill_common.a build/opt/mongo/db/liboperation_killer.a build/opt/mongo/db/commands/libcurrent_op_common.a build/opt/mongo/db/auth/libauth_checks.a build/opt/mongo/db/update/libupdate_driver.a build/opt/mongo/db/update/libupdate.a build/opt/mongo/db/update/libupdate_nodes.a build/opt/mongo/db/libvector_clock_mutable.a build/opt/mongo/db/catalog/libdocument_validation.a build/opt/mongo/db/process_health/libfault_manager.a build/opt/mongo/db/libstartup_warnings_common.a build/opt/mongo/db/libservice_liaison_mongos.a build/opt/mongo/db/libserverinit.a build/opt/mongo/db/liblasterror.a build/opt/mongo/db/ftdc/libftdc_mongos.a build/opt/mongo/db/ftdc/libftdc_server.a build/opt/mongo/db/ftdc/libftdc.a build/opt/mongo/db/commands/libservers.a build/opt/mongo/util/libntservice.a build/opt/mongo/util/libsignal_handlers.a build/opt/mongo/db/repl/libisself.a build/opt/mongo/db/pipeline/libchange_stream_pipeline.a build/opt/mongo/db/pipeline/libsharded_agg_helpers.a build/opt/mongo/s/query/libcluster_query.a build/opt/mongo/s/query/libstore_possible_cursor.a build/opt/mongo/s/query/libcluster_cursor_cleanup_job.a build/opt/mongo/db/libcursor_server_params.a build/opt/mongo/s/query/libcluster_client_cursor.a build/opt/mongo/s/query/librouter_exec_stage.a build/opt/mongo/s/query/libasync_results_merger.a build/opt/mongo/s/catalog/libsharding_catalog_client_impl.a build/opt/mongo/db/storage/libduplicate_key_error_info.a build/opt/mongo/s/libsharding_router_api.a build/opt/mongo/db/pipeline/process_interface/libmongo_process_interface.a build/opt/mongo/db/commands/libtxn_cmd_request.a build/opt/mongo/db/query/libquery_common.a build/opt/mongo/db/query/datetime/libinit_timezone_data.a build/opt/mongo/db/query/collation/libcollator_factory_icu.a build/opt/mongo/db/query/collation/libcollator_icu.a build/opt/mongo/s/libasync_requests_sender.a build/opt/mongo/s/libmongos_server_parameters.a build/opt/mongo/s/client/libsharding_client.a build/opt/mongo/client/libfetcher.a build/opt/mongo/executor/libscoped_task_executor.a build/opt/mongo/s/commands/libshared_cluster_commands.a build/opt/mongo/db/pipeline/libaggregation.a build/opt/mongo/db/libtraffic_recorder.a build/opt/mongo/db/libshared_request_handling.a build/opt/mongo/db/libsession_catalog.a build/opt/mongo/db/liblog_process_details.a build/opt/mongo/db/repl/libreplica_set_messages.a build/opt/mongo/db/repl/libsplit_horizon.a build/opt/mongo/db/libserver_options_servers.a build/opt/mongo/db/libserver_options_base.a build/opt/mongo/db/commands/libcore.a build/opt/mongo/db/liblogical_session_cache_impl.a build/opt/mongo/db/s/libsharding_api_d.a build/opt/mongo/db/librange_arithmetic.a build/opt/mongo/db/libservice_liaison.a build/opt/mongo/db/commands/librwc_defaults_commands.a build/opt/mongo/db/libread_write_concern_defaults.a build/opt/mongo/db/repl/librepl_server_parameters.a build/opt/mongo/db/auth/libauthmongos.a build/opt/mongo/s/libcoreshard.a build/opt/mongo/s/libgrid.a build/opt/mongo/s/query/libcluster_cursor_manager.a build/opt/mongo/db/libkill_sessions.a build/opt/mongo/s/libsharding_routing_table.a build/opt/mongo/s/libchunk_writes_tracker.a build/opt/mongo/db/update/libupdate_common.a build/opt/mongo/db/query/libquery_planner.a build/opt/mongo/db/query/libcanonical_query.a build/opt/mongo/db/cst/libcst.a build/opt/mongo/db/pipeline/libpipeline.a build/opt/mongo/db/views/libresolved_view.a build/opt/mongo/db/update/libupdate_document_diff.a build/opt/mongo/db/libupdate_index_data.a build/opt/mongo/db/timeseries/libtimeseries_index_schema_conversion_functions.a build/opt/mongo/db/repl/libspeculative_majority_read_info.a build/opt/mongo/db/repl/libimage_collection_entry.a build/opt/mongo/db/repl/liboplog_entry.a build/opt/mongo/db/pipeline/libgranularity_rounder.a build/opt/mongo/db/pipeline/libchange_stream_invalidation_info.a build/opt/mongo/db/pipeline/libaccumulator.a build/opt/mongo/db/libsessions_collection.a build/opt/mongo/db/liblogical_session_id_helpers.a build/opt/mongo/db/liblogical_session_cache.a build/opt/mongo/db/libcurop_failpoint_helpers.a build/opt/mongo/db/exec/libsort_executor.a build/opt/mongo/db/storage/libencryption_hooks.a build/opt/mongo/db/sorter/libsorter_idl.a build/opt/mongo/db/exec/libscoped_timer.a build/opt/mongo/db/exec/libbucket_unpacker.a build/opt/mongo/bson/util/libbson_column.a build/opt/mongo/db/index/libkey_generator.a build/opt/mongo/db/query/libsort_pattern.a build/opt/mongo/db/query/libprojection_ast.a build/opt/mongo/db/pipeline/libdocument_path_support.a build/opt/mongo/db/librecord_id_helpers.a build/opt/mongo/db/index/libindex_descriptor.a build/opt/mongo/db/catalog/libindex_catalog.a build/opt/mongo/db/catalog/libindex_catalog_entry.a build/opt/mongo/db/fts/libbase_fts.a build/opt/third_party/libshim_stemmer.a -Wl,--no-whole-archive build/opt/third_party/libstemmer_c/libstemmer.a -Wl,--whole-archive build/opt/mongo/db/fts/unicode/libunicode.a build/opt/mongo/shell/liblinenoise_utf8.a build/opt/mongo/db/exec/libworking_set.a build/opt/mongo/db/index/libexpression_params.a build/opt/mongo/db/exec/sbe/libquery_sbe_plan_stats.a build/opt/mongo/db/exec/libprojection_executor.a build/opt/mongo/db/matcher/libexpressions.a build/opt/mongo/db/pipeline/libexpression_context.a build/opt/mongo/util/libsummation.a build/opt/mongo/util/libregex_util.a build/opt/mongo/scripting/libscripting.a build/opt/third_party/libshim_mozjs.a build/opt/third_party/mozjs-60/libmozjs.a build/opt/mongo/scripting/libscripting_common.a build/opt/mongo/shell/libmongojs.a build/opt/mongo/scripting/libbson_template_evaluator.a build/opt/mongo/db/query/collation/libcollator_factory_interface.a build/opt/mongo/db/pipeline/libvariable_validation.a build/opt/mongo/db/pipeline/libdependencies.a build/opt/mongo/db/libmongohasher.a build/opt/mongo/db/matcher/libpath.a build/opt/mongo/db/geo/libgeoparser.a build/opt/mongo/db/geo/libgeometry.a build/opt/third_party/s2/libs2.a build/opt/third_party/s2/util/math/libmath.a build/opt/third_party/s2/util/coding/libcoding.a build/opt/third_party/s2/strings/libstrings.a build/opt/third_party/s2/base/libbase_s2.a build/opt/mongo/db/fts/libfts_query_noop.a build/opt/mongo/s/client/libshard_interface.a build/opt/mongo/s/write_ops/libbatch_write_types.a build/opt/mongo/db/liberror_labels.a build/opt/mongo/db/pipeline/liblite_parsed_document_source.a build/opt/mongo/client/libremote_command_retry_scheduler.a build/opt/mongo/executor/libtask_executor_pool.a build/opt/mongo/db/liblogical_time_metadata_hook.a build/opt/mongo/db/libclient_metadata_propagation_egress_hook.a build/opt/mongo/db/auth/libauthservercommon.a build/opt/mongo/db/commands/libauthentication_commands.a build/opt/mongo/db/auth/libsasl_options_init.a build/opt/mongo/db/auth/libsasl_commands.a build/opt/mongo/db/auth/libauthentication_session.a build/opt/mongo/db/auth/libsaslauth.a build/opt/mongo/db/auth/libauth_impl_internal.a build/opt/mongo/db/libcurop.a build/opt/mongo/util/libprogress_meter.a build/opt/mongo/util/libdiagnostic_info.a build/opt/mongo/db/stats/libtimer_stats.a build/opt/mongo/db/stats/libresource_consumption_metrics.a build/opt/mongo/db/commands/libserver_status.a build/opt/mongo/db/libprepare_conflict_tracker.a build/opt/mongo/db/libgeneric_cursor.a build/opt/mongo/db/libcommands.a build/opt/mongo/db/libcreate_indexes_idl.a build/opt/mongo/db/catalog/libcommit_quorum_idl.a build/opt/mongo/db/catalog/libcommit_quorum_options.a build/opt/mongo/db/concurrency/liblock_manager.a build/opt/mongo/util/concurrency/libticketholder.a build/opt/mongo/db/concurrency/libflow_control_ticketholder.a build/opt/mongo/db/auth/libuser_cache_acquisition_stats.a build/opt/mongo/db/libaudit.a build/opt/mongo/db/auth/libuser_document_parser.a build/opt/mongo/db/auth/libbuiltin_roles.a build/opt/mongo/db/auth/libauthorization_manager_global.a build/opt/mongo/util/net/libssl_parameters_auth.a build/opt/mongo/db/auth/libsecurity_key.a build/opt/mongo/db/auth/libuser.a build/opt/mongo/db/auth/libsecurity_file.a build/opt/mongo/db/auth/libauth_umc.a build/opt/mongo/db/auth/libauth_types.a build/opt/mongo/db/auth/libaddress_restriction.a build/opt/mongo/client/libremote_command_targeter.a build/opt/mongo/client/libclientdriver_network.a build/opt/mongo/executor/libthread_pool_task_executor.a build/opt/mongo/executor/libnetwork_interface_thread_pool.a build/opt/mongo/executor/libnetwork_interface_factory.a build/opt/mongo/executor/libnetwork_interface_tl.a build/opt/mongo/transport/libtransport_layer_manager.a build/opt/mongo/transport/libservice_executor.a build/opt/mongo/transport/libtransport_layer.a build/opt/mongo/util/libexecutor_stats.a build/opt/mongo/db/auth/libauthentication_restriction.a build/opt/mongo/base/libsystem_error.a build/opt/mongo/executor/libhedging_metrics.a build/opt/mongo/client/libasync_client.a build/opt/mongo/transport/libmessage_compressor.a build/opt/third_party/libshim_zstd.a -Wl,--no-whole-archive build/opt/third_party/zstandard-1.4.4/libzstd.a -Wl,--whole-archive build/opt/third_party/libshim_zlib.a build/opt/third_party/libshim_snappy.a build/opt/mongo/executor/libconnection_pool_executor.a build/opt/mongo/executor/libegress_tag_closer_manager.a build/opt/mongo/executor/libnetwork_interface.a build/opt/mongo/executor/libconnection_pool_stats.a build/opt/mongo/client/sdam/libsdam.a build/opt/mongo/executor/libtask_executor_interface.a build/opt/mongo/client/sdam/libsdam_configuration_parameters.a build/opt/mongo/client/libreplica_set_monitor_server_parameters.a build/opt/mongo/client/libclientdriver_minimal.a build/opt/mongo/db/pipeline/libaggregation_request_helper.a build/opt/mongo/db/query/libcommon_query_enums_and_helpers.a build/opt/mongo/db/query/libcommand_request_response.a build/opt/mongo/rpc/librpc.a build/opt/mongo/rpc/librewrite_state_change_errors.a build/opt/mongo/rpc/libprotocol.a build/opt/third_party/wiredtiger/libwiredtiger_checksum.a build/opt/mongo/db/bson/libdotted_path_support.a build/opt/mongo/db/ops/libwrite_ops_parsers.a build/opt/mongo/db/pipeline/libdocument_sources_idl.a build/opt/mongo/s/libcommon_s.a build/opt/mongo/s/libload_balancer_feature_flag.a build/opt/mongo/db/query/libquery_request.a build/opt/mongo/db/query/libhint_parser.a build/opt/mongo/db/query/libcursor_response_idl.a build/opt/mongo/db/catalog/libcollection_catalog.a build/opt/mongo/db/storage/libsnapshot_helper.a build/opt/mongo/db/repl/libread_concern_args.a build/opt/mongo/db/concurrency/liblock_manager_defs.a build/opt/mongo/db/storage/libbson_collection_catalog_entry.a build/opt/mongo/db/catalog/libcollection_options.a build/opt/mongo/db/query/collation/libcollator_interface.a build/opt/mongo/db/commands/libcreate_command.a build/opt/mongo/db/timeseries/libtimeseries_options.a build/opt/mongo/db/catalog/libcollection_options_idl.a build/opt/mongo/db/libprofile_filter.a build/opt/mongo/db/concurrency/libwrite_conflict_exception.a build/opt/mongo/util/liblog_and_backoff.a build/opt/mongo/db/catalog/libcollection.a build/opt/mongo/db/pipeline/libruntime_constants_idl.a build/opt/mongo/db/exec/document_value/libdocument_value.a build/opt/mongo/util/libintrusive_counter.a build/opt/mongo/db/query/datetime/libdate_time_support.a build/opt/third_party/libshim_timelib.a -Wl,--no-whole-archive build/opt/third_party/timelib-2021.06/libtimelib.a -Wl,--whole-archive build/opt/mongo/db/pipeline/libfield_path.a build/opt/mongo/db/query/libquery_knobs.a build/opt/mongo/db/libdbmessage.a build/opt/mongo/client/libclient_query.a build/opt/mongo/client/libauthentication.a build/opt/mongo/client/libsasl_client.a build/opt/mongo/rpc/libcommand_status.a build/opt/mongo/executor/libremote_command.a build/opt/mongo/rpc/libmetadata.a build/opt/mongo/rpc/libmetadata_impersonated_user.a build/opt/mongo/db/libserver_options.a build/opt/mongo/util/cmdline_utils/libcmdline_utils.a build/opt/mongo/rpc/libclient_metadata.a build/opt/mongo/s/libis_mongos.a build/opt/mongo/db/libvector_clock.a build/opt/mongo/transport/libtransport_layer_common.a build/opt/mongo/util/net/libssl_manager.a build/opt/third_party/libshim_asio.a build/opt/third_party/asio-master/libasio.a build/opt/mongo/util/net/libssl_types.a build/opt/mongo/util/net/libopenssl_init.a build/opt/mongo/util/net/libssl_options.a build/opt/mongo/util/libicu.a build/opt/mongo/util/libicu_init.a build/opt/third_party/libshim_icu.a build/opt/third_party/icu4c-57.1/source/libicu_i18n.a build/opt/third_party/icu4c-57.1/source/libicu_common.a build/opt/third_party/icu4c-57.1/source/libicu_data.a build/opt/mongo/util/libcaching.a build/opt/mongo/util/libbackground_job.a build/opt/mongo/util/concurrency/libthread_pool.a build/opt/mongo/db/libwire_version.a build/opt/mongo/db/repl/librepl_coordinator_interface.a build/opt/mongo/db/repl/libreplication_process.a build/opt/mongo/db/repl/libstorage_interface.a build/opt/mongo/db/repl/librollback_idl.a build/opt/mongo/db/libkeys_collection_client_sharded.a build/opt/mongo/s/catalog/libsharding_catalog_client.a build/opt/mongo/db/libkeys_collection_document.a build/opt/mongo/db/libtime_proof_service.a build/opt/mongo/db/libglobal_settings.a build/opt/mongo/db/repl/librepl_settings.a build/opt/mongo/db/auth/libauthprivilege.a build/opt/mongo/db/libcommon.a build/opt/mongo/db/repl/libtenant_migration_errors.a build/opt/mongo/db/libshutdown_in_progress_quiesce_info.a build/opt/mongo/db/libprocess_health_feature_flag.a build/opt/mongo/db/libindex_names.a build/opt/mongo/db/commands/libtest_commands_enabled.a build/opt/mongo/bson/mutable/libmutable_bson.a build/opt/mongo/util/libsafe_num.a build/opt/mongo/db/libsigned_logical_time.a build/opt/mongo/db/liblogical_time.a build/opt/mongo/client/libread_preference.a build/opt/mongo/db/libapi_parameters.a build/opt/mongo/client/libsasl_aws_client.a build/opt/third_party/libshim_kms_message.a -Wl,--no-whole-archive build/opt/third_party/kms-message/libkms-message.a -Wl,--whole-archive build/opt/mongo/client/libsasl_aws_common.a build/opt/mongo/base/libsecure_allocator.a build/opt/mongo/util/libsecure_zero_memory.a build/opt/mongo/util/libprocessinfo.a build/opt/mongo/client/libinternal_auth.a build/opt/mongo/util/libmd5.a build/opt/mongo/db/auth/libauth.a build/opt/mongo/db/libservice_context.a build/opt/mongo/util/libperiodic_runner.a build/opt/mongo/util/libclock_sources.a build/opt/mongo/db/storage/libwrite_unit_of_work.a build/opt/mongo/db/storage/libstorage_options.a build/opt/mongo/idl/libfeature_flag.a build/opt/mongo/db/commands/libfeature_compatibility_parsers.a build/opt/mongo/db/libnamespace_string.a build/opt/mongo/db/repl/liboptime.a build/opt/mongo/db/repl/liboptime_base.a build/opt/mongo/db/storage/librecovery_unit_base.a build/opt/mongo/util/libfail_point.a build/opt/mongo/db/libwrite_concern_options.a build/opt/mongo/db/libread_write_concern_provenance.a build/opt/mongo/idl/libbasic_types.a build/opt/mongo/db/libmulti_key_path_tracker.a build/opt/mongo/db/storage/libkey_string.a build/opt/mongo/db/liblogical_session_id.a build/opt/mongo/idl/libidl_parser.a build/opt/mongo/db/auth/libsasl_options.a build/opt/mongo/db/stats/libcounters.a build/opt/mongo/db/commands/libserver_status_core.a build/opt/mongo/db/auth/libcluster_auth_mode.a build/opt/mongo/db/auth/libauth_options.a build/opt/mongo/idl/libserver_parameter.a build/opt/mongo/util/options_parser/liboptions_parser.a build/opt/third_party/libshim_yaml.a build/opt/third_party/yaml-cpp/libyaml.a build/opt/mongo/util/net/libhttp_client.a build/opt/mongo/crypto/libsha_block_openssl.a build/opt/mongo/crypto/libsha256_block.a build/opt/mongo/crypto/libsha1_block.a build/opt/mongo/util/libsecure_compare_memory.a build/opt/mongo/client/libconnection_string.a build/opt/mongo/util/net/libnetwork.a build/opt/mongo/util/libwinutil.a build/opt/mongo/util/concurrency/libspin_lock.a build/opt/mongo/db/libserver_options_core.a build/opt/mongo/util/libdns_query.a build/opt/mongo/bson/util/libbson_extract.a build/opt/mongo/libbase.a build/opt/third_party/murmurhash3/libmurmurhash3.a build/opt/third_party/libshim_pcrecpp.a build/opt/third_party/libshim_intel_decimal128.a -Wl,--no-whole-archive build/opt/third_party/IntelRDFPMathLib20U1/libintel_decimal128.a -Wl,--whole-archive build/opt/third_party/libshim_fmt.a build/opt/third_party/fmt/libfmt.a build/opt/third_party/libshim_boost.a build/opt/third_party/boost/libboost_program_options.a build/opt/third_party/boost/libboost_log.a build/opt/third_party/boost/libboost_thread.a build/opt/third_party/boost/libboost_iostreams.a build/opt/third_party/boost/libboost_filesystem.a build/opt/third_party/boost/libboost_system.a build/opt/third_party/libshim_abseil.a build/opt/third_party/abseil-cpp-master/libabsl_numeric.a build/opt/third_party/abseil-cpp-master/libabsl_container.a build/opt/third_party/abseil-cpp-master/libabsl_throw_delegate.a build/opt/third_party/abseil-cpp-master/libabsl_hash.a build/opt/mongo/util/libboost_assert_shim.a build/opt/mongo/stdx/libstdx.a build/opt/third_party/libshim_allocator.a -Wl,--no-whole-archive -lcurl -lz -lsnappy -lsasl2 -lpcre -lpcrecpp -lkvm -lcrypto -lssl -lcrypto -lrt -ldl -lexecinfo c++ @/tmp/tmp88yrsx84.lnk *** Signal 9 Stop. make[1]: stopped in /usr/ports/databases/mongodb50 c++: error: unable to execute command: Killed *** Error code 1 Stop. make: stopped in /usr/ports/databases/mongodb50 c++: error: linker command failed due to signal (use -v to see invocation) root@fbsd131:/usr/ports/databases/mongodb50 #
Try to disable LTO. It needs a lot of memory. If I remember correctly error 254 means out of memory.
Closing not a bug (local resource exhaustion). Please re-open this issue with additional detail if that is not the case.
I am getting this message on dmesg output. I saw there was a swap page sysctl settings before 11 version and now freebsd 13.1 does not have it. but i wonder how can i solve this memory over consumption problem. what is the sysctl settings can be? because i also tested with disable LTO but it gives same error. swap_pager: out of swap space swp_pager_getswapspace(10): failed swap_pager: out of swap space swp_pager_getswapspace(18): failed swap_pager: out of swap space swp_pager_getswapspace(9): failed swp_pager_getswapspace(6): failed swap_pager: out of swap space swp_pager_getswapspace(7): failed swap_pager: out of swap space swp_pager_getswapspace(2): failed swap_pager: out of swap space swp_pager_getswapspace(2): failed swp_pager_getswapspace(5): failed swp_pager_getswapspace(1): failed swp_pager_getswapspace(23): failed pid 73953 (ld.lld), jid 0, uid 0, was killed: failed to reclaim memory swap_pager: out of swap space swp_pager_getswapspace(2): failed swp_pager_getswapspace(7): failed swp_pager_getswapspace(10): failed swp_pager_getswapspace(7): failed swp_pager_getswapspace(1): failed swp_pager_getswapspace(8): failed swp_pager_getswapspace(12): failed pid 73181 (ld.lld), jid 0, uid 0, was killed: failed to reclaim memory swap_pager: out of swap space swp_pager_getswapspace(1): failed swp_pager_getswapspace(13): failed swap_pager: out of swap space swp_pager_getswapspace(1): failed pid 71954 (ld.lld), jid 0, uid 0, was killed: failed to reclaim memory swap_pager: out of swap space swp_pager_getswapspace(4): failed swp_pager_getswapspace(20): failed swp_pager_getswapspace(2): failed swp_pager_getswapspace(15): failed swp_pager_getswapspace(8): failed swp_pager_getswapspace(1): failed swp_pager_getswapspace(1): failed swp_pager_getswapspace(10): failed swp_pager_getswapspace(4): failed swp_pager_getswapspace(8): failed swp_pager_getswapspace(7): failed pid 91613 (ld.lld), jid 0, uid 0, was killed: failed to reclaim memory swap_pager: out of swap space swp_pager_getswapspace(12): failed swap_pager: out of swap space swp_pager_getswapspace(3): failed swap_pager: out of swap space swp_pager_getswapspace(2): failed swp_pager_getswapspace(7): failed pid 95584 (ld.lld), jid 0, uid 0, was killed: failed to reclaim memory swap_pager: out of swap space swp_pager_getswapspace(29): failed pid 94179 (ld.lld), jid 0, uid 0, was killed: failed to reclaim memory
seems this memory problem solved by sysctl vm.defer_swapspace_pageouts=1 but new version of FreeBSD does not have.PQ_LAUNDRY seems not working in my idea. https://forums.freebsd.org/threads/swap_pager_getswapspace-failed.61290/ https://forums.freebsd.org/threads/freebsd-11-1-and-vm-defer_swapspace_pageouts.64198/ https://reviews.freebsd.org/D8302
this bug come to my attention. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=134011
this bug also but my filesystem is ufs. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=134011
(In reply to Ulas SAYGIN from comment #0) You can try to set these (in /etc/make.conf): MAKE_JOBS_NUMBER=1 LDFLAGS.lld+= -Wl,--no-threads NB: what system are you using? How much RAM? How much swap?
(In reply to Ronald Klop from comment #8) than you for your help. i am using vmware virtual machine 8gb ram and swapinfo is root@fbsd131:~ # swapinfo Device 1K-blocks Used Avail Capacity /dev/da0s1b 4194272 0 4194272 0% i will try make.conf settings and let you know result. thank you.
(In reply to Ulas SAYGIN from comment #9) In the Makefile of mongodb50 I put this a while ago. OPTIONS_EXCLUDE_aarch64_14= LTO # Does not work with llvm12/llvm13 on aarch64. FreeBSD 13.1 has llvm13 so this setting might be needed there also. But I assume you are running amd64 and I haven't seen structural problems with LTO on lvm13+amd64. Only that the build server uses too much memory now and than. Depending on the parallel running build jobs on that moment. Anyways, let's see how the make.conf vars work out.
Created attachment 234403 [details] output for dmesg and port compilation i executed swapinfo command many times later because i was working at another things while virtual machine working.
(In reply to Ulas SAYGIN from comment #11) i executed swapinfo command many times later because i was working at another things while virtual machine working.
(In reply to Ulas SAYGIN from comment #12) Ulas, Thanks for reporting this. I also suffer the same problem. Unfortunately, there is nothing we can do if you want to build with LTO. In my testing in amd64, it takes about 32Gb of RAM to link the executable. I think this is way off and it should be addressed somehow upstream. At this pace, soon very few people will be able to take advantage of LTO. Since some people already provided tips on how to build without that option, can we close this PR?
Since LTO is a port provided option, and the build apparently uses 'fat' LTO, well known for substantially higher build and link time resource requirements, we should look at configuring / testing the build to use ThinLTO (-flto=thin) @Maintainer Could you: - Investigate whether upstream supports this mode, and if not, open an issue upstream requesting it In the meantime modifying the port to pass -flto=thin to the build, either by 1) Replacing '--lto=on' with custom port CFLAGS/LDFLAGS (matching watch upstream does with --lto=on but switching it to ThinLTO), OR 2) Extending whats already set by --lto=on to override the build arguments to use ThinTLO
Created attachment 234766 [details] disable LTO I don't see thin LTO support in the SConstruct file. Comments in this file also mention than LTO support is experimental. Disable it for now on all platforms. Keep it optional for people who like living on the edge. :-)
Please set merge-quarterly flag to ? if quarterly version is also affected, thanks Ronald
(In reply to Kubilay Kocak from comment #16) This PR is about one user having an issue on its own computer not having enough memory. The official build cluster builds fine with LTO enabled. And quarterly Q3 is branched in two weeks. But feel free to merge to quarterly. Let’s get this issue closed 😊
As another datapoint - I got the same failure on a FreeBSD 13.1 bhyve poudriere system with 96G ram and 16vCPUs allocated (out of 256G/24CPUs on the host) Disabling LTO allowed it to build. I had what looked like a similar error building gcc11 and there, switching from LTO_BOOTSTRAP to STANDARD_BOOTSTRAP allowed it to build.
I'll commit this soon to disable fat LTO. IMHO it is just crazy how much memory this thing takes.
Is it possibly to do some kind of performance review (ie is it worth it)?
(In reply to Daniel Engberg from comment #20) To me the thing is more about user experience. Fat LTO is a memory hogger like no other. It doesn't make sense IMHO having it enabled by default. With a couple of ports requiring 32GB of RAM like mongodb50 does, I suspect many people will not be able to build ports in parallel. Also, thin LTO is usually less resource hungry and results sometimes are even better: http://blog.llvm.org/2016/06/thinlto-scalable-and-incremental-lto.html
(In reply to Fernando Apesteguía from comment #21) I think you're missing my point, what I asked about (sorry if it was unclear) is what are (if any) the gains or are we just wasting CPU time. I would argue that "the user experience" is how X runs in the end. We should avoid arbitrary disabling optimizations "just because" without any kind of documentation of how it affects the application's performance unless there's obvious run-time breakage. I'm not saying that we should spend time to micro-optimize every port but if there's a potential noticable gain I think it's worth exploring. See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258730 for example That being said, have anyone tried disabling debugging information/code (-ggdb is added during build) which can be the reason why LTO grows as much as it does?
Created attachment 235252 [details] Disable -ggdb switch Quick hack, my buildbox is current busy but this may help lto
(In reply to Daniel Engberg from comment #23) With that patch disabling -ggdb I can build with LTO enabled. It takes something like 10 - 12 GB. By "user experience" I meant the experience of the ports collection user, not the app. Many people use ports in FreeBSD. And regardless of the UX provided by $software (that in general is outside of the control of FreeBSD), the usability and sensible defaults for ports is something we can work on. It is bad enough that sometimes, for building $tinyapp, the dependency chain includes gcc, llvm and rustc. If adding LTO by default in some ports means they are going to double their memory requirements... oh boy, we are going to need to buy new machines every 6 months :-) I'm OK with disabling ggdb and enabling LTO by default. Let's see what others (maintainer mainly) think about it before committing. Thanks!
Comment on attachment 235252 [details] Disable -ggdb switch Patch is fine by me. 👍 Please commit and let's see if people have less problems.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=0aabc02be18794a56c436233e59379ebaa86c2e0 commit 0aabc02be18794a56c436233e59379ebaa86c2e0 Author: Daniel Engberb <diizzy@FreeBSD.org> AuthorDate: 2022-07-14 14:43:02 +0000 Commit: Fernando Apesteguía <fernape@FreeBSD.org> CommitDate: 2022-07-16 15:11:58 +0000 databases/mongodb50: Disable LTO by default. Building mongo with LTO enabled takes a ridiculously amount of memory (32GB in amd64). Disable -ggdb so memory requirements don't sky rocket (around 10-12GB) PR: 264340 Reported by: ulassayginim@gmail.com Approved by: ronald-lists@klop.ws (maintainer) databases/mongodb50/files/patch-SConstruct | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-)
Committed and merged to 2022Q3. Thanks!
A commit in branch 2022Q3 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=95706340a18ecfdaaca8fbc05bd25043a8a81562 commit 95706340a18ecfdaaca8fbc05bd25043a8a81562 Author: Daniel Engberb <diizzy@FreeBSD.org> AuthorDate: 2022-07-14 14:43:02 +0000 Commit: Fernando Apesteguía <fernape@FreeBSD.org> CommitDate: 2022-07-16 15:13:38 +0000 databases/mongodb50: Disable LTO by default. Building mongo with LTO enabled takes a ridiculously amount of memory (32GB in amd64). Disable -ggdb so memory requirements don't sky rocket (around 10-12GB) PR: 264340 Reported by: ulassayginim@gmail.com Approved by: ronald-lists@klop.ws (maintainer) (cherry picked from commit 0aabc02be18794a56c436233e59379ebaa86c2e0) databases/mongodb50/files/patch-SConstruct | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-)