Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 903629 - app-editors/neovim fails to build against dev-libs/msgpack-6.0.0
Summary: app-editors/neovim fails to build against dev-libs/msgpack-6.0.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: listout
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-03-31 07:06 UTC by Johannes Penßel
Modified: 2023-03-31 18:22 UTC (History)
3 users (show)

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


Attachments
patch derived from upstream (msgpack.patch,765 bytes, patch)
2023-03-31 08:28 UTC, Olivier Huber
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Penßel 2023-03-31 07:06:09 UTC
app-editors/neovim-0.8.3  USE="lto nvimpager tui -test" LUA_SINGLE_TARGET="luajit -lua5-1"

>>> Emerging (1 of 1) app-editors/neovim-0.8.3::gentoo
 * neovim-0.8.3.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                                                                     [ ok ]
 * Using luajit to build
>>> Unpacking source...
>>> Unpacking neovim-0.8.3.tar.gz to /var/tmp/portage/app-editors/neovim-0.8.3/work
>>> Source unpacked in /var/tmp/portage/app-editors/neovim-0.8.3/work
>>> Preparing source in /var/tmp/portage/app-editors/neovim-0.8.3/work/neovim-0.8.3 ...
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/app-editors/neovim-0.8.3/work/neovim-0.8.3"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/app-editors/neovim-0.8.3/work/neovim-0.8.3_build"
 * Applying neovim-0.8-cmake_lua_version.patch ...                                                                                                                                                                                     [ ok ]
 * Applying neovim-0.8-cmake-darwin.patch ...                                                                                                                                                                                          [ ok ]
 * Applying neovim-0.8.0-cmake-release-type.patch ...                                                                                                                                                                                  [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-editors/neovim-0.8.3/work/neovim-0.8.3 ...
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/app-editors/neovim-0.8.3/work/neovim-0.8.3"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/app-editors/neovim-0.8.3/work/neovim-0.8.3_build"
cmake -C /var/tmp/portage/app-editors/neovim-0.8.3/work/neovim-0.8.3_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_LTO=yes -DFEAT_TUI=yes -DPREFER_LUA=no -DLUA_PRG=luajit -DMIN_LOG_LEVEL=3 -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/app-editors/neovim-0.8.3/work/neovim-0.8.3_build/gentoo_toolchain.cmake /var/tmp/portage/app-editors/neovim-0.8.3/work/neovim-0.8.3
loading initial cache file /var/tmp/portage/app-editors/neovim-0.8.3/work/neovim-0.8.3_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 12.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- CMAKE_INSTALL_PREFIX=/usr
-- CMAKE_BUILD_TYPE=Release
-- MIN_LOG_LEVEL=3
-- Performing Test HAS_OG_FLAG
-- Performing Test HAS_OG_FLAG - Success
-- Performing Test HAS_ACCEPTABLE_FORTIFY
-- Performing Test HAS_ACCEPTABLE_FORTIFY - Failed
-- Unsupported _FORTIFY_SOURCE found, forcing _FORTIFY_SOURCE=1
-- Performing Test HAVE_EXECINFO_BACKTRACE
-- Performing Test HAVE_EXECINFO_BACKTRACE - Success
-- Performing Test HAVE_BUILTIN_ADD_OVERFLOW
-- Performing Test HAVE_BUILTIN_ADD_OVERFLOW - Success
-- Performing Test HAVE_WIMPLICIT_FALLTHROUGH_FLAG
-- Performing Test HAVE_WIMPLICIT_FALLTHROUGH_FLAG - Success
-- Performing Test HAS_WVLA_FLAG
-- Performing Test HAS_WVLA_FLAG - Success
-- Performing Test HAS_FSTACK_PROTECTOR_STRONG_FLAG
-- Performing Test HAS_FSTACK_PROTECTOR_STRONG_FLAG - Success
-- Performing Test HAS_FSTACK_PROTECTOR_FLAG
-- Performing Test HAS_FSTACK_PROTECTOR_FLAG - Success
-- Performing Test HAVE_FNO_COMMON
-- Performing Test HAVE_FNO_COMMON - Success
-- Performing Test HAS_DIAG_COLOR_FLAG
-- Performing Test HAS_DIAG_COLOR_FLAG - Success
-- Found PkgConfig: /usr/bin/x86_64-pc-linux-gnu-pkg-config (found version "1.8.1") 
-- Looking for dlopen in dl
-- Looking for dlopen in dl - found
-- Looking for kstat_lookup in kstat
-- Looking for kstat_lookup in kstat - not found
-- Looking for kvm_open in kvm
-- Looking for kvm_open in kvm - not found
-- Looking for gethostbyname in nsl
-- Looking for gethostbyname in nsl - found
-- Looking for perfstat_cpu in perfstat
-- Looking for perfstat_cpu in perfstat - not found
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Looking for sendfile in sendfile
-- Looking for sendfile in sendfile - not found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Found LibUV: /usr/lib64/libuv.so (Required is at least version "1.28.0") 
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Msgpack (missing: MSGPACK_LIBRARY) (found suitable version
  "6.0.0", minimum required is "1.0.0")
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  cmake/FindMsgpack.cmake:50 (find_package_handle_standard_args)
  CMakeLists.txt:378 (find_package)


-- Configuring incomplete, errors occurred!
 * ERROR: app-editors/neovim-0.8.3::gentoo failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_configure
 *   environment, line 2588:  Called cmake_src_configure
 *   environment, line 1260:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 
 * If you need support, post the output of `emerge --info '=app-editors/neovim-0.8.3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-editors/neovim-0.8.3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-editors/neovim-0.8.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-editors/neovim-0.8.3/temp/environment'.
 * Working directory: '/var/tmp/portage/app-editors/neovim-0.8.3/work/neovim-0.8.3_build'
 * S: '/var/tmp/portage/app-editors/neovim-0.8.3/work/neovim-0.8.3'
Comment 1 Johannes Penßel 2023-03-31 07:06:43 UTC
Portage 3.0.45.3 (python 3.10.10-final-0, default/linux/amd64/17.1/no-multilib/systemd/merged-usr, gcc-12, glibc-2.37-r1, 6.2.8-gentoo x86_64)
=================================================================
System uname: Linux-6.2.8-gentoo-x86_64-12th_Gen_Intel-R-_Core-TM-_i5-1240P-with-glibc2.37
KiB Mem:    32697312 total,  22367656 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Fri, 31 Mar 2023 06:46:58 +0000
Head commit of repository gentoo: c5134e95280a1bb82581214d8dc27292d58b2fbb

Timestamp of repository guru: Fri, 31 Mar 2023 01:16:55 +0000
Head commit of repository guru: 242e3dae9a6fb1c85ec7acf41e1615a2099e73be

Timestamp of repository wayland-desktop: Sun, 26 Mar 2023 12:47:20 +0000
Head commit of repository wayland-desktop: 1406f5528b26e38e8a1ae65005d178dea8046c11

sh bash 5.2_p15-r2
ld GNU ld (Gentoo 2.40 p3) 2.40.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r2::gentoo
dev-lang/perl:             5.36.0-r2::gentoo
dev-lang/python:           3.10.10_p3::gentoo, 3.11.2_p2::gentoo
dev-lang/rust:             1.68.1::gentoo
dev-util/cmake:            3.26.1::gentoo
dev-util/meson:            1.0.1::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/sandbox:          2.30-r1::gentoo
sys-apps/systemd:          253.2::gentoo
sys-devel/autoconf:        2.13-r8::gentoo, 2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r3::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r1::gentoo, 16.0.0::gentoo
sys-devel/gcc:             12.2.1_p20230304::gentoo
sys-devel/gcc-config:      2.10::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/llvm:            15.0.7::gentoo, 16.0.0::gentoo
sys-devel/make:            4.4.1::gentoo
sys-kernel/linux-headers:  6.2::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r1::local
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    volatile: False
    sync-git-verify-commit-signature: yes

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

wayland-desktop
    location: /var/db/repos/wayland-desktop
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/wayland-desktop.git
    masters: gentoo
    volatile: False

local
    location: /usr/local/portage/overlay
    masters: gentoo
    priority: 10
    volatile: True

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -g -Wall -fno-omit-frame-pointer -flto=auto"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /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"
CXXFLAGS="-O2 -pipe -march=native -g -Wall -fno-omit-frame-pointer -flto=auto"
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_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
F77FLAGS="-O2 -pipe -march=native -g -Wall -fno-omit-frame-pointer -flto=auto"
FCFLAGS="-O2 -pipe -march=native -g -Wall -fno-omit-frame-pointer -flto=auto"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live cgroup compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=native -g -Wall -fno-omit-frame-pointer -flto=auto"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -O2 -pipe -march=native -g -Wall -fno-omit-frame-pointer -flto=auto -Wl,-z,pack-relative-relocs -Wl,--build-id=sha1"
LEX="flex"
MAKEOPTS="-j16"
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 --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
RUSTFLAGS="-C target-cpu=native"
SHELL="/bin/zsh"
USE="X acl activities afp aio alsa amd64 amr apng apparmor appstream archive argon2 audit bcrypt blake2 bluetooth boost bpf brotli bs2b btrfs bzip2 cairo caps cet chromium cjk cli cloudproviders colord connection-sharing crypt cryptsetup cups curl cxx dbus device-mapper djvu dracut dri drm duktape eds egl eglfs elf evolution-data-server exif fat fdk ffmpeg firewalld flatpak fontconfig fonts fortran freetype fribidi gbm gdbm geolocation gif gles2 glib gmp gnome gnome-keyring gnome-online-accounts gnome-shell gnuefi gsettings gssapi gstreamer gtk gtk3 gtk4 harfbuzz highlight hpn hsts ibus iconv icu idn idn2 introspection io-uring ios ipv6 jit jpeg jpeg2k jpegxl kbd kerberos ktls ladspa layers lcms libaom libcanberra libdrm libevent libglvnd libidn2 libmount libnotify libproxy libssh2 libtirpc libv4l libxml2 lmdb lto lv2 lzma minizip modemmanager mp3 mpc mpfr mtp natspec nautilus ncurses netlink networkmanager nfs nftables nls nptl numa oauth ogg openal openconnect opengl openh264 openmp opus pam pango pcap pcre pcre2 pdf perl pgo pie pipewire pkcs11 png policykit postproc postscript psl pulseaudio qml qsv qt6 raw readline rubberband samba sasl scanner screencast sdjournal seccomp semantic-desktop speex spell sqlite ssl sssd startup-notification stemmer sudo svg sysprof system-info system-sqlite systemd systemtap taglib tdb test-rust theora threads thunderbolt tiff tpm tracker truetype udev udisks unicode unwind upower uuid v4l vaapi vala valgrind verify-sig vfat vorbis vpx vulkan wayland weather webengine webp widgets wifi wnck woff2 x264 x265 xattr xcsecurity xft xinerama xml xscreensaver xv xvid xwidgets xxhash zeroconf zlib zram zstd" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc coreboot" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby31 ruby32" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat 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, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 2 Olivier Huber 2023-03-31 08:26:53 UTC
This was fixed upstream: https://github.com/neovim/neovim/commit/46c4cbced567f5f05f2c95b91cd90084ea8b5528

Patch can't be applied on top of neovim-0.8.3. Taking the most relevant change, it compiles.
Comment 3 Olivier Huber 2023-03-31 08:28:50 UTC
Created attachment 859313 [details, diff]
patch derived from upstream
Comment 4 Søren Dalby Larsen 2023-03-31 09:04:19 UTC
Just confirming the patch works for me too, thanks!
Comment 5 listout 2023-03-31 16:51:08 UTC
Olivier Huber

You can make a PR on  the gentoo repo and take credit for you contribution/patch
Comment 6 Larry the Git Cow gentoo-dev 2023-03-31 18:05:40 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5770020d8b47aa058d907686f75b4d1680815b30

commit 5770020d8b47aa058d907686f75b4d1680815b30
Author:     brahmajit das <brahmajit.xyz@gmail.com>
AuthorDate: 2023-03-31 17:07:20 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-03-31 18:04:54 +0000

    app-editors/neovim: Fix build failure with msgpack-6.0.0
    
    Closes: https://bugs.gentoo.org/903629
    Signed-off-by: brahmajit das <brahmajit.xyz@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/30422
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/neovim-0.8-msgpack-6.0.0-fix.patch       | 26 ++++++++++++++++++++++
 app-editors/neovim/neovim-0.8.2.ebuild             |  1 +
 app-editors/neovim/neovim-0.8.3.ebuild             |  1 +
 3 files changed, 28 insertions(+)