awslabs / aws-crt-nodejs

NodeJS bindings for the AWS Common Runtime.
Apache License 2.0
40 stars 26 forks source link

Can't install on Pi 4 #196

Closed saltedpotatos closed 3 years ago

saltedpotatos commented 3 years ago

Following the instructions here, I get errors trying to install aws-crt

Pre reqs: cmake is already the newest version (3.16.3-3~bpo10+1). libssl-dev is already the newest version (1.1.1d-0+deb10u5+rpt2). git version 2.20.1 node v14.16.0 npm 6.14.11

pi@raspberrypi:~/iot $ npm install aws-crt
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported

> aws-crt@1.6.0 install /home/pi/iot/node_modules/aws-crt
> node ./scripts/install.js

info TOOL Using Unix Makefiles generator.
info TOOL Building only the install target, as specified from the command line.
info CMD CONFIGURE
info TOOL Building only the install target, as specified from the command line.
info RUN cmake "/home/pi/iot/node_modules/aws-crt" --no-warn-unused-cli -G"Unix Makefiles" -DCMAKE_JS_VERSION="6.1.0" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_LIBRARY_OUTPUT_DIRECTORY="/home/pi/iot/node_modules/aws-crt/build/Release" -DCMAKE_JS_INC="/home/pi/.cmake-js/node-arm/v14.16.0/include/node" -DCMAKE_JS_SRC="" -DNODE_RUNTIME="node" -DNODE_RUNTIMEVERSION="14.16.0" -DNODE_ARCH="arm" -DCMAKE_EXPORT_COMPILE_COMMANDS="true" -DCMAKE_JS_PLATFORM="linux" -DCMAKE_JS_ARCH="arm" -DBUILD_TESTING="OFF" -DCMAKE_INSTALL_PREFIX="crt/install" -DCMAKE_PREFIX_PATH="crt/install"
Not searching for unused variables given on the command line.
-- The C compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Using submodule dependencies
-- CMake 3.16.3
-- Performing Test AWS_HAVE_GCC_OVERFLOW_MATH_EXTENSIONS
-- Performing Test AWS_HAVE_GCC_OVERFLOW_MATH_EXTENSIONS - Success
-- Performing Test AWS_HAVE_MSVC_MULX
-- Performing Test AWS_HAVE_MSVC_MULX - Failed
-- Performing Test AWS_ARCH_INTEL
-- Performing Test AWS_ARCH_INTEL - Failed
-- Performing Test AWS_ARCH_ARM64
-- Performing Test AWS_ARCH_ARM64 - Failed
-- Performing Test AWS_ARCH_ARM32
-- Performing Test AWS_ARCH_ARM32 - Success
-- Performing Test AWS_HAVE_GCC_INLINE_ASM
-- Performing Test AWS_HAVE_GCC_INLINE_ASM - Success
-- Performing Test AWS_HAVE_AUXV
-- Performing Test AWS_HAVE_AUXV - Success
-- Performing Test AWS_HAVE_EXECINFO
-- Performing Test AWS_HAVE_EXECINFO - Success
-- Performing Test HAVE_M_AVX2_FLAG
-- Performing Test HAVE_M_AVX2_FLAG - Failed
-- Performing Test HAVE_AVX2_INTRINSICS
-- Performing Test HAVE_AVX2_INTRINSICS - Failed
-- Performing Test HAVE_MM256_EXTRACT_EPI64
-- Performing Test HAVE_MM256_EXTRACT_EPI64 - Failed
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Performing Test HAS_MOUTLINE_ATOMICS
-- Performing Test HAS_MOUTLINE_ATOMICS - Failed
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stdbool.h
-- Looking for stdbool.h - found
-- Performing Test HAS_WGNU
-- Performing Test HAS_WGNU - Failed
-- Performing Test HAVE_SYSCONF
-- Performing Test HAVE_SYSCONF - Success
-- Looking for pthread_attr_setaffinity_np
-- Looking for pthread_attr_setaffinity_np - not found
-- Looking for pthread_setaffinity_np
-- Looking for pthread_setaffinity_np - not found
CMake Warning at crt/aws-c-common/cmake/AwsThreadAffinity.cmake:43 (message):
  No supported method for setting thread affinity
Call Stack (most recent call first):
  crt/aws-c-common/CMakeLists.txt:169 (aws_set_thread_affinity_method)

-- Performing Test HAS_SANITIZERS
-- Performing Test HAS_SANITIZERS - Failed
-- Packaging currently only supported on Fedora.
-- The C compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- The CXX compiler identification is GNU 8.3.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Perl: /usr/bin/perl (found version "5.28.1")
-- Checking for module 'libunwind-generic'
--   No package 'libunwind-generic' found
libunwind not found. Disabling unwind tests.
-- Go not found. Disabling some code generation and using pre-generated code in generated-src/
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    BUILD_LIBSSL
    BUILD_TESTING

