Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure: python312Packages.tree-sitter on aarch64-linux #372375

Closed
GaetanLepage opened this issue Jan 9, 2025 · 4 comments · Fixed by #377525
Closed

Build failure: python312Packages.tree-sitter on aarch64-linux #372375

GaetanLepage opened this issue Jan 9, 2025 · 4 comments · Fixed by #377525
Labels
0.kind: build failure A package fails to build

Comments

@GaetanLepage
Copy link
Contributor

GaetanLepage commented Jan 9, 2025

Steps To Reproduce

Steps to reproduce the behavior:

  1. build python312Packages.tree-sitter on aarch64-linux

Build log

============================= test session starts ==============================
platform linux -- Python 3.12.8, pytest-8.3.3, pluggy-1.5.0
rootdir: /build/source
configfile: pyproject.toml
collected 57 items

tests/test_language.py .............                                     [ 22%]
tests/test_lookahead_iterator.py Fatal Python error: Segmentation fault

Current thread 0x0000fffff7ff5f20 (most recent call first):
  File /nix/store/y0nq24jmia6ln93l7sp1br3dv2xndq7n-pytest-check-hook/nix-support/setup-hook: line 30:   208 Segmentation fault      (core dumped) /nix/store/66pn6ysmvx675061xaq2vz93s9vdc5p4-python3-3.12.8/bin/python3.12 -m pytest

Additional context

Metadata

Notify maintainers

cc @fabaff


Note for maintainers: Please tag this issue in your PR.


Add a 👍 reaction to issues you find important.

@GaetanLepage GaetanLepage added the 0.kind: build failure A package fails to build label Jan 9, 2025
urob added a commit to urob/zmk-config that referenced this issue Jan 21, 2025
There's currently an upstream bug in py-tree-sitter, which keymap-drawer
depends on. NixOS/nixpkgs#372375
@gepbird gepbird mentioned this issue Jan 26, 2025
13 tasks
@gepbird
Copy link
Contributor

gepbird commented Jan 27, 2025

Bisected this issue to a few commits, caused by gcc, llvm (or gettext but unlikely).

Bad commit: aa55149
Good commit: 0d93322
Moreover cherry-picking the following commits on top of the good commit, will result in this failure:

  • 2113dc2 gcc: gcc13 -> gcc14
  • 22f218c gettext: 0.21.1 -> 0.22.4
  • 28f966f stdenv: rebuild gettext with working iconv
  • 8c25817 llvmPackages: llvmPackages_{16,18} -> llvmPackages_19
  • 227075c gettext: implement clang 18 on Darwin workaround
  • b4ccd4a llvmPackages_{13,14,15,16,17}.compiler-rt: reorder cfi_startproc after label
  • 2de1b4b gcc{10,11,12,13,14}: reorder .cfi_startproc with label

I'm not sure how to continue debugging/fixing this issue

@urob
Copy link
Contributor

urob commented Jan 27, 2025

I'm not sure how to continue debugging/fixing this issue

Maybe it could be worth opening an issue upstream at https://github.com/tree-sitter/py-tree-sitter?

@gepbird
Copy link
Contributor

gepbird commented Jan 28, 2025

I wanted to wait with reporting to upstream until we narrowed down the changes, and turns out it was gcc14: 2113dc2 is the first bad commit

Until a patch is made, I think we should pin to gcc13.

DeterminationCode1 pushed a commit to DeterminationCode1/zmk-config-prior2024 that referenced this issue Feb 10, 2025
There's currently an upstream bug in py-tree-sitter, which keymap-drawer
depends on. NixOS/nixpkgs#372375
DeterminationCode1 pushed a commit to DeterminationCode1/zmk-config-prior2024 that referenced this issue Feb 10, 2025
There's currently an upstream bug in py-tree-sitter, which keymap-drawer
depends on. NixOS/nixpkgs#372375
@gepbird
Copy link
Contributor

gepbird commented Feb 12, 2025

Fixed the build failure by disabling tests in 3f33d0e, but it can be improved with #377525

@gepbird gepbird closed this as completed Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants