aws / aws-lc-rs

aws-lc-rs is a cryptographic library using AWS-LC for its cryptographic operations. The library strives to be API-compatible with the popular Rust library named ring.
Other
323 stars 49 forks source link

aws-lc-sys failed to build for `aarch64-unknown-linux-gnu` #208

Closed secext2022 closed 1 year ago

secext2022 commented 1 year ago

Problem:

aws-lc-sys v0.9.0 failed to build for aarch64-unknown-linux-gnu

build command:

cross build --release --target aarch64-unknown-linux-gnu

Relevant details

AWS-LC for Rust versions or commit: aws-lc-sys v0.9.0

System information: for linux, below info can be collected by running uname -srvmp

Build log:

Caused by: process didn't exit successfully: /target/release/build/aws-lc-sys-49ae3abb0baf8cbc/build-script-main (exit status: 101) --- stdout cargo:rustc-cfg=use_bindgen_generated CMAKE_TOOLCHAIN_FILE_aarch64-unknown-linux-gnu = None CMAKE_TOOLCHAIN_FILE_aarch64_unknown_linux_gnu = None TARGET_CMAKE_TOOLCHAIN_FILE = None CMAKE_TOOLCHAIN_FILE = None CMAKE_GENERATOR_aarch64-unknown-linux-gnu = None CMAKE_GENERATOR_aarch64_unknown_linux_gnu = None TARGET_CMAKE_GENERATOR = None CMAKE_GENERATOR = None CMAKE_PREFIX_PATH_aarch64-unknown-linux-gnu = None CMAKE_PREFIX_PATH_aarch64_unknown_linux_gnu = None TARGET_CMAKE_PREFIX_PATH = None CMAKE_PREFIX_PATH = None CMAKE_aarch64-unknown-linux-gnu = None CMAKE_aarch64_unknown_linux_gnu = None TARGET_CMAKE = None CMAKE = Some("cmake") running: cd "/target/aarch64-unknown-linux-gnu/release/build/aws-lc-sys-24cbd6106098b311/out/build" && CMAKE_PREFIX_PATH="" "cmake" "/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.9.0" "-DBUILD_SHARED_LIBS=0" "-DCMAKE_BUILD_TYPE=release" "-DBORINGSSL_PREFIX=aws_lc_0_9_0" "-DBORINGSSL_PREFIX_HEADERS=/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.9.0/generated-include" "-DBUILD_TESTING=OFF" "-DBUILD_LIBSSL=OFF" "-DDISABLE_PERL=ON" "-DDISABLE_GO=ON" "-DCMAKE_SYSTEM_NAME=Linux" "-DCMAKE_SYSTEM_PROCESSOR=aarch64" "-DCMAKE_INSTALL_PREFIX=/target/aarch64-unknown-linux-gnu/release/build/aws-lc-sys-24cbd6106098b311/out" "-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections -fPIC" "-DCMAKE_C_COMPILER=/usr/bin/aarch64-linux-gnu-gcc" "-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections -fPIC" "-DCMAKE_CXX_COMPILER=/usr/bin/aarch64-linux-gnu-g++" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC" "-DCMAKE_ASM_COMPILER=/usr/bin/aarch64-linux-gnu-gcc" "--no-warn-unused-cli" Not searching for unused variables given on the command line. -- The C compiler identification is GNU 5.4.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/aarch64-linux-gnu-gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Go not found. Disabling some code generation and using pre-generated code in generated-src/ -- Perl not found. Disabling some code generation and using pre-generated code in generated-src/ -- Run check_run file_to_test 'memcmp_invalid_stripped_check.c', flag_to_set 'MEMCMP_INVALID_STRIPPED', and compile_flags '-O3 -DNDEBUG'. -- stdalign_check.c probe is positive, enabling AWS_LC_STDALIGN_AVAILABLE -- builtin_swap_check.c probe is positive, enabling AWS_LC_BUILTIN_SWAP_SUPPORTED -- The ASM compiler identification is GNU -- Found assembler: /usr/bin/aarch64-linux-gnu-gcc -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE
-- Configuring done -- Generating done -- Build files have been written to: /target/aarch64-unknown-linux-gnu/release/build/aws-lc-sys-24cbd6106098b311/out/build running: cd "/target/aarch64-unknown-linux-gnu/release/build/aws-lc-sys-24cbd6106098b311/out/build" && MAKEFLAGS="-j --jobserver-fds=7,8 --jobserver-auth=7,8" "cmake" "--build" "." "--target" "install" "--config" "Release" [ 0%] Built target boringssl_prefix_symbols Scanning dependencies of target crypto_objects [ 0%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/a_bitstr.c.o [ 0%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/a_bool.c.o [ 1%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/a_d2i_fp.c.o [ 1%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/a_dup.c.o [ 1%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/a_gentm.c.o [ 2%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/a_i2d_fp.c.o [ 2%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/a_int.c.o [ 2%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/a_mbstr.c.o [ 3%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/a_object.c.o [ 3%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/a_octet.c.o [ 3%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/a_strex.c.o [ 4%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/a_strnid.c.o [ 4%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/a_time.c.o [ 4%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/a_type.c.o [ 5%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/a_utctm.c.o [ 5%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/a_utf8.c.o [ 5%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/asn1_lib.c.o [ 6%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/asn1_par.c.o [ 6%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/asn_pack.c.o [ 6%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/f_int.c.o [ 7%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/f_string.c.o [ 7%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/tasn_dec.c.o [ 7%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/tasn_enc.c.o [ 8%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/tasn_fre.c.o [ 8%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/tasn_new.c.o [ 8%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/tasn_typ.c.o [ 9%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/tasn_utl.c.o [ 9%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/posix_time.c.o [ 9%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/base64/base64.c.o [ 10%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/bio/bio.c.o [ 10%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/bio/bio_mem.c.o [ 10%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/bio/connect.c.o [ 11%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/bio/fd.c.o [ 11%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/bio/file.c.o [ 11%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/bio/hexdump.c.o [ 11%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/bio/pair.c.o [ 12%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/bio/printf.c.o [ 12%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/bio/socket.c.o [ 12%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/bio/socket_helper.c.o [ 13%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/blake2/blake2.c.o [ 13%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/bn_extra/bn_asn1.c.o [ 13%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/bn_extra/convert.c.o [ 14%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/buf/buf.c.o [ 14%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/bytestring/asn1_compat.c.o [ 14%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/bytestring/ber.c.o [ 15%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/bytestring/cbb.c.o [ 15%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/bytestring/cbs.c.o [ 15%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/bytestring/unicode.c.o [ 16%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/chacha/chacha.c.o [ 16%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/cipher_extra/cipher_extra.c.o [ 16%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/cipher_extra/derive_key.c.o [ 17%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/cipher_extra/e_aesctrhmac.c.o [ 17%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/cipher_extra/e_aesgcmsiv.c.o [ 17%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/cipher_extra/e_chacha20poly1305.c.o [ 18%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/cipher_extra/e_aes_cbc_hmac_sha1.c.o [ 18%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/cipher_extra/e_aes_cbc_hmac_sha256.c.o [ 18%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/cipher_extra/e_des.c.o [ 19%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/cipher_extra/e_null.c.o [ 19%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/cipher_extra/e_rc2.c.o [ 19%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/cipher_extra/e_rc4.c.o [ 20%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/cipher_extra/e_tls.c.o [ 20%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/cipher_extra/tls_cbc.c.o [ 20%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/conf/conf.c.o [ 21%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/crypto.c.o [ 21%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/curve25519/curve25519.c.o [ 21%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/curve25519/curve25519_nohw.c.o [ 22%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/curve25519/spake25519.c.o [ 22%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/des/des.c.o [ 22%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/dh_extra/params.c.o [ 22%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/dh_extra/dh_asn1.c.o [ 23%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/digest_extra/digest_extra.c.o [ 23%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/dsa/dsa.c.o [ 23%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/dsa/dsa_asn1.c.o [ 24%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/ecdh_extra/ecdh_extra.c.o [ 24%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/ecdsa_extra/ecdsa_asn1.c.o [ 24%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/ec_extra/ec_asn1.c.o [ 25%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/ec_extra/ec_derive.c.o [ 25%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/ec_extra/hash_to_curve.c.o [ 25%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/err/err.c.o [ 26%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/err_data.c.o [ 26%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/engine/engine.c.o [ 26%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/evp_extra/evp_asn1.c.o [ 27%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/evp_extra/p_dsa_asn1.c.o [ 27%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/evp_extra/p_ec_asn1.c.o [ 27%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/evp_extra/p_ed25519.c.o [ 28%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/evp_extra/p_ed25519_asn1.c.o [ 28%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/evp_extra/p_kem.c.o [ 28%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/evp_extra/p_kem_asn1.c.o [ 29%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/evp_extra/p_rsa_asn1.c.o [ 29%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/evp_extra/p_x25519.c.o [ 29%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/evp_extra/p_x25519_asn1.c.o [ 30%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/evp_extra/p_methods.c.o [ 30%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/evp_extra/print.c.o [ 30%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/evp_extra/scrypt.c.o [ 31%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/evp_extra/sign.c.o [ 31%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/ex_data.c.o [ 31%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/hpke/hpke.c.o [ 32%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/hrss/hrss.c.o [ 32%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/kem/kem.c.o [ 32%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/kem/kem_methods.c.o [ 33%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/kyber/kyber512r3_ref.c.o [ 33%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/kyber/kyber768r3_ref.c.o [ 33%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/kyber/kyber1024r3_ref.c.o [ 33%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/kyber/pqcrystals_kyber_ref_common/fips.c.o [ 34%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/kyber/kem_kyber.c.o [ 34%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/lhash/lhash.c.o [ 34%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/mem.c.o [ 35%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/obj/obj.c.o [ 35%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/obj/obj_xref.c.o [ 35%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/ocsp/ocsp_asn.c.o [ 36%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/ocsp/ocsp_client.c.o [ 36%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/ocsp/ocsp_extension.c.o [ 36%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/ocsp/ocsp_http.c.o [ 37%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/ocsp/ocsp_lib.c.o [ 37%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/ocsp/ocsp_print.c.o [ 37%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/ocsp/ocsp_server.c.o [ 38%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/ocsp/ocsp_verify.c.o [ 38%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/pem/pem_all.c.o [ 38%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/pem/pem_info.c.o [ 39%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/pem/pem_lib.c.o [ 39%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/pem/pem_oth.c.o [ 39%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/pem/pem_pk8.c.o [ 40%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/pem/pem_pkey.c.o [ 40%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/pem/pem_x509.c.o [ 40%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/pem/pem_xaux.c.o [ 41%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/pkcs7/pkcs7.c.o [ 41%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/pkcs7/pkcs7_x509.c.o [ 41%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/pkcs8/pkcs8.c.o [ 42%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/pkcs8/pkcs8_x509.c.o [ 42%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/pkcs8/p5_pbev2.c.o [ 42%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/poly1305/poly1305.c.o [ 43%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/poly1305/poly1305_arm.c.o [ 43%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/poly1305/poly1305_vec.c.o [ 43%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/pool/pool.c.o [ 44%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/rand_extra/deterministic.c.o [ 44%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/rand_extra/forkunsafe.c.o [ 44%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/rand_extra/fuchsia.c.o [ 44%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/rand_extra/rand_extra.c.o [ 45%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/rand_extra/pq_custom_randombytes.c.o [ 45%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/rand_extra/windows.c.o [ 45%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/rc4/rc4.c.o [ 46%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/refcount_c11.c.o [ 46%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/refcount_lock.c.o [ 46%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/rsa_extra/rsa_asn1.c.o [ 47%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/rsa_extra/rsassa_pss_asn1.c.o [ 47%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/rsa_extra/rsa_print.c.o [ 47%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/stack/stack.c.o [ 48%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/siphash/siphash.c.o [ 48%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/thread.c.o [ 48%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/thread_none.c.o [ 49%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/thread_pthread.c.o [ 49%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/thread_win.c.o [ 49%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/trust_token/pmbtoken.c.o [ 50%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/trust_token/trust_token.c.o [ 50%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/trust_token/voprf.c.o [ 50%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/a_digest.c.o [ 51%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/a_sign.c.o [ 51%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/a_verify.c.o [ 51%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/algorithm.c.o [ 52%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/asn1_gen.c.o [ 52%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/by_dir.c.o [ 52%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/by_file.c.o [ 53%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/i2d_pr.c.o [ 53%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/name_print.c.o [ 53%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/policy.c.o [ 54%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/rsa_pss.c.o [ 54%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/t_crl.c.o [ 54%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/t_req.c.o [ 55%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/t_x509.c.o [ 55%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/t_x509a.c.o [ 55%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x509.c.o [ 55%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x509_att.c.o [ 56%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x509_cmp.c.o [ 56%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x509_d2.c.o [ 56%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x509_def.c.o [ 57%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x509_ext.c.o [ 57%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x509_lu.c.o [ 57%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x509_obj.c.o [ 58%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x509_req.c.o [ 58%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x509_set.c.o [ 58%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x509_trs.c.o [ 59%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x509_txt.c.o [ 59%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x509_v3.c.o [ 59%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x509_vfy.c.o [ 60%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x509_vpm.c.o [ 60%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x509cset.c.o [ 60%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x509name.c.o [ 61%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x509rset.c.o [ 61%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x509spki.c.o [ 61%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x_algor.c.o [ 62%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x_all.c.o [ 62%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x_attrib.c.o [ 62%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x_crl.c.o [ 63%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x_exten.c.o [ 63%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x_info.c.o [ 63%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x_name.c.o [ 64%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x_pkey.c.o [ 64%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x_pubkey.c.o [ 64%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x_req.c.o [ 65%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x_sig.c.o [ 65%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x_spki.c.o [ 65%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x_val.c.o [ 66%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x_x509.c.o [ 66%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x_x509a.c.o [ 66%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509v3/v3_akey.c.o [ 66%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509v3/v3_akeya.c.o [ 67%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509v3/v3_alt.c.o [ 67%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509v3/v3_bcons.c.o [ 67%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509v3/v3_bitst.c.o [ 68%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509v3/v3_conf.c.o [ 68%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509v3/v3_cpols.c.o [ 68%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509v3/v3_crld.c.o [ 69%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509v3/v3_enum.c.o [ 69%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509v3/v3_extku.c.o [ 69%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509v3/v3_genn.c.o [ 70%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509v3/v3_ia5.c.o [ 70%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509v3/v3_info.c.o [ 70%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509v3/v3_int.c.o [ 71%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509v3/v3_lib.c.o [ 71%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509v3/v3_ncons.c.o [ 71%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509v3/v3_ocsp.c.o [ 72%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509v3/v3_pcons.c.o [ 72%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509v3/v3_pmaps.c.o [ 72%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509v3/v3_prn.c.o [ 73%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509v3/v3_purp.c.o [ 73%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509v3/v3_skey.c.o [ 73%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509v3/v3_utl.c.o [ 74%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/decrepit/bio/base64_bio.c.o [ 74%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/decrepit/blowfish/blowfish.c.o [ 74%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/decrepit/cast/cast.c.o [ 75%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/decrepit/cast/cast_tables.c.o [ 75%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/decrepit/cfb/cfb.c.o [ 75%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/decrepit/dh/dh_decrepit.c.o [ 76%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/decrepit/evp/evp_do_all.c.o [ 76%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/decrepit/ripemd/ripemd.c.o [ 76%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/decrepit/rsa/rsa_decrepit.c.o [ 77%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/decrepit/x509/x509_decrepit.c.o [ 77%] Building ASM object aws-lc/crypto/CMakeFiles/crypto_objects.dir/chacha/chacha-armv8.S.o [ 77%] Building ASM object aws-lc/crypto/CMakeFiles/crypto_objects.dir/test/trampoline-armv8.S.o [ 77%] Building ASM object aws-lc/crypto/CMakeFiles/crypto_objects.dir/cipher_extra/chacha20_poly1305_armv8.S.o [ 77%] Built target crypto_objects [ 78%] Generating p521/bignum_tolebytes_p521.S.S [ 78%] Generating curve19/curve25519_x25519_byte.S.S [ 79%] Generating curve25519/curve25519_x25519_byte_alt.S.S [ 79%] Generating curve25519/curve25519_x25519base_byte.S.S [ 79%] Generating curve25519/curve25519_x25519base_byte_alt.S.S [ 80%] Generating p384/bignum_add_p384.S.S [ 80%] Generating p384/bignum_deamont_p384.S.S [ 80%] Generating p384/bignum_littleendian_6.S.S [ 80%] Generating p384/bignum_montmul_p384.S.S [ 81%] Generating p384/bignum_montmul_p384_alt.S.S [ 81%] Generating p384/bignum_montsqr_p384.S.S [ 81%] Generating p384/bignum_montsqr_p384_alt.S.S [ 81%] Generating p384/bignum_neg_p384.S.S [ 82%] Generating p384/bignum_nonzero_6.S.S [ 82%] Generating p384/bignum_sub_p384.S.S [ 83%] Generating p384/bignum_tomont_p384.S.S [ 83%] Generating p521/bignum_add_p521.S.S [ 83%] Generating p521/bignum_fromlebytes_p521.S.S [ 83%] Generating p521/bignum_mul_p521.S.S [ 84%] Generating p521/bignum_mul_p521_alt.S.S [ 84%] Generating p521/bignum_neg_p521.S.S [ 84%] Generating p521/bignum_sqr_p521.S.S [ 84%] Generating p521/bignum_sqr_p521_alt.S.S [ 85%] Generating p521/bignum_sub_p521.S.S Scanning dependencies of target fipsmodule [ 86%] Building C object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/bcm.c.o [ 86%] Building C object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/fips_shared_support.c.o [ 86%] Building C object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/cpucap/cpucap.c.o [ 87%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/aesv8-armx.S.o [ 87%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/aesv8-gcm-armv8.S.o [ 87%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/aesv8-gcm-armv8-unroll8.S.o [ 88%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/armv8-mont.S.o [ 88%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/bn-armv8.S.o [ 88%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/ghash-neon-armv8.S.o [ 88%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/ghashv8-armx.S.o [ 89%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/keccak1600-armv8.S.o [ 89%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/md5-armv8.S.o [ 89%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/p256-armv8-asm.S.o [ 90%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/p256_beeu-armv8-asm.S.o [ 90%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/sha1-armv8.S.o [ 90%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/sha256-armv8.S.o [ 91%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/sha512-armv8.S.o [ 91%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/vpaes-armv8.S.o [ 91%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/p384/bignum_add_p384.S.S.o [ 92%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/p384/bignum_sub_p384.S.S.o [ 92%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/p384/bignum_neg_p384.S.S.o [ 92%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/p384/bignum_tomont_p384.S.S.o [ 93%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/p384/bignum_deamont_p384.S.S.o [ 93%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/p384/bignum_montmul_p384.S.S.o [ 93%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/p384/bignum_montmul_p384_alt.S.S.o [ 94%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/p384/bignum_montsqr_p384.S.S.o [ 94%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/p384/bignum_montsqr_p384_alt.S.S.o [ 94%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/p384/bignum_nonzero_6.S.S.o [ 95%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/p384/bignum_littleendian_6.S.S.o [ 95%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/p521/bignum_add_p521.S.S.o [ 95%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/p521/bignum_sub_p521.S.S.o [ 96%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/p521/bignum_neg_p521.S.S.o [ 96%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/p521/bignum_mul_p521.S.S.o [ 96%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/p521/bignum_mul_p521_alt.S.S.o [ 97%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/p521/bignum_sqr_p521.S.S.o [ 97%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/p521/bignum_sqr_p521_alt.S.S.o [ 97%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/p521/bignum_tolebytes_p521.S.S.o [ 98%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/p521/bignum_fromlebytes_p521.S.S.o [ 98%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/curve25519/curve25519_x25519_byte.S.S.o [ 98%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/curve25519/curve25519_x25519_byte_alt.S.S.o [ 99%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/curve25519/curve25519_x25519base_byte.S.S.o [ 99%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/curve25519/curve25519_x25519base_byte_alt.S.S.o [ 99%] Built target fipsmodule [ 99%] Linking C static library ../../artifacts/libaws_lc_0_9_0crypto.a [ 99%] Built target crypto [ 99%] Building C object CMakeFiles/rust_wrapper.dir/rust_wrapper.c.o [100%] Linking C static library artifacts/libaws_lc_0_9_0rust_wrapper.a [100%] Built target rust_wrapper Install the project... -- Install configuration: "release" cargo:root=/target/aarch64-unknown-linux-gnu/release/build/aws-lc-sys-24cbd6106098b311/out

--- stderr Copying platform assembly files from /cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.9.0/aws-lc/generated-src/linux-aarch64/crypto/ to /target/aarch64-unknown-linux-gnu/release/build/aws-lc-sys-24cbd6106098b311/out/build/aws-lc/crypto /usr/aarch64-linux-gnu/include/stdio.h:33:11: fatal error: 'stddef.h' file not found thread 'main' panicked at ' A libclang function was called that is not supported by the loaded libclang instance.

  called function = `clang_getTranslationUnitTargetInfo`
  loaded `libclang` instance = 3.8.x

This crate only supports libclang 3.5 and later. The minimum libclang requirement for this particular function can be found here: https://docs.rs/clang-sys/latest/clang_sys/clang_getTranslationUnitTargetInfo/index.html

Instructions for installing libclang can be found here: https://rust-lang.github.io/rust-bindgen/requirements.html ', /cargo/registry/src/index.crates.io-6f17d22bba15001f/clang-sys-1.6.1/src/lib.rs:1735:1 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace warning: build failed, waiting for other jobs to finish... Error: Process completed with exit code 101.

justsmth commented 1 year ago

This failure appears to be due to our dependence on libclang for "bindgen" builds. However, bindgen shouldn't be needed when compiling for aarch64-unknown-linux-gnu, so I'm not sure why you see this error.

We build for aarch64-unknown-linux-gnu using cross in our CI. For our cross Docker images, we install libclang-dev. This might be what you're missing.(?)

secext2022 commented 1 year ago

Oh, I accidentally enable the bindgen feature on aws-lc-sys.
Now it build ok.

Thank you !