The build is failing for me with the following errors:
FAILED: src/nvim/CMakeFiles/nvim_bin.dir/lua/treesitter.c.o
/usr/bin/cc -DHAVE_UNIBILIUM -DINCLUDE_GENERATED_DECLARATIONS -DUNIT_TESTING -D_GNU_SOURCE -Dnvim_bin_EXPORTS -I/home/***/.cache/yay/neovim-git/src/neovim/build/src/nvim/auto -I/home/***/.cache/yay/neovim-git/src/neovim/build/include -I/home/***/.cache/yay/neovim-git/src/neovim/build/cmake.config -I/home/***/.cache/yay/neovim-git/src/neovim/src -isystem /usr/include/luajit-2.1 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -O2 -g -Og -g -flto=auto -fno-fat-lto-objects -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 /home/***/.cache/yay/neovim-git/src/neovim/src/nvim/lua/treesitter.c
/home/***/.cache/yay/neovim-git/src/neovim/src/nvim/lua/treesitter.c: In function ‘__has_ancestor’:
/home/***/.cache/yay/neovim-git/src/neovim/src/nvim/lua/treesitter.c:1084:12: error: 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
/home/***/.cache/yay/neovim-git/src/neovim/src/nvim/lua/treesitter.c:1084:12: error: incompatible types when assigning to type ‘TSNode’ from type ‘int’
/home/***/.cache/yay/neovim-git/src/neovim/src/nvim/lua/treesitter.c: In function ‘node_child_containing_descendant’:
/home/***/.cache/yay/neovim-git/src/neovim/src/nvim/lua/treesitter.c:1095:18: error: invalid initializer
1095 | TSNode child = ts_node_child_containing_descendant(node, descendant);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Similar bug report here: https://bugs.gentoo.org/932001
Pinned Comments
fwalch commented on 2016-07-04 19:52 (UTC) (edited on 2016-07-04 19:54 (UTC) by fwalch)