does not work on msys2 python
envgap__tree-sitter__py-tree-sitter-406
01 / FAILURE SIGNATURE
As reported upstream
gcc.EXE: error: /std:c11: linker input file not found: No such file or directory
Not a benchmark task.
- The project already builds and runs before the fix, so there is nothing to repair.
02 / ENVIRONMENT RECIPE
- Base commit
ec0eab3540c06412e87ec134c597906b86ffa6e5- Manifest
setup.py- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
tree-sitter/py-tree-sitter #406 · read the original issue
windows programs can also be compiled with mingw, which this project fails to do
```
C:/Users/user/Downloads/msys64/tmp/pip-build-env-s9mxt568/overlay/lib/python3.12/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)
C:/Users/user/Downloads/msys64/tmp/pip-build-env-s9mxt568/overlay/lib/python3.12/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()
C:/Users/user/Downloads/msys64/tmp/pip-build-env-s9mxt568/overlay/lib/python3.12/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.mingw_x86_64_ucrt_gnu-cpython-312/tree_sitter_c_sharp
copying bindings/python/tree_sitter_c_sharp/__init__.py -> build/lib.mingw_x86_64_ucrt_gnu-cpython-312/tree_sitter_c_sharp
running egg_info
writing bindings/python/tree_sitter_c_sharp.egg-info/PKG-INFO
writing dependency_links to bindings/python/tree_sitter_c_sharp.egg-info/dependency_links.txt
writing requirements to bindings/python/tree_sitter_c_sharp.egg-info/requires.txt
writing top-level names to bindings/python/tree_sitter_c_sharp.egg-info/top_level.txt
reading manifest file 'bindings/python/tree_sitter_c_sharp.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'bindings/python/tree_sitter_c_sharp.egg-info/SOURCES.txt'
copying bindings/python/tree_sitter_c_sharp/__init__.pyi -> build/lib.mingw_x86_64_ucrt_gnu-cpython-312/tree_sitter_c_sharp
copying bindings/python/tree_sitter_c_sharp/binding.c -> build/lib.mingw_x86_64_ucrt_gnu-cpython-312/tree_sitter_c_sharp
copying bindings/python/tree_sitter_c_sharp/py.typed -> build/lib.mingw_x86_64_ucrt_gnu-cpython-312/tree_sitter_c_sharp
running build_ext
building '_binding' extension
creating build/temp.mingw_x86_64_ucrt_gnu-cpython-312/bindings/python/tree_sitter_c_sharp
creating build/temp.mingw_x86_64_ucrt_gnu-cpython-312/src
gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -march=nocona -msahf -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wp,-D__USE_MINGW_ANSI_STDIO=1 -O3 -march=nocona -msahf -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wp,-D__USE_MINGW_ANSI_STDIO=1 -O3 -DPy_LIMITED_API=0x03090000 -DPY_SSIZE_T_CLEAN -DTREE_SITTER_HIDE_SYMBOLS -Isrc -IC:/Users/user/Downloads/msys64/ucrt64/include/python3.12 -c bindings/python/tree_sitter_c_sharp/binding.c -o build/temp.mingw_x86_64_ucrt_gnu-cpython-312/bindings/python/tree_sitter_c_sharp/binding.o /std:c11 /utf-8
gcc.EXE: warning: /std:c11: linker input file unused because linking not done
gcc.EXE: error: /std:c11: linker input file not found: No such file or directory
gcc.EXE: warning: /utf-8: linker input file unused because linking not done
gcc.EXE: error: /utf-8: linker input file not found: No such file or directory
error: command 'C:\\Users\\user\\Downloads\\msys64\\ucrt64\\bin/gcc.EXE' failed with exit code 1
[end of output]
```
My diagnosis: MSVC flags on gcc, gcc does not support msvc style flags.04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]