Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 700220 - games-action/minetest-5.1.0 - CMake Error at cmake/Modules/FindJson.cmake:25 (add_subdirectory): add_subdirectory given source "lib/jsoncpp" which is not an existing directory.
Summary: games-action/minetest-5.1.0 - CMake Error at cmake/Modules/FindJson.cmake:25 ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Breathitt Gray
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2019-11-16 08:29 UTC by Michael Mair-Keimberger (iamnr3)
Modified: 2019-11-17 21:38 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Mair-Keimberger (iamnr3) 2019-11-16 08:29:32 UTC
Hi,

games-action/minetest-5.1.0 fails to build. Below my build.log.

>>> Verifying ebuild manifests
>>> Emerging (1 of 1) games-action/minetest-5.1.0::gentoo
>>> Failed to emerge games-action/minetest-5.1.0, Log file:
>>>  '/var/tmp/portage/games-action/minetest-5.1.0/temp/build.log'
>>> Jobs: 0 of 1 complete, 1 failed                 Load avg: 0.90, 2.18, 1.71
 * Package:    games-action/minetest-5.1.0
 * Repository: gentoo
 * Maintainer: vilhelm.gray@gmail.com proxy-maint@gentoo.org,games@gentoo.org
 * Upstream:   https://github.com/minetest/minetest/issues
 * USE:        abi_x86_64 amd64 client curl elibc_glibc kernel_linux leveldb ncurses nls server sound truetype userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking minetest-5.1.0.tar.gz to /var/tmp/portage/games-action/minetest-5.1.0/work
>>> Source unpacked in /var/tmp/portage/games-action/minetest-5.1.0/work
>>> Preparing source in /var/tmp/portage/games-action/minetest-5.1.0/work/minetest-5.1.0 ...
 * Hardcoded definition(s) removed in CMakeLists.txt:
 *      set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type: Debug or Release" FOR
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/games-action/minetest-5.1.0/work/minetest-5.1.0 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/games-action/minetest-5.1.0/work/minetest-5.1.0_build"
cmake -C /var/tmp/portage/games-action/minetest-5.1.0/work/minetest-5.1.0_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_CLIENT=yes -DBUILD_SERVER=yes -DCUSTOM_BINDIR=/usr/bin -DCUSTOM_DOCDIR=/usr/share/doc/minetest-5.1.0 -DCUSTOM_EXAMPLE_CONF_DIR=/usr/share/doc/minetest-5.1.0 -DCUSTOM_LOCALEDIR=/usr/share/minetest/locale -DCUSTOM_SHAREDIR=/usr/share/minetest -DENABLE_CURL=yes -DENABLE_CURSES=yes -DENABLE_FREETYPE=yes -DENABLE_GETTEXT=yes -DENABLE_GLES=0 -DENABLE_LEVELDB=yes -DENABLE_LUAJIT=no -DENABLE_POSTGRESQL=no -DENABLE_REDIS=no -DENABLE_SPATIAL=no -DENABLE_SOUND=yes -DENABLE_SYSTEM_JSONCPP=1 -DRUN_IN_PLACE=0 -DIRRLICHT_INCLUDE_DIR=/usr/include/irrlicht -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/games-action/minetest-5.1.0/work/minetest-5.1.0_build/gentoo_toolchain.cmake  /var/tmp/portage/games-action/minetest-5.1.0/work/minetest-5.1.0
loading initial cache file /var/tmp/portage/games-action/minetest-5.1.0/work/minetest-5.1.0_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 9.2.0
-- The CXX compiler identification is GNU 9.2.0
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- *** Will build version 5.1.0 ***
-- Found Irrlicht: /usr/lib64/libIrrlicht.so  
-- Using SHAREDIR=/usr/share/minetest
-- Using BINDIR=/usr/bin
-- Using DOCDIR=/usr/share/doc/minetest-5.1.0
-- Using EXAMPLE_CONF_DIR=/usr/share/doc/minetest-5.1.0
-- Using LOCALEDIR=/usr/share/minetest/locale
-- Using GMP provided by system.
-- Found GMP: /usr/lib64/libgmp.so  
-- Could NOT find JSONCPP (missing: JSON_INCLUDE_DIR) 
-- Using bundled JSONCPP library.
CMake Error at cmake/Modules/FindJson.cmake:25 (add_subdirectory):
  add_subdirectory given source "lib/jsoncpp" which is not an existing
  directory.
Call Stack (most recent call first):
  CMakeLists.txt:207 (find_package)


