Skip to content

awslambdaric: add build-awslambdaric.yml for riscv64 wheels - #1033

Merged
luhenry merged 1 commit into
mainfrom
awslambdaric
Sep 6, 2026
Merged

awslambdaric: add build-awslambdaric.yml for riscv64 wheels#1033
luhenry merged 1 commit into
mainfrom
awslambdaric

Conversation

@luhenry

@luhenry luhenry commented Sep 6, 2026

Copy link
Copy Markdown
Member

Compiles the runtime_client C++ extension, statically linking a vendored curl and AWS's own aws-lambda-cpp (both built from source tarballs shipped in the git tag). Upstream publishes no riscv64 wheel.

Build-from-checkout: the tag's deps/*.tar.gz and scripts/preinstall.sh are upstream's own recipe, unmodified except for the one patch below.

Differs from upstream

  • Nothing beyond the riscv64 image.

Testing

  • same as upstream, including test_runtime_client_headers.py, which drives the compiled extension against a stub RAPID server.

License: OK. Both curl and aws-lambda-cpp are statically linked with no external runtime deps (--without-ssl --without-zlib), so nothing extra is vendored into the wheel; it ships the same LICENSE/NOTICE as the official wheel.

Patches

  • 0001-Don-t-fail-the-build-on-backward-cpp-s-unknown-archi.patch - To upstream (not submitted). aws-lambda-cpp's vendored backward-cpp has no riscv64 case in its crash-address dispatch, so its catch-all #warning and an unused variable become hard errors under -Werror. riscv64-only.

Built on cp312; 135 passed, 17 subtests passed.

Statically links a vendored curl and AWS's own aws-lambda-cpp into the
runtime_client C++ extension; the sources for both ship in the git tag
already, so no network fetch is needed at build time. One patch works
around aws-lambda-cpp's vendored backward-cpp hard-erroring under -Werror
on riscv64, an architecture it doesn't recognize.
@luhenry
luhenry merged commit 0b60218 into main Sep 6, 2026
14 of 15 checks passed
@luhenry
luhenry deleted the awslambdaric branch September 6, 2026 14:08
@luhenry luhenry linked an issue Sep 6, 2026 that may be closed by this pull request
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

Successfully merging this pull request may close these issues.

awslambdaric riscv64 support

1 participant