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
318 stars 49 forks source link

Compilation fails for release mode on `powerpc64le-unknown-linux-gnu` #574

Closed rjzak closed 1 week ago

rjzak commented 3 weeks ago

Problem:

Trying to compile MalwareDB v0.0.15 for powerpc64le-unknown-linux-gnu.

Relevant details

AWS-LC for Rust version: aws-lc-sys-0.22.0 Rust: 1.82.0

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

Build log:


warning: `malwaredb-types` (lib) generated 2 warnings (2 duplicates)
The following warnings were emitted during compilation:

warning: aws-lc-sys@0.22.0: Building with: CMake
warning: aws-lc-sys@0.22.0: Symbol Prefix: Some("aws_lc_0_22_0")
warning: aws-lc-sys@0.22.0: CMAKE environment variable set: cmake
warning: aws-lc-sys@0.22.0: Generating bindings - internal bindgen. Platform: powerpc64le-unknown-linux-gnu
warning: aws-lc-sys@0.22.0: Compilation of 'c11.c' succeeded - Ok(["/home/rjzak/CLionProjects/MalwareDB/malwaredb/target/release/build/aws-lc-sys-24595ac7d7720a3a/out/out-c11/c461c4e08593ccee-c11.o"]).
warning: aws-lc-sys@0.22.0: Setting CFLAGS: "-O3 -ffunction-sections -fdata-sections -fPIC -m64 -std=c11 -I /home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0/generated-include -I /home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0/include -I /home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0/aws-lc/include -I /home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0/aws-lc/third_party/s2n-bignum/include -Wall -Wextra -Wno-unused-parameter -lpthread -ffile-prefix-map=/home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0= -D_XOPEN_SOURCE=700 -DBORINGSSL_IMPLEMENTATION=1 -DBORINGSSL_PREFIX=aws_lc_0_22_0"

error: failed to run custom build command for `aws-lc-sys v0.22.0`