-- LuaJIT detection disabled! (ENABLE_LUAJIT=0)
-- LuaJIT not found, using bundled Lua.
-- Found CURL: /usr/lib64/libcurl.so  
-- cURL support enabled.
-- Found GetText: /usr/include  
-- GetText enabled; locales found: be;ca;cs;da;de;dv;el;eo;es;et;fil;fr;he;hu;id;it;ja;ja_KS;jbo;kk;kn;ko;ky;lo;lt;ms;my;nb;nl;nn;pl;pt;pt_BR;ro;ru;sl;sr_Cyrl;sv;sw;th;tr;uk;vi;zh_CN;zh_TW
-- Found OpenAL: /usr/lib64/libopenal.so  
-- Found VORBIS: /usr/include  
-- Sound enabled.
-- Found OpenGL: /usr/lib64/libGL.so   
-- Found Freetype: /usr/lib64/libfreetype.so (found version "2.10.1") 
-- Freetype enabled.
-- Looking for cbreak in /usr/lib64/libncursesw.so
-- Looking for cbreak in /usr/lib64/libncursesw.so - not found
-- Found Ncursesw: /usr/lib64/libncursesw.so  
-- ncurses console enabled.
-- LevelDB backend enabled.
-- Found SQLite3: /usr/lib64/libsqlite3.so  
-- Found X11: /usr/include   
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found JPEG: /usr/lib64/libjpeg.so (found version "62") 
-- Found BZip2: /usr/lib64/libbz2.so (found version "1.0.8") 
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - found
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.11") 
-- Found PNG: /usr/lib64/libpng.so (found version "1.6.37") 
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Looking for include file endian.h
-- Looking for include file endian.h - found
-- Locale blacklist applied; Locales used: ca;cs;da;de;dv;el;eo;es;et;fil;fr;hu;id;it;ja;ja_KS;jbo;kk;kn;lo;lt;ms;my;nb;nl;nn;pl;pt;pt_BR;ro;ru;sl;sr_Cyrl;sv;sw;th;tr;uk;vi
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.16") found components:  doxygen dot 
-- <<< Gentoo configuration >>>
Build type      Gentoo
Install path    /usr
Compiler flags:
C               -O2 -pipe -march=bdver2 -mprefer-avx128
C++             -O2 -pipe -march=bdver2 -mprefer-avx128
Linker flags:
Executable      -Wl,-O1 -Wl,--as-needed
Module          -Wl,-O1 -Wl,--as-needed
Shared          -Wl,-O1 -Wl,--as-needed

-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/games-action/minetest-5.1.0/work/minetest-5.1.0_build/CMakeFiles/CMakeOutput.log".
See also "/var/tmp/portage/games-action/minetest-5.1.0/work/minetest-5.1.0_build/CMakeFiles/CMakeError.log".
 * ERROR: games-action/minetest-5.1.0::gentoo failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line  125:  Called src_configure
 *   environment, line 2130:  Called cmake-utils_src_configure
 *   environment, line  949:  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 '=games-action/minetest-5.1.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=games-action/minetest-5.1.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/games-action/minetest-5.1.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-action/minetest-5.1.0/temp/environment'.
 * Working directory: '/var/tmp/portage/games-action/minetest-5.1.0/work/minetest-5.1.0_build'
 * S: '/var/tmp/portage/games-action/minetest-5.1.0/work/minetest-5.1.0'



emerge --info:
Portage 2.3.79 (python 3.6.9-final-0, default/linux/amd64/17.1, gcc-9.2.0, glibc-2.30-r2, 5.3.11-gentoo x86_64)
=================================================================
System uname: Linux-5.3.11-gentoo-x86_64-AMD_FX-tm-8350_Eight-Core_Processor-with-gentoo-2.6
KiB Mem:    16386468 total,  12377776 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Fri, 15 Nov 2019 14:26:05 +0000
Head commit of repository gentoo: afad8b38a938cbba22d95c3505495f73d939293b

Head commit of repository local: 346fd2ed1930039f375953f63c9ec7fed6782d23

Timestamp of repository steam-overlay: Mon, 11 Nov 2019 21:37:27 +0000
Head commit of repository steam-overlay: f3e9cf7f5b990274fa9d02ebc2607349f7616891

sh bash 5.0_p11
ld GNU ld (Gentoo 2.32 p2) 2.32.0
app-shells/bash:          5.0_p11::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.17::gentoo, 3.6.9::gentoo
dev-util/cmake:           3.15.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r2::gentoo
sys-devel/binutils:       2.32-r1::gentoo, 2.33.1::gentoo
sys-devel/gcc:            9.2.0-r2::gentoo
sys-devel/gcc-config:     2.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.3-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.30-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000

