tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

databases/mongodb fails to build



mongodb fails to build on netbsd-8 amd64, following the update to 4 on
March 5.  (I have 3.4.4nb6 built on January 9.)

Does this build for anybody else on netbsd-8 or netbsd-7?




=> Bootstrap dependency digest>=20010302: found digest-20190127
===> Building for mongodb-4.0.6
cd /home/n0/gdt/pkgsrc-current/pkgsrc/databases/mongodb/work/mongodb-src-r4.0.6 && /usr/bin/env USETOOLS=no PTHREAD_CFLAGS=\ -pthread\  PTHREAD_LDFLAGS=\ -pthread PTHREAD_LIBS= PTHREADBASE=/usr DL_CFLAGS=\ -pthread\  DL_LDFLAGS=\ -pthread DL_LIBS= PYTHON=/usr/pkg/bin/python2.7 CC=gcc CFLAGS=-O2\ -D_FORTIFY_SOURCE=2\ -pthread\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/include/krb5 CPPFLAGS=-fno-jump-tables\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/include/krb5 CXX=c++ CXXFLAGS=-O2\ -D_FORTIFY_SOURCE=2\ -pthread\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/include/krb5 COMPILER_RPATH_FLAG=-Wl,-R F77=g77 FC=g77 FFLAGS=-O LANG=C LC_ALL=C LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C LC_MONETARY=C LC_NUMERIC=C LC_TIME=C LDFLAGS=-Wl,-R/usr/pkg/lib\ -L/usr/pkg/lib\ -L/usr/lib\ -Wl,-R/usr/lib\ -pthread\ -lexecinfo LINKER_RPATH_FLAG=-R PATH=/home/n0/gdt/pkgsrc-current/pkgsrc/databases/mongodb/work/.cwrapper/bin:/home/n0/gdt/pkgsrc-current/pkgsrc/databases/mongodb/work/.buildlink/bin:/home/n0/gdt/pkgsrc-current/pkgsrc/databases/mongodb/work/.ccache/bin:/home/n0/gdt/pkgsrc-current/pkgsrc/databases/mongodb/work/.gcc/bin:/home/n0/gdt/pkgsrc-current/pkgsrc/databases/mongodb/work/.tools/bin:/usr/pkg/bin:/home/gdt/bin:/home/gdt/bin/amd64-NetBSD:/usr/pkg/sbin:/usr/pkg/bin:/usr/X11R7/bin:/usr/local/sbin:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/pkg/bin:/usr/X11R7/bin PREFIX=/usr/pkg MAKELEVEL=0 CONFIG_SITE= PKG_SYSCONFDIR=/usr/pkg/etc HOME=/home/n0/gdt/pkgsrc-current/pkgsrc/databases/mongodb/work/.home CWRAPPERS_CONFIG_DIR=/home/n0/gdt/pkgsrc-current/pkgsrc/databases/mongodb/work/.cwrapper/config CPP=cpp LOCALBASE=/usr/pkg X11BASE=/usr/X11R7 PKGMANDIR=man PKGINFODIR=info PKGGNUDIR=gnu/ MAKECONF=/dev/null OBJECT_FMT=ELF USETOOLS=no BSD_INSTALL_PROGRAM=/usr/bin/install\ -c\ -s\ -o\ gdt\ -g\ users\ -m\ 755 BSD_INSTALL_SCRIPT=/usr/bin/install\ -c\ -o\ gdt\ -g\ users\ -m\ 755 BSD_INSTALL_LIB=/usr/bin/install\ -c\ -o\ gdt\ -g\ users\ -m\ 755 BSD_INSTALL_DATA=/usr/bin/install\ -c\ -o\ gdt\ -g\ users\ -m\ 644 BSD_INSTALL_MAN=/usr/bin/install\ -c\ -o\ gdt\ -g\ users\ -m\ 644 BSD_INSTALL=/usr/bin/install BSD_INSTALL_PROGRAM_DIR=/usr/bin/install\ -d\ -o\ gdt\ -g\ users\ -m\ 755 BSD_INSTALL_SCRIPT_DIR=/usr/bin/install\ -d\ -o\ gdt\ -g\ users\ -m\ 755 BSD_INSTALL_LIB_DIR=/usr/bin/install\ -d\ -o\ gdt\ -g\ users\ -m\ 755 BSD_INSTALL_DATA_DIR=/usr/bin/install\ -d\ -o\ gdt\ -g\ users\ -m\ 755 BSD_INSTALL_MAN_DIR=/usr/bin/install\ -d\ -o\ gdt\ -g\ users\ -m\ 755 BSD_INSTALL_GAME=/usr/bin/install\ -c\ -s\ -o\ gdt\ -g\ users\ -m\ 2555 BSD_INSTALL_GAME_DATA=/usr/bin/install\ -c\ -o\ gdt\ -g\ users\ -m\ 664 BSD_INSTALL_GAME_DIR=/usr/bin/install\ -d\ -o\ gdt\ -g\ users\ -m\ 775 INSTALL_INFO= MAKEINFO=/home/n0/gdt/pkgsrc-current/pkgsrc/databases/mongodb/work/.tools/bin/makeinfo FLEX= BISON= PKG_CONFIG=/home/n0/gdt/pkgsrc-current/pkgsrc/databases/mongodb/work/.tools/bin/pkg-config PKG_CONFIG_LIBDIR=/home/n0/gdt/pkgsrc-current/pkgsrc/databases/mongodb/work/.buildlink/lib/pkgconfig:/home/n0/gdt/pkgsrc-current/pkgsrc/databases/mongodb/work/.buildlink/share/pkgconfig PKG_CONFIG_LOG=/home/n0/gdt/pkgsrc-current/pkgsrc/databases/mongodb/work/.pkg-config.log PKG_CONFIG_PATH= KRB5_CONFIG=/usr/bin/krb5-config CWRAPPERS_CONFIG_DIR=/home/n0/gdt/pkgsrc-current/pkgsrc/databases/mongodb/work/.cwrapper/config /usr/pkg/bin/scons -j4 --disable-warnings-as-errors --release --runtime-hardening=off --use-system-boost --use-system-mongo-c --use-system-pcre --use-system-snappy --use-system-sqlite --use-system-tcmalloc --use-system-yaml --use-system-zlib --wiredtiger=off  CC=gcc CXX=c++ CFLAGS=-O2\ -D_FORTIFY_SOURCE=2\ -pthread\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/include/krb5 CXXFLAGS=-O2\ -D_FORTIFY_SOURCE=2\ -pthread\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/include/krb5  LINKFLAGS=\ -Wl,-R/usr/pkg/lib\ -L/usr/pkg/lib\ \ \ -L/usr/lib\ -Wl,-R/usr/lib\ -pthread\ -lexecinfo CPPPATH=/usr/pkg/include/libbson-1.0\ /usr/pkg/include/libmongoc-1.0 VERBOSE=1 core
scons: Reading SConscript files ...
scons version: 3.0.4
python version: 2 7 16 'final' 0
Checking whether the C compiler works... (cached) yes
Checking whether the C++ compiler works... (cached) yes
Checking that the C++ compiler can link a C++ program... (cached) yes
Checking if C++ compiler "c++" is GCC... (cached) yes
Checking if C compiler "gcc" is GCC... (cached) yes
Detected a x86_64 processor
Checking if target OS netbsd is supported by the toolchain... (cached) yes
Checking if C compiler is GCC 5.3.0 or newer...(cached) yes
Checking if C++ compiler is GCC 5.3.0 or newer...(cached) yes
Checking if C compiler supports -Wno-unused-local-typedefs... (cached) yes
Checking if C compiler supports -Wno-unused-function... (cached) yes
Checking if C compiler supports -Wno-unused-private-field... (cached) no
Checking if C compiler supports -Wno-deprecated-declarations... (cached) yes
Checking if C compiler supports -Wno-tautological-constant-out-of-range-compare... (cached) no
Checking if C compiler supports -Wno-tautological-constant-compare... (cached) no
Checking if C compiler supports -Wno-tautological-unsigned-zero-compare... (cached) no
Checking if C compiler supports -Wno-tautological-unsigned-enum-zero-compare... (cached) no
Checking if C compiler supports -Wno-unused-const-variable... (cached) no
Checking if C compiler supports -Wno-unused-but-set-variable... (cached) yes
Checking if C compiler supports -Wno-missing-braces... (cached) yes
Checking if C compiler supports -Wno-inconsistent-missing-override... (cached) no
Checking if C compiler supports -Wno-potentially-evaluated-expression... (cached) no
Checking if C++ compiler supports -Wpessimizing-move... (cached) no
Checking if C++ compiler supports -Wredundant-move... (cached) no
Checking if C++ compiler supports -Wno-maybe-uninitialized... (cached) yes
Checking if C++ compiler supports -Wno-undefined-var-template... (cached) no
Checking if C++ compiler supports -Wno-instantiation-after-specialization... (cached) no
Checking if C compiler supports -Wno-unused-lambda-capture... (cached) no
Checking if C compiler supports -Wno-exceptions... (cached) no
Checking -Wnon-virtual-dtor for false positives... (cached) no
Checking if we are using libstdc++... (cached) yes
Checking if C++ compiler supports -std=c++14... (cached) yes
Checking if C compiler supports -std=c11... (cached) yes
WARNING: System versions of C++ libraries must be compiled with C++14 support
Checking for C++14... (cached) yes
Checking for memset_s... (cached) no
Checking for C function strnlen()... (cached) yes
Checking for libstdc++ 5.3.0 or better... (cached) yes
Checking if we are on a POSIX system... (cached) yes
Checking if the POSIX monotonic clock is supported... (cached) yes
Checking off_t is 8 bytes... (cached) yes
Checking if C compiler supports -fno-builtin-memcmp... (cached) yes
Checking for storage class thread_local (cached) yes
Checking for C++14 std::enable_if_t support...(cached) yes
Checking for C++14 std::make_unique support... (cached) yes
Checking if pthread_setname_np is supported... (cached) no
Checking for curl_global_init(0) in C library curl... (cached) yes
Checking for C library pcre... (cached) yes
Checking for C library pcrecpp... (cached) yes
Checking for C library snappy... (cached) yes
Checking for C library z... (cached) yes
Checking for C library yaml-cpp... (cached) yes
Checking for C++ header file sqlite3.h... (cached) yes
Checking for C library sqlite3... (cached) yes
Checking for C++ header file boost/filesystem/operations.hpp... (cached) yes
Checking if system boost version is 1.49 or newer...(cached) yes
Checking for C++ library boost_filesystem-mt... (cached) no
Checking for C++ library boost_filesystem... (cached) yes
Checking for C++ library boost_program_options-mt... (cached) no
Checking for C++ library boost_program_options... (cached) yes
Checking for C++ library boost_system-mt... (cached) no
Checking for C++ library boost_system... (cached) yes
Checking for C++ library boost_iostreams-mt... (cached) no
Checking for C++ library boost_iostreams... (cached) yes
Checking for C library rt... (cached) yes
Checking for C library dl... (cached) no
Checking for C++ header file execinfo.h... (cached) yes
Checking whether backtrace is declared... (cached) yes
Checking whether backtrace_symbols is declared... (cached) yes
Checking whether backtrace_symbols_fd is declared... (cached) yes
Checking for C library pcap... (cached) yes
Checking for C library execinfo... (cached) yes
Checking if std::atomic<int64_t> works... (cached) yes
Checking if std::atomic<uint64_t> works... (cached) yes
Checking if std::atomic<int32_t> works... (cached) yes
Checking if std::atomic<uint32_t> works... (cached) yes
Checking for extended alignment 64 for concurrency types... (cached) yes
Checking for mongoc_get_major_version() in C library mongoc-1.0... (cached) yes
Checking if mongoc version is 1.13.0 or newer...(cached) yes
scons: done reading SConscript files.
scons: Building targets ...
gcc -o build/opt/third_party/icu4c-57.1/source/i18n/decNumber.o -c -O2 -D_FORTIFY_SOURCE=2 -pthread -I/usr/pkg/include -I/usr/include -I/usr/include/krb5 -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fno-builtin-memcmp -Wno-sign-compare -DNDEBUG -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n -I/usr/pkg/include/libbson-1.0 -I/usr/pkg/include/libmongoc-1.0 src/third_party/icu4c-57.1/source/i18n/decNumber.c
c++ -o build/opt/mongo/util/fail_point_server_parameter.o -c -O2 -D_FORTIFY_SOURCE=2 -pthread -I/usr/pkg/include -I/usr/include -I/usr/include/krb5 -Woverloaded-virtual -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fno-builtin-memcmp -DNDEBUG -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -I/usr/pkg/include/libbson-1.0 -I/usr/pkg/include/libmongoc-1.0 -Ibuild/opt -Isrc src/mongo/util/fail_point_server_parameter.cpp
In file included from src/third_party/icu4c-57.1/source/common/unicode/utypes.h:36:0,
                 from src/third_party/icu4c-57.1/source/common/cmemory.h:27,
                 from src/third_party/icu4c-57.1/source/i18n/decNumber.c:181:
