Uploaded image for project: 'AI Platform Core Components'
  1. AI Platform Core Components
  2. AIPCC-9027

tree-sitter-c and tree-sitter-javascript fail to build from sdist

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • None
    • None
    • Development Platform
    • None
    • DP Sprint 24
    • Critical
    • Proposed

      Description of problem:

      Docling 2.69 seems to pull in new dependencies or different versions of dependencies. tree-sitter-c and tree-sitter-javascript do not build from sdist, because the sdist is missing "tree_sitter/parser.h". We had similar issues with other tree-sitter packages, see https://gitlab.com/redhat/rhel-ai/wheels/builder/-/merge_requests/1760 

      Version numbers (base image, wheels, builder, etc):

      builder 26.2.0
      tree-sitter-c 0.23.4
      tree-sitter-javascript 0.23.1

      Steps to Reproduce:

      https://gitlab.com/redhat/rhel-ai/wheels/builder/-/pipelines/2275983017

      Actual results:

      tree-sitter-c-0.23.4: gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPy_LIMITED_API=0x03090000 -DPY_SSIZE_T_CLEAN -DTREE_SITTER_HIDE_SYMBOLS -Isrc -I/mnt/work-dir/tree_sitter_c-0.23.4/build-3.12.9/include -I/usr/include/python3.12 -c bindings/python/tree_sitter_c/binding.c -o build/temp.linux-x86_64-cpython-312/bindings/python/tree_sitter_c/binding.o -std=c11 -fvisibility=hidden
      tree-sitter-c-0.23.4: gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPy_LIMITED_API=0x03090000 -DPY_SSIZE_T_CLEAN -DTREE_SITTER_HIDE_SYMBOLS -Isrc -I/mnt/work-dir/tree_sitter_c-0.23.4/build-3.12.9/include -I/usr/include/python3.12 -c src/parser.c -o build/temp.linux-x86_64-cpython-312/src/parser.o -std=c11 -fvisibility=hidden
      tree-sitter-c-0.23.4: src/parser.c:1:10: fatal error: tree_sitter/parser.h: No such file or directory
      tree-sitter-c-0.23.4:     1 | #include "tree_sitter/parser.h"
      tree-sitter-c-0.23.4:       |          ^~~~~~~~~~~~~~~~~~~~~~
      tree-sitter-c-0.23.4: compilation terminated.
      tree-sitter-c-0.23.4: error: command '/usr/lib64/ccache/gcc' failed with exit code 1    

      Expected results:

          

      Additional info:

              rh-ee-myochpaz Michael Yochpaz
              cheimes@redhat.com Christian Heimes
              Antonio's Team
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: