dev-python/tree-sitter-0.23.1 fails to compile Reproducible: Always Steps to Reproduce: 1. emerge tree-sitter Actual Results: failed (compile phase) Expected Results: dev-python/tree-sitter-0.23.1 merged tree_sitter/binding/node.c: In function ‘node_child_containing_descendant’: tree_sitter/binding/node.c:289:20: error: implicit declaration of function ‘ts_node_child_containing_descendant’; did you mean ‘node_child_containing_descendant’? [-Wimplicit-function-declaration] 289 | TSNode child = ts_node_child_containing_descendant(self->node, descendant); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | node_child_containing_descendant tree_sitter/binding/node.c:289:20: error: invalid initializer error: command '/usr/bin/x86_64-pc-linux-gnu-gcc' failed with exit code 1
Portage 3.0.66.1 (python 3.12.8-final-0, default/linux/amd64/23.0/systemd, gcc-14, glibc-2.40-r8, 6.12.11-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-6.12.11-gentoo-x86_64-AMD_Ryzen_5_PRO_4650U_with_Radeon_Graphics-with-glibc2.40 KiB Mem: 65194576 total, 12805416 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Mon, 17 Feb 2025 13:15:00 +0000 Head commit of repository gentoo: b6baa0d5955634ec3682fce0e7ce9f97a9d1d69a Timestamp of repository brother-overlay: Sun, 16 Feb 2025 18:52:05 +0000 Head commit of repository brother-overlay: 98cf4667f1edbdca145a2298bc7a9e42571dad8b Timestamp of repository guru: Mon, 17 Feb 2025 10:03:31 +0000 Head commit of repository guru: dcb1b918b3a97c5b15cc5e7d214d2ad582d97383 Timestamp of repository pentoo: Sun, 16 Feb 2025 18:51:58 +0000 Head commit of repository pentoo: 5dfe53e13df342accd5ecfaba3a46208e3bb416e Timestamp of repository qownnotes-overlay: Sun, 16 Feb 2025 21:18:46 +0000 Head commit of repository qownnotes-overlay: ae3340baef15f28d6a6f2bfa066e0783339af0a6 Timestamp of repository steam-overlay: Sun, 16 Feb 2025 18:52:01 +0000 Head commit of repository steam-overlay: 7e33d99df108d6dd50acdc5bc1d348a41b21b2f8 sh bash 5.2_p37 ld GNU ld (Gentoo 2.43 p3) 2.43.1 app-misc/pax-utils: 1.3.8::gentoo app-shells/bash: 5.2_p37::gentoo dev-build/autoconf: 2.13-r8::gentoo, 2.72-r1::gentoo dev-build/automake: 1.16.5-r2::gentoo dev-build/cmake: 3.30.6::gentoo dev-build/libtool: 2.5.4::gentoo dev-build/make: 4.4.1-r100::gentoo dev-build/meson: 1.6.1::gentoo dev-java/java-config: 2.3.4::gentoo dev-lang/perl: 5.40.0-r1::gentoo dev-lang/python: 3.11.11_p1::gentoo, 3.12.8_p1::gentoo, 3.13.1_p1::gentoo dev-lang/rust: 1.84.0-r1::gentoo, 1.84.1-r1::gentoo dev-lang/rust-bin: 1.77.1-r102::gentoo, 1.81.0-r101::gentoo llvm-core/clang: 18.1.8-r6::gentoo, 19.1.7::gentoo llvm-core/lld: 18.1.8::gentoo, 19.1.7::gentoo llvm-core/llvm: 18.1.8-r6::gentoo, 19.1.7::gentoo sys-apps/baselayout: 2.17::gentoo sys-apps/sandbox: 2.39::gentoo sys-apps/systemd: 256.10::gentoo sys-devel/binutils: 2.43-r2::gentoo sys-devel/binutils-config: 5.5.2::gentoo sys-devel/gcc: 14.2.1_p20241221::gentoo sys-devel/gcc-config: 2.12.1::gentoo sys-kernel/linux-headers: 6.12::gentoo (virtual/os-headers) sys-libs/glibc: 2.40-r8::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage priority: -1000 volatile: False sync-rsync-verify-metamanifest: yes sync-rsync-verify-max-age: 24 sync-rsync-extra-opts: sync-rsync-verify-jobs: 1 brother-overlay location: /var/db/repos/brother-overlay sync-type: git sync-uri: https://github.com/gentoo-mirror/brother-overlay.git masters: gentoo volatile: False guru location: /var/db/repos/guru sync-type: git sync-uri: https://github.com/gentoo-mirror/guru.git masters: gentoo volatile: False local location: /var/db/repos/local masters: gentoo volatile: False pentoo location: /var/db/repos/pentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/pentoo.git masters: gentoo volatile: False qownnotes-overlay location: /var/db/repos/qownnotes-overlay sync-type: git sync-uri: https://github.com/gentoo-mirror/qownnotes-overlay.git masters: gentoo volatile: False steam-overlay location: /var/db/repos/steam-overlay sync-type: git sync-uri: https://github.com/gentoo-mirror/steam-overlay.git masters: gentoo volatile: False crossdev location: /var/db/repos/crossdev masters: gentoo priority: 10 volatile: False Installed sets: @pylsp ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE CeCILL-2.1" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native -fno-omit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.9/conf /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.2/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -march=native -fno-omit-frame-pointer" DISTDIR="/var/cache/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME" FCFLAGS="-O2 -pipe -march=native -fno-omit-frame-pointer" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe -march=native -fno-omit-frame-pointer" GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ http://mirror.init7.net/gentoo/" LANG="C.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs" LEX="flex" MAKEOPTS="-j12" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" RUSTFLAGS="-C target-cpu=native" SHELL="/bin/zsh" USE="acl amd64 bzip2 cet crypt gdbm iconv ipv6 libtirpc multilib ncurses nls openmp pam pcre readline seccomp ssl systemd test-rust udev unicode verify-sig xattr zlib" ABI_X86="64" ADA_TARGET="gcc_13" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS ================================================================= Package Settings ================================================================= dev-python/tree-sitter-0.23.1::gentoo was built with the following: USE="-debug -test" ABI_X86="(64)" PYTHON_TARGETS="python3_12 -python3_10 -python3_11 -python3_13" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr
Created attachment 919133 [details] the complete build log
$ emerge -pqv '=dev-python/tree-sitter-0.23.1::gentoo' [ebuild R ] dev-python/tree-sitter-0.23.1 USE="-debug -test" PYTHON_TARGETS="python3_12 -python3_10 -python3_11 -python3_13"
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=353154e57fef8a6bdf310b06dc63f404c8e29f15 commit 353154e57fef8a6bdf310b06dc63f404c8e29f15 Author: Arthur Zamarin <arthurzam@gentoo.org> AuthorDate: 2025-02-18 19:58:38 +0000 Commit: Arthur Zamarin <arthurzam@gentoo.org> CommitDate: 2025-02-18 19:59:01 +0000 dev-python/tree-sitter: fix building of 0.23.1 Closes: https://bugs.gentoo.org/949862 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org> dev-python/tree-sitter/tree-sitter-0.23.1.ebuild | 8 ++++++++ 1 file changed, 8 insertions(+)