Skip to content

The limited API is not currently supported in the free-threaded build #713

@wills721

Description

@wills721

Describe the bug

Can anyone help me with what is going on here with my Python3.14t build and how to fix?

/home/will/Python-3.14.2/Include/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 /home/will/Python-3.14.2/Include/Python.h:82:
/home/will/Python-3.14.2/Include/object.h:158:5: error: unknown type name ‘PyMutex’
158 | PyMutex ob_mutex; // per-object lock
| ^~~~~~~
/home/will/Python-3.14.2/Include/object.h: In function ‘Py_SET_SIZE’:
/home/will/Python-3.14.2/Include/object.h:311:5: error: implicit declaration of function ‘_Py_atomic_store_ssize_relaxed’ [-Wimplicit-function-declaration]
311 | _Py_atomic_store_ssize_relaxed(&ob->ob_size, size);

Regression Issue

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

Expected Behavior

Compile successfully.

Current Behavior

Fails to compile

Reproduction Steps

Build python3.14 with the following configure options:

./configure --prefix=/usr/local --enable-optimizations --with-lto --disable-gil --disable-shared

Possible Solution

No response

Additional Information/Context

No response

aws-crt-python version used

latest

Python version used

3.14.2t

Operating System and version

Ubuntu 24

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