I've tried opening an issue on aws-crt-python that it fails to build with the latest release of aws-lc, but looking at their issues it looks like nobody's monitoring them as none are getting replies so I'm trying my luck here. Perhaps you have a way to reach out?
Either way a new release of aws-lc would be appreciated so they can have a chance to upgrade, as the commit mentioned below is not present in any release right now (it's not in v1.1.0 either); the first thing to do would probably be a new tag here.
it was brought to my attention that aws-crt-python fails to build on 32 bit alpine 3.16 (with gcc 11)
Would it be possible to coordinate some backporting for it (I've checked the commit cleanly applies on cherry-pick to 1.0.2 tag and project build with just that) and update the submodule here for pip?
For reference here's the error with pip along with reproducing steps with a container
$ podman run -ti docker.io/i386/alpine:3.16 sh
/ # apk add python3-dev py3-pip make cmake gcc g++
...
/ # pip3 install awsiotsdk
Collecting awsiotsdk
Downloading awsiotsdk-1.11.5-py3-none-any.whl (59 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 59.2/59.2 kB 794.3 kB/s eta 0:00:00
Collecting awscrt==0.14.0
Downloading awscrt-0.14.0.tar.gz (20.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 20.0/20.0 MB 18.0 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Using legacy 'setup.py install' for awscrt, since package 'wheel' is not installed.
Installing collected packages: awscrt, awsiotsdk
Running setup.py install for awscrt ... error
error: subprocess-exited-with-error
× Running setup.py install for awscrt did not run successfully.
│ exit code: 1
╰─> [308 lines of output]
running install
/usr/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.10
creating build/lib.linux-x86_64-3.10/awscrt
copying awscrt/__init__.py -> build/lib.linux-x86_64-3.10/awscrt
copying awscrt/_test.py -> build/lib.linux-x86_64-3.10/awscrt
copying awscrt/auth.py -> build/lib.linux-x86_64-3.10/awscrt
copying awscrt/checksums.py -> build/lib.linux-x86_64-3.10/awscrt
copying awscrt/common.py -> build/lib.linux-x86_64-3.10/awscrt
copying awscrt/crypto.py -> build/lib.linux-x86_64-3.10/awscrt
copying awscrt/exceptions.py -> build/lib.linux-x86_64-3.10/awscrt
copying awscrt/http.py -> build/lib.linux-x86_64-3.10/awscrt
copying awscrt/io.py -> build/lib.linux-x86_64-3.10/awscrt
copying awscrt/mqtt.py -> build/lib.linux-x86_64-3.10/awscrt
copying awscrt/s3.py -> build/lib.linux-x86_64-3.10/awscrt
creating build/lib.linux-x86_64-3.10/awscrt/eventstream
copying awscrt/eventstream/__init__.py -> build/lib.linux-x86_64-3.10/awscrt/eventstream
copying awscrt/eventstream/rpc.py -> build/lib.linux-x86_64-3.10/awscrt/eventstream
running build_ext
--- Building dependency: aws-lc ---
> /usr/bin/cmake -H/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc -Bbuild/temp.linux-x86_64-3.10/deps/aws-lc -DCMAKE_C_FLAGS=-m32 -DCMAKE_PREFIX_PATH=/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/build/temp.linux-x86_64-3.10/deps/install -DCMAKE_INSTALL_PREFIX=build/temp.linux-x86_64-3.10/deps/install -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTING=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DBUILD_LIBSSL=OFF -DDISABLE_PERL=ON -DDISABLE_GO=ON
-- The C compiler identification is GNU 11.2.1
-- 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'
-- Package 'libunwind-generic', required by 'virtual:world', not found
libunwind not found. Disabling unwind tests.
-- 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/
-- Run check_run file_to_test 'memcmp_invalid_stripped_check.c', flag_to_set 'MEMCMP_INVALID_STRIPPED', and compile_flags '-O2 -g -DNDEBUG'.
-- Test stdalign_check.c passed, enabling AWS_LC_STDALIGN_AVAILABLE
-- Test builtin_swap_check.c passed, enabling AWS_LC_BUILTIN_SWAP_SUPPORTED
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
Copying platform assembly files from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/generated-src/linux-x86/crypto/ to /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/build/temp.linux-x86_64-3.10/deps/aws-lc/crypto
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/build/temp.linux-x86_64-3.10/deps/aws-lc
> /usr/bin/cmake --build build/temp.linux-x86_64-3.10/deps/aws-lc --config RelWithDebInfo --target install
[ 0%] Built target global_target
Scanning dependencies of target fipsmodule
[ 1%] Building C object crypto/fipsmodule/CMakeFiles/fipsmodule.dir/bcm.c.o
[ 1%] Building ASM object crypto/fipsmodule/CMakeFiles/fipsmodule.dir/aesni-x86.S.o
[ 1%] Building C object crypto/fipsmodule/CMakeFiles/fipsmodule.dir/fips_shared_support.c.o
[ 2%] Building ASM object crypto/fipsmodule/CMakeFiles/fipsmodule.dir/bn-586.S.o
[ 2%] Building ASM object crypto/fipsmodule/CMakeFiles/fipsmodule.dir/co-586.S.o
[ 3%] Building ASM object crypto/fipsmodule/CMakeFiles/fipsmodule.dir/ghash-ssse3-x86.S.o
[ 3%] Building ASM object crypto/fipsmodule/CMakeFiles/fipsmodule.dir/ghash-x86.S.o
[ 3%] Building ASM object crypto/fipsmodule/CMakeFiles/fipsmodule.dir/md5-586.S.o
[ 4%] Building ASM object crypto/fipsmodule/CMakeFiles/fipsmodule.dir/sha256-586.S.o
[ 5%] Building ASM object crypto/fipsmodule/CMakeFiles/fipsmodule.dir/sha512-586.S.o
[ 5%] Building ASM object crypto/fipsmodule/CMakeFiles/fipsmodule.dir/sha1-586.S.o
[ 5%] Building ASM object crypto/fipsmodule/CMakeFiles/fipsmodule.dir/vpaes-x86.S.o
[ 6%] Building ASM object crypto/fipsmodule/CMakeFiles/fipsmodule.dir/x86-mont.S.o
In file included from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/p384.c:47,
from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/bcm.c:89:
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:5495:36: error: argument 1 of type 'uint32_t[12]' {aka 'unsigned int[12]'} with mismatched bound [-Werror=array-parameter=]
5495 | static void fiat_p384_opp(uint32_t out1[12], const uint32_t arg1[12]) {
| ~~~~~~~~~^~~~~~~~
In file included from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/p384.c:47,
from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/bcm.c:89:
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:27:51: note: previously declared as 'uint32_t[6]' {aka 'unsigned int[6]'}
27 | OPENSSL_UNUSED static void fiat_p384_opp(uint32_t out1[6], const uint32_t arg1[6]);
| ~~~~~~~~~^~~~~~~
In file included from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/p384.c:47,
from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/bcm.c:89:
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:5495:61: error: argument 2 of type 'const uint32_t[12]' {aka 'const unsigned int[12]'} with mismatched bound [-Werror=array-parameter=]
5495 | static void fiat_p384_opp(uint32_t out1[12], const uint32_t arg1[12]) {
| ~~~~~~~~~~~~~~~^~~~~~~~
In file included from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/p384.c:47,
from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/bcm.c:89:
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:27:75: note: previously declared as 'const uint32_t[6]' {aka 'const unsigned int[6]'}
27 | OPENSSL_UNUSED static void fiat_p384_opp(uint32_t out1[6], const uint32_t arg1[6]);
| ~~~~~~~~~~~~~~~^~~~~~~
In file included from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/p384.c:47,
from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/bcm.c:89:
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:9430:40: error: argument 1 of type 'uint32_t[12]' {aka 'unsigned int[12]'} with mismatched bound [-Werror=array-parameter=]
9430 | static void fiat_p384_set_one(uint32_t out1[12]) {
| ~~~~~~~~~^~~~~~~~
In file included from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/p384.c:47,
from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/bcm.c:89:
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:28:55: note: previously declared as 'uint32_t[6]' {aka 'unsigned int[6]'}
28 | OPENSSL_UNUSED static void fiat_p384_set_one(uint32_t out1[6]);
| ~~~~~~~~~^~~~~~~
In file included from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/p384.c:47,
from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/bcm.c:89:
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:9455:37: error: argument 1 of type 'uint32_t[13]' {aka 'unsigned int[13]'} with mismatched bound [-Werror=array-parameter=]
9455 | static void fiat_p384_msat(uint32_t out1[13]) {
| ~~~~~~~~~^~~~~~~~
In file included from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/p384.c:47,
from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/bcm.c:89:
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:29:52: note: previously declared as 'uint32_t[7]' {aka 'unsigned int[7]'}
29 | OPENSSL_UNUSED static void fiat_p384_msat(uint32_t out1[7]);
| ~~~~~~~~~^~~~~~~
In file included from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/p384.c:47,
from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/bcm.c:89:
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:9500:56: error: argument 2 of type 'uint32_t[13]' {aka 'unsigned int[13]'} with mismatched bound [-Werror=array-parameter=]
9500 | static void fiat_p384_divstep(uint32_t* out1, uint32_t out2[13], uint32_t out3[13], uint32_t out4[12], uint32_t out5[12], uint32_t arg1, const uint32_t arg2[13], const uint32_t arg3[13], const uint32_t arg4[12], const uint32_t arg5[12]) {
| ~~~~~~~~~^~~~~~~~
In file included from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/p384.c:47,
from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/bcm.c:89:
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:30:71: note: previously declared as 'uint32_t[7]' {aka 'unsigned int[7]'}
30 | OPENSSL_UNUSED static void fiat_p384_divstep(uint32_t* out1, uint32_t out2[7], uint32_t out3[7], uint32_t out4[6], uint32_t out5[6], uint32_t arg1, const uint32_t arg2[7], const uint32_t arg3[7], const uint32_t arg4[6], const uint32_t arg5[6]);
| ~~~~~~~~~^~~~~~~
In file included from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/p384.c:47,
from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/bcm.c:89:
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:9500:75: error: argument 3 of type 'uint32_t[13]' {aka 'unsigned int[13]'} with mismatched bound [-Werror=array-parameter=]
9500 | static void fiat_p384_divstep(uint32_t* out1, uint32_t out2[13], uint32_t out3[13], uint32_t out4[12], uint32_t out5[12], uint32_t arg1, const uint32_t arg2[13], const uint32_t arg3[13], const uint32_t arg4[12], const uint32_t arg5[12]) {
| ~~~~~~~~~^~~~~~~~
In file included from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/p384.c:47,
from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/bcm.c:89:
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:30:89: note: previously declared as 'uint32_t[7]' {aka 'unsigned int[7]'}
30 | OPENSSL_UNUSED static void fiat_p384_divstep(uint32_t* out1, uint32_t out2[7], uint32_t out3[7], uint32_t out4[6], uint32_t out5[6], uint32_t arg1, const uint32_t arg2[7], const uint32_t arg3[7], const uint32_t arg4[6], const uint32_t arg5[6]);
| ~~~~~~~~~^~~~~~~
In file included from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/p384.c:47,
from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/bcm.c:89:
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:9500:94: error: argument 4 of type 'uint32_t[12]' {aka 'unsigned int[12]'} with mismatched bound [-Werror=array-parameter=]
9500 | static void fiat_p384_divstep(uint32_t* out1, uint32_t out2[13], uint32_t out3[13], uint32_t out4[12], uint32_t out5[12], uint32_t arg1, const uint32_t arg2[13], const uint32_t arg3[13], const uint32_t arg4[12], const uint32_t arg5[12]) {
| ~~~~~~~~~^~~~~~~~
In file included from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/p384.c:47,
from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/bcm.c:89:
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:30:107: note: previously declared as 'uint32_t[6]' {aka 'unsigned int[6]'}
30 | OPENSSL_UNUSED static void fiat_p384_divstep(uint32_t* out1, uint32_t out2[7], uint32_t out3[7], uint32_t out4[6], uint32_t out5[6], uint32_t arg1, const uint32_t arg2[7], const uint32_t arg3[7], const uint32_t arg4[6], const uint32_t arg5[6]);
| ~~~~~~~~~^~~~~~~
In file included from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/p384.c:47,
from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/bcm.c:89:
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:9500:113: error: argument 5 of type 'uint32_t[12]' {aka 'unsigned int[12]'} with mismatched bound [-Werror=array-parameter=]
9500 | static void fiat_p384_divstep(uint32_t* out1, uint32_t out2[13], uint32_t out3[13], uint32_t out4[12], uint32_t out5[12], uint32_t arg1, const uint32_t arg2[13], const uint32_t arg3[13], const uint32_t arg4[12], const uint32_t arg5[12]) {
| ~~~~~~~~~^~~~~~~~
In file included from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/p384.c:47,
from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/bcm.c:89:
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:30:125: note: previously declared as 'uint32_t[6]' {aka 'unsigned int[6]'}
30 | OPENSSL_UNUSED static void fiat_p384_divstep(uint32_t* out1, uint32_t out2[7], uint32_t out3[7], uint32_t out4[6], uint32_t out5[6], uint32_t arg1, const uint32_t arg2[7], const uint32_t arg3[7], const uint32_t arg4[6], const uint32_t arg5[6]);
| ~~~~~~~~~^~~~~~~
In file included from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/p384.c:47,
from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/bcm.c:89:
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:9500:153: error: argument 7 of type 'const uint32_t[13]' {aka 'const unsigned int[13]'} with mismatched bound [-Werror=array-parameter=]
9500 | static void fiat_p384_divstep(uint32_t* out1, uint32_t out2[13], uint32_t out3[13], uint32_t out4[12], uint32_t out5[12], uint32_t arg1, const uint32_t arg2[13], const uint32_t arg3[13], const uint32_t arg4[12], const uint32_t arg5[12]) {
| ~~~~~~~~~~~~~~~^~~~~~~~
In file included from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/p384.c:47,
from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/bcm.c:89:
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:30:164: note: previously declared as 'const uint32_t[7]' {aka 'const unsigned int[7]'}
30 | OPENSSL_UNUSED static void fiat_p384_divstep(uint32_t* out1, uint32_t out2[7], uint32_t out3[7], uint32_t out4[6], uint32_t out5[6], uint32_t arg1, const uint32_t arg2[7], const uint32_t arg3[7], const uint32_t arg4[6], const uint32_t arg5[6]);
| ~~~~~~~~~~~~~~~^~~~~~~
In file included from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/p384.c:47,
from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/bcm.c:89:
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:9500:178: error: argument 8 of type 'const uint32_t[13]' {aka 'const unsigned int[13]'} with mismatched bound [-Werror=array-parameter=]
9500 | static void fiat_p384_divstep(uint32_t* out1, uint32_t out2[13], uint32_t out3[13], uint32_t out4[12], uint32_t out5[12], uint32_t arg1, const uint32_t arg2[13], const uint32_t arg3[13], const uint32_t arg4[12], const uint32_t arg5[12]) {
| ~~~~~~~~~~~~~~~^~~~~~~~
In file included from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/p384.c:47,
from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/bcm.c:89:
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:30:188: note: previously declared as 'const uint32_t[7]' {aka 'const unsigned int[7]'}
30 | OPENSSL_UNUSED static void fiat_p384_divstep(uint32_t* out1, uint32_t out2[7], uint32_t out3[7], uint32_t out4[6], uint32_t out5[6], uint32_t arg1, const uint32_t arg2[7], const uint32_t arg3[7], const uint32_t arg4[6], const uint32_t arg5[6]);
| ~~~~~~~~~~~~~~~^~~~~~~
In file included from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/p384.c:47,
from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/bcm.c:89:
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:9500:203: error: argument 9 of type 'const uint32_t[12]' {aka 'const unsigned int[12]'} with mismatched bound [-Werror=array-parameter=]
9500 | static void fiat_p384_divstep(uint32_t* out1, uint32_t out2[13], uint32_t out3[13], uint32_t out4[12], uint32_t out5[12], uint32_t arg1, const uint32_t arg2[13], const uint32_t arg3[13], const uint32_t arg4[12], const uint32_t arg5[12]) {
| ~~~~~~~~~~~~~~~^~~~~~~~
In file included from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/p384.c:47,
from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/bcm.c:89:
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:30:212: note: previously declared as 'const uint32_t[6]' {aka 'const unsigned int[6]'}
30 | OPENSSL_UNUSED static void fiat_p384_divstep(uint32_t* out1, uint32_t out2[7], uint32_t out3[7], uint32_t out4[6], uint32_t out5[6], uint32_t arg1, const uint32_t arg2[7], const uint32_t arg3[7], const uint32_t arg4[6], const uint32_t arg5[6]);
| ~~~~~~~~~~~~~~~^~~~~~~
In file included from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/p384.c:47,
from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/bcm.c:89:
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:9500:228: error: argument 10 of type 'const uint32_t[12]' {aka 'const unsigned int[12]'} with mismatched bound [-Werror=array-parameter=]
9500 | static void fiat_p384_divstep(uint32_t* out1, uint32_t out2[13], uint32_t out3[13], uint32_t out4[12], uint32_t out5[12], uint32_t arg1, const uint32_t arg2[13], const uint32_t arg3[13], const uint32_t arg4[12], const uint32_t arg5[12]) {
| ~~~~~~~~~~~~~~~^~~~~~~~
In file included from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/p384.c:47,
from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/bcm.c:89:
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:30:236: note: previously declared as 'const uint32_t[6]' {aka 'const unsigned int[6]'}
30 | OPENSSL_UNUSED static void fiat_p384_divstep(uint32_t* out1, uint32_t out2[7], uint32_t out3[7], uint32_t out4[6], uint32_t out5[6], uint32_t arg1, const uint32_t arg2[7], const uint32_t arg3[7], const uint32_t arg4[6], const uint32_t arg5[6]);
| ~~~~~~~~~~~~~~~^~~~~~~
In file included from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/p384.c:47,
from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/bcm.c:89:
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:10129:48: error: argument 1 of type 'uint32_t[12]' {aka 'unsigned int[12]'} with mismatched bound [-Werror=array-parameter=]
10129 | static void fiat_p384_divstep_precomp(uint32_t out1[12]) {
| ~~~~~~~~~^~~~~~~~
In file included from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/p384.c:47,
from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/bcm.c:89:
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:31:63: note: previously declared as 'uint32_t[6]' {aka 'unsigned int[6]'}
31 | OPENSSL_UNUSED static void fiat_p384_divstep_precomp(uint32_t out1[6]);
| ~~~~~~~~~^~~~~~~
In file included from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/p384.c:47,
from /tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/bcm.c:89:
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h: In function 'fiat_p384_opp':
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:5551:3: error: array subscript 6 is outside array bounds of 'const uint32_t[6]' {aka 'const unsigned int[6]'} [-Werror=array-bounds]
5551 | fiat_p384_subborrowx_u32(&x13, &x14, x12, 0x0, (arg1[6]));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:5495:61: note: while referencing 'arg1'
5495 | static void fiat_p384_opp(uint32_t out1[12], const uint32_t arg1[12]) {
| ~~~~~~~~~~~~~~~^~~~~~~~
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:5552:3: error: array subscript 7 is outside array bounds of 'const uint32_t[6]' {aka 'const unsigned int[6]'} [-Werror=array-bounds]
5552 | fiat_p384_subborrowx_u32(&x15, &x16, x14, 0x0, (arg1[7]));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:5495:61: note: while referencing 'arg1'
5495 | static void fiat_p384_opp(uint32_t out1[12], const uint32_t arg1[12]) {
| ~~~~~~~~~~~~~~~^~~~~~~~
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:5553:3: error: array subscript 8 is outside array bounds of 'const uint32_t[6]' {aka 'const unsigned int[6]'} [-Werror=array-bounds]
5553 | fiat_p384_subborrowx_u32(&x17, &x18, x16, 0x0, (arg1[8]));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:5495:61: note: while referencing 'arg1'
5495 | static void fiat_p384_opp(uint32_t out1[12], const uint32_t arg1[12]) {
| ~~~~~~~~~~~~~~~^~~~~~~~
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:5554:3: error: array subscript 9 is outside array bounds of 'const uint32_t[6]' {aka 'const unsigned int[6]'} [-Werror=array-bounds]
5554 | fiat_p384_subborrowx_u32(&x19, &x20, x18, 0x0, (arg1[9]));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:5495:61: note: while referencing 'arg1'
5495 | static void fiat_p384_opp(uint32_t out1[12], const uint32_t arg1[12]) {
| ~~~~~~~~~~~~~~~^~~~~~~~
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:5555:3: error: array subscript 10 is outside array bounds of 'const uint32_t[6]' {aka 'const unsigned int[6]'} [-Werror=array-bounds]
5555 | fiat_p384_subborrowx_u32(&x21, &x22, x20, 0x0, (arg1[10]));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:5495:61: note: while referencing 'arg1'
5495 | static void fiat_p384_opp(uint32_t out1[12], const uint32_t arg1[12]) {
| ~~~~~~~~~~~~~~~^~~~~~~~
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:5556:3: error: array subscript 11 is outside array bounds of 'const uint32_t[6]' {aka 'const unsigned int[6]'} [-Werror=array-bounds]
5556 | fiat_p384_subborrowx_u32(&x23, &x24, x22, 0x0, (arg1[11]));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:5495:61: note: while referencing 'arg1'
5495 | static void fiat_p384_opp(uint32_t out1[12], const uint32_t arg1[12]) {
| ~~~~~~~~~~~~~~~^~~~~~~~
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:5576:7: error: array subscript 6 is outside array bounds of 'uint32_t[6]' {aka 'unsigned int[6]'} [-Werror=array-bounds]
5576 | out1[6] = x38;
| ~~~~^~~
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:5495:36: note: while referencing 'out1'
5495 | static void fiat_p384_opp(uint32_t out1[12], const uint32_t arg1[12]) {
| ~~~~~~~~~^~~~~~~~
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:5577:7: error: array subscript 7 is outside array bounds of 'uint32_t[6]' {aka 'unsigned int[6]'} [-Werror=array-bounds]
5577 | out1[7] = x40;
| ~~~~^~~
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:5495:36: note: while referencing 'out1'
5495 | static void fiat_p384_opp(uint32_t out1[12], const uint32_t arg1[12]) {
| ~~~~~~~~~^~~~~~~~
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:5578:7: error: array subscript 8 is outside array bounds of 'uint32_t[6]' {aka 'unsigned int[6]'} [-Werror=array-bounds]
5578 | out1[8] = x42;
| ~~~~^~~
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:5495:36: note: while referencing 'out1'
5495 | static void fiat_p384_opp(uint32_t out1[12], const uint32_t arg1[12]) {
| ~~~~~~~~~^~~~~~~~
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:5579:7: error: array subscript 9 is outside array bounds of 'uint32_t[6]' {aka 'unsigned int[6]'} [-Werror=array-bounds]
5579 | out1[9] = x44;
| ~~~~^~~
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:5495:36: note: while referencing 'out1'
5495 | static void fiat_p384_opp(uint32_t out1[12], const uint32_t arg1[12]) {
| ~~~~~~~~~^~~~~~~~
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:5580:7: error: array subscript 10 is outside array bounds of 'uint32_t[6]' {aka 'unsigned int[6]'} [-Werror=array-bounds]
5580 | out1[10] = x46;
| ~~~~^~~~
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:5495:36: note: while referencing 'out1'
5495 | static void fiat_p384_opp(uint32_t out1[12], const uint32_t arg1[12]) {
| ~~~~~~~~~^~~~~~~~
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:5581:7: error: array subscript 11 is outside array bounds of 'uint32_t[6]' {aka 'unsigned int[6]'} [-Werror=array-bounds]
5581 | out1[11] = x48;
| ~~~~^~~~
/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/crt/aws-lc/crypto/fipsmodule/ec/../../../third_party/fiat/p384_32.h:5495:36: note: while referencing 'out1'
5495 | static void fiat_p384_opp(uint32_t out1[12], const uint32_t arg1[12]) {
| ~~~~~~~~~^~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [crypto/fipsmodule/CMakeFiles/fipsmodule.dir/build.make:76: crypto/fipsmodule/CMakeFiles/fipsmodule.dir/bcm.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:205: crypto/fipsmodule/CMakeFiles/fipsmodule.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/setup.py", line 343, in <module>
setuptools.setup(
File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.10/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.10/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3.10/site-packages/setuptools/command/install.py", line 68, in run
return orig.install.run(self)
File "/usr/lib/python3.10/distutils/command/install.py", line 568, in run
self.run_command('build')
File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3.10/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/setup.py", line 266, in run
self._build_dependency(lib, dep_build_dir, dep_install_path)
File "/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/setup.py", line 259, in _build_dependency
self._build_dependency_impl(aws_lib, build_dir, install_path)
File "/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/setup.py", line 218, in _build_dependency_impl
run_cmd(build_cmd)
File "/tmp/pip-install-7v56nple/awscrt_ba9ceee58b334292977263bfff6d428b/setup.py", line 29, in run_cmd
subprocess.check_call(args)
File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/cmake', '--build', 'build/temp.linux-x86_64-3.10/deps/aws-lc', '--config', 'RelWithDebInfo', '--target', 'install']' returned non-zero exit status 2.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> awscrt
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.