Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Neovim won't compile
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
flybywire
n00b
n00b


Joined: 03 Jan 2024
Posts: 2

PostPosted: Wed Jan 03, 2024 9:48 am    Post subject: Neovim won't compile Reply with quote

Happy New Year everyone!

I'm having troubles installing neovim, not sure what the problem is and looking for some cues.
I had neovim version 0.9.2 before but it wouldn't compile during the update so I removed it and performed the update.
Now I can't install it. The error is the same as it was during the update. I tried to install neovim-0.9.2 directly but no luck, the same error.
Any help would be highly appreciated.


That is the output for emerge --ask --verbose app-editors/neovim:

Code:

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"
 *
 * If you need support, post the output of `emerge --info '=app-editors/neovim-0.9.4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-editors/neovim-0.9.4::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-editors/neovim-0.9.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-editors/neovim-0.9.4/temp/environment'.
 * Working directory: '/var/tmp/portage/app-editors/neovim-0.9.4/work/neovim-0.9.4_build'
 * S: '/var/tmp/portage/app-editors/neovim-0.9.4/work/neovim-0.9.4'

>>> Failed to emerge app-editors/neovim-0.9.4, Log file:

>>>  '/var/tmp/portage/app-editors/neovim-0.9.4/temp/build.log'

 * Messages for package dev-libs/tree-sitter-0.20.8:

 * Install additional packages for optional runtime features:
 *   dev-util/tree-sitter-cli for building and testing grammars

 * Messages for package dev-lang/lua-5.4.6:

 * Install additional packages for optional runtime features:
 *   app-emacs/lua-mode for Lua support for Emacs

 * Messages for package app-editors/neovim-0.9.4:

 * 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"
 *
 * If you need support, post the output of `emerge --info '=app-editors/neovim-0.9.4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-editors/neovim-0.9.4::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-editors/neovim-0.9.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-editors/neovim-0.9.4/temp/environment'.
 * Working directory: '/var/tmp/portage/app-editors/neovim-0.9.4/work/neovim-0.9.4_build'
 * S: '/var/tmp/portage/app-editors/neovim-0.9.4/work/neovim-0.9.4'

 * GNU info directory index is up-to-date.


That is the compillation error itself:

Code:


>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-editors/neovim-0.9.4/work/neovim-0.9.4 ...
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/app-editors/neovim-0.9.4/work/neovim-0.9.4"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/app-editors/neovim-0.9.4/work/neovim-0.9.4_build"
ninja -v -j20 -l0
[0/2] /usr/bin/cmake -P /var/tmp/portage/app-editors/neovim-0.9.4/work/neovim-0.9.4_build/CMakeFiles/VerifyGlobs.cmake
[1/398] cd /var/tmp/portage/app-editors/neovim-0.9.4/work/neovim-0.9.4_build/src/nvim && /usr/bin/cmake -D NVIM_VERSION_MAJOR=0 -D NVIM_VERSION_MINOR=9 -D NVIM_VERSION_PATCH=4 -D NVIM_VERSION_
PRERELEASE= -D OUTPUT=/var/tmp/portage/app-editors/neovim-0.9.4/work/neovim-0.9.4_build/cmake.config/auto/versiondef_git.h -D NVIM_SOURCE_DIR=/var/tmp/portage/app-editors/neovim-0.9.4/work/neo
vim-0.9.4 -P /var/tmp/portage/app-editors/neovim-0.9.4/work/neovim-0.9.4/cmake/GenerateVersion.cmake
-- Using NVIM_VERSION: v0.9.4
[2/398] cd /var/tmp/portage/app-editors/neovim-0.9.4/work/neovim-0.9.4_build/src/nvim && /usr/bin/x86_64-pc-linux-gnu-gcc /var/tmp/portage/app-editors/neovim-0.9.4/work/neovim-0.9.4/src/nvim/a
pi/ui.c -E -o /var/tmp/portage/app-editors/neovim-0.9.4/work/neovim-0.9.4_build/src/nvim/auto/api/ui.i -DDO_NOT_DEFINE_EMPTY_ATTRIBUTES -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/a
pp-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 -Iprop-NOTFOUND -I/usr/include -I/usr/include -I/usr/include -I/u
sr/include -I/usr/include -I/usr/include -I/usr/include -O2 && luajit /var/tmp/portage/app-editors/neovim-0.9.4/work/neovim-0.9.4/src/nvim/generators/gen_declarations.lua /var/tmp/portage/app-
editors/neovim-0.9.4/work/neovim-0.9.4/src/nvim/api/ui.c /var/tmp/portage/app-editors/neovim-0.9.4/work/neovim-0.9.4_build/src/nvim/auto/api/ui.c.generated.h /var/tmp/portage/app-editors/neovi
m-0.9.4/work/neovim-0.9.4_build/include/api/ui.h.generated.h /var/tmp/portage/app-editors/neovim-0.9.4/work/neovim-0.9.4_build/src/nvim/auto/api/ui.i
FAILED: src/nvim/auto/api/ui.c.generated.h include/api/ui.h.generated.h /var/tmp/portage/app-editors/neovim-0.9.4/work/neovim-0.9.4_build/src/nvim/auto/api/ui.c.generated.h /var/tmp/portage/ap
p-editors/neovim-0.9.4/work/neovim-0.9.4_build/include/api/ui.h.generated.h
cd /var/tmp/portage/app-editors/neovim-0.9.4/work/neovim-0.9.4_build/src/nvim && /usr/bin/x86_64-pc-linux-gnu-gcc /var/tmp/portage/app-editors/neovim-0.9.4/work/neovim-0.9.4/src/nvim/api/ui.c
-E -o /var/tmp/portage/app-editors/neovim-0.9.4/work/neovim-0.9.4_build/src/nvim/auto/api/ui.i -DDO_NOT_DEFINE_EMPTY_ATTRIBUTES -D_GNU_SOURCE -I/usr/include/luajit-2.1 -I/usr/include -I/usr/in
clude -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-edito
rs/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 -Iprop-NOTFOUND -I/usr/include -I/usr/include -I/usr/include -I/usr/inclu
de -I/usr/include -I/usr/include -I/usr/include -O2 && luajit /var/tmp/portage/app-editors/neovim-0.9.4/work/neovim-0.9.4/src/nvim/generators/gen_declarations.lua /var/tmp/portage/app-editors/
neovim-0.9.4/work/neovim-0.9.4/src/nvim/api/ui.c /var/tmp/portage/app-editors/neovim-0.9.4/work/neovim-0.9.4_build/src/nvim/auto/api/ui.c.generated.h /var/tmp/portage/app-editors/neovim-0.9.4/
work/neovim-0.9.4_build/include/api/ui.h.generated.h /var/tmp/portage/app-editors/neovim-0.9.4/work/neovim-0.9.4_build/src/nvim/auto/api/ui.i
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.




Output of emerge --info '=app-editors/neovim-0.9.4::gentoo'

Code:


emerge --info '=app-editors/neovim-0.9.4::gentoo'                                                                                        [33/1979]
Portage 3.0.59 (python 3.11.7-final-0, default/linux/amd64/17.1/desktop/systemd, gcc-13, glibc-2.37-r7, 6.1.12-gentoo-x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.1.12-gentoo-x86_64-x86_64-12th_Gen_Intel-R-_Core-TM-_i7-12700K-with-glibc2.37
KiB Mem:    65628156 total,  41094196 free
KiB Swap:    8388604 total,   8387068 free
Timestamp of repository gentoo: Wed, 03 Jan 2024 07:30:01 +0000
Head commit of repository gentoo: 02cea7a72eeb0e2d37185ff6b0f849919f214f54
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p2) 2.41.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-lang/perl:             5.38.2-r1::gentoo
dev-lang/python:           3.11.7::gentoo, 3.12.1::gentoo
dev-lang/rust-bin:         1.71.1::gentoo
dev-util/cmake:            3.27.7::gentoo
dev-util/meson:            1.2.3::gentoo
sys-apps/baselayout:       2.14-r1::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-apps/systemd:          254.7::gentoo
sys-devel/autoconf:        2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.41-r2::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             13.2.1_p20230826::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/llvm:            16.0.6::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=alderlake -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=alderlake -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_H
OME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=alderlake -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync mu
ltilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-lo
gs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=alderlake -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j20"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exc
lude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus dri dts dvd dvdr encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg lcms libnotify
 libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt5 readline sdl seccomp sound spell split-usr ssl startup-notificat
ion svg systemd test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_c
ore authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_
lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_al
ias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm
 earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS
="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="luajit" LUA_TARGETS="luajit lua5-4" OFFICE_IMPLEMENTATION
="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="nouveau" XTABLES_ADDONS="quot
a2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, L
C_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHON
PATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Wed Jan 03, 2024 11:27 am    Post subject: Reply with quote

Plz try this
Code:

emerge -av dev-cpp/msgpack-cxx
emerge -av neovim

In any case please open a bug report for neovim.
_________________
:)
Back to top
View user's profile Send private message
flybywire
n00b
n00b


Joined: 03 Jan 2024
Posts: 2

PostPosted: Wed Jan 03, 2024 12:24 pm    Post subject: Reply with quote

alamahant, thank you so much!
I ran these two commands and neovim compiled without errors.
I'll open a bug report.

Thank you very much for saving me a lot of time!
All the best, have a nice day!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum