too long lines were shrinked: x86_64-pc-linux-gnu-gcc -Isubprojects/rizin-shell-parser/libshell_parser.a.p -Isubprojects/rizin-shell-parser -I../rizin-v0.5.2/subprojects/rizin-shell-parser -I../rizin-v0.5.2/subprojects/rizin-shell-parser/src/tree_sitter -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch --std= ../rizin-v0.5.2/subprojects/rizin-shell-parser/src/scanner.c:4:10: fatal error: tree_sitter/parser.h: No such file or directory 4 | #include <tree_sitter/parser.h> | ^~~~~~~~~~~~~~~~~~~~~~ compilation terminated. [1289/1431] x86_64-pc-linux-gnu-gcc -Ilibrz/debug/librz_debug.so.0.5.2.p -I. -I../rizin-v0.5.2 -Ilibrz -I../rizin-v0.5.2/librz -Ilibrz/include -I../rizin-v0.5.2/librz/include -I../rizin-v0.5.2/librz/bin/format/elf -I../rizin-v0.5.2/librz/bin/format/dmp -I../rizin-v0.5.2/librz/bin/format/mdmp -I../ri ../rizin-v0.5.2/librz/debug/p/native/linux/linux_debug.c:502:19: warning: conflicting types for linux_dbg_wait due to enum/integer mismatch; have RzDebugReasonType(RzDebug *, int) {aka RzDebugReasonType(struct rz_debug_t *, int)} [-Wenum-int-mismatch] 502 | RzDebugReasonType linux_dbg_wait(RzDebug *dbg, int pid) { | ^~~~~~~~~~~~~~ ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 23.0_desktop_plasma_systemd-20230825-105048 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-10 [2] x86_64-pc-linux-gnu-13 * clang/llvm (if any): clang version 16.0.6 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/16/bin Configuration file: /etc/clang/clang.cfg /usr/lib/llvm/16 16.0.6 Python 3.11.5 Available Ruby profiles: [1] ruby31 (with Rubygems) * Available Rust versions: [1] rust-bin-1.72.0 [2] rust-1.72.0 * The following VMs are available for generation-2: 1) Eclipse Temurin JDK 11.0.19_p7 [openjdk-bin-11] *) Eclipse Temurin JDK 17.0.7_p7 [openjdk-bin-17] 3) Eclipse Temurin JDK 8.372_p07 [openjdk-bin-8] Available Java Virtual Machines: [1] openjdk-bin-8 [2] openjdk-bin-11 [3] openjdk-bin-17 system-vm php cli (if any): go version go1.21.0 linux/amd64 HEAD of ::gentoo commit cd54276d8bfc13eb2c717bd642ab26248414594f Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Wed Aug 30 06:50:06 2023 +0000 2023-08-30 06:50:06 UTC emerge -qpvO dev-util/rizin [ebuild N ] dev-util/rizin-0.5.2 USE="(-test)"
Created attachment 869047 [details] emerge-info.txt
Created attachment 869048 [details] dev-util:rizin-0.5.2:20230830-075523.log.xz
Created attachment 869049 [details] emerge-history.txt.xz
Created attachment 869050 [details] environment
Created attachment 869051 [details] etc.clang.tar.xz
Created attachment 869052 [details] etc.portage.tar.xz
Created attachment 869053 [details] logs.tar.xz
Created attachment 869054 [details] temp.tar.xz
../rizin-v0.5.2/subprojects/rizin-shell-parser/src/scanner.c:4:10: fatal error: tree_sitter/parser.h: No such file or directory 4 | #include <tree_sitter/parser.h> | ^~~~~~~~~~~~~~~~~~~~~~ commit f0a16a3f519de9ec5ecef601788219dbba7e1a8f Author: Sam James <sam@gentoo.org> Date: Sat Aug 26 19:02:46 2023 +0100 dev-libs/tree-sitter: stop installing parser.h There shouldn't be a system-wide copy of parser.h and upstream plan on dropping this from dev-libs/tree-sitter as it can cause issues if there's a mismatch between the version used for the bundled generated parser vs the header used to build the library. Backport that change to avoid mismatches. Bug: https://github.com/tree-sitter/tree-sitter-bash/issues/199 Bug: https://bugs.gentoo.org/912716 Signed-off-by: Sam James <sam@gentoo.org>
We need to have it use the bundled copy of parser.h, unfortunately. I think it might be okay to use the system library though? (sorry, not thinking about htis properly rn, just wanted to dump notes
or, actually, just fixing the include path should be fine (switch to quotes) I suppose
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7fdc1251b7205263da7b5360aee17a5c5f82f7c5 commit 7fdc1251b7205263da7b5360aee17a5c5f82f7c5 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-08-31 04:19:31 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-08-31 04:19:31 +0000 dev-util/rizin: fix build w/ >=tree-sitter-0.20.8-r1 >=tree-sitter-0.20.8-r1 doesn't install parser.h anymore because it may be mismatched with the version used to build the parser. Use one bundled with rizin-shell-parser instead. This should propagate into rizin-shell-parser when they regenerate with a newer tree-sitter release (once one is made). See also: * https://github.com/tree-sitter/tree-sitter/pull/2573 * https://github.com/tree-sitter/tree-sitter/pull/2574 Bug: https://bugs.gentoo.org/912716 Closes: https://bugs.gentoo.org/913343 Signed-off-by: Sam James <sam@gentoo.org> .../rizin-0.5.2-find-tree-sitter-parser.patch | 33 ++++++++++++++++++++++ dev-util/rizin/rizin-0.5.2.ebuild | 1 + 2 files changed, 34 insertions(+)