Skip to content

awsiotsdk build fails #675

@wills721

Description

@wills721

Describe the bug

During awsiotsdk pip installation a failure occurs w/awscrt. I am using Python 3.14.2 with --disable-gil. i am including the big long error but I believe the operative part to this is: "The limited API is not currently supported in the free-threaded build"

    > /root/parts/python-3-14/install/usr/bin/cmake -H/tmp/pip-install-_homqtg7/awscrt_060ee4729ddf406cbc753116452da9b3/crt -Bbuild/temp.linux-aarch64-cpython-314t/deps -DCMAKE_INSTALL_PREFIX=build/temp.linux-aarch64-cpython-314t/deps/install -DCMAKE_BUILD_TYPE=RelWithDebInfo -DAWS_USE_LIBCRYPTO_TO_SUPPORT_ED25519_EVERYWHERE=ON
::       > /root/parts/python-3-14/install/usr/bin/cmake --build build/temp.linux-aarch64-cpython-314t/deps --config RelWithDebInfo --target install
::       building '_awscrt' extension
::       creating build/temp.linux-aarch64-cpython-314t/source
::       gcc -fPIC -isystem /root/parts/python-3-14/install/usr/include -isystem /root/parts/python-3-14/install/usr/include/aarch64-linux-gnu -fPIC -DPy_LIMITED_API=0x030D0000 -Ibuild/temp.linux-aarch64-cpython-314t/deps/install/include -I/root/parts/python-3-14/install/usr/include/python3.14t -c source/auth_credentials.c -o build/temp.linux-aarch64-cpython-314t/source/auth_credentials.o -fPIC -Wno-strict-aliasing -std=gnu99
::       In file included from source/module.h:13,
::                        from source/auth.h:7,
::                        from source/auth_credentials.c:6:
::       /root/parts/python-3-14/install/usr/include/python3.14t/Python.h:52:4: error: #error "The limited API is not currently supported in the free-threaded build"
::          52 | #  error "The limited API is not currently supported in the free-threaded build"
::             |    ^~~~~
::       In file included from /root/parts/python-3-14/install/usr/include/python3.14t/Python.h:82,
::                        from source/module.h:13,
::                        from source/auth.h:7,
::                        from source/auth_credentials.c:6:
::       /root/parts/python-3-14/install/usr/include/python3.14t/object.h:158:5: error: unknown type name ‘PyMutex’
::         158 |     PyMutex ob_mutex;           // per-object lock
::             |     ^~~~~~~
::       /root/parts/python-3-14/install/usr/include/python3.14t/object.h: In function ‘Py_SET_SIZE’:
::       /root/parts/python-3-14/install/usr/include/python3.14t/object.h:311:5: warning: implicit declaration of function ‘_Py_atomic_store_ssize_relaxed’ [-Wimplicit-function-declaration]
::         311 |     _Py_atomic_store_ssize_relaxed(&ob->ob_size, size);
::             |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
::       In file included from /root/parts/python-3-14/install/usr/include/python3.14t/Python.h:83,
::                        from source/module.h:13,
::                        from source/auth.h:7,
::                        from source/auth_credentials.c:6:
::       /root/parts/python-3-14/install/usr/include/python3.14t/refcount.h: In function ‘_Py_REFCNT’:
::       /root/parts/python-3-14/install/usr/include/python3.14t/refcount.h:109:26: warning: implicit declaration of function ‘_Py_atomic_load_uint32_relaxed’ [-Wimplicit-function-declaration]
::         109 |         uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local);
::             |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
::       /root/parts/python-3-14/install/usr/include/python3.14t/refcount.h:113:29: warning: implicit declaration of function ‘_Py_atomic_load_ssize_relaxed’ [-Wimplicit-function-declaration]
::         113 |         Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared);
::             |                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
::       error: command '/root/parts/python-3-14/install/usr/bin/gcc' failed with exit code 1
::       [end of output]
::   
::   note: This error originates from a subprocess, and is likely not a problem with pip.
::   ERROR: Failed building wheel for awscrt
:: error: failed-wheel-build-for-install
:: × Failed to build installable wheels for some pyproject.toml based projects
:: ╰─> awscrt
Review the scriptlet and make sure it's correct.

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

build does not fail

Current Behavior

build fails

Reproduction Steps

pip install awsiotsdk

Possible Solution

No response

Additional Information/Context

No response

SDK version used

latest

Environment details (OS name and version, etc.)

Ubuntu 22

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.needs-triageThis issue or PR still needs to be triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions