Skip to content

Commit f257227

Browse files
awslambdaric: Add version 4.1.0 (#2459)
* awslambdaric: Add version 4.1.0 Signed-off-by: riseproject-dev[bot] <330740410+riseproject-dev[bot]@users.noreply.github.com> * awslambdaric: carry forward the backward-cpp riscv64 build patch to 4.1.0 The nightly-upgrade bot bumped docs/packages/awslambdaric.yaml to 4.1.0 without creating a matching patches/awslambdaric/4.1.0/ directory, so the workflow's unconditional 'git apply .../00*.patch' step failed with no matching file. scripts/preinstall.sh's aws-lambda-cpp CMake invocation is unchanged between 4.0.4 and 4.1.0 (verified against the 4.1.0 tag), so the existing patch applies as-is. --------- Signed-off-by: riseproject-dev[bot] <330740410+riseproject-dev[bot]@users.noreply.github.com> Co-authored-by: riseproject-dev[bot] <330740410+riseproject-dev[bot]@users.noreply.github.com> Co-authored-by: Ludovic Henry <git@ludovic.dev>
1 parent 35bc63c commit f257227

2 files changed

Lines changed: 43 additions & 0 deletions

File tree

‎docs/packages/awslambdaric.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,4 @@ versions:
5050
- filename: awslambdaric-4.0.4-cp314-cp314t-manylinux_2_38_riscv64.manylinux_2_39_riscv64.whl
5151
sha256: 97c5ca8edc6a6e5c4e65f11503e047e36a5f5813e120073834b68b39bf56a6cc
5252
requires-python: '>=3.9'
53+
- version: 4.1.0
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
From 8508835032bf42315bf84331ed11bcec53d6a5c0 Mon Sep 17 00:00:00 2001
2+
From: Ludovic Henry <git@ludovic.dev>
3+
Date: Sun, 6 Sep 2026 13:07:57 +0200
4+
Subject: [PATCH] Don't fail the build on backward-cpp's unknown-architecture
5+
warning on riscv64
6+
7+
aws-lambda-cpp vendors backward-cpp for enhanced stack traces on crash and
8+
compiles it under its own -Wall -Wextra -Werror. backward-cpp's
9+
SignalHandling::handleSignal() dispatches the crash program-counter lookup on
10+
the target architecture (__aarch64__, __arm__, __ppc__, ...) and has no case
11+
for riscv64 (__riscv), so it falls into the catch-all #else branch: a bare
12+
#warning plus an unused ucontext_t* variable in that branch. Neither is a
13+
correctness bug - the fallback just leaves error_addr unset, so the crash
14+
handler still fires and unwinds the stack, only without pinpointing the
15+
faulting instruction - but -Werror turns both into hard compile errors and
16+
the build never reaches the extension.
17+
18+
-Wno-error=cpp neutralises the #warning-as-error; -Wno-error=unused-variable
19+
covers the now-unused uctx in that same branch. Both stay warnings (visible in
20+
the build log) rather than being silenced outright.
21+
22+
Upstream-Status: To upstream [not submitted from this automated port run; needs a pull request against aws/aws-lambda-python-runtime-interface-client]
23+
---
24+
scripts/preinstall.sh | 2 +-
25+
1 file changed, 1 insertion(+), 1 deletion(-)
26+
27+
diff --git a/scripts/preinstall.sh b/scripts/preinstall.sh
28+
index fdc436c..71fb871 100755
29+
--- a/scripts/preinstall.sh
30+
+++ b/scripts/preinstall.sh
31+
@@ -50,7 +50,7 @@ else
32+
cd ./aws-lambda-cpp-$AWS_LAMBDA_CPP_RELEASE/build
33+
34+
$CMAKE .. \
35+
- -DCMAKE_CXX_FLAGS="-fPIC" \
36+
+ -DCMAKE_CXX_FLAGS="-fPIC -Wno-error=cpp -Wno-error=unused-variable" \
37+
-DCMAKE_INSTALL_PREFIX="$ARTIFACTS_DIR" \
38+
-DENABLE_LTO=$ENABLE_LTO \
39+
-DCMAKE_MODULE_PATH="$ARTIFACTS_DIR"/lib/pkgconfig && \
40+
--
41+
2.50.1 (Apple Git-155)
42+

0 commit comments

Comments
 (0)