Skip to content

aws-smithy-checksums transistive dependency fails cargo lambda build --release #993

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

Open
evbo opened this issue May 16, 2025 · 1 comment

Comments

@evbo
Copy link

evbo commented May 16, 2025

I'm not sure if this repo can do anything to fix it, but just today the latest aws-smithy-checksums dependency started using crc-fast and the release script for aws lambda rust runtime fails with the below result.

To fix, you must explicitly set an aws-smithy-checksums in your cargo.toml to:

aws-smithy-checksums = "=0.63.1" # 0.63.2 will fail

error: failed to run custom build command for crc-fast v1.2.1

Caused by:
process didn't exit successfully: /home/waffle/workspace/asr-provided/target/release/build/crc-fast-ab40b8050dbc9091/build-script-build (exit status: 1)
--- stdout
Building NEON blended
OUT_DIR = Some(/home/waffle/workspace/asr-provided/target/aarch64-unknown-linux-gnu/release/build/crc-fast-68321e040e62d2ad/out)
OPT_LEVEL = Some(3)
TARGET = Some(aarch64-unknown-linux-gnu)
HOST = Some(aarch64-unknown-linux-gnu)
cargo:rerun-if-env-changed=CC_aarch64-unknown-linux-gnu
CC_aarch64-unknown-linux-gnu = None
cargo:rerun-if-env-changed=CC_aarch64_unknown_linux_gnu
CC_aarch64_unknown_linux_gnu = Some(/home/waffle/.cache/cargo-zigbuild/0.19.8/zigcc-aarch64-unknown-linux-gnu-aef7.sh)
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(false)
cargo:rerun-if-env-changed=CFLAGS
CFLAGS = None
cargo:rerun-if-env-changed=HOST_CFLAGS
HOST_CFLAGS = None
cargo:rerun-if-env-changed=CFLAGS_aarch64_unknown_linux_gnu
CFLAGS_aarch64_unknown_linux_gnu = None
cargo:rerun-if-env-changed=CFLAGS_aarch64-unknown-linux-gnu
CFLAGS_aarch64-unknown-linux-gnu = None
CARGO_ENCODED_RUSTFLAGS = Some(-Ctarget-cpu=neoverse-n1)
cargo:warning=info: available CPUs for architecture 'aarch64':
cargo:warning= a64fx
cargo:warning= ampere1
cargo:warning= ampere1a
cargo:warning= ampere1b
cargo:warning= apple_a10
cargo:warning= apple_a11
cargo:warning= apple_a12
cargo:warning= apple_a13
cargo:warning= apple_a14
cargo:warning= apple_a15
cargo:warning= apple_a16
cargo:warning= apple_a17
cargo:warning= apple_a7
cargo:warning= apple_a8
cargo:warning= apple_a9
cargo:warning= apple_latest
cargo:warning= apple_m1
cargo:warning= apple_m2
cargo:warning= apple_m3
cargo:warning= apple_s4
cargo:warning= apple_s5
cargo:warning= carmel
cargo:warning= cortex_a34
cargo:warning= cortex_a35
cargo:warning= cortex_a510
cargo:warning= cortex_a520
cargo:warning= cortex_a53
cargo:warning= cortex_a55
cargo:warning= cortex_a57
cargo:warning= cortex_a65
cargo:warning= cortex_a65ae
cargo:warning= cortex_a710
cargo:warning= cortex_a715
cargo:warning= cortex_a72
cargo:warning= cortex_a720
cargo:warning= cortex_a73
cargo:warning= cortex_a75
cargo:warning= cortex_a76
cargo:warning= cortex_a76ae
cargo:warning= cortex_a77
cargo:warning= cortex_a78
cargo:warning= cortex_a78c
cargo:warning= cortex_r82
cargo:warning= cortex_x1
cargo:warning= cortex_x1c
cargo:warning= cortex_x2
cargo:warning= cortex_x3
cargo:warning= cortex_x4
cargo:warning= cyclone
cargo:warning= emag
cargo:warning= exynos_m1
cargo:warning= exynos_m2
cargo:warning= exynos_m3
cargo:warning= exynos_m4
cargo:warning= exynos_m5
cargo:warning= falkor
cargo:warning= generic
cargo:warning= kryo
cargo:warning= neoverse_512tvb
cargo:warning= neoverse_e1
cargo:warning= neoverse_n1
cargo:warning= neoverse_n2
cargo:warning= neoverse_v1
cargo:warning= neoverse_v2
cargo:warning= saphira
cargo:warning= thunderx
cargo:warning= thunderx2t99
cargo:warning= thunderx3t110
cargo:warning= thunderxt81
cargo:warning= thunderxt83
cargo:warning= thunderxt88
cargo:warning= tsv110
cargo:warning= xgene1
cargo:warning=
cargo:warning=error: unknown CPU: 'armv8.2'

--- stderr

error occurred in cc-rs: command did not execute successfully (status code exit status: 1): LC_ALL="C" "/home/waffle/.cache/cargo-zigbuild/0.19.8/zigcc-aarch64-unknown-linux-gnu-aef7.sh" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=aarch64-unknown-linux-gnu" "-I" "include" "-Wall" "-Wextra" "-march=armv8.2-a+crypto+crc+sha3" "-o" "/home/waffle/workspace/asr-provided/target/aarch64-unknown-linux-gnu/release/build/crc-fast-68321e040e62d2ad/out/b0926c13c671e7f9-crc32_iscsi_neon_blended.o" "-c" "include/crc32_iscsi_neon_blended.c"

warning: build failed, waiting for other jobs to finish...

@evbo evbo changed the title aws-smithy-checksums transistive dependency fails zig build aws-smithy-checksums transistive dependency fails cargo lambda build --release May 16, 2025
@yoshi-taka
Copy link

related:
smithy-lang/smithy-rs#4111

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants