hasufell / games-overlay

gentoo overlay containing games ebuilds only
16 stars 12 forks source link

games-strategy/wesnoth-1.13.6-r1 fails to compile on Funtoo Linux #62

Open fusion809 opened 7 years ago

fusion809 commented 7 years ago

Hi,

On Funtoo Linux I found that games-strategy/wesnoth-1.13.6-r1 fails to emerge giving the error:

removing NDEBUG flag from CMAKE_CXX_FLAGS_RELEASE
removing NDEBUG flag from CMAKE_C_FLAGS_RELEASE
removing NDEBUG flag from CMAKE_CXX_FLAGS_RELWITHDEBINFO
removing NDEBUG flag from CMAKE_C_FLAGS_RELWITHDEBINFO
removing NDEBUG flag from CMAKE_CXX_FLAGS_MINSIZEREL
removing NDEBUG flag from CMAKE_C_FLAGS_MINSIZEREL
-- Try OpenMP C flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Try OpenMP CXX flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [ ]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-fopenmp=libomp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [/openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-Qopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-xopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [+Oopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-qsmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-mp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
  Could NOT find OpenMP (missing: OpenMP_CXX_FLAGS)
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake/Modules/FindOpenMP.cmake:316 (find_package_handle_standard_args)
  CMakeLists.txt:542 (find_package)

-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/games-strategy/wesnoth-1.13.6-r1/work/wesnoth-1.13.6_build/CMakeFiles/CMakeOutput.log".
See also "/var/tmp/portage/games-strategy/wesnoth-1.13.6-r1/work/wesnoth-1.13.6_build/CMakeFiles/CMakeError.log".
 * ERROR: games-strategy/wesnoth-1.13.6-r1::games-overlay failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line  115:  Called src_configure
 *   environment, line 3553:  Called cmake-utils_src_configure
 *   environment, line  855:  Called _cmake_execute_optionally 'src_configure'
 *   environment, line  326:  Called enable_cmake-utils_src_configure
 *   environment, line 1399:  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-strategy/wesnoth-1.13.6-r1::games-overlay'`,
 * the complete build log and the output of `emerge -pqv '=games-strategy/wesnoth-1.13.6-r1::games-overlay'`.
 * The complete build log is located at '/var/tmp/portage/games-strategy/wesnoth-1.13.6-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-strategy/wesnoth-1.13.6-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/games-strategy/wesnoth-1.13.6-r1/work/wesnoth-1.13.6_build'
 * S: '/var/tmp/portage/games-strategy/wesnoth-1.13.6-r1/work/wesnoth-1.13.6'

>>> Failed to emerge games-strategy/wesnoth-1.13.6-r1, Log file:

>>>  '/var/tmp/portage/games-strategy/wesnoth-1.13.6-r1/temp/build.log'

 * Messages for package games-strategy/wesnoth-1.13.6-r1:

 * ERROR: games-strategy/wesnoth-1.13.6-r1::games-overlay failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line  115:  Called src_configure
 *   environment, line 3553:  Called cmake-utils_src_configure
 *   environment, line  855:  Called _cmake_execute_optionally 'src_configure'
 *   environment, line  326:  Called enable_cmake-utils_src_configure
 *   environment, line 1399:  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-strategy/wesnoth-1.13.6-r1::games-overlay'`,
 * the complete build log and the output of `emerge -pqv '=games-strategy/wesnoth-1.13.6-r1::games-overlay'`.
 * The complete build log is located at '/var/tmp/portage/games-strategy/wesnoth-1.13.6-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-strategy/wesnoth-1.13.6-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/games-strategy/wesnoth-1.13.6-r1/work/wesnoth-1.13.6_build'
 * S: '/var/tmp/portage/games-strategy/wesnoth-1.13.6-r1/work/wesnoth-1.13.6'

 * Regenerating GNU info directory index...
 * Processed 153 info files.
 * After world updates, it is important to remove obsolete packages with
 * emerge --depclean. Refer to `man emerge` for more information.

Full build log is here. emerge -pqv returns:

[ebuild     U ] games-strategy/wesnoth-1.13.6-r1 [1.12.6] USE="dbus nls openmp%* -dedicated -doc -fribidi -server -tools%"

emerge --info '=games-strategy/wesnoth-1.13.6-r1::games-overlay' returns:

Portage 2.3.2 (python 2.7.13-final-0, funtoo/1.0/linux-gnu/arch/x86-64bit, gcc-5.3.0, glibc-2.23-r3, 4.9.17-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.9.17-gentoo-x86_64-Intel-R-_Core-TM-_i7-4700MQ_CPU_@_2.40GHz-with-gentoo-2.2.1
KiB Mem:    16375812 total,   3321056 free
KiB Swap:          0 total,         0 free
sh bash 4.3_p48
ld GNU ld (Funtoo 2.25) 2.25.0
app-shells/bash:          4.3_p48::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.0-r2::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo
dev-util/cmake:           3.7.2-r1::gentoo
sys-apps/baselayout:      2.2.1::gentoo
sys-apps/openrc:          0.23.2::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25-r2::gentoo
sys-devel/gcc:            5.3.0-r1::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.9::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: git://github.com/funtoo/ports-2012.git
    priority: -1000

fusion809
    location: /data/GitHub/mine/packaging/fusion809-overlay
    masters: gentoo

spring
    location: /data/GitHub/others/overlay
    masters: gentoo

flatpak-overlay
    location: /data/GitHub/others/flatpak-overlay
    sync-type: git
    sync-uri: git://github.com/fosero/flatpak-overlay.git
    masters: gentoo
    priority: 50

gamerlay
    location: /var/lib/layman/gamerlay
    masters: gentoo
    priority: 50

games-overlay
    location: /var/lib/layman/games-overlay
    masters: gentoo
    priority: 50

hossie
    location: /var/lib/layman/hossie
    masters: gentoo
    priority: 50

sabayon-tools
    location: /var/lib/layman/sabayon-tools
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=generic -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
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="-mtune=generic -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
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 xattr"
FFLAGS="-mtune=generic -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_AU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl alsa amd64 apng berkdb bluray bzip2 cdda cddb cdio cdr consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr dvdread encode exif faac faad ffmpeg flac gdbm gif gpm gtk ico iconv icu ieee1394 introspection ios ipod ipv6 jpeg jpeg2k kde kipi lame libass libguess libmpeg2 mad matroska mjpeg mmx modules mp3 mpeg mtp mudflap multilib ncurses nls nptl nsplugin ogg opengl openmp pam pcre pdf phonon plasma png policykit postproc pppd python qml qt5 quicktime readline resolvconf semantic-desktop sndfile sse sse2 ssl svg taglib tcpd theora tiff truetype twolame udev unicode v4l vorbis vpx wav wavpack webp widgets win32codecs wmf x264 x265 xattr xcomposite xinerama xml xscreensaver xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel ice1724 intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 authn_core authz_core socache_shmcb unixd" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" 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 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="evdev synaptics keyboard mouse" KERNEL="linux" L10N="en en_AU en_GB en_US en-AU en-GB" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby21 ruby22 ruby23 ruby24" USERLAND="GNU" VIDEO_CARDS="intel nvidia" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS

Based on the error I'm guessing a workaround would be to build without the openmp USE flag, although I am hoping for a solution instead of a workaround, if it is possible.

Thanks for your time, Brenton