-- Build files have been written to: /home/pi/iot/node_modules/aws-crt/build/aws-lc
Scanning dependencies of target boringssl_gtest
[  0%] Building CXX object CMakeFiles/boringssl_gtest.dir/third_party/googletest/src/gtest-all.cc.o
[  0%] Linking CXX static library libboringssl_gtest.a
[  0%] Built target boringssl_gtest
Scanning dependencies of target crypto_test_data
[  1%] Building CXX object CMakeFiles/crypto_test_data.dir/crypto_test_data.cc.o
[  1%] Built target crypto_test_data
Scanning dependencies of target global_target
[  1%] Built target global_target
Scanning dependencies of target test_support_lib
[  1%] Building CXX object crypto/test/CMakeFiles/test_support_lib.dir/abi_test.cc.o
[  1%] Building CXX object crypto/test/CMakeFiles/test_support_lib.dir/file_test.cc.o
[  1%] Building CXX object crypto/test/CMakeFiles/test_support_lib.dir/malloc.cc.o
[  2%] Building CXX object crypto/test/CMakeFiles/test_support_lib.dir/test_util.cc.o
[  2%] Building CXX object crypto/test/CMakeFiles/test_support_lib.dir/wycheproof_util.cc.o
[  2%] Linking CXX static library libtest_support_lib.a
[  2%] Built target test_support_lib
[  2%] Generating vpaes-armv7.S
[  2%] Generating aesv8-armx.S
[  3%] Generating armv4-mont.S
[  3%] Generating bsaes-armv7.S
[  3%] Generating ghash-armv4.S
[  3%] Generating ghashv8-armx.S
[  4%] Generating sha1-armv4-large.S
[  4%] Generating sha256-armv4.S
[  4%] Generating sha512-armv4.S
Scanning dependencies of target fipsmodule
[  5%] Building C object crypto/fipsmodule/CMakeFiles/fipsmodule.dir/bcm.c.o
[  5%] Building C object crypto/fipsmodule/CMakeFiles/fipsmodule.dir/fips_shared_support.c.o
[  5%] Building C object crypto/fipsmodule/CMakeFiles/fipsmodule.dir/is_fips.c.o
[  5%] Building ASM object crypto/fipsmodule/CMakeFiles/fipsmodule.dir/aesv8-armx.S.o
[  5%] Building ASM object crypto/fipsmodule/CMakeFiles/fipsmodule.dir/armv4-mont.S.o
[  6%] Building ASM object crypto/fipsmodule/CMakeFiles/fipsmodule.dir/bsaes-armv7.S.o
[  6%] Building ASM object crypto/fipsmodule/CMakeFiles/fipsmodule.dir/ghash-armv4.S.o
[  6%] Building ASM object crypto/fipsmodule/CMakeFiles/fipsmodule.dir/ghashv8-armx.S.o
[  6%] Building ASM object crypto/fipsmodule/CMakeFiles/fipsmodule.dir/sha1-armv4-large.S.o
[  7%] Building ASM object crypto/fipsmodule/CMakeFiles/fipsmodule.dir/sha256-armv4.S.o
[  7%] Building ASM object crypto/fipsmodule/CMakeFiles/fipsmodule.dir/sha512-armv4.S.o
[  7%] Building ASM object crypto/fipsmodule/CMakeFiles/fipsmodule.dir/vpaes-armv7.S.o
[  7%] Built target fipsmodule
[  8%] Generating test/trampoline-armv4.S
[  8%] Generating chacha/chacha-armv4.S
Scanning dependencies of target crypto
[  8%] Building C object crypto/CMakeFiles/crypto.dir/asn1/a_bitstr.c.o
[  8%] Building C object crypto/CMakeFiles/crypto.dir/asn1/a_bool.c.o
[  8%] Building C object crypto/CMakeFiles/crypto.dir/asn1/a_d2i_fp.c.o
[  9%] Building C object crypto/CMakeFiles/crypto.dir/asn1/a_dup.c.o
[  9%] Building C object crypto/CMakeFiles/crypto.dir/asn1/a_enum.c.o
[  9%] Building C object crypto/CMakeFiles/crypto.dir/asn1/a_gentm.c.o
[  9%] Building C object crypto/CMakeFiles/crypto.dir/asn1/a_i2d_fp.c.o
[ 10%] Building C object crypto/CMakeFiles/crypto.dir/asn1/a_int.c.o
[ 10%] Building C object crypto/CMakeFiles/crypto.dir/asn1/a_mbstr.c.o
[ 10%] Building C object crypto/CMakeFiles/crypto.dir/asn1/a_object.c.o
[ 10%] Building C object crypto/CMakeFiles/crypto.dir/asn1/a_octet.c.o
[ 10%] Building C object crypto/CMakeFiles/crypto.dir/asn1/a_print.c.o
[ 11%] Building C object crypto/CMakeFiles/crypto.dir/asn1/a_strnid.c.o
[ 11%] Building C object crypto/CMakeFiles/crypto.dir/asn1/a_time.c.o
[ 11%] Building C object crypto/CMakeFiles/crypto.dir/asn1/a_type.c.o
[ 11%] Building C object crypto/CMakeFiles/crypto.dir/asn1/a_utctm.c.o
[ 12%] Building C object crypto/CMakeFiles/crypto.dir/asn1/a_utf8.c.o
[ 12%] Building C object crypto/CMakeFiles/crypto.dir/asn1/asn1_lib.c.o
[ 12%] Building C object crypto/CMakeFiles/crypto.dir/asn1/asn1_par.c.o
[ 12%] Building C object crypto/CMakeFiles/crypto.dir/asn1/asn_pack.c.o
[ 13%] Building C object crypto/CMakeFiles/crypto.dir/asn1/f_enum.c.o
[ 13%] Building C object crypto/CMakeFiles/crypto.dir/asn1/f_int.c.o
[ 13%] Building C object crypto/CMakeFiles/crypto.dir/asn1/f_string.c.o
[ 13%] Building C object crypto/CMakeFiles/crypto.dir/asn1/tasn_dec.c.o
[ 13%] Building C object crypto/CMakeFiles/crypto.dir/asn1/tasn_enc.c.o
[ 14%] Building C object crypto/CMakeFiles/crypto.dir/asn1/tasn_fre.c.o
[ 14%] Building C object crypto/CMakeFiles/crypto.dir/asn1/tasn_new.c.o
[ 14%] Building C object crypto/CMakeFiles/crypto.dir/asn1/tasn_typ.c.o
[ 14%] Building C object crypto/CMakeFiles/crypto.dir/asn1/tasn_utl.c.o
[ 15%] Building C object crypto/CMakeFiles/crypto.dir/asn1/time_support.c.o
[ 15%] Building C object crypto/CMakeFiles/crypto.dir/base64/base64.c.o
[ 15%] Building C object crypto/CMakeFiles/crypto.dir/bio/bio.c.o
[ 15%] Building C object crypto/CMakeFiles/crypto.dir/bio/bio_mem.c.o
[ 16%] Building C object crypto/CMakeFiles/crypto.dir/bio/connect.c.o
[ 16%] Building C object crypto/CMakeFiles/crypto.dir/bio/fd.c.o
[ 16%] Building C object crypto/CMakeFiles/crypto.dir/bio/file.c.o
[ 16%] Building C object crypto/CMakeFiles/crypto.dir/bio/hexdump.c.o
[ 16%] Building C object crypto/CMakeFiles/crypto.dir/bio/pair.c.o
[ 17%] Building C object crypto/CMakeFiles/crypto.dir/bio/printf.c.o
[ 17%] Building C object crypto/CMakeFiles/crypto.dir/bio/socket.c.o
[ 17%] Building C object crypto/CMakeFiles/crypto.dir/bio/socket_helper.c.o
[ 17%] Building C object crypto/CMakeFiles/crypto.dir/blake2/blake2.c.o
[ 18%] Building C object crypto/CMakeFiles/crypto.dir/bn_extra/bn_asn1.c.o
[ 18%] Building C object crypto/CMakeFiles/crypto.dir/bn_extra/convert.c.o
[ 18%] Building C object crypto/CMakeFiles/crypto.dir/buf/buf.c.o
[ 18%] Building C object crypto/CMakeFiles/crypto.dir/bytestring/asn1_compat.c.o
[ 19%] Building C object crypto/CMakeFiles/crypto.dir/bytestring/ber.c.o
[ 19%] Building C object crypto/CMakeFiles/crypto.dir/bytestring/cbb.c.o
[ 19%] Building C object crypto/CMakeFiles/crypto.dir/bytestring/cbs.c.o
[ 19%] Building C object crypto/CMakeFiles/crypto.dir/bytestring/unicode.c.o
[ 19%] Building C object crypto/CMakeFiles/crypto.dir/chacha/chacha.c.o
[ 20%] Building C object crypto/CMakeFiles/crypto.dir/cipher_extra/cipher_extra.c.o
[ 20%] Building C object crypto/CMakeFiles/crypto.dir/cipher_extra/derive_key.c.o
[ 20%] Building C object crypto/CMakeFiles/crypto.dir/cipher_extra/e_aesccm.c.o
[ 20%] Building C object crypto/CMakeFiles/crypto.dir/cipher_extra/e_aesctrhmac.c.o
[ 21%] Building C object crypto/CMakeFiles/crypto.dir/cipher_extra/e_aesgcmsiv.c.o
[ 21%] Building C object crypto/CMakeFiles/crypto.dir/cipher_extra/e_chacha20poly1305.c.o
[ 21%] Building C object crypto/CMakeFiles/crypto.dir/cipher_extra/e_null.c.o
[ 21%] Building C object crypto/CMakeFiles/crypto.dir/cipher_extra/e_rc2.c.o
[ 22%] Building C object crypto/CMakeFiles/crypto.dir/cipher_extra/e_rc4.c.o
[ 22%] Building C object crypto/CMakeFiles/crypto.dir/cipher_extra/e_tls.c.o
[ 22%] Building C object crypto/CMakeFiles/crypto.dir/cipher_extra/tls_cbc.c.o
[ 22%] Building C object crypto/CMakeFiles/crypto.dir/cmac/cmac.c.o
[ 22%] Building C object crypto/CMakeFiles/crypto.dir/conf/conf.c.o
[ 23%] Building C object crypto/CMakeFiles/crypto.dir/cpu-aarch64-fuchsia.c.o
[ 23%] Building C object crypto/CMakeFiles/crypto.dir/cpu-aarch64-linux.c.o
[ 23%] Building C object crypto/CMakeFiles/crypto.dir/cpu-aarch64-win.c.o
[ 23%] Building C object crypto/CMakeFiles/crypto.dir/cpu-arm-linux.c.o
[ 24%] Building C object crypto/CMakeFiles/crypto.dir/cpu-arm.c.o
[ 24%] Building C object crypto/CMakeFiles/crypto.dir/cpu-intel.c.o
[ 24%] Building C object crypto/CMakeFiles/crypto.dir/cpu-ppc64le.c.o
[ 24%] Building C object crypto/CMakeFiles/crypto.dir/crypto.c.o
[ 25%] Building C object crypto/CMakeFiles/crypto.dir/curve25519/curve25519.c.o
[ 25%] Building C object crypto/CMakeFiles/crypto.dir/curve25519/spake25519.c.o
[ 25%] Building C object crypto/CMakeFiles/crypto.dir/dh_extra/params.c.o
[ 25%] Building C object crypto/CMakeFiles/crypto.dir/dh_extra/dh_asn1.c.o
[ 25%] Building C object crypto/CMakeFiles/crypto.dir/digest_extra/digest_extra.c.o
[ 26%] Building C object crypto/CMakeFiles/crypto.dir/dsa/dsa.c.o
[ 26%] Building C object crypto/CMakeFiles/crypto.dir/dsa/dsa_asn1.c.o
[ 26%] Building C object crypto/CMakeFiles/crypto.dir/ecdh_extra/ecdh_extra.c.o
[ 26%] Building C object crypto/CMakeFiles/crypto.dir/ecdsa_extra/ecdsa_asn1.c.o
[ 27%] Building C object crypto/CMakeFiles/crypto.dir/ec_extra/ec_asn1.c.o
[ 27%] Building C object crypto/CMakeFiles/crypto.dir/ec_extra/ec_derive.c.o
[ 27%] Building C object crypto/CMakeFiles/crypto.dir/ec_extra/hash_to_curve.c.o
[ 27%] Building C object crypto/CMakeFiles/crypto.dir/err/err.c.o
[ 28%] Building C object crypto/CMakeFiles/crypto.dir/err_data.c.o
[ 28%] Building C object crypto/CMakeFiles/crypto.dir/engine/engine.c.o
[ 28%] Building C object crypto/CMakeFiles/crypto.dir/evp/digestsign.c.o
[ 28%] Building C object crypto/CMakeFiles/crypto.dir/evp/evp.c.o
[ 28%] Building C object crypto/CMakeFiles/crypto.dir/evp/evp_asn1.c.o
[ 29%] Building C object crypto/CMakeFiles/crypto.dir/evp/evp_ctx.c.o
[ 29%] Building C object crypto/CMakeFiles/crypto.dir/evp/p_dsa_asn1.c.o
[ 29%] Building C object crypto/CMakeFiles/crypto.dir/evp/p_ec.c.o
[ 29%] Building C object crypto/CMakeFiles/crypto.dir/evp/p_ec_asn1.c.o
[ 30%] Building C object crypto/CMakeFiles/crypto.dir/evp/p_ed25519.c.o
[ 30%] Building C object crypto/CMakeFiles/crypto.dir/evp/p_ed25519_asn1.c.o
[ 30%] Building C object crypto/CMakeFiles/crypto.dir/evp/p_rsa.c.o
[ 30%] Building C object crypto/CMakeFiles/crypto.dir/evp/p_rsa_asn1.c.o
[ 31%] Building C object crypto/CMakeFiles/crypto.dir/evp/p_x25519.c.o
[ 31%] Building C object crypto/CMakeFiles/crypto.dir/evp/p_x25519_asn1.c.o
[ 31%] Building C object crypto/CMakeFiles/crypto.dir/evp/pbkdf.c.o
[ 31%] Building C object crypto/CMakeFiles/crypto.dir/evp/print.c.o
[ 31%] Building C object crypto/CMakeFiles/crypto.dir/evp/scrypt.c.o
[ 32%] Building C object crypto/CMakeFiles/crypto.dir/evp/sign.c.o
[ 32%] Building C object crypto/CMakeFiles/crypto.dir/ex_data.c.o
[ 32%] Building C object crypto/CMakeFiles/crypto.dir/hkdf/hkdf.c.o
[ 32%] Building C object crypto/CMakeFiles/crypto.dir/hpke/hpke.c.o
[ 33%] Building C object crypto/CMakeFiles/crypto.dir/hrss/hrss.c.o
[ 33%] Building C object crypto/CMakeFiles/crypto.dir/lhash/lhash.c.o
[ 33%] Building C object crypto/CMakeFiles/crypto.dir/mem.c.o
[ 33%] Building C object crypto/CMakeFiles/crypto.dir/obj/obj.c.o
[ 34%] Building C object crypto/CMakeFiles/crypto.dir/obj/obj_xref.c.o
[ 34%] Building C object crypto/CMakeFiles/crypto.dir/pem/pem_all.c.o
[ 34%] Building C object crypto/CMakeFiles/crypto.dir/pem/pem_info.c.o
[ 34%] Building C object crypto/CMakeFiles/crypto.dir/pem/pem_lib.c.o
[ 34%] Building C object crypto/CMakeFiles/crypto.dir/pem/pem_oth.c.o
[ 35%] Building C object crypto/CMakeFiles/crypto.dir/pem/pem_pk8.c.o
[ 35%] Building C object crypto/CMakeFiles/crypto.dir/pem/pem_pkey.c.o
[ 35%] Building C object crypto/CMakeFiles/crypto.dir/pem/pem_x509.c.o
[ 35%] Building C object crypto/CMakeFiles/crypto.dir/pem/pem_xaux.c.o
[ 36%] Building C object crypto/CMakeFiles/crypto.dir/pkcs7/pkcs7.c.o
[ 36%] Building C object crypto/CMakeFiles/crypto.dir/pkcs7/pkcs7_x509.c.o
[ 36%] Building C object crypto/CMakeFiles/crypto.dir/pkcs8/pkcs8.c.o
[ 36%] Building C object crypto/CMakeFiles/crypto.dir/pkcs8/pkcs8_x509.c.o
[ 37%] Building C object crypto/CMakeFiles/crypto.dir/pkcs8/p5_pbev2.c.o
[ 37%] Building C object crypto/CMakeFiles/crypto.dir/poly1305/poly1305.c.o
[ 37%] Building C object crypto/CMakeFiles/crypto.dir/poly1305/poly1305_arm.c.o
[ 37%] Building C object crypto/CMakeFiles/crypto.dir/poly1305/poly1305_vec.c.o
[ 37%] Building C object crypto/CMakeFiles/crypto.dir/pool/pool.c.o
[ 38%] Building C object crypto/CMakeFiles/crypto.dir/rand_extra/deterministic.c.o
[ 38%] Building C object crypto/CMakeFiles/crypto.dir/rand_extra/forkunsafe.c.o
[ 38%] Building C object crypto/CMakeFiles/crypto.dir/rand_extra/fuchsia.c.o
[ 38%] Building C object crypto/CMakeFiles/crypto.dir/rand_extra/passive.c.o
[ 39%] Building C object crypto/CMakeFiles/crypto.dir/rand_extra/rand_extra.c.o
[ 39%] Building C object crypto/CMakeFiles/crypto.dir/rand_extra/windows.c.o
[ 39%] Building C object crypto/CMakeFiles/crypto.dir/rc4/rc4.c.o
[ 39%] Building C object crypto/CMakeFiles/crypto.dir/refcount_c11.c.o
[ 40%] Building C object crypto/CMakeFiles/crypto.dir/refcount_lock.c.o
[ 40%] Building C object crypto/CMakeFiles/crypto.dir/rsa_extra/rsa_asn1.c.o
[ 40%] Building C object crypto/CMakeFiles/crypto.dir/rsa_extra/rsa_print.c.o
[ 40%] Building C object crypto/CMakeFiles/crypto.dir/stack/stack.c.o
[ 40%] Building C object crypto/CMakeFiles/crypto.dir/siphash/siphash.c.o
[ 41%] Building C object crypto/CMakeFiles/crypto.dir/thread.c.o
[ 41%] Building C object crypto/CMakeFiles/crypto.dir/thread_none.c.o
[ 41%] Building C object crypto/CMakeFiles/crypto.dir/thread_pthread.c.o
[ 41%] Building C object crypto/CMakeFiles/crypto.dir/thread_win.c.o
[ 42%] Building C object crypto/CMakeFiles/crypto.dir/trust_token/pmbtoken.c.o
[ 42%] Building C object crypto/CMakeFiles/crypto.dir/trust_token/trust_token.c.o
[ 42%] Building C object crypto/CMakeFiles/crypto.dir/trust_token/voprf.c.o
[ 42%] Building C object crypto/CMakeFiles/crypto.dir/x509/a_digest.c.o
[ 43%] Building C object crypto/CMakeFiles/crypto.dir/x509/a_sign.c.o
[ 43%] Building C object crypto/CMakeFiles/crypto.dir/x509/a_strex.c.o
[ 43%] Building C object crypto/CMakeFiles/crypto.dir/x509/a_verify.c.o
[ 43%] Building C object crypto/CMakeFiles/crypto.dir/x509/algorithm.c.o
[ 43%] Building C object crypto/CMakeFiles/crypto.dir/x509/asn1_gen.c.o
[ 44%] Building C object crypto/CMakeFiles/crypto.dir/x509/by_dir.c.o
[ 44%] Building C object crypto/CMakeFiles/crypto.dir/x509/by_file.c.o
[ 44%] Building C object crypto/CMakeFiles/crypto.dir/x509/i2d_pr.c.o
[ 44%] Building C object crypto/CMakeFiles/crypto.dir/x509/rsa_pss.c.o
[ 45%] Building C object crypto/CMakeFiles/crypto.dir/x509/t_crl.c.o
[ 45%] Building C object crypto/CMakeFiles/crypto.dir/x509/t_req.c.o
[ 45%] Building C object crypto/CMakeFiles/crypto.dir/x509/t_x509.c.o
[ 45%] Building C object crypto/CMakeFiles/crypto.dir/x509/t_x509a.c.o
[ 46%] Building C object crypto/CMakeFiles/crypto.dir/x509/x509.c.o
[ 46%] Building C object crypto/CMakeFiles/crypto.dir/x509/x509_att.c.o
[ 46%] Building C object crypto/CMakeFiles/crypto.dir/x509/x509_cmp.c.o
[ 46%] Building C object crypto/CMakeFiles/crypto.dir/x509/x509_d2.c.o
[ 46%] Building C object crypto/CMakeFiles/crypto.dir/x509/x509_def.c.o
[ 47%] Building C object crypto/CMakeFiles/crypto.dir/x509/x509_ext.c.o
[ 47%] Building C object crypto/CMakeFiles/crypto.dir/x509/x509_lu.c.o
[ 47%] Building C object crypto/CMakeFiles/crypto.dir/x509/x509_obj.c.o
[ 47%] Building C object crypto/CMakeFiles/crypto.dir/x509/x509_r2x.c.o
[ 48%] Building C object crypto/CMakeFiles/crypto.dir/x509/x509_req.c.o
[ 48%] Building C object crypto/CMakeFiles/crypto.dir/x509/x509_set.c.o
[ 48%] Building C object crypto/CMakeFiles/crypto.dir/x509/x509_trs.c.o
[ 48%] Building C object crypto/CMakeFiles/crypto.dir/x509/x509_txt.c.o
[ 49%] Building C object crypto/CMakeFiles/crypto.dir/x509/x509_v3.c.o
[ 49%] Building C object crypto/CMakeFiles/crypto.dir/x509/x509_vfy.c.o
[ 49%] Building C object crypto/CMakeFiles/crypto.dir/x509/x509_vpm.c.o
[ 49%] Building C object crypto/CMakeFiles/crypto.dir/x509/x509cset.c.o
[ 49%] Building C object crypto/CMakeFiles/crypto.dir/x509/x509name.c.o
[ 50%] Building C object crypto/CMakeFiles/crypto.dir/x509/x509rset.c.o
[ 50%] Building C object crypto/CMakeFiles/crypto.dir/x509/x509spki.c.o
[ 50%] Building C object crypto/CMakeFiles/crypto.dir/x509/x_algor.c.o
[ 50%] Building C object crypto/CMakeFiles/crypto.dir/x509/x_all.c.o
[ 51%] Building C object crypto/CMakeFiles/crypto.dir/x509/x_attrib.c.o
[ 51%] Building C object crypto/CMakeFiles/crypto.dir/x509/x_crl.c.o
[ 51%] Building C object crypto/CMakeFiles/crypto.dir/x509/x_exten.c.o
[ 51%] Building C object crypto/CMakeFiles/crypto.dir/x509/x_info.c.o
[ 52%] Building C object crypto/CMakeFiles/crypto.dir/x509/x_name.c.o
[ 52%] Building C object crypto/CMakeFiles/crypto.dir/x509/x_pkey.c.o
[ 52%] Building C object crypto/CMakeFiles/crypto.dir/x509/x_pubkey.c.o
[ 52%] Building C object crypto/CMakeFiles/crypto.dir/x509/x_req.c.o
[ 52%] Building C object crypto/CMakeFiles/crypto.dir/x509/x_sig.c.o
[ 53%] Building C object crypto/CMakeFiles/crypto.dir/x509/x_spki.c.o
[ 53%] Building C object crypto/CMakeFiles/crypto.dir/x509/x_val.c.o
[ 53%] Building C object crypto/CMakeFiles/crypto.dir/x509/x_x509.c.o
[ 53%] Building C object crypto/CMakeFiles/crypto.dir/x509/x_x509a.c.o
[ 54%] Building C object crypto/CMakeFiles/crypto.dir/x509v3/pcy_cache.c.o
[ 54%] Building C object crypto/CMakeFiles/crypto.dir/x509v3/pcy_data.c.o
[ 54%] Building C object crypto/CMakeFiles/crypto.dir/x509v3/pcy_lib.c.o
[ 54%] Building C object crypto/CMakeFiles/crypto.dir/x509v3/pcy_map.c.o
[ 55%] Building C object crypto/CMakeFiles/crypto.dir/x509v3/pcy_node.c.o
[ 55%] Building C object crypto/CMakeFiles/crypto.dir/x509v3/pcy_tree.c.o
[ 55%] Building C object crypto/CMakeFiles/crypto.dir/x509v3/v3_akey.c.o
[ 55%] Building C object crypto/CMakeFiles/crypto.dir/x509v3/v3_akeya.c.o
[ 55%] Building C object crypto/CMakeFiles/crypto.dir/x509v3/v3_alt.c.o
[ 56%] Building C object crypto/CMakeFiles/crypto.dir/x509v3/v3_bcons.c.o
[ 56%] Building C object crypto/CMakeFiles/crypto.dir/x509v3/v3_bitst.c.o
[ 56%] Building C object crypto/CMakeFiles/crypto.dir/x509v3/v3_conf.c.o
[ 56%] Building C object crypto/CMakeFiles/crypto.dir/x509v3/v3_cpols.c.o
[ 57%] Building C object crypto/CMakeFiles/crypto.dir/x509v3/v3_crld.c.o
[ 57%] Building C object crypto/CMakeFiles/crypto.dir/x509v3/v3_enum.c.o
[ 57%] Building C object crypto/CMakeFiles/crypto.dir/x509v3/v3_extku.c.o
[ 57%] Building C object crypto/CMakeFiles/crypto.dir/x509v3/v3_genn.c.o
[ 58%] Building C object crypto/CMakeFiles/crypto.dir/x509v3/v3_ia5.c.o
[ 58%] Building C object crypto/CMakeFiles/crypto.dir/x509v3/v3_info.c.o
[ 58%] Building C object crypto/CMakeFiles/crypto.dir/x509v3/v3_int.c.o
[ 58%] Building C object crypto/CMakeFiles/crypto.dir/x509v3/v3_lib.c.o
[ 58%] Building C object crypto/CMakeFiles/crypto.dir/x509v3/v3_ncons.c.o
[ 59%] Building C object crypto/CMakeFiles/crypto.dir/x509v3/v3_ocsp.c.o
[ 59%] Building C object crypto/CMakeFiles/crypto.dir/x509v3/v3_pci.c.o
[ 59%] Building C object crypto/CMakeFiles/crypto.dir/x509v3/v3_pcia.c.o
[ 59%] Building C object crypto/CMakeFiles/crypto.dir/x509v3/v3_pcons.c.o
[ 60%] Building C object crypto/CMakeFiles/crypto.dir/x509v3/v3_pmaps.c.o
[ 60%] Building C object crypto/CMakeFiles/crypto.dir/x509v3/v3_prn.c.o
[ 60%] Building C object crypto/CMakeFiles/crypto.dir/x509v3/v3_purp.c.o
[ 60%] Building C object crypto/CMakeFiles/crypto.dir/x509v3/v3_skey.c.o
[ 61%] Building C object crypto/CMakeFiles/crypto.dir/x509v3/v3_utl.c.o
[ 61%] Building ASM object crypto/CMakeFiles/crypto.dir/chacha/chacha-armv4.S.o
[ 61%] Building ASM object crypto/CMakeFiles/crypto.dir/curve25519/asm/x25519-asm-arm.S.o
[ 61%] Building ASM object crypto/CMakeFiles/crypto.dir/poly1305/poly1305_arm_asm.S.o
[ 61%] Building ASM object crypto/CMakeFiles/crypto.dir/test/trampoline-armv4.S.o
[ 62%] Linking C static library libcrypto.a
[ 62%] Built target crypto
Scanning dependencies of target urandom_test
[ 62%] Building CXX object crypto/CMakeFiles/urandom_test.dir/fipsmodule/rand/urandom_test.cc.o
[ 63%] Linking CXX executable urandom_test
[ 63%] Built target urandom_test
Scanning dependencies of target boringssl_gtest_main
[ 63%] Building CXX object crypto/test/CMakeFiles/boringssl_gtest_main.dir/gtest_main.cc.o
[ 63%] Built target boringssl_gtest_main
Scanning dependencies of target crypto_test
[ 63%] Building CXX object crypto/CMakeFiles/crypto_test.dir/abi_self_test.cc.o
[ 63%] Building CXX object crypto/CMakeFiles/crypto_test.dir/asn1/asn1_test.cc.o
[ 63%] Building CXX object crypto/CMakeFiles/crypto_test.dir/base64/base64_test.cc.o
[ 64%] Building CXX object crypto/CMakeFiles/crypto_test.dir/bio/bio_test.cc.o
[ 64%] Building CXX object crypto/CMakeFiles/crypto_test.dir/blake2/blake2_test.cc.o
[ 64%] Building CXX object crypto/CMakeFiles/crypto_test.dir/buf/buf_test.cc.o
[ 64%] Building CXX object crypto/CMakeFiles/crypto_test.dir/bytestring/bytestring_test.cc.o
[ 65%] Building CXX object crypto/CMakeFiles/crypto_test.dir/chacha/chacha_test.cc.o
[ 65%] Building CXX object crypto/CMakeFiles/crypto_test.dir/cipher_extra/aead_test.cc.o
/home/pi/iot/node_modules/aws-crt/crt/aws-lc/crypto/cipher_extra/aead_test.cc: In member function ‘virtual void PerAEADTest_UnalignedInput_Test::TestBody()’:
/home/pi/iot/node_modules/aws-crt/crt/aws-lc/crypto/cipher_extra/aead_test.cc:622:54: error: requested alignment 16 is larger than 8 [-Werror=attributes]
   alignas(16) uint8_t key[EVP_AEAD_MAX_KEY_LENGTH + 1];
                                                      ^