Caused by:
  process didn't exit successfully: `/home/rjzak/CLionProjects/MalwareDB/malwaredb/target/release/build/aws-lc-sys-6c511a23779df5bf/build-script-main` (exit status: 101)
  --- stdout
  cargo:rerun-if-env-changed=AWS_LC_SYS_NO_PREFIX
  cargo:rerun-if-env-changed=AWS_LC_SYS_PREGENERATING_BINDINGS
  cargo:rerun-if-env-changed=AWS_LC_SYS_EXTERNAL_BINDGEN
  cargo:rerun-if-env-changed=AWS_LC_SYS_NO_ASM
  cargo:rerun-if-env-changed=AWS_LC_SYS_CFLAGS
  cargo:rerun-if-env-changed=AWS_LC_SYS_PREBUILT_NASM
  cargo:rerun-if-env-changed=AWS_LC_SYS_C_STD
  cargo:rerun-if-env-changed=AWS_LC_SYS_CMAKE_BUILDER
  cargo:rerun-if-env-changed=AWS_LC_SYS_STATIC
  cargo:rerun-if-env-changed=CMAKE
  cargo:warning=Building with: CMake
  cargo:warning=Symbol Prefix: Some("aws_lc_0_22_0")
  cargo:rerun-if-env-changed=CMAKE
  cargo:warning=CMAKE environment variable set: cmake
  cargo:warning=Generating bindings - internal bindgen. Platform: powerpc64le-unknown-linux-gnu
  cargo:rerun-if-env-changed=AWS_LC_SYS_INCLUDES
  cargo:rustc-cfg=use_bindgen_generated
  cargo:rerun-if-env-changed=AWS_LC_SYS_STATIC
  OPT_LEVEL = Some(3)
  TARGET = Some(powerpc64le-unknown-linux-gnu)
  HOST = Some(powerpc64le-unknown-linux-gnu)
  cargo:rerun-if-env-changed=CC_powerpc64le-unknown-linux-gnu
  CC_powerpc64le-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CC_powerpc64le_unknown_linux_gnu
  CC_powerpc64le_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_CC
  HOST_CC = None
  cargo:rerun-if-env-changed=CC
  CC = None
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  RUSTC_WRAPPER = None
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some(false)
  CARGO_CFG_TARGET_FEATURE = None
  cargo:rerun-if-env-changed=CFLAGS_powerpc64le-unknown-linux-gnu
  CFLAGS_powerpc64le-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CFLAGS_powerpc64le_unknown_linux_gnu
  CFLAGS_powerpc64le_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_CFLAGS
  HOST_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  OPT_LEVEL = Some(3)
  TARGET = Some(powerpc64le-unknown-linux-gnu)
  HOST = Some(powerpc64le-unknown-linux-gnu)
  cargo:rerun-if-env-changed=CC_powerpc64le-unknown-linux-gnu
  CC_powerpc64le-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CC_powerpc64le_unknown_linux_gnu
  CC_powerpc64le_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_CC
  HOST_CC = None
  cargo:rerun-if-env-changed=CC
  CC = None
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  RUSTC_WRAPPER = None
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some(false)
  CARGO_CFG_TARGET_FEATURE = None
  cargo:rerun-if-env-changed=CFLAGS_powerpc64le-unknown-linux-gnu
  CFLAGS_powerpc64le-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CFLAGS_powerpc64le_unknown_linux_gnu
  CFLAGS_powerpc64le_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_CFLAGS
  HOST_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  cargo:warning=Compilation of 'c11.c' succeeded - Ok(["/home/rjzak/CLionProjects/MalwareDB/malwaredb/target/release/build/aws-lc-sys-24595ac7d7720a3a/out/out-c11/c461c4e08593ccee-c11.o"]).
  cargo:rerun-if-env-changed=CC
  cargo:rerun-if-env-changed=CXX
  OUT_DIR = Some(/home/rjzak/CLionProjects/MalwareDB/malwaredb/target/release/build/aws-lc-sys-24595ac7d7720a3a/out)
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = None
  HOST = Some(powerpc64le-unknown-linux-gnu)
  cargo:rerun-if-env-changed=CFLAGS_powerpc64le-unknown-linux-gnu
  CFLAGS_powerpc64le-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CFLAGS_powerpc64le_unknown_linux_gnu
  CFLAGS_powerpc64le_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_CFLAGS
  HOST_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  cargo:warning=Setting CFLAGS: "-O3 -ffunction-sections -fdata-sections -fPIC -m64 -std=c11 -I /home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0/generated-include -I /home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0/include -I /home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0/aws-lc/include -I /home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0/aws-lc/third_party/s2n-bignum/include -Wall -Wextra -Wno-unused-parameter -lpthread -ffile-prefix-map=/home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0= -D_XOPEN_SOURCE=700 -DBORINGSSL_IMPLEMENTATION=1 -DBORINGSSL_PREFIX=aws_lc_0_22_0"
  cargo:rerun-if-env-changed=CMAKE_TOOLCHAIN_FILE
  cargo:rerun-if-env-changed=CMAKE_TOOLCHAIN_FILE_powerpc64le_unknown_linux_gnu
  CMAKE_TOOLCHAIN_FILE_powerpc64le-unknown-linux-gnu = None
  CMAKE_TOOLCHAIN_FILE_powerpc64le_unknown_linux_gnu = None
  HOST_CMAKE_TOOLCHAIN_FILE = None
  CMAKE_TOOLCHAIN_FILE = None
  CMAKE_GENERATOR_powerpc64le-unknown-linux-gnu = None
  CMAKE_GENERATOR_powerpc64le_unknown_linux_gnu = None
  HOST_CMAKE_GENERATOR = None
  CMAKE_GENERATOR = None
  CMAKE_PREFIX_PATH_powerpc64le-unknown-linux-gnu = None
  CMAKE_PREFIX_PATH_powerpc64le_unknown_linux_gnu = None
  HOST_CMAKE_PREFIX_PATH = None
  CMAKE_PREFIX_PATH = None
  CMAKE_powerpc64le-unknown-linux-gnu = None
  CMAKE_powerpc64le_unknown_linux_gnu = None
  HOST_CMAKE = None
  CMAKE = Some("cmake")
  running: cd "/home/rjzak/CLionProjects/MalwareDB/malwaredb/target/release/build/aws-lc-sys-24595ac7d7720a3a/out/build" && CMAKE_PREFIX_PATH="" "cmake" "/home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0" "-DBUILD_SHARED_LIBS=0" "-DCMAKE_BUILD_TYPE=release" "-DBORINGSSL_PREFIX=aws_lc_0_22_0_" "-DBORINGSSL_PREFIX_HEADERS=/home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0/generated-include" "-DBUILD_TESTING=OFF" "-DBUILD_LIBSSL=OFF" "-DDISABLE_PERL=ON" "-DDISABLE_GO=ON" "-DCMAKE_INSTALL_PREFIX=/home/rjzak/CLionProjects/MalwareDB/malwaredb/target/release/build/aws-lc-sys-24595ac7d7720a3a/out" "-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64 -ffunction-sections -fdata-sections -fPIC -m64 -std=c11 -I /home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0/generated-include -I /home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0/include -I /home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0/aws-lc/include -I /home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0/aws-lc/third_party/s2n-bignum/include -Wall -Wextra -Wno-unused-parameter -lpthread -ffile-prefix-map=/home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0= -D_XOPEN_SOURCE=700 -DBORINGSSL_IMPLEMENTATION=1 -DBORINGSSL_PREFIX=aws_lc_0_22_0" "-DCMAKE_C_COMPILER=/usr/bin/cc" "-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_CXX_COMPILER=/usr/bin/c++" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64 -ffunction-sections -fdata-sections -fPIC -m64 -std=c11 -I /home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0/generated-include -I /home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0/include -I /home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0/aws-lc/include -I /home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0/aws-lc/third_party/s2n-bignum/include -Wall -Wextra -Wno-unused-parameter -lpthread -ffile-prefix-map=/home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0= -D_XOPEN_SOURCE=700 -DBORINGSSL_IMPLEMENTATION=1 -DBORINGSSL_PREFIX=aws_lc_0_22_0" "-DCMAKE_ASM_COMPILER=/usr/bin/cc" "--no-warn-unused-cli"
  Not searching for unused variables given on the command line.
  -- The C compiler identification is GNU 12.2.0
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: /usr/bin/cc - skipped
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Checking for module 'libunwind-generic'
  --   Found libunwind-generic, version 1.6.2
  -- 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/
  -- Prefix build configured: performing build using prefix "aws_lc_0_22_0_" and headers path "/home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0/generated-include"
  -- Run check_run file_to_test 'memcmp_invalid_stripped_check.c', flag_to_set 'MEMCMP_INVALID_STRIPPED', and compile_flags '-O3 -DNDEBUG'.
  -- Setting CMAKE_C_STANDARD=11
  -- 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/cc
  -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
  -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
  -- Found Threads: TRUE  
  -- Configuring done
  -- Generating done
  -- Build files have been written to: /home/rjzak/CLionProjects/MalwareDB/malwaredb/target/release/build/aws-lc-sys-24595ac7d7720a3a/out/build
  running: cd "/home/rjzak/CLionProjects/MalwareDB/malwaredb/target/release/build/aws-lc-sys-24595ac7d7720a3a/out/build" && MAKEFLAGS="-j --jobserver-fds=8,9 --jobserver-auth=8,9" "cmake" "--build" "." "--target" "install" "--config" "Release"
  [  0%] Built target boringssl_prefix_symbols
  [  1%] Building C object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/fips_shared_support.c.o
  [  1%] Building C object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/cpucap/cpucap.c.o
  [  1%] Building C object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/bcm.c.o
  [  2%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/ghashp8-ppc.S.o
  [  2%] Building ASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/aesp8-ppc.S.o
  [  3%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/a_gentm.c.o
  [  3%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/a_bitstr.c.o
  [  3%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/a_bool.c.o
  [  3%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/a_d2i_fp.c.o
  [  3%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/a_i2d_fp.c.o
  [  4%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/a_dup.c.o
  [  5%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/a_int.c.o
  [  6%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/a_octet.c.o
  [  6%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/a_object.c.o
  [  6%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/a_mbstr.c.o
  [  6%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/a_strex.c.o
  [  7%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/a_strnid.c.o
  [  7%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/a_utctm.c.o
  [  8%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/a_type.c.o
  [  9%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/asn1_lib.c.o
  [  9%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/a_utf8.c.o
  [  9%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/a_time.c.o
  [  9%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/f_int.c.o
  [  9%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/f_string.c.o
  [  9%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/asn1_par.c.o
  [ 11%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/asn_pack.c.o
  [ 11%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/tasn_dec.c.o
  [ 11%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/tasn_typ.c.o
  [ 11%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/tasn_new.c.o
  [ 11%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/tasn_enc.c.o
  [ 12%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/tasn_fre.c.o
  [ 12%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/posix_time.c.o
  [ 12%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/bio/bio.c.o
  [ 14%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/base64/base64.c.o
  [ 14%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/asn1/tasn_utl.c.o
  [ 14%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/bio/bio_mem.c.o
  [ 15%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/bio/file.c.o
  [ 15%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/bio/hexdump.c.o
  [ 17%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/bio/fd.c.o
  [ 17%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/bio/connect.c.o
  [ 17%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/bio/pair.c.o
  [ 17%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/bio/errno.c.o
  [ 17%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/bio/printf.c.o
  [ 18%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/blake2/blake2.c.o
  [ 18%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/bio/socket_helper.c.o
  [ 18%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/bn_extra/bn_asn1.c.o
  [ 20%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/bio/socket.c.o
  [ 20%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/bn_extra/convert.c.o
  [ 20%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/buf/buf.c.o
  [ 21%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/bytestring/cbb.c.o
  [ 21%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/bytestring/cbs.c.o
  [ 21%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/bytestring/ber.c.o
  [ 21%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/bytestring/asn1_compat.c.o
  [ 22%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/chacha/chacha.c.o
  [ 23%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/cipher_extra/derive_key.c.o
  [ 23%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/bytestring/unicode.c.o
  [ 23%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/cipher_extra/cipher_extra.c.o
  [ 23%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/cipher_extra/e_chacha20poly1305.c.o
  [ 24%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/cipher_extra/e_aes_cbc_hmac_sha256.c.o
  [ 24%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/cipher_extra/e_rc2.c.o
  [ 25%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/cipher_extra/e_aesgcmsiv.c.o
  [ 25%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/cipher_extra/e_aesctrhmac.c.o
  [ 25%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/cipher_extra/e_des.c.o
  [ 26%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/cipher_extra/e_null.c.o
  [ 26%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/cipher_extra/e_aes_cbc_hmac_sha1.c.o
  [ 27%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/cipher_extra/e_rc4.c.o
  [ 27%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/cipher_extra/e_tls.c.o
  [ 28%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/conf/conf.c.o
  [ 28%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/cipher_extra/tls_cbc.c.o
  [ 29%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/crypto.c.o
  [ 29%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/des/des.c.o
  [ 30%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/digest_extra/digest_extra.c.o
  [ 30%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/dh_extra/params.c.o
  [ 30%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/dh_extra/dh_asn1.c.o
  [ 31%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/dsa/dsa.c.o
  [ 31%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/dsa/dsa_asn1.c.o
  [ 31%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/ecdsa_extra/ecdsa_asn1.c.o
  [ 32%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/ec_extra/ec_asn1.c.o
  [ 32%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/ecdh_extra/ecdh_extra.c.o
  [ 32%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/ec_extra/ec_derive.c.o
  [ 33%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/err_data.c.o
  [ 33%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/ec_extra/hash_to_curve.c.o
  [ 33%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/evp_extra/evp_asn1.c.o
  [ 34%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/engine/engine.c.o
  [ 34%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/err/err.c.o
  [ 34%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/evp_extra/p_dh_asn1.c.o
  [ 35%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/evp_extra/p_dh.c.o
  [ 35%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/evp_extra/p_dsa_asn1.c.o
  [ 36%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/evp_extra/p_ec_asn1.c.o
  [ 36%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/evp_extra/p_ed25519_asn1.c.o
  [ 36%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/evp_extra/p_kem_asn1.c.o
  [ 36%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/evp_extra/p_rsa_asn1.c.o
  [ 36%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/evp_extra/p_x25519_asn1.c.o
  [ 37%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/evp_extra/p_x25519.c.o
  [ 38%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/evp_extra/p_methods.c.o
  [ 38%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/evp_extra/print.c.o
  [ 39%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/evp_extra/p_hmac_asn1.c.o
  [ 39%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/evp_extra/scrypt.c.o
  [ 39%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/ex_data.c.o
  [ 40%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/evp_extra/sign.c.o
  [ 40%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/hrss/hrss.c.o
  [ 40%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/kyber/kyber512r3_ref.c.o
  [ 42%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/kyber/kyber768r3_ref.c.o
  [ 42%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/hpke/hpke.c.o
  [ 42%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/kyber/kyber1024r3_ref.c.o
  [ 43%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/lhash/lhash.c.o
  [ 43%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/kyber/pqcrystals_kyber_ref_common/fips202.c.o
  [ 43%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/kyber/kem_kyber.c.o
  [ 43%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/obj/obj.c.o
  [ 44%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/mem.c.o
  [ 45%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/obj/obj_xref.c.o
  [ 45%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/ocsp/ocsp_asn.c.o
  [ 45%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/ocsp/ocsp_client.c.o
  [ 46%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/ocsp/ocsp_extension.c.o
  [ 46%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/ocsp/ocsp_http.c.o
  [ 47%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/ocsp/ocsp_lib.c.o
  [ 47%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/ocsp/ocsp_server.c.o
  [ 47%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/ocsp/ocsp_print.c.o
  [ 49%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/pem/pem_oth.c.o
  [ 49%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/pem/pem_info.c.o
  [ 49%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/ocsp/ocsp_verify.c.o
  [ 49%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/pem/pem_all.c.o
  [ 49%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/pem/pem_lib.c.o
  [ 50%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/pem/pem_pk8.c.o
  [ 50%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/pem/pem_pkey.c.o
  [ 51%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/pem/pem_x509.c.o
  [ 51%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/pem/pem_xaux.c.o
  [ 52%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/pkcs7/pkcs7.c.o
  [ 52%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/pkcs7/pkcs7_asn1.c.o
  [ 52%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/pkcs7/pkcs7_x509.c.o
  [ 52%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/pkcs8/pkcs8_x509.c.o
  [ 53%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/pkcs8/pkcs8.c.o
  [ 54%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/pkcs8/p5_pbev2.c.o
  [ 54%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/poly1305/poly1305_arm.c.o
  [ 54%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/pool/pool.c.o
  [ 54%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/poly1305/poly1305.c.o
  [ 55%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/poly1305/poly1305_vec.c.o
  [ 56%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/rand_extra/deterministic.c.o
  [ 56%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/rand_extra/entropy_passive.c.o
  [ 56%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/rand_extra/forkunsafe.c.o
  [ 57%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/rand_extra/fuchsia.c.o
  [ 57%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/rand_extra/rand_extra.c.o
  [ 58%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/rand_extra/pq_custom_randombytes.c.o
  [ 58%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/rand_extra/windows.c.o
  [ 58%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/rand_extra/trusty.c.o
  [ 59%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/rc4/rc4.c.o
  [ 59%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/refcount_c11.c.o
  [ 60%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/refcount_lock.c.o
  [ 60%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/rsa_extra/rsa_asn1.c.o
  [ 60%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/refcount_win.c.o
  [ 61%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/rsa_extra/rsassa_pss_asn1.c.o
  [ 61%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/rsa_extra/rsa_crypt.c.o
  [ 62%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/rsa_extra/rsa_print.c.o
  [ 62%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/stack/stack.c.o
  [ 62%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/siphash/siphash.c.o
  [ 62%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/thread.c.o
  [ 63%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/spake25519/spake25519.c.o
  [ 64%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/thread_pthread.c.o
  [ 64%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/thread_none.c.o
  [ 64%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/thread_win.c.o
  [ 65%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/trust_token/pmbtoken.c.o
  [ 65%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/trust_token/trust_token.c.o
  [ 66%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/trust_token/voprf.c.o
  [ 66%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/a_digest.c.o
  [ 66%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/a_sign.c.o
  [ 66%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/algorithm.c.o
  [ 67%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/a_verify.c.o
  [ 69%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/asn1_gen.c.o
  [ 69%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/by_file.c.o
  [ 69%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/i2d_pr.c.o
  [ 69%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/by_dir.c.o
  [ 69%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/name_print.c.o
  [ 70%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/policy.c.o
  [ 70%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/t_crl.c.o
  [ 70%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/rsa_pss.c.o
  [ 71%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/t_req.c.o
  [ 71%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/t_x509.c.o
  [ 72%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/t_x509a.c.o
  [ 72%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/v3_akey.c.o
  [ 73%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/v3_akeya.c.o
  [ 73%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/v3_alt.c.o
  [ 74%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/v3_bitst.c.o
  [ 74%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/v3_conf.c.o
  [ 74%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/v3_bcons.c.o
  [ 74%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/v3_cpols.c.o
  [ 75%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/v3_crld.c.o
  [ 76%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/v3_extku.c.o
  [ 76%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/v3_enum.c.o
  [ 77%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/v3_ia5.c.o
  [ 77%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/v3_genn.c.o
  [ 77%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/v3_info.c.o
  [ 77%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/v3_int.c.o
  [ 78%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/v3_lib.c.o
  [ 78%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/v3_ncons.c.o
  [ 79%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/v3_pmaps.c.o
  [ 79%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/v3_pcons.c.o
  [ 79%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/v3_ocsp.c.o
  [ 79%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/v3_purp.c.o
  [ 80%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/v3_prn.c.o
  [ 80%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/v3_utl.c.o
  [ 81%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/v3_skey.c.o
  [ 82%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x_all.c.o
  [ 82%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x_algor.c.o
  [ 82%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x_attrib.c.o
  [ 83%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x_crl.c.o
  [ 83%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x_exten.c.o
  [ 83%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x_name.c.o
  [ 84%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x_pubkey.c.o
  [ 84%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x_req.c.o
  [ 85%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x_sig.c.o
  [ 85%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x_val.c.o
  [ 85%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x_spki.c.o
  [ 85%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x509_d2.c.o
  [ 85%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x509_cmp.c.o
  [ 85%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x_x509a.c.o
  [ 86%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x509_att.c.o
  [ 87%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x_x509.c.o
  [ 88%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x509_def.c.o
  [ 88%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x509_ext.c.o
  [ 90%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x509_lu.c.o
  [ 90%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x509_trs.c.o
  [ 90%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x509_req.c.o
  [ 90%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x509_set.c.o
  [ 91%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x509_txt.c.o
  [ 91%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x509_obj.c.o
  [ 91%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x509_v3.c.o
  [ 91%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x509_vfy.c.o
  [ 92%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x509_vpm.c.o
  [ 92%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x509.c.o
  [ 93%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x509cset.c.o
  [ 93%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x509name.c.o
  [ 93%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x509rset.c.o
  [ 93%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/decrepit/bio/base64_bio.c.o
  [ 94%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/decrepit/cast/cast.c.o
  [ 94%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/decrepit/blowfish/blowfish.c.o
  [ 95%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/x509/x509spki.c.o
  [ 96%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/decrepit/cfb/cfb.c.o
  [ 96%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/decrepit/dh/dh_decrepit.c.o
  [ 96%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/decrepit/cast/cast_tables.c.o
  [ 97%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/decrepit/evp/evp_do_all.c.o
  [ 97%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/decrepit/obj/obj_decrepit.c.o
  [ 97%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/decrepit/ripemd/ripemd.c.o
  [ 97%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/decrepit/x509/x509_decrepit.c.o
  [ 98%] Building C object aws-lc/crypto/CMakeFiles/crypto_objects.dir/decrepit/rsa/rsa_decrepit.c.o
  [ 99%] Building ASM object aws-lc/crypto/CMakeFiles/crypto_objects.dir/test/trampoline-ppc.S.o
  [ 99%] Built target crypto_objects

  --- stderr
  Copying platform assembly files from /home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0/aws-lc/generated-src/linux-ppc64le/crypto/ to /home/rjzak/CLionProjects/MalwareDB/malwaredb/target/release/build/aws-lc-sys-24595ac7d7720a3a/out/build/aws-lc/crypto
  In file included from /home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0/aws-lc/crypto/fipsmodule/bcm.c:132:
  /home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0/aws-lc/crypto/fipsmodule/modes/gcm.c: In function ‘aws_lc_0_22_0_CRYPTO_gcm128_aad’:
  /home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0/aws-lc/crypto/fipsmodule/modes/gcm.c:428:18: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
    428 |       ctx->Xi[i] ^= aad[i];
        |       ~~~~~~~~~~~^~~~~~~~~
  In file included from /home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0/aws-lc/crypto/fipsmodule/aes/aes.c:54,
                   from /home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0/aws-lc/crypto/fipsmodule/bcm.c:43:
  /home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0/aws-lc/crypto/fipsmodule/aes/../modes/internal.h:172:11: note: at offset 16 into destination object ‘Xi’ of size 16
    172 |   uint8_t Xi[16];
        |           ^~
  /home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0/aws-lc/crypto/fipsmodule/modes/gcm.c:428:18: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
    428 |       ctx->Xi[i] ^= aad[i];
        |       ~~~~~~~~~~~^~~~~~~~~
  /home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0/aws-lc/crypto/fipsmodule/aes/../modes/internal.h:172:11: note: at offset 17 into destination object ‘Xi’ of size 16
    172 |   uint8_t Xi[16];
        |           ^~
  /home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0/aws-lc/crypto/fipsmodule/modes/gcm.c: In function ‘aws_lc_0_22_0_CRYPTO_gcm128_encrypt_ctr32’:
  /home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0/aws-lc/crypto/fipsmodule/modes/gcm.c:688:18: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
    688 |       ctx->Xi[n] ^= out[n] = in[n] ^ ctx->EKi[n];
        |                  ^~
  /home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0/aws-lc/crypto/fipsmodule/aes/../modes/internal.h:172:11: note: at offset 16 into destination object ‘Xi’ of size 16
    172 |   uint8_t Xi[16];
        |           ^~
  /home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0/aws-lc/crypto/fipsmodule/modes/gcm.c:688:18: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
    688 |       ctx->Xi[n] ^= out[n] = in[n] ^ ctx->EKi[n];
        |                  ^~
  /home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0/aws-lc/crypto/fipsmodule/aes/../modes/internal.h:172:11: note: at offset 17 into destination object ‘Xi’ of size 16
    172 |   uint8_t Xi[16];
        |           ^~
  /home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0/aws-lc/crypto/fipsmodule/modes/gcm.c: In function ‘aws_lc_0_22_0_CRYPTO_gcm128_decrypt_ctr32’:
  /home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0/aws-lc/crypto/fipsmodule/modes/gcm.c:785:18: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
    785 |       ctx->Xi[n] ^= c;
        |       ~~~~~~~~~~~^~~~
  /home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0/aws-lc/crypto/fipsmodule/aes/../modes/internal.h:172:11: note: at offset 16 into destination object ‘Xi’ of size 16
    172 |   uint8_t Xi[16];
        |           ^~
  /home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0/aws-lc/crypto/fipsmodule/modes/gcm.c:785:18: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
    785 |       ctx->Xi[n] ^= c;
        |       ~~~~~~~~~~~^~~~
  /home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.22.0/aws-lc/crypto/fipsmodule/aes/../modes/internal.h:172:11: note: at offset 17 into destination object ‘Xi’ of size 16
    172 |   uint8_t Xi[16];
        |           ^~
  At top level:
  cc1: note: unrecognized command-line option ‘-Wno-c11-extensions’ may have been intended to silence earlier diagnostics
  cc1: all warnings being treated as errors
  gmake[2]: *** [aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/build.make:76: aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/bcm.c.o] Error 1
  gmake[1]: *** [CMakeFiles/Makefile2:258: aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/all] Error 2
  gmake: *** [Makefile:136: all] Error 2
  thread 'main' panicked at /home/rjzak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cmake-0.1.51/src/lib.rs:1100:5:

  command did not execute successfully, got: exit status: 2

  build script failed, must exit now
...
justsmth commented 1 week ago

Thanks for reporting this issue. I apologize for the delayed response.

I see that the C compiler for this build is "GNU 12.2.0". We have a CI job to build/test for powerpc64le-unknown-linux-gnu, but it seems to use a different C compiler version.

One potential workaround for this issue is to set the AWS_LC_SYS_CFLAGS so that this error/warning is ignored.

export AWS_LC_SYS_CFLAGS="-Wno-stringop-overflow"

For example, we have a similar build issue for riscv in our CI, you can see our mitigation for it here: https://github.com/aws/aws-lc-rs/blob/5f19caea9e4be0dd8ec1999ba449093f903769b2/.github/workflows/cross.yml#L61-L67

We'll look into whether changes need to be made upstream in AWS-LC to correct this warning.

justsmth commented 1 week ago

aws-lc-rs v1.11.0 has now been released. We believe this release addresses the problem reported here.

We will now close this issue. Feel free to re-open it (or open another) if you continue to see a problem after upgrading. Thanks again for reporting this issue!

rjzak commented 1 week ago

Thanks!