Skip to content

Cannot build from Git with 3.14t #215

@clin1234

Description

@clin1234
 Building wheel for tree-sitter-java (pyproject.toml): started
  Building wheel for tree-sitter-java (pyproject.toml): finished with status 'error'
  error: subprocess-exited-with-error
  
  × Building wheel for tree-sitter-java (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [111 lines of output]
      /tmp/pip-build-env-glfedyls/overlay/lib/python3.14t/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated
      !!
      
              ********************************************************************************
              Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0).
      
              By 2026-Feb-18, you need to update your project and remove deprecated calls
              or your builds will no longer be supported.
      
              See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
              ********************************************************************************
      
      !!
        corresp(dist, value, root_dir)
      /tmp/pip-build-env-glfedyls/overlay/lib/python3.14t/site-packages/setuptools/config/_apply_pyprojecttoml.py:61: SetuptoolsDeprecationWarning: License classifiers are deprecated.
      !!
      
              ********************************************************************************
              Please consider removing the following classifiers in favor of a SPDX license expression:
      
              License :: OSI Approved :: MIT License
      
              See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
              ********************************************************************************
      
      !!
        dist._finalize_license_expression()
      /tmp/pip-build-env-glfedyls/overlay/lib/python3.14t/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
      !!
      
              ********************************************************************************
              Please consider removing the following classifiers in favor of a SPDX license expression:
      
              License :: OSI Approved :: MIT License
      
              See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
              ********************************************************************************
      
      !!
        self._finalize_license_expression()
      running bdist_wheel
      running build
      running build_py
      creating build/lib.linux-x86_64-cpython-314t/tree_sitter_java
      copying bindings/python/tree_sitter_java/__init__.py -> build/lib.linux-x86_64-cpython-314t/tree_sitter_java
      running egg_info
      writing bindings/python/tree_sitter_java.egg-info/PKG-INFO
      writing dependency_links to bindings/python/tree_sitter_java.egg-info/dependency_links.txt
      writing requirements to bindings/python/tree_sitter_java.egg-info/requires.txt
      writing top-level names to bindings/python/tree_sitter_java.egg-info/top_level.txt
      reading manifest file 'bindings/python/tree_sitter_java.egg-info/SOURCES.txt'
      adding license file 'LICENSE'
      writing manifest file 'bindings/python/tree_sitter_java.egg-info/SOURCES.txt'
      copying bindings/python/tree_sitter_java/__init__.pyi -> build/lib.linux-x86_64-cpython-314t/tree_sitter_java
      copying bindings/python/tree_sitter_java/binding.c -> build/lib.linux-x86_64-cpython-314t/tree_sitter_java
      copying bindings/python/tree_sitter_java/py.typed -> build/lib.linux-x86_64-cpython-314t/tree_sitter_java
      running build_ext
      building '_binding' extension
      creating build/temp.linux-x86_64-cpython-314t/bindings/python/tree_sitter_java
      creating build/temp.linux-x86_64-cpython-314t/src
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DPy_LIMITED_API=0x03090000 -DPY_SSIZE_T_CLEAN -DTREE_SITTER_HIDE_SYMBOLS -Isrc -I/home/cc/venv/include -I/usr/include/python3.14t -c bindings/python/tree_sitter_java/binding.c -o build/temp.linux-x86_64-cpython-314t/bindings/python/tree_sitter_java/binding.o -std=c11 -fvisibility=hidden
      In file included from bindings/python/tree_sitter_java/binding.c:1:
      /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:274:9: error: implicit declaration of function ‘_Py_atomic_store_uint32_relaxed’ [-Wimplicit-function-declaration]
        274 |         _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local);
            |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /usr/include/python3.14t/refcount.h:277:9: error: implicit declaration of function ‘_Py_atomic_add_ssize’; did you mean ‘__atomic_add_fetch’? [-Wimplicit-function-declaration]
        277 |         _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:373:13: error: implicit declaration of function ‘_Py_MergeZeroLocalRefcount’ [-Wimplicit-function-declaration]
        373 |             _Py_MergeZeroLocalRefcount(op);
            |             ^~~~~~~~~~~~~~~~~~~~~~~~~~
      /usr/include/python3.14t/refcount.h:377:9: error: implicit declaration of function ‘_Py_DecRefShared’; did you mean ‘_Py_DecRef’? [-Wimplicit-function-declaration]
        377 |         _Py_DecRefShared(op);
            |         ^~~~~~~~~~~~~~~~
            |         _Py_DecRef
      bindings/python/tree_sitter_java/binding.c: At top level:
      bindings/python/tree_sitter_java/binding.c:18:5: warning: braces around scalar initializer
         18 |     .m_base = PyModuleDef_HEAD_INIT,
            |     ^
      bindings/python/tree_sitter_java/binding.c:18:5: note: (near initialization for ‘module.m_base.ob_base.ob_mutex’)
      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 tree-sitter-java

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions