Skip to content

Python 3.14 free threaded build #682

@wills721

Description

@wills721

Describe the bug

Getting this error when building trying to install awscrt using Python free threaded. Does awscrt not support this?

gcc -isystem /root/parts/python-3-14/install/usr/include -isystem /root/parts/python-3-14/install/usr/include/aarch64-linux-gnu -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=0x030B0000 -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 -isystem /root/parts/python-3-14/install/usr/include -isystem /root/parts/python-3-14/install/usr/include/aarch64-linux-gnu -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:51:4: error: #error "The limited API is not currently supported in the free-threaded build" :: 51 | # 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:81, :: 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:82, :: from source/module.h:13, :: from source/auth.h:7, :: from source/auth_credentials.c:6:

Regression Issue

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

Expected Behavior

python3.14 -m pip install awscrt

.....successfully compiles.

Current Behavior

gcc fails with error

Reproduction Steps

Use python 3.14 free threaded and install awscrt

Possible Solution

No response

Additional Information/Context

No response

aws-crt-python version used

latest

Python version used

3.14t

Operating System and version

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