# Building from Source fails with wiredtiger\_kv\_engine.o

**URL:** <https://forums.percona.com/t/building-from-source-fails-with-wiredtiger-kv-engine-o/7949>\
**Category:** MongoDB® General Discussion\
**Tags:** mongodb\
**Created:** [August 25, 2020, 2:16pm UTC](https://forums.percona.com/t/building-from-source-fails-with-wiredtiger-kv-engine-o/7949 "2020-08-25T14:16:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![majisto](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@majisto](https://forums.percona.com/u/majisto)\
**Post date:** [August 25, 2020, 2:16pm UTC](https://forums.percona.com/t/building-from-source-fails-with-wiredtiger-kv-engine-o/7949/1 "2020-08-25T14:16:36Z")

</div>

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&nbsp; the compile log for more information.

[compile.log](https://forums.percona.com/uploads/short-url/u4TNrArA05P992fWc43lmBzB4aI.log) (1.14 MB)

---

<div class="post-metadata">

**Author:** ![majisto](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@majisto](https://forums.percona.com/u/majisto)\
**Post date:** [August 25, 2020, 3:34pm UTC](https://forums.percona.com/t/building-from-source-fails-with-wiredtiger-kv-engine-o/7949/2 "2020-08-25T15:34:11Z")

</div>

Also, the hardware being used is a Raspberry Pi 4B with 4GB or RAM.&nbsp;

---

<div class="post-metadata">

**Author:** ![Igor\_Solodovnikov](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/igor_solodovnikov/32/1265_2.png) [@Igor\_Solodovnikov](https://forums.percona.com/u/Igor_Solodovnikov)\
**Post date:** [October 9, 2020, 5:06am UTC](https://forums.percona.com/t/building-from-source-fails-with-wiredtiger-kv-engine-o/7949/3 "2020-10-09T05:06:19Z")

</div>

Hello @majistoThe 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:

```auto
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.
