Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922963 - app-editors/neovim-9999 - ld: treesitter.c:(.text+0x3517): undefined reference to `ts_query_cursor_set_max_start_depth'
Summary: app-editors/neovim-9999 - ld: treesitter.c:(.text+0x3517): undefined referenc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Brahmajit Das
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-01-26 14:21 UTC by squatted_posture785
Modified: 2024-02-22 07:17 UTC (History)
4 users (show)

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


Attachments
app-editors/neovim-9999 - build.log (app-editors-neovim-9999-build.log,561.93 KB, text/x-log)
2024-01-26 14:21 UTC, squatted_posture785
Details
emerge --info (emerge-info.log,13.97 KB, text/x-log)
2024-01-26 14:21 UTC, squatted_posture785
Details

Note You need to log in before you can comment on or make changes to this bug.
Description squatted_posture785 2024-01-26 14:21:17 UTC
Created attachment 883167 [details]
app-editors/neovim-9999 - build.log

/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: treesitter.c:(.text+0x3517): undefined reference to `ts_query_cursor_set_max_start_depth'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
 * ERROR: app-editors/neovim-9999::gentoo failed (compile phase):
 *   ninja -v -j12 -l10.8 failed
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 3279:  Called cmake_src_compile
 *   environment, line 1387:  Called cmake_build
 *   environment, line 1354:  Called eninja
 *   environment, line 1825:  Called die
 * The specific snippet of code:
 *       "$@" || die -n "${*} failed"
 *
 * If you need support, post the output of `emerge --info '=app-editors/neovim-9999::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-editors/neovim-9999::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-editors/neovim-9999/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-editors/neovim-9999/temp/environment'.
 * Working directory: '/var/tmp/portage/app-editors/neovim-9999/work/neovim-9999_build'
 * S: '/var/tmp/portage/app-editors/neovim-9999/work/neovim-9999'


-----

# emerge -pqv '=app-editors/neovim-9999::gentoo'
[ebuild   R   ] app-editors/neovim-9999  USE="nvimpager -test (-lto%*)" LUA_SINGLE_TARGET="luajit -lua5-1"
Comment 1 squatted_posture785 2024-01-26 14:21:40 UTC
Created attachment 883168 [details]
emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2024-01-27 19:35:15 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e54c3c8a00fb4ca18ac45da316e1cd95cd1f95cb

commit e54c3c8a00fb4ca18ac45da316e1cd95cd1f95cb
Author:     Brahmajit Das <brahmajit.xyz@gmail.com>
AuthorDate: 2024-01-27 08:49:13 +0000
Commit:     Matthew Smith <matthew@gentoo.org>
CommitDate: 2024-01-27 19:35:02 +0000

    dev-libs/tree-sitter: Version bump to 0.20.9
    
    Closes: https://bugs.gentoo.org/922963
    Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/35040
    Signed-off-by: Matthew Smith <matthew@gentoo.org>

 dev-libs/tree-sitter/Manifest                      |  1 +
 .../files/tree-sitter-0.20.9-no-static.patch       | 21 +++++++++
 dev-libs/tree-sitter/tree-sitter-0.20.9.ebuild     | 52 ++++++++++++++++++++++
 dev-libs/tree-sitter/tree-sitter-9999.ebuild       |  6 ++-
 4 files changed, 78 insertions(+), 2 deletions(-)
Comment 3 Larry the Git Cow gentoo-dev 2024-02-22 07:17:47 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=adae2e2739031b393ecdd304758d0946c55e8622

commit adae2e2739031b393ecdd304758d0946c55e8622
Author:     Vadim Misbakh-Soloviov <mva@gentoo.org>
AuthorDate: 2024-02-21 11:14:18 +0000
Commit:     Vadim Misbakh-Soloviov <mva@gentoo.org>
CommitDate: 2024-02-22 07:16:29 +0000

    app-editors/neovim: bump minimal tree-sitter version
    
    Some time ago neovim's upstream made some changes that made it incompatible with <dev-libs/tree-sitter-0.20.9.
    
    For example, this leads to following build failure:
    
    /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: src/nvim/CMakeFiles/nvim_bin.dir/lua/treesitter.c.o: in function `node_rawquery':
    treesitter.c:(.text+0x3583): undefined reference to `ts_query_cursor_set_max_start_depth'
    /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: treesitter.c:(.text+0x3777): undefined reference to `ts_query_cursor_set_max_start_depth'
    collect2: error: ld returned 1 exit status
    
    Closes: https://bugs.gentoo.org/922963
    Closes: https://bugs.gentoo.org/925193
    Signed-off-by: Vadim Misbakh-Soloviov <mva@gentoo.org>

 app-editors/neovim/neovim-9999.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)