Compiling source on Ubuntu 20.04 / Raspberry Pi4 - error on "make install"

I’m attempting to compile CRDB 19.2.6 on 64-bit Ubuntu 20.04 on a Raspberry Pi4 with 4GB RAM.

make build seems to work (with just warnings)

make install seems to run fine (some warnings) but ends with the error:

make: *** [Makefile:6: install] Error 2

I’ve captured the entire output if needed, but here are the last three lines:

touch bin/.go_protobuf_sources
make[1]: Leaving directory ‘/home/ubuntu/cockroach-v19.2.6/src/github.com/cockroachdb/cockroach’
make: *** [Makefile:6: install] Error 2

An example warning is this - seems benign:

/home/ubuntu/cockroach-v19.2.6/src/github.com/cockroachdb/cockroach/c-deps/rocksdb/util/crc32c.cc:412:13: error: ‘bool rocksdb::crc32c::isSSE42()’ defined but not used [-Werror=unused-function]
412 | static bool isSSE42() {
| ^~~~~~~

if I do a sudo make install then GO is not on the path so it fails

Any ideas? Any places I can look for more details? Thanks for any and all help!

Rob Bohn

P.S.
gcc --version
gcc (Ubuntu 9.3.0-10ubuntu2) 9.3.0

make -v
GNU Make 4.2.1
Built for aarch64-unknown-linux-gnu

go version
go version go1.12.17 linux/arm64

Examples of errors I get in the make install

[  0%] Building CXX object CMakeFiles/rocksdb.dir/util/crc32c.cc.o
/home/ubuntu/cockroach-v19.2.6/src/github.com/cockroachdb/cockroach/c-deps/rocksdb/util/crc32c.cc:426:13: error: 
'bool rocksdb::crc32c::isPCLMULQDQ()' defined but not used [-Werror=unused-function]
  426 | static bool isPCLMULQDQ() {
      |             ^~~~~~~~~~~
/home/ubuntu/cockroach-v19.2.6/src/github.com/cockroachdb/cockroach/c-deps/rocksdb/util/crc32c.cc:412:13: error: 
'bool rocksdb::crc32c::isSSE42()' defined but not used [-Werror=unused-function]
  412 | static bool isSSE42() {
      |             ^~~~~~~
cc1plus: all warnings being treated as errors

<snip>

    inlined from 'void protobuf_roachpb_2finternal_2eproto::InitDefaultsInternalTimeSeriesSample()' at /home/ubuntu/cockroach-v19.2.6/src/github.com/cockroachdb/cockroach/c-deps/libroach/protos/roachpb/internal.pb.cc:742:1:   
/usr/include/aarch64-linux-gnu/bits/string_fortified.h:71:33: error: 'void* __builtin_memset(void*, int, long unsigned int)' offset [29, 56] from the object at 'cockroach::roachpb::_InternalTimeSeriesSample_default_instance_' 
is out of the bounds of referenced subobject 'cockroach::roachpb::InternalTimeSeriesSample::offset_' with type 'int' at offset 24 [-Werror=array-bounds]
   71 |   return __builtin___memset_chk (__dest, __ch, __len, __bos0 (__dest));
      |          ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'void* memset(void*, int, size_t)',
    inlined from 'void cockroach::roachpb::InternalTimeSeriesData::SharedCtor()' at /home/ubuntu/cockroach-v19.2.6/src/github.com/cockroachdb/cockroach/c-deps/libroach/protos/roachpb/internal.pb.cc:121:11,
    inlined from 'cockroach::roachpb::InternalTimeSeriesData::InternalTimeSeriesData()' at /home/ubuntu/cockroach-v19.2.6/src/github.com/cockroachdb/cockroach/c-deps/libroach/protos/roachpb/internal.pb.cc:97:13,
    inlined from 'void protobuf_roachpb_2finternal_2eproto::InitDefaultsInternalTimeSeriesData()' at /home/ubuntu/cockroach-v19.2.6/src/github.com/cockroachdb/cockroach/c-deps/libroach/protos/roachpb/internal.pb.cc:93:1:      
/usr/include/aarch64-linux-gnu/bits/string_fortified.h:71:33: error: 'void* __builtin_memset(void*, int, long unsigned int)' offset [249, 256] from the object at 'cockroach::roachpb::_InternalTimeSeriesData_default_instance_' 
is out of the bounds of referenced subobject 'cockroach::roachpb::InternalTimeSeriesData::start_timestamp_nanos_' with type 'long int' at offset 240 [-Werror=array-bounds]
   71 |   return __builtin___memset_chk (__dest, __ch, __len, __bos0 (__dest));
      |          ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[5]: *** [CMakeFiles/roach.dir/build.make:375: CMakeFiles/roach.dir/protos/roachpb/internal.pb.cc.o] Error 1

Also tried make build TAGS='stdmalloc' as recommended in some older documentation, with same results.