/home/pi/iot/node_modules/aws-crt/crt/aws-lc/crypto/cipher_extra/aead_test.cc:623:58: error: requested alignment 16 is larger than 8 [-Werror=attributes]
   alignas(16) uint8_t nonce[EVP_AEAD_MAX_NONCE_LENGTH + 1];
                                                          ^
/home/pi/iot/node_modules/aws-crt/crt/aws-lc/crypto/cipher_extra/aead_test.cc:624:39: error: requested alignment 16 is larger than 8 [-Werror=attributes]
   alignas(16) uint8_t plaintext[32 + 1];
                                       ^
/home/pi/iot/node_modules/aws-crt/crt/aws-lc/crypto/cipher_extra/aead_test.cc:625:32: error: requested alignment 16 is larger than 8 [-Werror=attributes]
   alignas(16) uint8_t ad[32 + 1];
                                ^
/home/pi/iot/node_modules/aws-crt/crt/aws-lc/crypto/cipher_extra/aead_test.cc:644:75: error: requested alignment 16 is larger than 8 [-Werror=attributes]
   alignas(16) uint8_t ciphertext[sizeof(plaintext) + EVP_AEAD_MAX_OVERHEAD];
                                                                           ^
/home/pi/iot/node_modules/aws-crt/crt/aws-lc/crypto/cipher_extra/aead_test.cc:652:45: error: requested alignment 16 is larger than 8 [-Werror=attributes]
   alignas(16) uint8_t out[sizeof(ciphertext)];
                                             ^
