Opened 4 years ago

Closed 3 years ago

#61798 closed defect (invalid)

mongodb @4.4.2: build error when /usr/local/bin/libtool exists

Reported by: ParityError Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: Cc:
Port: mongodb

Description

When attempting to install MongoDB I get a fatal error:

:info:build scons: *** [build/MP/mongo/db/libkeys_collection_document.a] Error 1
:info:build /usr/bin/clang++ -o build/MP/mongo/transport/message_compressor_zstd.o -c -stdlib=libc++ -arch x86_64 -Woverloaded-virtual -Werror=unused-result -Wpessimizing-move -Wredundant-move -Wno-undefined-var-template -Wno-instantiation-after-specialization -fsized-deallocation -Wno-defaulted-function-deleted -Wunused-exception-parameter -stdlib=libc++ -std=c++17 -arch x86_64 -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Os -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-tautological-constant-compare -Wno-tautological-unsigned-zero-compare -Wno-tautological-unsigned-enum-zero-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -Wno-unused-lambda-capture -Wno-exceptions -Wunguarded-availability -fstack-protector-strong -fno-builtin-memcmp -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -I/opt/local/include -Ibuild/MP -Isrc src/mongo/transport/message_compressor_zstd.cpp
:info:build scons: building terminated because of errors.
:info:build build/MP/mongo/db/libkeys_collection_document.a failed: Error 1
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mongodb/mongodb/work/mongodb-src-r4.4.2" && /opt/local/bin/python3.8 buildscripts/scons.py -j12 install-core CC="/usr/bin/clang" CPPPATH="/opt/local/include" CXX="/usr/bin/clang++" DESTDIR="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mongodb/mongodb/work/destroot" LIBPATH="/opt/local/lib" PREFIX="/opt/local" --disable-warnings-as-errors --enable-http-client=on --install-action=hardlink --libc++ --opt=size --release --ssl=on --use-sasl-client --use-system-pcre --use-system-snappy --use-system-stemmer --use-system-yaml --use-system-zlib --use-system-zstd --wiredtiger=on --use-system-mongo-c=off VARIANT_DIR=MP TARGET_ARCH=x86_64 CCFLAGS=" -arch x86_64" CXXFLAGS="-stdlib=libc++ -arch x86_64" LINKFLAGS="-Wl,-headerpad_max_install_names -arch x86_64" 
:info:build Exit code: 2
:error:build Failed to build mongodb: command execution failed
:debug:build Error code: CHILDSTATUS 14416 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mongodb/mongodb/main.log for details.

It appears to be a problem with the cd command.

Attachments (1)

main.log (103.7 KB) - added by ParityError 4 years ago.
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mongodb/mongodb/main.log

Download all attachments as: .zip

Change History (5)

comment:1 Changed 4 years ago by ParityError

Port: mongodb added
Version: 2.6.4

comment:2 Changed 4 years ago by jmroot (Joshua Root)

Owner: set to ryandesign
Status: newassigned
Summary: MongoDB installation errorMongoDB @@4.4.2 build error

Please attach the log file.

Changed 4 years ago by ParityError

Attachment: main.log added

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mongodb/mongodb/main.log

comment:3 Changed 4 years ago by ParityError

log file added.

comment:4 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: assignedclosed
Summary: MongoDB @@4.4.2 build errormongodb @4.4.2: build error when /usr/local/bin/libtool exists

The log shows the error is:

:info:build libtool -static -o build/MP/mongo/scripting/libscripting_server.a -s -no_warning_for_no_symbols build/MP/mongo/scripting/scripting_server.o
:info:build Usage: /usr/local/bin/libtool [OPTION]... [MODE-ARG]...
:info:build Try 'libtool --help' for more information.
:info:build libtool:   error: unrecognised option: '-static'

Please remove /usr/local/bin/libtool and whatever else you have installed in /usr/local that might also interfere with MacPorts. See wiki:FAQ#usrlocal.

Note: See TracTickets for help on using tickets.