Created attachment 881469 [details] emerge --info app-editors/neovim Hi, Happy New Year! I was unable to compile neovim due to this error: --- In file included from /usr/include/msgpack/pack_define.h:13, from /usr/include/msgpack/pack.h:13, from /var/tmp/portage/app-editors/neovim-0.9.4/work/neovim-0.9.4/src/nvim/api/ui.c:6: /usr/lib/gcc/x86_64-pc-linux-gnu/13/include-fixed/msgpack/sysdep.h:106:10: fatal error: msgpack/predef/other/endian.h: No such file or directory 106 | #include <msgpack/predef/other/endian.h> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. --- ninja: build stopped: subcommand failed. * ERROR: app-editors/neovim-0.9.4::gentoo failed (compile phase): * ninja -v -j20 -l0 failed * * Call stack: * ebuild.sh, line 136: Called src_compile * environment, line 2664: Called cmake_src_compile * environment, line 1181: Called cmake_build * environment, line 1148: Called eninja * environment, line 1617: Called die * The specific snippet of code: * "$@" || die -n "${*} failed" * --- So I asked for help on Gentoo forums and I was able to resolve the issue with these two commands: emerge -av dev-cpp/msgpack-cxx emerge -av neovim Please see emerge --info attached. Here is the link to the forum where the problem was resolved. https://forums.gentoo.org/viewtopic-t-1166733.html
I'll try to dig into it, but unfortunately I can't reproduce the error. For me: $ emerge --search msgpack-cxx && nvim --version [ Results for search key : msgpack-cxx ] Searching... * dev-cpp/msgpack-cxx Latest version available: 6.1.0 Latest version installed: [ Not Installed ] Size of files: 468 KiB Homepage: https://msgpack.org/ https://github.com/msgpack/msgpack-c/ Description: MessagePack for C++ License: Boost-1.0 [ Applications found : 1 ] NVIM v0.9.4 Build type: Release LuaJIT 2.1.0-beta3 Compilation: /usr/bin/x86_64-pc-linux-gnu-gcc -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wvla -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -fno-common -Wno-unused-result -Wimplicit-fallthrough -fdiagnostics-color=always -fstack-protector-strong -DUNIT_TESTING -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -I/usr/include/luajit-2.1 -I/usr/include -I/usr/include -I/var/tmp/portage/app-editors/neovim-0.9.4/work/neovim-0.9.4_build/src/nvim/auto -I/var/tmp/portage/app-editors/neovim-0.9.4/work/neovim-0.9.4_build/include -I/var/tmp/portage/app-editors/neovim-0.9.4/work/neovim-0.9.4_build/cmake.config -I/var/tmp/portage/app-editors/neovim-0.9.4/work/neovim-0.9.4/src -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include system vimrc file: "/etc/vim/sysinit.vim" fall-back for $VIM: "/usr/share/nvim" Run :checkhealth for more info
IIRC, there is enough to install `dev-libs/msgpack` (and it **is** in DEPEND). I don't know why didn't reporter had it installed (and so faced the issue), but I guess neovim is fine with with cxx version too. (btw, I either don't have cxx version and have nvim building fine)
I had the same problem upgrading from neovim 0.9.5 to 0.10.1-r1. dev-libs/msgpack-6.0.0-r1 does not install any headers under "msgpack/predef". It was dev-cpp/msgpack-cxx-6.1.0 that provided msgpack/predef/other/endian.h So, only after installing msgpack-cxx I was finally able to upgrade neovim.
Created attachment 903214 [details] Another case that needs msgpack-cxx As happened to original author, msgpack does not provide endian.h for me. $ qlist dev-libs/msgpack | grep include /usr/include/msgpack.h /usr/include/msgpack/fbuffer.h /usr/include/msgpack/gcc_atomic.h /usr/include/msgpack/object.h /usr/include/msgpack/pack.h /usr/include/msgpack/pack_define.h /usr/include/msgpack/pack_template.h /usr/include/msgpack/sbuffer.h /usr/include/msgpack/sysdep.h /usr/include/msgpack/timestamp.h /usr/include/msgpack/unpack.h /usr/include/msgpack/unpack_define.h /usr/include/msgpack/unpack_template.h /usr/include/msgpack/util.h /usr/include/msgpack/version.h /usr/include/msgpack/version_master.h /usr/include/msgpack/vrefbuffer.h /usr/include/msgpack/zbuffer.h /usr/include/msgpack/zone.h
0.10.[12] have msgpack in the DEPENDs. This can be closed.
(In reply to Filip Kobierski from comment #5) > 0.10.[12] have msgpack in the DEPENDs. This can be closed. Thanks a lot!