local
    location: /var/db/repos/local
    sync-type: git
    sync-uri: git@s2:local
    masters: gentoo

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=bdver2 -mprefer-avx128"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0"
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="-O2 -pipe -march=bdver2 -mprefer-avx128"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=8 --load-average 8"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 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 sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_AT.UTF-8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j9"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--info=progress2,name0,del0"
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"
USE="aac acl alsa amd64 berkdb bzip2 cli crypt cxx dbus dri elogind exif flac fortran gdbm gif iconv ipv6 jpeg kde ldap libtirpc lzma mad mp3 mp4 multilib ncurses nls nptl openal opengl openmp opus pam pcre png python readline sdl seccomp split-usr ssl svg tcpd threads tiff truetype udev unicode vaapi vdpau vim-syntax vorbis vpx vulkan wayland webp x264 xattr xml zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="krita sheets words karbon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx fma3 fma4 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" CURL_SSL="gnutls" 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="pc" INPUT_DEVICES="evdev libinput" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" QEMU_SOFTMMU_TARGETS="arm x86_64" QEMU_USER_TARGETS="arm x86_64" RUBY_TARGETS="ruby26 ruby25" USERLAND="GNU" VIDEO_CARDS="radeon radeonsi amdgpu" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 William Breathitt Gray 2019-11-16 14:42:23 UTC
The configuration script is failing to find JSONCPP on your system:

    -- Could NOT find JSONCPP (missing: JSON_INCLUDE_DIR)

This is unexpected since `dev-libs/jsoncpp` is a dependency for `games-action/minetest`, so it should be installed on your system already.

What version of `dev-libs/jsoncpp` do you have installed? Do you have the shared library installed at /usr/lib64/libjsoncpp.so?
Comment 2 Michael Mair-Keimberger (iamnr3) 2019-11-16 16:40:16 UTC
This is my jsoncpp:
dev-libs/jsoncpp-1.9.2-r1::gentoo was built with the following:
USE="-doc -test" ABI_X86="(64)"

ls -la /usr/lib64/libjsoncpp.so*:
lrwxrwxrwx 1 root root     16 Nov 16 09:25 /usr/lib64/libjsoncpp.so -> libjsoncpp.so.22
-rwxr-xr-x 1 root root 226136 Jul 12 13:24 /usr/lib64/libjsoncpp.so.1.9.0
-rwxr-xr-x 1 root root 229888 Nov 16 09:25 /usr/lib64/libjsoncpp.so.1.9.2
lrwxrwxrwx 1 root root     19 Jul 12 13:24 /usr/lib64/libjsoncpp.so.21 -> libjsoncpp.so.1.9.0
lrwxrwxrwx 1 root root     19 Nov 16 09:25 /usr/lib64/libjsoncpp.so.22 -> libjsoncpp.so.1.9.2

I've also rebuild it before opening this bug.
Comment 3 William Breathitt Gray 2019-11-16 18:04:40 UTC
The upstream Minetest CMake fails to find JSONCPP since it's searching for json/features.h which was renamed recently in upstream JSONCPP to json/json_features.h: https://github.com/open-source-parsers/jsoncpp/pull/1024

I've opened up a new issue on the Minetest Github page: https://github.com/minetest/minetest/issues/9119
Comment 4 Dario Sarango 2019-11-16 18:43:49 UTC
JSON renamed some files.

See upstream bug for possible patch:

https://github.com/minetest/minetest/issues/9119
Comment 5 Dario Sarango 2019-11-16 18:50:16 UTC
(In reply to Dario Sarango from comment #4)
> JSON renamed some files.
> 
> See upstream bug for possible patch:
> 
> https://github.com/minetest/minetest/issues/9119

Ignore me.  Posted too late.  previous comment has the same info.
Comment 6 Larry the Git Cow gentoo-dev 2019-11-17 21:38:55 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e24281824b722f587e1785e0138bdae955cc853

commit 8e24281824b722f587e1785e0138bdae955cc853
Author:     William Breathitt Gray <vilhelm.gray@gmail.com>
AuthorDate: 2019-11-17 15:50:03 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2019-11-17 21:35:29 +0000

    games-action/minetest: Add patch to find newer JsonCpp
    
    The luajit flag is also removed since we should always build using the
    system-provided LuaJIT rather than the bundled Lua library.
    
    Closes: https://bugs.gentoo.org/700220
    Package-Manager: Portage-2.3.79, Repoman-2.3.18
    Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/13690
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>

 games-action/minetest/files/5.1.0-FindJson.patch |  31 +++++
 games-action/minetest/files/minetestserver.initd |   2 +-
 games-action/minetest/minetest-5.1.0-r1.ebuild   | 140 +++++++++++++++++++++++
 3 files changed, 172 insertions(+), 1 deletion(-)