Mongodb 4.2.12 build failure on debian arm64

I get something similar, but at a slightly different stage:

#11 8.128 g++ -o build/opt/mongo/db/s/database_sharding_state.o -c -Woverloaded-virtual -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -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/s2 -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/s/database_sharding_state.cpp
#11 21.95 g++: fatal error: Killed signal terminated program cc1plus
#11 21.95 compilation terminated.
#11 21.96 scons: *** [build/opt/mongo/s/query/document_source_update_on_add_shard.o] Error 1
#11 23.71 scons: building terminated because of errors.
#11 23.73 build/opt/mongo/s/query/document_source_update_on_add_shard.o failed: Error 1

Perhaps @andrew_morrow can help, as I found his answers on Add MongoDB 4.2 ARM64 builds for Raspberry Pi OS 64 bit (Debian Buster) - #9 by Andrew_Morrow before finding this page?