Compilation of kde-apps/step-18.08.01 fails with this error, basically the compiler complains about a missing return value or something similar. [ 46%] Building CXX object stepcore/CMakeFiles/stepcore.dir/stepcore_autogen/mocs_compilation.cpp.o cd /var/tmp/portage/kde-apps/step-18.08.1/work/step-18.08.1_build/stepcore && /usr/bin/x86_64-pc-linux-gnu-g++ -DQT_CORE_LIB -DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_NO_DEBUG -DQT_NO_URL_CAST_FROM_STRING -DQT_XML_LIB -DSTEPCORE_WITH_GSL -DSTEPCORE_WITH_QT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/var/tmp/portage/kde-apps/step-18.08.1/work/step-18.08.1_build/stepcore -I/var/tmp/portage/kde-apps/step-18.08.1/work/step-18.08.1/stepcore -I/var/tmp/portage/kde-apps/step-18.08.1/work/step-18.08.1_build/stepcore/stepcore_autogen/include -I/var/tmp/portage/kde-apps/step-18.08.1/work/step-18.08.1 -I/usr/include/eigen3 -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtXml -DQT_NO_DEBUG -DNDEBUG -march=native -O3 -fgraphite-identity -floop-nest-optimize -ftree-loop-distribution -flto=4 -fuse-linker-plugin -pipe -fpie -fpic -fstack-protector-strong -std=c++0x -fno-operator-names -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Wvla -Wdate-time -Wno-unused-local-typedefs -Wno-unused-parameter -fvisibility=hidden -fvisibility-inlines-hidden -Wall -fPIC -std=gnu++11 -o CMakeFiles/stepcore.dir/stepcore_autogen/mocs_compilation.cpp.o -c /var/tmp/portage/kde-apps/step-18.08.1/work/step-18.08.1_build/stepcore/stepcore_autogen/mocs_compilation.cpp /var/tmp/portage/kde-apps/step-18.08.1/work/step-18.08.1/stepcore/collisionsolver.cc: In member function ‘virtual int StepCore::GJKCollisionSolver::solveCollisions(StepCore::BodyList&)’: /var/tmp/portage/kde-apps/step-18.08.1/work/step-18.08.1/stepcore/collisionsolver.cc:1163:9: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] int ret = 0; ^~~ In file included from /usr/include/eigen3/unsupported/Eigen/IterativeSolvers:36, from /var/tmp/portage/kde-apps/step-18.08.1/work/step-18.08.1/stepcore/constraintsolver.cc:24: /usr/include/eigen3/unsupported/Eigen/src/IterativeSolvers/DGMRES.h: In member function ‘Eigen::Index Eigen::DGMRES<_MatrixType, _Preconditioner>::set_restart(Eigen::Index)’: /usr/include/eigen3/unsupported/Eigen/src/IterativeSolvers/DGMRES.h:176:63: error: no return statement in function returning non-void [-Werror=return-type] Index set_restart(const Index restart) { m_restart=restart; } ^ /var/tmp/portage/kde-apps/step-18.08.1/work/step-18.08.1/stepcore/constraintsolver.cc: In member function ‘virtual int StepCore::CGConstraintSolver::solve(StepCore::ConstraintsInfo*)’: /var/tmp/portage/kde-apps/step-18.08.1/work/step-18.08.1/stepcore/constraintsolver.cc:79:42: warning: comparison of constant ‘-1’ with boolean expression is always true [-Wbool-compare] if(std::isinf(info->forceMin[i]) != -1) ++fminCount; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /var/tmp/portage/kde-apps/step-18.08.1/work/step-18.08.1/stepcore/constraintsolver.cc:89:42: warning: comparison of constant ‘-1’ with boolean expression is always true [-Wbool-compare] if(std::isinf(info->forceMin[i]) != -1) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ cc1plus: some warnings being treated as errors make[2]: *** [stepcore/CMakeFiles/stepcore.dir/build.make:375: stepcore/CMakeFiles/stepcore.dir/constraintsolver.cc.o] Error 1 make[2]: Leaving directory '/var/tmp/portage/kde-apps/step-18.08.1/work/step-18.08.1_build' make[1]: *** [CMakeFiles/Makefile2:530: stepcore/CMakeFiles/stepcore.dir/all] Error 2 make[1]: Leaving directory '/var/tmp/portage/kde-apps/step-18.08.1/work/step-18.08.1_build' make: *** [Makefile:130: all] Error 2 * ERROR: kde-apps/step-18.08.1::kde failed (compile phase):
: Enable dependencies and/or preparations necessary to run tests (usually controlled by FEATURES=test but can be toggled independently) hobbes ~ # emerge --info Portage 2.3.49 (python 3.5.5-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-8.2.0, glibc-2.27-r6, 4.18.6-cova x86_64) ================================================================= System uname: Linux-4.18.6-cova-x86_64-Intel-R-_Core-TM-_i7-6820HQ_CPU_@_2.70GHz-with-gentoo-2.6 KiB Mem: 65296396 total, 55334456 free KiB Swap: 8388604 total, 8388604 free Timestamp of repository gentoo: Sat, 08 Sep 2018 06:44:33 +0000 Head commit of repository gentoo: 47c774d03919320929889f4f2ee7af84c6ac0a7f sh bash 4.4_p23 ld GNU ld (Gentoo 2.31.1 p1) 2.31.1 app-shells/bash: 4.4_p23::gentoo dev-java/java-config: 2.2.0-r4::gentoo dev-lang/perl: 5.26.2::gentoo dev-lang/python: 2.7.15::gentoo, 3.4.8-r1::gentoo, 3.5.5-r1::gentoo, 3.6.6::gentoo, 3.7.0::gentoo dev-util/cmake: 3.12.1::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.6-r1::gentoo sys-apps/sandbox: 2.13::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.16.1-r1::gentoo sys-devel/binutils: 2.31.1::gentoo sys-devel/gcc: 8.2.0-r2::gentoo sys-devel/gcc-config: 2.0::gentoo sys-devel/libtool: 2.4.6-r5::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 4.17::gentoo (virtual/os-headers) sys-libs/glibc: 2.27-r6::gentoo Repositories: gentoo location: /usr/portage sync-type: git sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git priority: -1000 sync-git-verify-commit-signature: yes kde location: /var/lib/layman/kde sync-type: laymansync sync-uri: https://github.com/gentoo/kde.git masters: gentoo priority: 50 pypi location: /var/lib/layman/pypi sync-type: laymansync sync-uri: gs-pypi pypi masters: gentoo priority: 50 torbrowser location: /var/lib/layman/torbrowser sync-type: laymansync sync-uri: https://github.com/MeisterP/torbrowser-overlay.git masters: gentoo priority: 50 vmware location: /var/lib/layman/vmware sync-type: laymansync sync-uri: https://anongit.gentoo.org/git/proj/vmware.git masters: gentoo priority: 50 local location: /usr/overlay masters: gentoo priority: 51 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O3 -fgraphite-identity -floop-nest-optimize -ftree-loop-distribution -flto=4 -fuse-linker-plugin -pipe -fpie -fpic -fstack-protector-strong" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/sddm/scripts/Xsetup" 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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -O3 -fgraphite-identity -floop-nest-optimize -ftree-loop-distribution -flto=4 -fuse-linker-plugin -pipe -fpie -fpic -fstack-protector-strong" DISTDIR="/usr/portage/distfiles" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY 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-logs clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch 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_IE.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -march=native -O3 -fgraphite-identity -floop-nest-optimize -ftree-loop-distribution -flto=4 -fuse-linker-plugin -pipe -fpie -fpic -fstack-protector-strong -Wl,--as-needed -Wl,--hash-style=gnu" LINGUAS="en it de" MAKEOPTS="-j8" 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 --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="3dnow 3dnowext 3dnowprefetch X \ a52 aac aalib acl acpi activities aim alsa amd64 apng appstream ares asf ati audio audiofile avahi bash-completion berkdb bidi bl bluetooth branding bri bzip2 cairo caps cdda cdr cjk cli crypt cups curl cxx dba dbus declarative device-mapper dga divx divx4linux dri dts dv dvb dvd dvdr dvdread eap-sim edl egl emboss encode ethereal evdev exif expat faad fam fame fbcon ffmpeg fftw flac force-cgi-redirect fortran ftp gallium garmin gd gdbm gif gimp glamor gmedia gmp gnutls gphoto2 gpm gps gsm gtk h264 h323 iconv icq icu idn ifp ilbc imagemagick imap innodb ipod iproute2 ipv6 ithreads jabber java javascript joystick jpeg kde kipi kontact kvm kwallet lastfm lcms ldap libnotify libtirpc libvirtd live lm_sensors lua lvm lxc lzma lzo mad maildir matroska mbox mdnsresponder-compat mhash mime mjpeg mmap mmx mmxext mng modules mozdevelop mozilla mp3 mp4 mpeg msn mtp multilib mysql ncurses network networkmanager new-hpcups nfsv4 njb nls nptl nptlonly nsplugin offensive ofx ogg oggvorbis ogm openal openexr opengl openmp oscar pam pango parted pcap pcre pdf phonon php plasma plotutils png policykit ppds pulseaudio qemu qml qt5 readline real rtc ruby samba sasl sdl seccomp semantic-desktop semantic-destkop sha512 sip slang slp smartcard sndfile snmp sox speex spell srt sse sse2 ssh ssl ssse3 startup-notification svg symlink systemd tcltk tcpd telepathy theora threads tiff tk touchpad tremor truetype udev udisks unicode upower usb utempter v4l v4l2 vaapi vcd vde vdpaum vhosts video videos vim-syntax virt-network virtualbox vorbis vulkan wav wayland webkit widgets wifi wmf wmp wps wxwidgets wxwindows x264 xanim xattr xcb xcomposite xface xft xine xinerama xml xosd xpm xscreensaver xsl xv xvid zeroconf zlib zpm" 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="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock 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" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en it de en_IE" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="X86" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_4 python3_5 python3_6" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby23 ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="i965 intel nvidia v4l" 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_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 546264 [details] build log
This is in the main tree
Modified the include files of eigen to Index set_restart(const Index restart) { m_restart=restart; return m_restart;} to make the compile passed.
This looks to have been fixed in upstream Eigen based on this commit I found: https://bitbucket.org/eigen/eigen/commits/27cac8430247a65739fcd0b83ef984d0a9c010c7 Effectively they made that function's return type void. I guess the next release of Eigen will have the fix in place.
'MAKEOPTS=-j1 emerge -v1 step' fails here with: ... cd /var/tmp/portage/kde-apps/step-18.08.1/work/step-18.08.1_build/stepcore && /usr/bin/x86_64-pc-linux-gnu-g++ -DQT_CORE_LIB -DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_NO_DEBUG -DQT_NO_URL_CAST_FROM_STRING -DQT_XML_LIB -DSTEPCORE_WITH_GSL -DSTEPCORE_WITH_QT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/var/tmp/portage/kde-apps/step-18.08.1/work/step-18.08.1_build/stepcore -I/var/tmp/portage/kde-apps/step-18.08.1/work/step-18.08.1/stepcore -I/var/tmp/portage/kde-apps/step-18.08.1/work/step-18.08.1_build/stepcore/stepcore_autogen/include -I/var/tmp/portage/kde-apps/step-18.08.1/work/step-18.08.1 -I/usr/include/eigen3 -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtXml -DQT_NO_DEBUG -DNDEBUG -march=broadwell -O2 -pipe -std=c++0x -fno-operator-names -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Wvla -Wdate-time -Wno-unused-local-typedefs -Wno-unused-parameter -fvisibility=hidden -fvisibility-inlines-hidden -Wall -fPIC -std=gnu++11 -o CMakeFiles/stepcore.dir/collisionsolver.cc.o -c /var/tmp/portage/kde-apps/step-18.08.1/work/step-18.08.1/stepcore/collisionsolver.cc /var/tmp/portage/kde-apps/step-18.08.1/work/step-18.08.1/stepcore/collisionsolver.cc: In member function ‘virtual int StepCore::GJKCollisionSolver::solveCollisions(StepCore::BodyList&)’: /var/tmp/portage/kde-apps/step-18.08.1/work/step-18.08.1/stepcore/collisionsolver.cc:1163:9: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] int ret = 0; ^~~ [ 42%] Building CXX object stepcore/CMakeFiles/stepcore.dir/constraintsolver.cc.o cd /var/tmp/portage/kde-apps/step-18.08.1/work/step-18.08.1_build/stepcore && /usr/bin/x86_64-pc-linux-gnu-g++ -DQT_CORE_LIB -DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_NO_DEBUG -DQT_NO_URL_CAST_FROM_STRING -DQT_XML_LIB -DSTEPCORE_WITH_GSL -DSTEPCORE_WITH_QT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/var/tmp/portage/kde-apps/step-18.08.1/work/step-18.08.1_build/stepcore -I/var/tmp/portage/kde-apps/step-18.08.1/work/step-18.08.1/stepcore -I/var/tmp/portage/kde-apps/step-18.08.1/work/step-18.08.1_build/stepcore/stepcore_autogen/include -I/var/tmp/portage/kde-apps/step-18.08.1/work/step-18.08.1 -I/usr/include/eigen3 -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtXml -DQT_NO_DEBUG -DNDEBUG -march=broadwell -O2 -pipe -std=c++0x -fno-operator-names -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Wvla -Wdate-time -Wno-unused-local-typedefs -Wno-unused-parameter -fvisibility=hidden -fvisibility-inlines-hidden -Wall -fPIC -std=gnu++11 -o CMakeFiles/stepcore.dir/constraintsolver.cc.o -c /var/tmp/portage/kde-apps/step-18.08.1/work/step-18.08.1/stepcore/constraintsolver.cc In file included from /usr/include/eigen3/unsupported/Eigen/IterativeSolvers:36, from /var/tmp/portage/kde-apps/step-18.08.1/work/step-18.08.1/stepcore/constraintsolver.cc:24: /usr/include/eigen3/unsupported/Eigen/src/IterativeSolvers/DGMRES.h: In member function ‘Eigen::Index Eigen::DGMRES<_MatrixType, _Preconditioner>::set_restart(Eigen::Index)’: /usr/include/eigen3/unsupported/Eigen/src/IterativeSolvers/DGMRES.h:176:63: error: no return statement in function returning non-void [-Werror=return-type] Index set_restart(const Index restart) { m_restart=restart; } ^ /var/tmp/portage/kde-apps/step-18.08.1/work/step-18.08.1/stepcore/constraintsolver.cc: In member function ‘virtual int StepCore::CGConstraintSolver::solve(StepCore::ConstraintsInfo*)’:
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bcda4e0253c1993c78d3fc3891216720fd04abcd commit bcda4e0253c1993c78d3fc3891216720fd04abcd Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2018-09-10 11:33:50 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2018-09-10 11:36:17 +0000 dev-cpp/eigen: Fix prototype Closes: https://bugs.gentoo.org/665488 Package-Manager: Portage-2.3.48, Repoman-2.3.10 dev-cpp/eigen/eigen-3.3.5-r1.ebuild | 101 +++++++++++++++++++++ .../eigen/files/eigen-3.3.5-fix-prototype.patch | 19 ++++ 2 files changed, 120 insertions(+)
*** Bug 665598 has been marked as a duplicate of this bug. ***