Skip to content

Cannot build with 3.14 free-threaded #1380

@clin1234

Description

@clin1234
(venv) cc@pretty:~$ pip install pygit2
Collecting pygit2
  Using cached pygit2-1.18.0.tar.gz (773 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: cffi>=1.17.0 in ./venv/lib64/python3.14t/site-packages (from pygit2) (1.17.1)
Requirement already satisfied: pycparser in ./venv/lib64/python3.14t/site-packages (from cffi>=1.17.0->pygit2) (2.22)
Building wheels for collected packages: pygit2
  Building wheel for pygit2 (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for pygit2 (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [163 lines of output]
      <frozen importlib._bootstrap>:491: RuntimeWarning: The global interpreter lock (GIL) has been enabled to load module '_cffi_backend', which has not declared that it can run safely without the GIL. To override this behavior and keep the GIL disabled (at your own risk), run with PYTHON_GIL=0 or -Xgil=0.
      running bdist_wheel
      running build
      running build_py
      creating build/lib.linux-x86_64-cpython-314t/pygit2
      copying pygit2/utils.py -> build/lib.linux-x86_64-cpython-314t/pygit2
      copying pygit2/submodules.py -> build/lib.linux-x86_64-cpython-314t/pygit2
      copying pygit2/settings.py -> build/lib.linux-x86_64-cpython-314t/pygit2
      copying pygit2/repository.py -> build/lib.linux-x86_64-cpython-314t/pygit2
      copying pygit2/remotes.py -> build/lib.linux-x86_64-cpython-314t/pygit2
      copying pygit2/refspec.py -> build/lib.linux-x86_64-cpython-314t/pygit2
      copying pygit2/references.py -> build/lib.linux-x86_64-cpython-314t/pygit2
      copying pygit2/packbuilder.py -> build/lib.linux-x86_64-cpython-314t/pygit2
      copying pygit2/legacyenums.py -> build/lib.linux-x86_64-cpython-314t/pygit2
      copying pygit2/index.py -> build/lib.linux-x86_64-cpython-314t/pygit2
      copying pygit2/filter.py -> build/lib.linux-x86_64-cpython-314t/pygit2
      copying pygit2/ffi.py -> build/lib.linux-x86_64-cpython-314t/pygit2
      copying pygit2/errors.py -> build/lib.linux-x86_64-cpython-314t/pygit2
      copying pygit2/enums.py -> build/lib.linux-x86_64-cpython-314t/pygit2
      copying pygit2/credentials.py -> build/lib.linux-x86_64-cpython-314t/pygit2
      copying pygit2/config.py -> build/lib.linux-x86_64-cpython-314t/pygit2
      copying pygit2/callbacks.py -> build/lib.linux-x86_64-cpython-314t/pygit2
      copying pygit2/branches.py -> build/lib.linux-x86_64-cpython-314t/pygit2
      copying pygit2/blob.py -> build/lib.linux-x86_64-cpython-314t/pygit2
      copying pygit2/blame.py -> build/lib.linux-x86_64-cpython-314t/pygit2
      copying pygit2/_run.py -> build/lib.linux-x86_64-cpython-314t/pygit2
      copying pygit2/_build.py -> build/lib.linux-x86_64-cpython-314t/pygit2
      copying pygit2/__init__.py -> build/lib.linux-x86_64-cpython-314t/pygit2
      copying pygit2/_pygit2.pyi -> build/lib.linux-x86_64-cpython-314t/pygit2
      copying pygit2/py.typed -> build/lib.linux-x86_64-cpython-314t/pygit2
      creating build/lib.linux-x86_64-cpython-314t/pygit2/decl
      copying pygit2/decl/types.h -> build/lib.linux-x86_64-cpython-314t/pygit2/decl
      copying pygit2/decl/transport.h -> build/lib.linux-x86_64-cpython-314t/pygit2/decl
      copying pygit2/decl/submodule.h -> build/lib.linux-x86_64-cpython-314t/pygit2/decl
      copying pygit2/decl/strarray.h -> build/lib.linux-x86_64-cpython-314t/pygit2/decl
      copying pygit2/decl/stash.h -> build/lib.linux-x86_64-cpython-314t/pygit2/decl
      copying pygit2/decl/revert.h -> build/lib.linux-x86_64-cpython-314t/pygit2/decl
      copying pygit2/decl/repository.h -> build/lib.linux-x86_64-cpython-314t/pygit2/decl
      copying pygit2/decl/remote.h -> build/lib.linux-x86_64-cpython-314t/pygit2/decl
      copying pygit2/decl/refspec.h -> build/lib.linux-x86_64-cpython-314t/pygit2/decl
      copying pygit2/decl/proxy.h -> build/lib.linux-x86_64-cpython-314t/pygit2/decl
      copying pygit2/decl/pack.h -> build/lib.linux-x86_64-cpython-314t/pygit2/decl
      copying pygit2/decl/oid.h -> build/lib.linux-x86_64-cpython-314t/pygit2/decl
      copying pygit2/decl/net.h -> build/lib.linux-x86_64-cpython-314t/pygit2/decl
      copying pygit2/decl/merge.h -> build/lib.linux-x86_64-cpython-314t/pygit2/decl
      copying pygit2/decl/indexer.h -> build/lib.linux-x86_64-cpython-314t/pygit2/decl
      copying pygit2/decl/index.h -> build/lib.linux-x86_64-cpython-314t/pygit2/decl
      copying pygit2/decl/graph.h -> build/lib.linux-x86_64-cpython-314t/pygit2/decl
      copying pygit2/decl/errors.h -> build/lib.linux-x86_64-cpython-314t/pygit2/decl
      copying pygit2/decl/diff.h -> build/lib.linux-x86_64-cpython-314t/pygit2/decl
      copying pygit2/decl/describe.h -> build/lib.linux-x86_64-cpython-314t/pygit2/decl
      copying pygit2/decl/config.h -> build/lib.linux-x86_64-cpython-314t/pygit2/decl
      copying pygit2/decl/common.h -> build/lib.linux-x86_64-cpython-314t/pygit2/decl
      copying pygit2/decl/commit.h -> build/lib.linux-x86_64-cpython-314t/pygit2/decl
      copying pygit2/decl/clone.h -> build/lib.linux-x86_64-cpython-314t/pygit2/decl
      copying pygit2/decl/checkout.h -> build/lib.linux-x86_64-cpython-314t/pygit2/decl
      copying pygit2/decl/callbacks.h -> build/lib.linux-x86_64-cpython-314t/pygit2/decl
      copying pygit2/decl/buffer.h -> build/lib.linux-x86_64-cpython-314t/pygit2/decl
      copying pygit2/decl/blame.h -> build/lib.linux-x86_64-cpython-314t/pygit2/decl
      copying pygit2/decl/attr.h -> build/lib.linux-x86_64-cpython-314t/pygit2/decl
      running build_ext
      generating cffi module 'build/temp.linux-x86_64-cpython-314t/pygit2._libgit2.c'
      creating build/temp.linux-x86_64-cpython-314t
      building 'pygit2._pygit2' extension
      creating build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -I/usr/local/include -I/home/cc/venv/include -I/usr/include/python3.14t -c /tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/blob.c -o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/blob.o
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -I/usr/local/include -I/home/cc/venv/include -I/usr/include/python3.14t -c /tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/branch.c -o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/branch.o
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -I/usr/local/include -I/home/cc/venv/include -I/usr/include/python3.14t -c /tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/commit.c -o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/commit.o
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -I/usr/local/include -I/home/cc/venv/include -I/usr/include/python3.14t -c /tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/diff.c -o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/diff.o
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -I/usr/local/include -I/home/cc/venv/include -I/usr/include/python3.14t -c /tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/error.c -o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/error.o
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -I/usr/local/include -I/home/cc/venv/include -I/usr/include/python3.14t -c /tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/filter.c -o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/filter.o
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -I/usr/local/include -I/home/cc/venv/include -I/usr/include/python3.14t -c /tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/mailmap.c -o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/mailmap.o
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -I/usr/local/include -I/home/cc/venv/include -I/usr/include/python3.14t -c /tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/note.c -o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/note.o
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -I/usr/local/include -I/home/cc/venv/include -I/usr/include/python3.14t -c /tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/object.c -o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/object.o
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -I/usr/local/include -I/home/cc/venv/include -I/usr/include/python3.14t -c /tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/odb.c -o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/odb.o
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -I/usr/local/include -I/home/cc/venv/include -I/usr/include/python3.14t -c /tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/odb_backend.c -o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/odb_backend.o
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -I/usr/local/include -I/home/cc/venv/include -I/usr/include/python3.14t -c /tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/oid.c -o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/oid.o
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -I/usr/local/include -I/home/cc/venv/include -I/usr/include/python3.14t -c /tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/options.c -o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/options.o
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -I/usr/local/include -I/home/cc/venv/include -I/usr/include/python3.14t -c /tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/patch.c -o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/patch.o
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -I/usr/local/include -I/home/cc/venv/include -I/usr/include/python3.14t -c /tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/pygit2.c -o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/pygit2.o
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -I/usr/local/include -I/home/cc/venv/include -I/usr/include/python3.14t -c /tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/refdb.c -o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/refdb.o
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -I/usr/local/include -I/home/cc/venv/include -I/usr/include/python3.14t -c /tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/refdb_backend.c -o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/refdb_backend.o
      In file included from /usr/include/python3.14t/cpython/pyatomic.h:577,
                       from /usr/include/python3.14t/pyatomic.h:9,
                       from /usr/include/python3.14t/Python.h:78,
                       from /tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/refdb_backend.c:29:
      In function ‘_Py_atomic_load_uint32_relaxed’,
          inlined from ‘Py_DECREF’ at /usr/include/python3.14t/refcount.h:377:22,
          inlined from ‘pygit2_refdb_backend_rename’ at /tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/refdb_backend.c:250:9:
      /usr/include/python3.14t/cpython/pyatomic_gcc.h:367:10: warning: ‘__atomic_load_4’ writing 4 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=]
        367 | { return __atomic_load_n(obj, __ATOMIC_RELAXED); }
            |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      In function ‘pygit2_refdb_backend_rename’:
      cc1: note: destination object is likely at address zero
      In function ‘_Py_atomic_load_uint32_relaxed’,
          inlined from ‘Py_DECREF’ at /usr/include/python3.14t/refcount.h:377:22,
          inlined from ‘pygit2_refdb_backend_rename’ at /tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/refdb_backend.c:254:5:
      /usr/include/python3.14t/cpython/pyatomic_gcc.h:367:10: warning: ‘__atomic_load_4’ writing 4 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=]
        367 | { return __atomic_load_n(obj, __ATOMIC_RELAXED); }
            |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      In function ‘pygit2_refdb_backend_rename’:
      cc1: note: destination object is likely at address zero
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -I/usr/local/include -I/home/cc/venv/include -I/usr/include/python3.14t -c /tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/reference.c -o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/reference.o
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -I/usr/local/include -I/home/cc/venv/include -I/usr/include/python3.14t -c /tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/repository.c -o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/repository.o
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -I/usr/local/include -I/home/cc/venv/include -I/usr/include/python3.14t -c /tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/revspec.c -o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/revspec.o
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -I/usr/local/include -I/home/cc/venv/include -I/usr/include/python3.14t -c /tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/signature.c -o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/signature.o
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -I/usr/local/include -I/home/cc/venv/include -I/usr/include/python3.14t -c /tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/stash.c -o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/stash.o
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -I/usr/local/include -I/home/cc/venv/include -I/usr/include/python3.14t -c /tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/tag.c -o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/tag.o
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -I/usr/local/include -I/home/cc/venv/include -I/usr/include/python3.14t -c /tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/tree.c -o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/tree.o
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -I/usr/local/include -I/home/cc/venv/include -I/usr/include/python3.14t -c /tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/treebuilder.c -o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/treebuilder.o
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -I/usr/local/include -I/home/cc/venv/include -I/usr/include/python3.14t -c /tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/utils.c -o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/utils.o
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -I/usr/local/include -I/home/cc/venv/include -I/usr/include/python3.14t -c /tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/walker.c -o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/walker.o
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -I/usr/local/include -I/home/cc/venv/include -I/usr/include/python3.14t -c /tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/wildmatch.c -o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/wildmatch.o
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -I/usr/local/include -I/home/cc/venv/include -I/usr/include/python3.14t -c /tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/worktree.c -o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/worktree.o
      gcc -shared build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/blob.o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/branch.o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/commit.o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/diff.o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/error.o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/filter.o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/mailmap.o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/note.o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/object.o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/odb.o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/odb_backend.o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/oid.o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/options.o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/patch.o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/pygit2.o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/refdb.o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/refdb_backend.o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/reference.o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/repository.o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/revspec.o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/signature.o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/stash.o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/tag.o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/tree.o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/treebuilder.o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/utils.o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/walker.o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/wildmatch.o build/temp.linux-x86_64-cpython-314t/tmp/pip-install-hduftt5f/pygit2_268bff4feef44cc59e00429890e3ca33/src/worktree.o -L/usr/local/lib -L/usr/local/lib64 -L/usr/lib64 -lgit2 -o build/lib.linux-x86_64-cpython-314t/pygit2/_pygit2.cpython-314t-x86_64-linux-gnu.so
      building 'pygit2._libgit2' extension
      creating build/temp.linux-x86_64-cpython-314t/build/temp.linux-x86_64-cpython-314t
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -I/usr/local/include -I/home/cc/venv/include -I/usr/include/python3.14t -c build/temp.linux-x86_64-cpython-314t/pygit2._libgit2.c -o build/temp.linux-x86_64-cpython-314t/build/temp.linux-x86_64-cpython-314t/pygit2._libgit2.o
      In file included from build/temp.linux-x86_64-cpython-314t/pygit2._libgit2.c:57:
      /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 /usr/include/python3.14t/Python.h:81:
      /usr/include/python3.14t/object.h:158:5: error: unknown type name ‘PyMutex’
        158 |     PyMutex ob_mutex;           // per-object lock
            |     ^~~~~~~
      /usr/include/python3.14t/object.h: In function ‘Py_SET_SIZE’:
      /usr/include/python3.14t/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);
            |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      In file included from /usr/include/python3.14t/Python.h:82:
      /usr/include/python3.14t/refcount.h: In function ‘_Py_REFCNT’:
      /usr/include/python3.14t/refcount.h:109:26: error: 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);
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /usr/include/python3.14t/refcount.h:113:29: error: 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);
            |                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /usr/include/python3.14t/refcount.h: In function ‘_Py_IsImmortal’:
      /usr/include/python3.14t/refcount.h:126:63: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
        126 |     return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) ==
            |                                                               ^~
      /usr/include/python3.14t/refcount.h: In function ‘Py_SET_REFCNT’:
      /usr/include/python3.14t/refcount.h:171:9: error: implicit declaration of function ‘_Py_IsOwnedByCurrentThread’ [-Wimplicit-function-declaration]
        171 |     if (_Py_IsOwnedByCurrentThread(ob)) {
            |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
      /usr/include/python3.14t/refcount.h: In function ‘Py_INCREF’:
      /usr/include/python3.14t/refcount.h:288:9: error: implicit declaration of function ‘_Py_atomic_store_uint32_relaxed’ [-Wimplicit-function-declaration]
        288 |         _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local);
            |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /usr/include/python3.14t/refcount.h:291:9: error: implicit declaration of function ‘_Py_atomic_add_ssize’; did you mean ‘__atomic_add_fetch’? [-Wimplicit-function-declaration]
        291 |         _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT));
            |         ^~~~~~~~~~~~~~~~~~~~
            |         __atomic_add_fetch
      /usr/include/python3.14t/refcount.h: In function ‘Py_DECREF’:
      /usr/include/python3.14t/refcount.h:387:13: error: implicit declaration of function ‘_Py_MergeZeroLocalRefcount’ [-Wimplicit-function-declaration]
        387 |             _Py_MergeZeroLocalRefcount(op);
            |             ^~~~~~~~~~~~~~~~~~~~~~~~~~
      /usr/include/python3.14t/refcount.h:391:9: error: implicit declaration of function ‘_Py_DecRefShared’; did you mean ‘_Py_DecRef’? [-Wimplicit-function-declaration]
        391 |         _Py_DecRefShared(op);
            |         ^~~~~~~~~~~~~~~~
            |         _Py_DecRef
      error: command '/opt/gcc-latest/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 pygit2
Failed to build pygit2
ERROR: Failed to build installable wheels for some pyproject.toml based projects (pygit2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions