Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 932001 - app-editors/neovim-9999 - treesitter.c:1084:12: error: incompatible types when assigning to type ‘TSNode’ from type ‘int’
Summary: app-editors/neovim-9999 - treesitter.c:1084:12: error: incompatible types whe...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-16 19:47 UTC by squatted_posture785
Modified: 2024-05-25 08:27 UTC (History)
1 user (show)

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


Attachments
# emerge --info '=app-editors/neovim-9999::gentoo' (emerge_info.log,14.60 KB, text/x-log)
2024-05-16 19:47 UTC, squatted_posture785
Details
# emerge -pqv '=app-editors/neovim-9999::gentoo' (emerge_pqv.log,99 bytes, text/x-log)
2024-05-16 19:47 UTC, squatted_posture785
Details
build.log (build.log,399.89 KB, text/x-log)
2024-05-16 19:48 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-05-16 19:47:02 UTC
As of today (2024-05-16), app-editors/neovim-9999 won't compile:

FAILED: src/nvim/CMakeFiles/nvim_bin.dir/lua/treesitter.c.o
/usr/bin/x86_64-pc-linux-gnu-gcc -DHAVE_UNIBILIUM -DINCLUDE_GENERATED_DECLARATIONS -DUNIT_TESTING -D_GNU_SOURCE -Dnvim_bin_EXPORTS -I/var/tmp/portage/app-editors/neovim-9999/work/neovim-9999_build/src/nvim/auto -I/var/tmp/portage/app-editors/neovim-9999/work/neovim-9999_build/include -I/var/tmp/portage/app-editors/neovim-9999/work/neovim-9999_build/cmake.config -I/var/tmp/portage/app-editors/neovim-9999/work/neovim-9999/src -isystem /usr/include/luajit-2.1  -march=haswell -O2 -pipe -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wvla -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -fsigned-char -fstack-protector-strong -Wno-conversion -fno-common -Wno-unused-result -Wimplicit-fallthrough -fdiagnostics-color=always -MD -MT src/nvim/CMakeFiles/nvim_bin.dir/lua/treesitter.c.o -MF src/nvim/CMakeFiles/nvim_bin.dir/lua/treesitter.c.o.d -o src/nvim/CMakeFiles/nvim_bin.dir/lua/treesitter.c.o -c /var/tmp/portage/app-editors/neovim-9999/work/neovim-9999/src/nvim/lua/treesitter.c
/var/tmp/portage/app-editors/neovim-9999/work/neovim-9999/src/nvim/lua/treesitter.c: In function ‘__has_ancestor’:
/var/tmp/portage/app-editors/neovim-9999/work/neovim-9999/src/nvim/lua/treesitter.c:1084:12: warning: implicit declaration of function ‘ts_node_child_containing_descendant’; did you mean ‘node_child_containing_descendant’? [-Wimplicit-function-declaration]
 1084 |     node = ts_node_child_containing_descendant(node, descendant);
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |            node_child_containing_descendant
/var/tmp/portage/app-editors/neovim-9999/work/neovim-9999/src/nvim/lua/treesitter.c:1084:12: error: incompatible types when assigning to type ‘TSNode’ from type ‘int’
/var/tmp/portage/app-editors/neovim-9999/work/neovim-9999/src/nvim/lua/treesitter.c: In function ‘node_child_containing_descendant’:
/var/tmp/portage/app-editors/neovim-9999/work/neovim-9999/src/nvim/lua/treesitter.c:1095:18: error: invalid initializer
 1095 |   TSNode child = ts_node_child_containing_descendant(node, descendant);
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reproducible: Always

Steps to Reproduce:
1. # emerge =app-editors/neovim-9999::gentoo
Actual Results:  
The package fails to compile
Comment 1 squatted_posture785 2024-05-16 19:47:29 UTC
Created attachment 893092 [details]
# emerge --info '=app-editors/neovim-9999::gentoo'
Comment 2 squatted_posture785 2024-05-16 19:47:59 UTC
Created attachment 893093 [details]
# emerge -pqv '=app-editors/neovim-9999::gentoo'
Comment 3 squatted_posture785 2024-05-16 19:48:19 UTC
Created attachment 893094 [details]
build.log
Comment 4 squatted_posture785 2024-05-17 20:04:34 UTC
Fixed with dev-libs/tree-sitter-0.22.6::gentoo added today: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=658244c8a93e2e035114120149abdd8dcd46158e
Comment 5 Larry the Git Cow gentoo-dev 2024-05-25 08:27:11 UTC
The bug has been closed via the following commit(s):

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

commit 21662224990dcbd47f45e9eef3aeed0df24d1544
Author:     Brahmajit Das <brahmajit.xyz@gmail.com>
AuthorDate: 2024-05-21 07:30:49 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-05-25 08:26:45 +0000

    app-editors/neovim: Fix live ebuild tree-sitter dependency
    
    - 9999 now needs tree-sitter-0.22.6
    
    Closes: https://bugs.gentoo.org/932001
    Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/36714
    Signed-off-by: Sam James <sam@gentoo.org>

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