Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 921356 - app-editors/neovim-0.9.4: missing Dependency dev-cpp/msgpack-cxx
Summary: app-editors/neovim-0.9.4: missing Dependency dev-cpp/msgpack-cxx
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: listout
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-04 13:03 UTC by flybywire
Modified: 2024-01-14 23:15 UTC (History)
4 users (show)

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


Attachments
emerge --info app-editors/neovim (emerge_info_neovim.txt,5.92 KB, text/plain)
2024-01-04 13:03 UTC, flybywire
Details

Note You need to log in before you can comment on or make changes to this bug.
Description flybywire 2024-01-04 13:03:26 UTC
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
Comment 1 listout 2024-01-04 13:56:08 UTC
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
Comment 2 Vadim A. Misbakh-Soloviov (mva) gentoo-dev 2024-01-14 23:15:16 UTC
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)