kde-plasma/kdecoration-5.4.1 fails to build with the following message: >>> Emerging (1 of 3) kde-plasma/kdecoration-5.4.1::gentoo * kdecoration-5.4.1.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking kdecoration-5.4.1.tar.xz to /var/tmp/portage/kde-plasma/kdecoration-5.4.1/work >>> Source unpacked in /var/tmp/portage/kde-plasma/kdecoration-5.4.1/work >>> Preparing source in /var/tmp/portage/kde-plasma/kdecoration-5.4.1/work/kdecoration-5.4.1 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/kde-plasma/kdecoration-5.4.1/work/kdecoration-5.4.1 ... >>> Working in BUILD_DIR: "/var/tmp/portage/kde-plasma/kdecoration-5.4.1/work/kdecoration-5.4.1_build" cmake --no-warn-unused-cli -C /var/tmp/portage/kde-plasma/kdecoration-5.4.1/work/kdecoration-5.4.1_build/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=OFF -DKDE_INSTALL_USE_QT_SYS_PATHS=ON -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_INSTALL_DO_STRIP=OFF -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/kde-plasma/kdecoration-5.4.1/work/kdecoration-5.4.1_build/gentoo_rules.cmake -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/kde-plasma/kdecoration-5.4.1/work/kdecoration-5.4.1_build/gentoo_toolchain.cmake /var/tmp/portage/kde-plasma/kdecoration-5.4.1/work/kdecoration-5.4.1 Not searching for unused variables given on the command line. loading initial cache file /var/tmp/portage/kde-plasma/kdecoration-5.4.1/work/kdecoration-5.4.1_build/gentoo_common_config.cmake -- The C compiler identification is GNU 4.8.4 -- The CXX compiler identification is GNU 4.8.4 -- 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 -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success -- Performing Test COMPILER_HAS_DEPRECATED_ATTR -- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success CMake Error at src/private/CMakeLists.txt:45 (install): install TARGETS given no LIBRARY DESTINATION for shared library target "kdecorations2private". CMake Error at src/CMakeLists.txt:47 (install): install TARGETS given no LIBRARY DESTINATION for shared library target "kdecorations2". CMake Error at CMakeLists.txt:62 (install): install FILES given no DESTINATION! -- -- The following REQUIRED packages have been found: * ECM (required version >= 0.0.11) * Qt5Core * Qt5Gui * Qt5 (required version >= 5.4.0) -- <<< Gentoo configuration >>> Build type Gentoo Install path /usr Compiler flags: C -march=native -pipe -O2 -std=iso9899:1990 -fno-common -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wmissing-format-attribute -Wwrite-strings -Werror=implicit-function-declaration C++ -march=native -pipe -O2 -std=c++0x -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type Linker flags: Executable -Wl,--enable-new-dtags -Wl,-O1 -Wl,--as-needed Module -Wl,--no-undefined -Wl,--fatal-warnings -Wl,--enable-new-dtags -Wl,-O1 -Wl,--as-needed Shared -Wl,--no-undefined -Wl,--fatal-warnings -Wl,--enable-new-dtags -Wl,-O1 -Wl,--as-needed -- Configuring incomplete, errors occurred! See also "/var/tmp/portage/kde-plasma/kdecoration-5.4.1/work/kdecoration-5.4.1_build/CMakeFiles/CMakeOutput.log". * ERROR: kde-plasma/kdecoration-5.4.1::gentoo failed (configure phase): * cmake failed * * Call stack: * ebuild.sh, line 93: Called src_configure * environment, line 3501: Called kde5_src_configure * environment, line 2552: Called cmake-utils_src_configure * environment, line 916: Called _execute_optionally 'src_configure' * environment, line 424: Called enable_cmake-utils_src_configure * environment, line 1244: 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 '=kde-plasma/kdecoration-5.4.1::gentoo'`, * the complete build log and the output of `emerge -pqv '=kde-plasma/kdecoration-5.4.1::gentoo'`. * The complete build log is located at '/var/tmp/portage/kde-plasma/kdecoration-5.4.1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/kde-plasma/kdecoration-5.4.1/temp/environment'. * Working directory: '/var/tmp/portage/kde-plasma/kdecoration-5.4.1/work/kdecoration-5.4.1_build' * S: '/var/tmp/portage/kde-plasma/kdecoration-5.4.1/work/kdecoration-5.4.1' >>> Failed to emerge kde-plasma/kdecoration-5.4.1, Log file: >>> '/var/tmp/portage/kde-plasma/kdecoration-5.4.1/temp/build.log' cmake version 3.3.2 woody giacomo # emerge --info Portage 2.2.20.1 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.8.4, glibc-2.21-r1, 4.2.0-gentoo-r1-20150918 x86_64) ================================================================= System uname: Linux-4.2.0-gentoo-r1-20150918-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.2 KiB Mem: 24592296 total, 16837340 free KiB Swap: 16768892 total, 16768892 free Timestamp of repository gentoo: Mon, 21 Sep 2015 07:00:01 +0000 sh bash 4.3_p42 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 app-shells/bash: 4.3_p42::gentoo dev-java/java-config: 2.2.0::gentoo dev-lang/perl: 5.22.0::gentoo dev-lang/python: 2.7.10::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo dev-util/cmake: 3.3.2::gentoo dev-util/pkgconfig: 0.28-r3::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.17::gentoo sys-apps/sandbox: 2.7::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r1::gentoo sys-devel/automake: 1.11.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.25.1-r1::gentoo sys-devel/gcc: 4.8.4::gentoo, 4.9.3::gentoo sys-devel/gcc-config: 1.8::gentoo sys-devel/libtool: 2.4.6-r1::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.2::gentoo (virtual/os-headers) sys-libs/glibc: 2.21-r1::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -pipe -O2" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -pipe -O2" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://91.121.125.139/gentoo-distfiles/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://91.121.124.139/gentoo-distfiles/" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j9" PKGDIR="/usr/portage/packages" 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" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdda cdr cli colord cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran gdbm gif glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv introspection ipod ipv6 jpeg lcms ldap libnotify libsecret mad mmx mmxext mng modules mp3 mp4 mpeg multilib nautilus ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio python qt3support qt4 readline sdl seccomp session spell sse sse2 ssl startup-notification svg systemd tcpd tiff tracker truetype udev udisks unicode upower usb vorbis wayland wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64 32" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="it es" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4 python3_3" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel i965 i915" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON Thanks, Giacomo.
Which version of kde-frameworks/extra-cmake-modules do you have? Are there any stray KDEInstallDirs.cmake on your system?
Hello. Thanks for your kind reply. woody src # find / -iname "*KDEInstallDir*" find: ‘/run/user/1000/gvfs’: Permission denied /usr/share/ECM/kde-modules/KDEInstallDirs.cmake woody giacomo # equery belongs /usr/share/ECM/kde-modules/KDEInstallDirs.cmake * Searching for /usr/share/ECM/kde-modules/KDEInstallDirs.cmake ... kde-frameworks/extra-cmake-modules-5.14.0 (/usr/share/ECM/kde-modules/KDEInstallDirs.cmake) So, in my system there's only /usr/share/ECM/kde-modules/KDEInstallDirs.cmake installed by kde-frameworks/extra-cmake-modules-5.14.0. Best regards, Giacomo.
Created attachment 412802 [details] CMakeLists.txt Could you please copy this CMakeLists.txt to an empty directory, run "cmake ." and add the output here?
Hello! Here it is! giacomo@woody /tmp/testCMake $ cmake . -- The C compiler identification is GNU 4.8.4 -- The CXX compiler identification is GNU 4.8.4 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- 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/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Error at CMakeLists.txt:6 (include): include could not find load file: KDEInstallDirs -- CMAKE_INSTALL_INCLUDEDIR_KF5: -- KF5_INCLUDE_INSTALL_DIR: -- KF5_INSTALL_TARGETS_DEFAULT_ARGS: -- Configuring incomplete, errors occurred! See also "/tmp/testCMake/CMakeFiles/CMakeOutput.log".
Hello! Any news? Still can't build kdecoration. Thanks Giacomo.
(In reply to Giacomo from comment #5) > Hello! > Any news? > Still can't build kdecoration. > > Thanks > > Giacomo. Have you tested 5.4.2 (available in the overlay)?
Created attachment 414116 [details] CMakeLists.txt v2 It looks like it could be a cmake path issue. Could you please try this second debug CMakeLists.txt ?
Thanks for your help. Here's the output now: -- The C compiler identification is GNU 4.8.4 -- The CXX compiler identification is GNU 4.8.4 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- 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/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- CMAKE_MODULE_PATH1: -- CMAKE_MODULE_PATH2: /usr/local/share/ECM/modules//usr/local/share/ECM/find-modules//usr/local/share/ECM/kde-modules//usr/local/share/ECM/kde-modules/ -- ECM_MODULE_PATH: /usr/local/share/ECM/modules//usr/local/share/ECM/find-modules//usr/local/share/ECM/kde-modules/ -- ECM_KDE_MODULE_DIR: /usr/local/share/ECM/kde-modules/ -- Configuring done -- Generating done -- Build files have been written to: /tmp/cmaketest giacomo@woody /tmp/cmaketest $ ls CMakeCache.txt CMakeFiles cmake_install.cmake CMakeLists.txt Makefile Best regards, Giacomo.
What's in /usr/local/share, anything cmake/ECM-related?
I think that it was the issue... Now it has successfully built... I thank You very much for your help. There were some leftover files deriving from an old kde plasma git installation from kde sources... Best regards. Giacomo.