cc1plus: all warnings being treated as errors
make[2]: *** [crypto/CMakeFiles/crypto_test.dir/build.make:167: crypto/CMakeFiles/crypto_test.dir/cipher_extra/aead_test.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:457: crypto/CMakeFiles/crypto_test.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
CMake Error at crt/aws-c-cal/cmake/modules/aws-lc.cmake:29 (message):
  Failed to build aws-lc
Call Stack (most recent call first):
  CMakeLists.txt:41 (include)

-- Configuring incomplete, errors occurred!
See also "/home/pi/iot/node_modules/aws-crt/build/CMakeFiles/CMakeOutput.log".
See also "/home/pi/iot/node_modules/aws-crt/build/CMakeFiles/CMakeError.log".
ERR! OMG Process terminated: 1
(node:8916) UnhandledPromiseRejectionWarning: Error: Process terminated: 1
    at ChildProcess.<anonymous> (/home/pi/iot/node_modules/cmake-js/lib/processHelpers.js:29:32)
    at ChildProcess.emit (events.js:315:20)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:8916) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:8916) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN iot@1.0.0 No description
npm WARN iot@1.0.0 No repository field.

+ aws-crt@1.6.0
added 215 packages from 157 contributors and audited 215 packages in 340.368s

7 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
marciopamplona commented 3 years ago

Reproducible with Raspbian 10.8

Raspberry Pi 4 Model B Rev 1.4
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"

Linux rpi4 5.10.17-v7l+ #1403 SMP Mon Feb 22 11:33:35 GMT 2021 armv7l GNU/Linux
TingDaoK commented 3 years ago

Hey, we just released a new version with the fix from underlying submodule that fixes some compiling issues. I tested it on a Raspberry Pi. So assuming it fixes the issue here. Feel free to reopen the issue if the latest version still not work.