/home/n0/gdt/pkgsrc-current/pkgsrc/databases/mongodb/work/.buildlink/include/unicode/umachine.h:336:13: error: unknown type name 'char16_t'
     typedef char16_t UChar;
             ^
/usr/pkg/bin/python2.7 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch x86_64 --header build/opt/mongo/db/logical_session_cache_stats_gen.h --output build/opt/mongo/db/logical_session_cache_stats_gen.cpp src/mongo/db/logical_session_cache_stats.idl
scons: *** [build/opt/third_party/icu4c-57.1/source/i18n/decNumber.o] Error 1
/usr/pkg/bin/python2.7 buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch x86_64 --header build/opt/mongo/db/refresh_sessions_gen.h --output build/opt/mongo/db/refresh_sessions_gen.cpp src/mongo/db/refresh_sessions.idl
In file included from src/mongo/util/time_support.h:43:0,
                 from src/mongo/bson/oid.h:41,
                 from src/mongo/bson/bsonelement.h:47,
                 from src/mongo/db/jsobj.h:49,
                 from src/mongo/db/server_parameters.h:41,
                 from src/mongo/util/fail_point_server_parameter.h:33,
                 from src/mongo/util/fail_point_server_parameter.cpp:33:
src/mongo/stdx/mutex.h:39:14: error: 'std::timed_mutex' has not been declared
 using ::std::timed_mutex;      // NOLINT
              ^
scons: *** [build/opt/mongo/util/fail_point_server_parameter.o] Error 1
scons: building terminated because of errors.
build/opt/third_party/icu4c-57.1/source/i18n/decNumber.o failed: Error 1
build/opt/mongo/util/fail_point_server_parameter.o failed: Error 1
*** Error code 2

Stop.
make[1]: stopped in /home/n0/gdt/pkgsrc-current/pkgsrc/databases/mongodb
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/databases/mongodb


Home | Main Index | Thread Index | Old Index