Not the answer you need?
Register and ask your own question!

Building from Source fails with wiredtiger_kv_engine.o

majistomajisto Current User Role Novice
I am trying to build mongo distribution v4.2.8 on an ARMv8 processor Ubuntu Server 20.04 LTS. When I build i receive an error:
scons: building terminated because of errors.
build/opt/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.o failed: Error 1

I am not seeing anything pop out as a missing dependency or the like.
My build command is as follows:
scons: running with args /usr/bin/python3 buildscripts/scons.py --disable-warnings-as-errors --prefix=/alt/mongodb/current --ssl=on --ssl-provider=openssl --opt=on --jobs=2 --use-hardware-crc32=on CCFLAGS=-march=armv8-a+crc

I have uploaded  the compile log for more information.
Tagged:

Answers

  • majistomajisto Current User Role Novice
    edited August 25
    Also, the hardware being used is a Raspberry Pi 4B with 4GB or RAM. 
  • Igor SolodovnikovIgor Solodovnikov Percona Percona Staff Role

    Hello @majisto

    The only thing I can read from your compile.log is that g++ failed compiling wieredtiger_kv_engine.cpp. Unfortunately there is no error messages at all but there is full command line with g++ options. So you can try to execute that command line without scons:

    g++ -o build/opt/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -march=armv8-a+crc -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DPCRE_STATIC -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/valgrind-3.14.0/include -Isrc/third_party/zlib-1.2.11 -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Isrc/third_party/libarchive-3.4.0 -Isrc/third_party/s2 -Isrc/third_party/install/include -Isrc/third_party/SafeInt -Isrc/third_party/pcre-8.42 -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp
    

    and check if it will succeed or print any errors.

Sign In or Register to comment.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.