Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 913343 - dev-util/rizin-0.5.2: fails to build with >=dev-libs/tree-sitter-0.20.8-r1 (src/scanner.c:4:10: fatal error: tree_sitter/parser.h: No such file or directory)
Summary: dev-util/rizin-0.5.2: fails to build with >=dev-libs/tree-sitter-0.20.8-r1 (s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: John Helmert III
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-30 12:55 UTC by Toralf Förster
Modified: 2023-08-31 04:21 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,18.41 KB, text/plain)
2023-08-30 12:55 UTC, Toralf Förster
Details
dev-util:rizin-0.5.2:20230830-075523.log.xz (dev-util:rizin-0.5.2:20230830-075523.log.xz,33.57 KB, application/x-xz)
2023-08-30 12:55 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,58.97 KB, application/x-xz)
2023-08-30 12:55 UTC, Toralf Förster
Details
environment (environment,100.70 KB, text/plain)
2023-08-30 12:55 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,976 bytes, application/x-xz)
2023-08-30 12:55 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,34.02 KB, application/x-xz)
2023-08-30 12:55 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,11.95 KB, application/x-xz)
2023-08-30 12:55 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,56.04 KB, application/x-xz)
2023-08-30 12:55 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-08-30 12:55:22 UTC
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)"
Comment 1 Toralf Förster gentoo-dev 2023-08-30 12:55:23 UTC
Created attachment 869047 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-08-30 12:55:24 UTC
Created attachment 869048 [details]
dev-util:rizin-0.5.2:20230830-075523.log.xz
Comment 3 Toralf Förster gentoo-dev 2023-08-30 12:55:25 UTC
Created attachment 869049 [details]
emerge-history.txt.xz
Comment 4 Toralf Förster gentoo-dev 2023-08-30 12:55:26 UTC
Created attachment 869050 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-08-30 12:55:27 UTC
Created attachment 869051 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-08-30 12:55:28 UTC
Created attachment 869052 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-08-30 12:55:29 UTC
Created attachment 869053 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2023-08-30 12:55:30 UTC
Created attachment 869054 [details]
temp.tar.xz
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-08-31 02:31:55 UTC
../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>
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-08-31 02:33:30 UTC
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
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-08-31 02:34:08 UTC
or, actually, just fixing the include path should be fine (switch to quotes) I suppose
Comment 12 Larry the Git Cow gentoo-dev 2023-08-31 04:21:31 UTC
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(+)