Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross-compilation to armv7l failed #632

Open
xavierfortier1 opened this issue Dec 14, 2024 · 3 comments
Open

Cross-compilation to armv7l failed #632

xavierfortier1 opened this issue Dec 14, 2024 · 3 comments
Labels
build problem Build failure

Comments

@xavierfortier1
Copy link

Problem:

I am trying to cross compile spotify-player for armv7l and building aws-lc-sys breaks. I have all the dependencies to build it and every package used with their version is in the beginning of the log and the error is at the end.

Relevant details

AWS-LC for Rust version: v1.11.1

System information:

  • CPU architecture host: x86_64
  • CPU architecture target: armv7l
  • name: Intel Core i7-8550u
  • OS: Void Linux
Logs
 > ./xbps-src -a armv7l pkg spotify-player
=> xbps-src: updating repositories for host (x86_64)...
[*] Updating repository `https://repo-default.voidlinux.org/current/bootstrap/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/nonfree/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/debug/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/bootstrap/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/nonfree/x86_64-repodata' ...
=> xbps-src: updating repositories for target (armv7l)...
[*] Updating repository `https://repo-default.voidlinux.org/current/bootstrap/armv7l-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/armv7l-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/nonfree/armv7l-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/debug/armv7l-repodata' ...
=> xbps-src: updating software in / masterdir...
=> xbps-src: cleaning up / masterdir...
=> spotify-player-0.20.3_1: removing autodeps, please wait...
=> spotify-player-0.20.3_1: removing autocrossdeps, please wait...
=> spotify-player-0.20.3_1: building with [cargo] [rust] for armv7l...
   [host] pkg-config-0.29.2_3: found (https://repo-default.voidlinux.org/current)
   [host] cmake-3.30.1_1: found (https://repo-default.voidlinux.org/current)
   [host] rust-bindgen-0.71.1_1: found (/host/binpkgs/spotify-player)
   [host] clang-17_5: found (https://repo-default.voidlinux.org/current)
   [host] cargo-1.82.0_2: found (https://repo-default.voidlinux.org/current)
   [host] cargo-auditable-0.6.6_1: found (https://repo-default.voidlinux.org/current)
   [target] alsa-lib-devel-1.2.12_1: found (https://repo-default.voidlinux.org/current)
   [target] dbus-devel-1.14.10_1: found (https://repo-default.voidlinux.org/current)
   [target] libxcb-devel-1.16.1_1: found (https://repo-default.voidlinux.org/current)
   [target] openssl-devel-3.3.2_1: found (https://repo-default.voidlinux.org/current)
   [target] rust-std-1.82.0_3: found (https://repo-default.voidlinux.org/current)
=> spotify-player-0.20.3_1: installing host dependencies: pkg-config-0.29.2_3 cmake-3.30.1_1 rust-bindgen-0.71.1_1 clang-17_5 cargo-1.82.0_2 cargo-auditable-0.6.6_1 ...
=> spotify-player-0.20.3_1: installing target dependencies: alsa-lib-devel-1.2.12_1 dbus-devel-1.14.10_1 libxcb-devel-1.16.1_1 openssl-devel-3.3.2_1 rust-std-1.82.0_3 ...
=> spotify-player-0.20.3_1: running do-fetch hook: 00-distfiles ...
=> spotify-player-0.20.3_1: running do-extract hook: 00-distfiles ...
=> spotify-player-0.20.3_1: extracting distfile(s), please wait...
=> spotify-player-0.20.3_1: running do-patch hook: 00-patches ...
=> spotify-player-0.20.3_1: running pre-configure hook: 00-gnu-configure-asneeded ...
=> spotify-player-0.20.3_1: running pre-configure hook: 01-override-config ...
=> spotify-player-0.20.3_1: running pre-configure hook: 02-script-wrapper ...
=> spotify-player-0.20.3_1: running pre-build hook: 02-script-wrapper ...
=> spotify-player-0.20.3_1: running do_build ...
   Compiling proc-macro2 v1.0.92
   Compiling unicode-ident v1.0.14
   Compiling libc v0.2.167
   Compiling cfg-if v1.0.0
   Compiling autocfg v1.4.0
   Compiling scopeguard v1.2.0
   Compiling memchr v2.7.4
   Compiling log v0.4.22
   Compiling shlex v1.3.0
   Compiling allocator-api2 v0.2.21
   Compiling foldhash v0.1.3
   Compiling equivalent v1.0.1
   Compiling smallvec v1.13.2
   Compiling adler2 v2.0.0
   Compiling gimli v0.31.1
   Compiling miniz_oxide v0.8.0
   Compiling once_cell v1.20.2
   Compiling lock_api v0.4.12
   Compiling hashbrown v0.15.2
   Compiling object v0.36.5
   Compiling rustc-demangle v0.1.24
   Compiling spin v0.9.8
   Compiling quote v1.0.37
   Compiling indexmap v2.7.0
   Compiling syn v2.0.90
   Compiling fixedbitset v0.4.2
   Compiling parking_lot_core v0.9.10
   Compiling jobserver v0.1.32
   Compiling thread-id v4.2.2
   Compiling getrandom v0.2.15
   Compiling cc v1.2.2
   Compiling petgraph v0.6.5
   Compiling pin-project-lite v0.2.15
   Compiling bytes v1.9.0
   Compiling itoa v1.0.14
   Compiling futures-core v0.3.31
   Compiling mio v1.0.3
   Compiling futures-sink v0.3.31
   Compiling socket2 v0.5.8
   Compiling addr2line v0.24.2
   Compiling slab v0.4.9
   Compiling fnv v1.0.7
   Compiling serde v1.0.215
   Compiling thiserror v1.0.69
   Compiling untrusted v0.9.0
   Compiling futures-channel v0.3.31
   Compiling pin-utils v0.1.0
   Compiling typenum v1.17.0
   Compiling version_check v0.9.5
   Compiling futures-task v0.3.31
   Compiling subtle v2.6.1
   Compiling futures-io v0.3.31
   Compiling pkg-config v0.3.31
   Compiling generic-array v0.14.7
   Compiling zeroize v1.8.1
   Compiling cmake v0.1.52
   Compiling ring v0.17.8
   Compiling tracing-core v0.1.33
   Compiling fs_extra v1.3.0
   Compiling rustversion v1.0.18
   Compiling dunce v1.0.5
   Compiling backtrace v0.3.74
   Compiling aws-lc-sys v0.23.1
   Compiling paste v1.0.15
   Compiling parking_lot v0.12.3
   Compiling synstructure v0.13.1
   Compiling stable_deref_trait v1.2.0
   Compiling httparse v1.9.5
   Compiling rustls-pki-types v1.10.0
   Compiling const-oid v0.9.6
   Compiling crypto-common v0.1.6
   Compiling http v1.1.0
   Compiling aws-lc-rs v1.11.1
   Compiling byteorder v1.5.0
   Compiling anyhow v1.0.93
   Compiling try-lock v0.2.5
   Compiling want v0.3.1
   Compiling rand_core v0.6.4
   Compiling writeable v0.5.5
   Compiling litemap v0.7.4
   Compiling block-buffer v0.10.4
   Compiling zerocopy-derive v0.7.35
   Compiling tokio-macros v2.4.0
   Compiling serde_derive v1.0.215
   Compiling futures-macro v0.3.31
   Compiling tokio v1.41.1
   Compiling thiserror-impl v1.0.69
   Compiling futures-util v0.3.31
   Compiling zerofrom-derive v0.1.5
   Compiling yoke-derive v0.7.5
   Compiling zerofrom v0.1.5
   Compiling tracing-attributes v0.1.28
   Compiling zerovec-derive v0.10.3
   Compiling yoke v0.7.5
   Compiling displaydoc v0.2.5
   Compiling zerocopy v0.7.35
   Compiling zerovec v0.10.4
   Compiling tokio-util v0.7.12
   Compiling tracing v0.1.41
   Compiling ppv-lite86 v0.2.20
   Compiling icu_provider_macros v1.5.0
   Compiling rand_chacha v0.3.1
   Compiling tinystr v0.7.6
   Compiling tower-service v0.3.3
   Compiling icu_locid v1.5.0
   Compiling libm v0.2.11
   Compiling bitflags v2.6.0
   Compiling rand v0.8.5
   Compiling digest v0.10.7
   Compiling num-traits v0.2.19
   Compiling encoding_rs v0.8.35
   Compiling icu_provider v1.5.0
   Compiling strsim v0.11.1
   Compiling openssl-probe v0.1.5
   Compiling icu_locid_transform_data v1.5.0
   Compiling ident_case v1.0.1
   Compiling darling_core v0.20.10
   Compiling icu_locid_transform v1.5.0
   Compiling icu_collections v1.5.0
   Compiling ryu v1.0.18
   Compiling icu_properties_data v1.5.0
   Compiling icu_properties v1.5.1
   Compiling darling_macro v0.20.10
   Compiling http-body v1.0.1
   Compiling lazy_static v1.5.0
   Compiling atomic-waker v1.1.2
   Compiling utf16_iter v1.0.5
   Compiling icu_normalizer_data v1.5.0
   Compiling utf8_iter v1.0.4
   Compiling write16 v1.0.0
   Compiling darling v0.20.10
   Compiling h2 v0.4.7
   Compiling percent-encoding v2.3.1
   Compiling rustls v0.23.19
   Compiling icu_normalizer v1.5.0
   Compiling idna_adapter v1.2.0
   Compiling form_urlencoded v1.2.1
   Compiling rustix v0.38.41
   Compiling mime v0.3.17
   Compiling serde_json v1.0.133
   Compiling protobuf v3.7.1
   Compiling idna v1.0.3
   Compiling utf-8 v0.7.6
   Compiling linux-raw-sys v0.4.14
   Compiling vcpkg v0.2.15
   Compiling url v2.5.4
   Compiling hyper v1.5.1
   Compiling openssl-sys v0.9.104
   Compiling hyper-util v0.1.10
   Compiling serde_urlencoded v0.7.1
   Compiling derive_builder_core v0.20.2
   Compiling rustls-pemfile v2.2.0
   Compiling http v0.2.12
   Compiling ipnet v2.10.1
   Compiling siphasher v0.3.11
   Compiling rustls v0.21.12
   Compiling httpdate v1.0.3
   Compiling aho-corasick v1.1.3
   Compiling derive_builder_macro v0.20.2
   Compiling protobuf-support v3.7.1
   Compiling rustls-native-certs v0.8.1
   Compiling rustls-webpki v0.101.7
   Compiling sct v0.7.1
   Compiling vergen-lib v0.1.5
   Compiling home v0.5.9
   Compiling base64ct v1.6.0
   Compiling regex-syntax v0.8.5
   Compiling powerfmt v0.2.0
   Compiling fastrand v2.2.0
   Compiling either v1.13.0
   Compiling base64 v0.21.7
   Compiling which v4.4.2
   Compiling tempfile v3.14.0
   Compiling deranged v0.3.11
   Compiling pem-rfc7468 v0.7.0
   Compiling derive_builder v0.20.2
   Compiling h2 v0.3.26
   Compiling http-body v0.4.6
   Compiling http-body-util v0.1.2
   Compiling regex-automata v0.4.9
   Compiling vergen v9.0.2
   Compiling webpki-roots v0.26.7
   Compiling iana-time-zone v0.1.61
   Compiling num_threads v0.1.7
   Compiling num-conv v0.1.0
   Compiling rustls v0.22.4
   Compiling time-core v0.1.2
   Compiling time v0.3.36
   Compiling chrono v0.4.38
   Compiling tokio-rustls v0.24.1
   Compiling der v0.7.9
   Compiling protobuf-parse v3.7.1
   Compiling hyper v0.14.31
   Compiling regex v1.11.1
   Compiling num-integer v0.1.46
   Compiling sha1 v0.10.6
   Compiling vergen-gitcl v1.0.2
   Compiling foreign-types-shared v0.1.1
   Compiling arrayvec v0.7.6
   Compiling openssl v0.10.68
   Compiling base64 v0.22.1
   Compiling bitflags v1.3.2
   Compiling bytemuck v1.20.0
   Compiling foreign-types v0.3.2
   Compiling symphonia-core v0.5.4
   Compiling hyper-rustls v0.24.2
   Compiling protobuf-codegen v3.7.1
   Compiling spki v0.7.3
   Compiling rustls-pemfile v1.0.4
The following warnings were emitted during compilation:

warning: [email protected]: Building with: CMake
warning: [email protected]: Symbol Prefix: Some("aws_lc_0_23_1")
warning: [email protected]: CMAKE environment variable set: cmake
warning: [email protected]: Generating bindings - external bindgen. Platform: armv7-unknown-linux-gnueabihf
warning: [email protected]: Compilation of 'c11.c' succeeded - Ok(["/builddir/spotify-player-0.20.3/target/armv7-unknown-linux-gnueabihf/release/build/aws-lc-sys-7e26946cc0878b6d/out/out-c11/7dfda64fdf5a526c-c11.o"]).
warning: [email protected]: CC environment variable set: armv7l-linux-gnueabihf-gcc
warning: [email protected]: CXX environment variable set: armv7l-linux-gnueabihf-c++
warning: [email protected]: Using flag: -ffile-prefix-map=/host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1=
warning: [email protected]: Setting CFLAGS: "-O3 -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -std=c11 -I /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/generated-include -I /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/include -I /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/aws-lc/include -I /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/aws-lc/third_party/s2n-bignum/include -fstack-clash-protection -D_FORTIFY_SOURCE=2 -O2 -pipe -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard -I/usr/armv7l-linux-gnueabihf/usr/include -ffile-prefix-map=/builddir/spotify-player-0.20.3=. -Wno-unused-parameter -pthread -ffile-prefix-map=/host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1= -D_XOPEN_SOURCE=700 -DBORINGSSL_IMPLEMENTATION=1 -DBORINGSSL_PREFIX=aws_lc_0_23_1"

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

Caused by:
  process didn't exit successfully: `/builddir/spotify-player-0.20.3/target/release/build/aws-lc-sys-310ca4f42cf9cc13/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_23_1")
  cargo:rerun-if-env-changed=CMAKE
  cargo:warning=CMAKE environment variable set: cmake
  cargo:warning=Generating bindings - external bindgen. Platform: armv7-unknown-linux-gnueabihf
  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(armv7-unknown-linux-gnueabihf)
  HOST = Some(x86_64-unknown-linux-gnu)
  cargo:rerun-if-env-changed=CC_armv7-unknown-linux-gnueabihf
  CC_armv7-unknown-linux-gnueabihf = None
  cargo:rerun-if-env-changed=CC_armv7_unknown_linux_gnueabihf
  CC_armv7_unknown_linux_gnueabihf = None
  cargo:rerun-if-env-changed=TARGET_CC
  TARGET_CC = None
  cargo:rerun-if-env-changed=CC
  CC = Some(armv7l-linux-gnueabihf-gcc)
  cargo:rerun-if-env-changed=CC_KNOWN_WRAPPER_CUSTOM
  CC_KNOWN_WRAPPER_CUSTOM = None
  RUSTC_WRAPPER = None
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some(true)
  CARGO_CFG_TARGET_FEATURE = None
  cargo:rerun-if-env-changed=CFLAGS_armv7-unknown-linux-gnueabihf
  CFLAGS_armv7-unknown-linux-gnueabihf = None
  cargo:rerun-if-env-changed=CFLAGS_armv7_unknown_linux_gnueabihf
  CFLAGS_armv7_unknown_linux_gnueabihf = None
  cargo:rerun-if-env-changed=TARGET_CFLAGS
  TARGET_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = Some(-fstack-clash-protection -D_FORTIFY_SOURCE=2 -O2 -pipe -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard   -I/usr/armv7l-linux-gnueabihf/usr/include -ffile-prefix-map=/builddir/spotify-player-0.20.3=.)
  cargo:rerun-if-env-changed=CC_SHELL_ESCAPED_FLAGS
  CC_SHELL_ESCAPED_FLAGS = None
  CARGO_ENCODED_RUSTFLAGS = Some(--sysroot=/usr/armv7l-linux-gnueabihf/usr)
  OPT_LEVEL = Some(3)
  TARGET = Some(armv7-unknown-linux-gnueabihf)
  HOST = Some(x86_64-unknown-linux-gnu)
  cargo:rerun-if-env-changed=CC_armv7-unknown-linux-gnueabihf
  CC_armv7-unknown-linux-gnueabihf = None
  cargo:rerun-if-env-changed=CC_armv7_unknown_linux_gnueabihf
  CC_armv7_unknown_linux_gnueabihf = None
  cargo:rerun-if-env-changed=TARGET_CC
  TARGET_CC = None
  cargo:rerun-if-env-changed=CC
  CC = Some(armv7l-linux-gnueabihf-gcc)
  cargo:rerun-if-env-changed=CC_KNOWN_WRAPPER_CUSTOM
  CC_KNOWN_WRAPPER_CUSTOM = None
  RUSTC_WRAPPER = None
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some(true)
  CARGO_CFG_TARGET_FEATURE = None
  cargo:rerun-if-env-changed=CFLAGS_armv7-unknown-linux-gnueabihf
  CFLAGS_armv7-unknown-linux-gnueabihf = None
  cargo:rerun-if-env-changed=CFLAGS_armv7_unknown_linux_gnueabihf
  CFLAGS_armv7_unknown_linux_gnueabihf = None
  cargo:rerun-if-env-changed=TARGET_CFLAGS
  TARGET_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = Some(-fstack-clash-protection -D_FORTIFY_SOURCE=2 -O2 -pipe -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard   -I/usr/armv7l-linux-gnueabihf/usr/include -ffile-prefix-map=/builddir/spotify-player-0.20.3=.)
  cargo:rerun-if-env-changed=CC_SHELL_ESCAPED_FLAGS
  CC_SHELL_ESCAPED_FLAGS = None
  CARGO_ENCODED_RUSTFLAGS = Some(--sysroot=/usr/armv7l-linux-gnueabihf/usr)
  cargo:warning=Compilation of 'c11.c' succeeded - Ok(["/builddir/spotify-player-0.20.3/target/armv7-unknown-linux-gnueabihf/release/build/aws-lc-sys-7e26946cc0878b6d/out/out-c11/7dfda64fdf5a526c-c11.o"]).
  cargo:rerun-if-env-changed=CC
  cargo:warning=CC environment variable set: armv7l-linux-gnueabihf-gcc
  cargo:rerun-if-env-changed=CXX
  cargo:warning=CXX environment variable set: armv7l-linux-gnueabihf-c++
  OUT_DIR = Some(/builddir/spotify-player-0.20.3/target/armv7-unknown-linux-gnueabihf/release/build/aws-lc-sys-7e26946cc0878b6d/out)
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  TARGET = Some(armv7-unknown-linux-gnueabihf)
  CARGO_CFG_TARGET_FEATURE = None
  HOST = Some(x86_64-unknown-linux-gnu)
  cargo:rerun-if-env-changed=CFLAGS_armv7-unknown-linux-gnueabihf
  CFLAGS_armv7-unknown-linux-gnueabihf = None
  cargo:rerun-if-env-changed=CFLAGS_armv7_unknown_linux_gnueabihf
  CFLAGS_armv7_unknown_linux_gnueabihf = None
  cargo:rerun-if-env-changed=TARGET_CFLAGS
  TARGET_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = Some(-fstack-clash-protection -D_FORTIFY_SOURCE=2 -O2 -pipe -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard   -I/usr/armv7l-linux-gnueabihf/usr/include -ffile-prefix-map=/builddir/spotify-player-0.20.3=.)
  cargo:rerun-if-env-changed=CC_SHELL_ESCAPED_FLAGS
  CC_SHELL_ESCAPED_FLAGS = None
  cargo:warning=Using flag: -ffile-prefix-map=/host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1=
  cargo:warning=Setting CFLAGS: "-O3 -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -std=c11 -I /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/generated-include -I /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/include -I /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/aws-lc/include -I /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/aws-lc/third_party/s2n-bignum/include -fstack-clash-protection -D_FORTIFY_SOURCE=2 -O2 -pipe -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard -I/usr/armv7l-linux-gnueabihf/usr/include -ffile-prefix-map=/builddir/spotify-player-0.20.3=. -Wno-unused-parameter -pthread -ffile-prefix-map=/host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1= -D_XOPEN_SOURCE=700 -DBORINGSSL_IMPLEMENTATION=1 -DBORINGSSL_PREFIX=aws_lc_0_23_1"
  cargo:rerun-if-env-changed=CMAKE_TOOLCHAIN_FILE
  cargo:rerun-if-env-changed=CMAKE_TOOLCHAIN_FILE_armv7_unknown_linux_gnueabihf
  CMAKE_TOOLCHAIN_FILE_armv7-unknown-linux-gnueabihf = None
  CMAKE_TOOLCHAIN_FILE_armv7_unknown_linux_gnueabihf = None
  TARGET_CMAKE_TOOLCHAIN_FILE = None
  CMAKE_TOOLCHAIN_FILE = None
  CMAKE_GENERATOR_armv7-unknown-linux-gnueabihf = None
  CMAKE_GENERATOR_armv7_unknown_linux_gnueabihf = None
  TARGET_CMAKE_GENERATOR = None
  CMAKE_GENERATOR = None
  CMAKE_PREFIX_PATH_armv7-unknown-linux-gnueabihf = None
  CMAKE_PREFIX_PATH_armv7_unknown_linux_gnueabihf = None
  TARGET_CMAKE_PREFIX_PATH = None
  CMAKE_PREFIX_PATH = None
  CMAKE_armv7-unknown-linux-gnueabihf = None
  CMAKE_armv7_unknown_linux_gnueabihf = None
  TARGET_CMAKE = None
  CMAKE = Some("cmake")
  running: cd "/builddir/spotify-player-0.20.3/target/armv7-unknown-linux-gnueabihf/release/build/aws-lc-sys-7e26946cc0878b6d/out/build" && CMAKE_PREFIX_PATH="" LC_ALL="C" "cmake" "/host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1" "-DBUILD_SHARED_LIBS=0" "-DCMAKE_BUILD_TYPE=release" "-DBORINGSSL_PREFIX=aws_lc_0_23_1_" "-DBORINGSSL_PREFIX_HEADERS=/host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/generated-include" "-DBUILD_TESTING=OFF" "-DBUILD_LIBSSL=OFF" "-DDISABLE_PERL=ON" "-DDISABLE_GO=ON" "-DCMAKE_SYSTEM_NAME=Linux" "-DCMAKE_SYSTEM_PROCESSOR=arm" "-DCMAKE_INSTALL_PREFIX=/builddir/spotify-player-0.20.3/target/armv7-unknown-linux-gnueabihf/release/build/aws-lc-sys-7e26946cc0878b6d/out" "-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections -fPIC -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -std=c11 -I /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/generated-include -I /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/include -I /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/aws-lc/include -I /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/aws-lc/third_party/s2n-bignum/include -fstack-clash-protection -D_FORTIFY_SOURCE=2 -pipe -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard -I/usr/armv7l-linux-gnueabihf/usr/include -ffile-prefix-map=/builddir/spotify-player-0.20.3=. -Wno-unused-parameter -pthread -ffile-prefix-map=/host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1= -D_XOPEN_SOURCE=700 -DBORINGSSL_IMPLEMENTATION=1 -DBORINGSSL_PREFIX=aws_lc_0_23_1" "-DCMAKE_C_COMPILER=/builddir/.xbps-spotify-player/wrappers/armv7l-linux-gnueabihf-gcc" "-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections -fPIC -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -fstack-clash-protection -D_FORTIFY_SOURCE=2 -pipe -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard -I/usr/armv7l-linux-gnueabihf/usr/include -ffile-prefix-map=/builddir/spotify-player-0.20.3=." "-DCMAKE_CXX_COMPILER=/builddir/.xbps-spotify-player/wrappers/armv7l-linux-gnueabihf-c++" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -std=c11 -I /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/generated-include -I /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/include -I /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/aws-lc/include -I /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/aws-lc/third_party/s2n-bignum/include -fstack-clash-protection -D_FORTIFY_SOURCE=2 -pipe -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard -I/usr/armv7l-linux-gnueabihf/usr/include -ffile-prefix-map=/builddir/spotify-player-0.20.3=. -Wno-unused-parameter -pthread -ffile-prefix-map=/host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1= -D_XOPEN_SOURCE=700 -DBORINGSSL_IMPLEMENTATION=1 -DBORINGSSL_PREFIX=aws_lc_0_23_1" "-DCMAKE_ASM_COMPILER=/builddir/.xbps-spotify-player/wrappers/armv7l-linux-gnueabihf-gcc" "--no-warn-unused-cli"
  Not searching for unused variables given on the command line.
  -- The C compiler identification is GNU 13.2.0
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: /builddir/.xbps-spotify-player/wrappers/armv7l-linux-gnueabihf-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/
  -- Prefix build configured: performing build using prefix "aws_lc_0_23_1_" and headers path "/host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/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 negative, NOT enabling AWS_LC_STDALIGN_AVAILABLE:
  --     Change Dir: '/builddir/spotify-player-0.20.3/target/armv7-unknown-linux-gnueabihf/release/build/aws-lc-sys-7e26946cc0878b6d/out/build/aws-lc/CMakeFiles/CMakeTmp'

  Run Build Command(s): /usr/bin/cmake -E env VERBOSE=1 /usr/bin/make -f Makefile cmTC_664cd/fast
  /usr/bin/make  -f CMakeFiles/cmTC_664cd.dir/build.make CMakeFiles/cmTC_664cd.dir/build
  make[1]: Entering directory '/builddir/spotify-player-0.20.3/target/armv7-unknown-linux-gnueabihf/release/build/aws-lc-sys-7e26946cc0878b6d/out/build/aws-lc/CMakeFiles/CMakeTmp'
  Building C object CMakeFiles/cmTC_664cd.dir/stdalign_check.c.o
  /builddir/.xbps-spotify-player/wrappers/armv7l-linux-gnueabihf-gcc   -ffunction-sections -fdata-sections -fPIC -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -std=c11 -I /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/generated-include -I /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/include -I /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/aws-lc/include -I /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/aws-lc/third_party/s2n-bignum/include -fstack-clash-protection -D_FORTIFY_SOURCE=2 -pipe -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard -I/usr/armv7l-linux-gnueabihf/usr/include -ffile-prefix-map=/builddir/spotify-player-0.20.3=. -Wno-unused-parameter -pthread -ffile-prefix-map=/host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1= -D_XOPEN_SOURCE=700 -DBORINGSSL_IMPLEMENTATION=1 -DBORINGSSL_PREFIX=aws_lc_0_23_1 -Wredundant-decls -Wextra -Wunused -Wcomment -Wchar-subscripts -Wuninitialized -Wshadow -Wwrite-strings -Wformat-security -Wunused-result -Wno-overlength-strings -Wno-cast-function-type  -Wall -fvisibility=hidden -fno-common -Wno-c11-extensions -Wvla -Wtype-limits -Wno-unused-parameter -Werror -Wformat=2 -Wsign-compare -Wmissing-field-initializers -Wwrite-strings -Wno-free-nonheap-object -Wmissing-braces -Wimplicit-fallthrough -Wmissing-prototypes -Wold-style-definition -Wstrict-prototypes    -Werror -o CMakeFiles/cmTC_664cd.dir/stdalign_check.c.o -c /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/aws-lc/tests/compiler_features_tests/stdalign_check.c
  In file included from /usr/armv7l-linux-gnueabihf/usr/include/bits/libc-header-start.h:33,
                   from /usr/armv7l-linux-gnueabihf/usr/include/stdint.h:26,
                   from /usr/lib/gcc/armv7l-linux-gnueabihf/13.2/include/stdint.h:9,
                   from /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/aws-lc/tests/compiler_features_tests/stdalign_check.c:8:
  /usr/armv7l-linux-gnueabihf/usr/include/features.h:414:4: compiler_error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp]
    414 | #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
        |    ^~~~~~~
  cc1: note: unrecognized command-line option '-Wno-c11-extensions' may have been intended to silence earlier diagnostics
  cc1: all warnings being treated as errors
  make[1]: *** [CMakeFiles/cmTC_664cd.dir/build.make:78: CMakeFiles/cmTC_664cd.dir/stdalign_check.c.o] Error 1
  make[1]: Leaving directory '/builddir/spotify-player-0.20.3/target/armv7-unknown-linux-gnueabihf/release/build/aws-lc-sys-7e26946cc0878b6d/out/build/aws-lc/CMakeFiles/CMakeTmp'
  make: *** [Makefile:127: cmTC_664cd/fast] Error 2


  -- builtin_swap_check.c probe is negative, NOT enabling AWS_LC_BUILTIN_SWAP_SUPPORTED:
  --     Change Dir: '/builddir/spotify-player-0.20.3/target/armv7-unknown-linux-gnueabihf/release/build/aws-lc-sys-7e26946cc0878b6d/out/build/aws-lc/CMakeFiles/CMakeTmp'

  Run Build Command(s): /usr/bin/cmake -E env VERBOSE=1 /usr/bin/make -f Makefile cmTC_8b257/fast
  /usr/bin/make  -f CMakeFiles/cmTC_8b257.dir/build.make CMakeFiles/cmTC_8b257.dir/build
  make[1]: Entering directory '/builddir/spotify-player-0.20.3/target/armv7-unknown-linux-gnueabihf/release/build/aws-lc-sys-7e26946cc0878b6d/out/build/aws-lc/CMakeFiles/CMakeTmp'
  Building C object CMakeFiles/cmTC_8b257.dir/builtin_swap_check.c.o
  /builddir/.xbps-spotify-player/wrappers/armv7l-linux-gnueabihf-gcc   -ffunction-sections -fdata-sections -fPIC -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -fPIC -gdwarf-4 -fno-omit-frame-pointer -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -std=c11 -I /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/generated-include -I /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/include -I /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/aws-lc/include -I /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/aws-lc/third_party/s2n-bignum/include -fstack-clash-protection -D_FORTIFY_SOURCE=2 -pipe -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard -I/usr/armv7l-linux-gnueabihf/usr/include -ffile-prefix-map=/builddir/spotify-player-0.20.3=. -Wno-unused-parameter -pthread -ffile-prefix-map=/host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1= -D_XOPEN_SOURCE=700 -DBORINGSSL_IMPLEMENTATION=1 -DBORINGSSL_PREFIX=aws_lc_0_23_1 -Wredundant-decls -Wextra -Wunused -Wcomment -Wchar-subscripts -Wuninitialized -Wshadow -Wwrite-strings -Wformat-security -Wunused-result -Wno-overlength-strings -Wno-cast-function-type  -Wall -fvisibility=hidden -fno-common -Wno-c11-extensions -Wvla -Wtype-limits -Wno-unused-parameter -Werror -Wformat=2 -Wsign-compare -Wmissing-field-initializers -Wwrite-strings -Wno-free-nonheap-object -Wmissing-braces -Wimplicit-fallthrough -Wmissing-prototypes -Wold-style-definition -Wstrict-prototypes    -Werror -o CMakeFiles/cmTC_8b257.dir/builtin_swap_check.c.o -c /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/aws-lc/tests/compiler_features_tests/builtin_swap_check.c
  In file included from /usr/armv7l-linux-gnueabihf/usr/include/bits/libc-header-start.h:33,
                   from /usr/armv7l-linux-gnueabihf/usr/include/stdint.h:26,
                   from /usr/lib/gcc/armv7l-linux-gnueabihf/13.2/include/stdint.h:9,
                   from /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/aws-lc/tests/compiler_features_tests/builtin_swap_check.c:8:
  /usr/armv7l-linux-gnueabihf/usr/include/features.h:414:4: compiler_error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp]
    414 | #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
        |    ^~~~~~~
  cc1: note: unrecognized command-line option '-Wno-c11-extensions' may have been intended to silence earlier diagnostics
  cc1: all warnings being treated as errors
  make[1]: *** [CMakeFiles/cmTC_8b257.dir/build.make:78: CMakeFiles/cmTC_8b257.dir/builtin_swap_check.c.o] Error 1
  make[1]: Leaving directory '/builddir/spotify-player-0.20.3/target/armv7-unknown-linux-gnueabihf/release/build/aws-lc-sys-7e26946cc0878b6d/out/build/aws-lc/CMakeFiles/CMakeTmp'
  make: *** [Makefile:127: cmTC_8b257/fast] Error 2


  -- The ASM compiler identification is GNU
  -- Found assembler: /builddir/.xbps-spotify-player/wrappers/armv7l-linux-gnueabihf-gcc
  -- 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 (2.7s)
  -- Generating done (0.2s)
  -- Build files have been written to: /builddir/spotify-player-0.20.3/target/armv7-unknown-linux-gnueabihf/release/build/aws-lc-sys-7e26946cc0878b6d/out/build
  running: cd "/builddir/spotify-player-0.20.3/target/armv7-unknown-linux-gnueabihf/release/build/aws-lc-sys-7e26946cc0878b6d/out/build" && LC_ALL="C" MAKEFLAGS="-j --jobserver-fds=6,7 --jobserver-auth=6,7" "cmake" "--build" "/builddir/spotify-player-0.20.3/target/armv7-unknown-linux-gnueabihf/release/build/aws-lc-sys-7e26946cc0878b6d/out/build" "--target" "install" "--config" "RelWithDebInfo"
  [  0%] Built target boringssl_prefix_symbols
  [  1%] Building C object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/bcm.c.o

  --- stderr
  CMake Deprecation Warning at CMakeLists.txt:4 (cmake_minimum_required):
    Compatibility with CMake < 3.5 will be removed from a future version of
    CMake.

    Update the VERSION argument <min> value or use a ...<max> suffix to tell
    CMake that the project does not need compatibility with older versions.


  CMake Deprecation Warning at aws-lc/CMakeLists.txt:1 (cmake_minimum_required):
    Compatibility with CMake < 3.5 will be removed from a future version of
    CMake.

    Update the VERSION argument <min> value or use a ...<max> suffix to tell
    CMake that the project does not need compatibility with older versions.


  Copying platform assembly files from /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/aws-lc/generated-src/linux-arm/crypto/ to /builddir/spotify-player-0.20.3/target/armv7-unknown-linux-gnueabihf/release/build/aws-lc-sys-7e26946cc0878b6d/out/build/aws-lc/crypto
  In file included from /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/aws-lc/crypto/fipsmodule/bcm.c:41:
  /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/aws-lc/crypto/fipsmodule/../internal.h: In function 'aws_lc_0_23_1_SHA512_Final':
  /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/aws-lc/crypto/fipsmodule/../internal.h:939:10: error: writing 8 bytes into a region of size 0 [-Werror=stringop-overflow=]
    939 |   return memcpy(dst, src, n);
        |          ^
  In file included from /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/aws-lc/crypto/fipsmodule/bcm.c:155:
  /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/aws-lc/crypto/fipsmodule/sha/sha512.c:360:26: note: at offset 64 into destination object 'out' of size [0, 64]
    360 | int SHA512_Final(uint8_t out[SHA512_DIGEST_LENGTH], SHA512_CTX *sha) {
        |                  ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
  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
  make[2]: *** [aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/build.make:76: aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/bcm.c.o] Error 1
  make[1]: *** [CMakeFiles/Makefile2:258: aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/all] Error 2
  make: *** [Makefile:136: all] Error 2
  thread 'main' panicked at /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/cmake-0.1.52/src/lib.rs:1115:5:

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

  build script failed, must exit now
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
=> ERROR: spotify-player-0.20.3_1: do_build: '${make_cmd} build --release --locked --target ${RUST_TARGET} ${configure_args} ${make_build_args}' exited with 101
=> ERROR:   in do_build() at common/build-style/cargo.sh:8
@xavierfortier1 xavierfortier1 changed the title Corss-compilation to armv7l failed Cross-compilation to armv7l failed Dec 14, 2024
@justsmth
Copy link
Contributor

justsmth commented Dec 16, 2024

Hello!

I'm looking into this error:

  /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/aws-lc/crypto/fipsmodule/../internal.h: In function 'aws_lc_0_23_1_SHA512_Final':
  /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/aws-lc/crypto/fipsmodule/../internal.h:939:10: error: writing 8 bytes into a region of size 0 [-Werror=stringop-overflow=]
    939 |   return memcpy(dst, src, n);
        |          ^
  In file included from /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/aws-lc/crypto/fipsmodule/bcm.c:155:
  /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.23.1/aws-lc/crypto/fipsmodule/sha/sha512.c:360:26: note: at offset 64 into destination object 'out' of size [0, 64]
    360 | int SHA512_Final(uint8_t out[SHA512_DIGEST_LENGTH], SHA512_CTX *sha) {
        |                  ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~

I think the compiler is complaining about this section of code: (maybe?)

  // SHA-512 and SHA-512/256 are aligned to 8-byte words, SHA-512/224 is not.
  // If the digest size is not aligned to 8-byte words, we need to process the
  // non-word-aligned "trailer".
  if (md_len == SHA512_224_DIGEST_LENGTH) {
    uint64_t trailer;
    CRYPTO_store_u64_be(&trailer, sha->h[out_words]);
    OPENSSL_memcpy(out, &trailer, SHA512_224_DIGEST_LENGTH % 8);
  }

This logic appears correct to me (and I know this logic has been heavily tested), but I can see why the compiler might be concerned about it. We'll need to reproduce this compiler error in order to identify a potential fix.

One potential workaround would be to disable this compiler warning. You could try setting the following in your build environment:

export AWS_LC_SYS_CFLAGS="-Wno-stringop-overflow"

We'll update here when we make progress on this issue. Thanks!

@xavierfortier1
Copy link
Author

Thanks for looking into this issue. I tested the workaround. At first, it didn't work because of the equal sign. It worked when I removed it, so here is a updated version for others:

export AWS_LC_SYS_CFLAGS="-Wno-stringop-overflow"

@justsmth
Copy link
Contributor

Great! Thanks! I updated my comment so that the workaround I suggest matches yours.

@justsmth justsmth added the build problem Build failure label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build problem Build failure
Projects
None yet
Development

No branches or pull requests

2 participants