Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 652446 - games-strategy/freeorion - CMake Error at /usr/share/cmake/Modules/FindBoost.cmake:2044 (message): Unable to find the requested Boost libraries. Could not find the following Boost libraries: boost_python
Summary: games-strategy/freeorion - CMake Error at /usr/share/cmake/Modules/FindBoost....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Adam Feldman
URL:
Whiteboard: fixed in 0.4.8
Keywords:
Depends on: 664900
Blocks:
  Show dependency tree
 
Reported: 2018-04-04 19:28 UTC by Torsten Kaiser
Modified: 2019-06-10 04:19 UTC (History)
6 users (show)

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


Attachments
failed build.log with =dev-util/cmake-3.11.0 (build.log,6.37 KB, text/plain)
2018-04-05 05:38 UTC, Torsten Kaiser
Details
successfull build.log with =dev-util/cmake-3.10.3 (build.log.gz,65.12 KB, application/gzip)
2018-04-05 05:55 UTC, Torsten Kaiser
Details
build.log from app-office/ledger-3.1.1 (build.log,5.79 KB, text/plain)
2018-04-07 19:11 UTC, Torsten Kaiser
Details
freeorion.build.log w/ cmake-3.14.3 and boost-1.70.0 (games-strategy:freeorion-0.4.7.1-r4:20190501-121749.log,6.31 KB, text/x-log)
2019-05-01 12:23 UTC, Andreas Sturmlechner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Torsten Kaiser 2018-04-04 19:28:42 UTC
I was trying to upgrade freeorion from -r2 to -r3, but building failed.
I traced this back to the last cmake upgrade.

Failing build with dev-util/cmake-3.11.0:

-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found PythonInterp: /var/tmp/portage/games-strategy/freeorion-0.4.7.1-r3/temp/python2.7/bin/python (found suitable version "2.7.14", minimum required is "2.7") 
-- Found PythonLibs: /usr/lib/libpython2.7.so (found suitable version "2.7.14", minimum required is "2.7") 
CMake Error at /usr/share/cmake/Modules/FindBoost.cmake:2044 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.65.0

  Boost include path: /usr/include

  Could not find the following Boost libraries:

          boost_python

  Some (but not all) of the required Boost libraries were found.  You may
  need to install these additional Boost libraries.  Alternatively, set
  BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT
  to the location of Boost.
Call Stack (most recent call first):
  CMakeLists.txt:153 (find_package)


-- Found ZLIB: /usr/lib/libz.so (found version "1.2.11") 
-- Found Freetype: /usr/lib/libfreetype.so (found version "2.9.0") 


Working build with dev-util/cmake-3.10.3:
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found PythonInterp: /var/tmp/portage/games-strategy/freeorion-0.4.7.1-r3/temp/python2.7/bin/python (found suitable version "2.7.14", minimum
 required is "2.7") 
-- Found PythonLibs: /usr/lib/libpython2.7.so (found suitable version "2.7.14", minimum required is "2.7") 
-- Boost version: 1.65.0
-- Found the following Boost libraries:
--   date_time
--   filesystem
--   iostreams
--   locale
--   log
--   regex
--   serialization
--   python
--   signals
--   system
--   thread
--   log_setup
--   chrono
--   atomic
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.11") 
-- Found Freetype: /usr/lib/libfreetype.so (found version "2.9.0") 


As Cmake is using the system file /usr/share/cmake/Modules/FindBoost.cmake I don't think that the build.log from freeorion is useful. If you do need it, please tell me, if you want the failing or the working version. Or if you need any other info or logs.


emerge --info cmake boost freeorion:
Portage 2.3.28 (python 2.7.14-final-0, default/linux/amd64/17.0, gcc-7.3.0, glibc-2.26-r6, 4.16.0-rc3 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.16.0-rc3-x86_64-AMD_Ryzen_7_1700X_Eight-Core_Processor-with-gentoo-2.4.1
KiB Mem:    32843388 total,  27689576 free
KiB Swap:   15720380 total,  15720380 free
Timestamp of repository gentoo: Wed, 04 Apr 2018 17:30:01 +0000
Head commit of repository gentoo: df2c4efbc86f8cf951563644920195c5ed0adef9
sh bash 4.4_p19
ld GNU ld (Gentoo 2.30 p1) 2.30.0
app-shells/bash:          4.4_p19::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.1-r2::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.5::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.10.3::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.35.5::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.16.1-r1::gentoo
sys-devel/binutils:       2.30::gentoo
sys-devel/gcc:            6.4.0-r1::gentoo, 7.3.0::gentoo
sys-devel/gcc-config:     1.9.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r3::gentoo
sys-kernel/linux-headers: 4.15::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24

local
    location: /root/ebuilds
    masters: gentoo
    priority: 0

java
    location: /usr/portage-local/layman/java
    masters: gentoo
    priority: 50

mozilla
    location: /usr/portage-local/layman/mozilla
    masters: gentoo
    priority: 50

x11
    location: /usr/portage-local/layman/x11
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -march=znver1 -O3 -fomit-frame-pointer -fivopts -fweb -frename-registers -ftracer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.2/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php7.2/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="-pipe -march=znver1 -O3 -fomit-frame-pointer -fivopts -fweb -frename-registers -ftracer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --jobs=6 --load-average=20 --keep-going"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j16"
PKGDIR="/var/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="7zip R S3TC X a52 aac aalib ace acl acpi ads aften aio alisp alsa altenburgcards amarok amd64 amr amrnb amrr amrwb animgif ao apache2 apng aqua_theme archive async audiofile aura autoipd avahi bcel bcp bdf beagle berkdb bidi bigpatch binfilter bittorrent bl blas blender-game bluetooth bonusscripts boost bzip2 c++ cairo calendar caps carbone_theme cblas-external cdda cdio cdparanoia cdr cgi chm chroot cifsupcall cisco clang cli client clucene cmdctrl cmdsubmenu colord compress connectionstatus consolekit contactnotes contrib corefonts cpio cpufreq crypt cryptsetup cscope css ctype cups curl cutterlimit cutterqueue cuttime cvs cvsgraph cxx cycles dar64 dbase dbm dbus dbx dc1394 dec_av dec_av2 declarative demo designer device-mapper divx djvu dlz dmi dmx dnotify doc domainkeys dot double-precision dpmod dri dts dv dvb dvbplayer dvd dvdarchive dvdchapjump dvdr dvdread dvi ecc editor egl elf eme-free emoticon encode enscript equalizer evdev excel exif exiv2 expat extensions extra extra-algorithms extra-cardsets extraengine extras farstream fat fbcon fdt festival ffmpeg fftw file file-icons flac fluidsynth fmod font-server fontconfig fortran fping fpx ftp fts3 fuse g3dvl gbm gcj gd gdbm gecko gegl geoip gflags gif gimp git gkrellm glade glamor gles gles1 gles2 glib glibc-omitfp glitz glsa glut gmedia gmp gnutls gopher gpac gpg gpgme gphoto2 graphics graphite graphviz gs gstreamer gtk gtk3 gui gutenprint gzip harfbuzz hddtemp hdri highlight history html htmlhandbook http httpd hvm hwdb ical iceweasel iconv icq icu id3 id3tag ide idea ieee1394 image imagemagick imap import-filter infowidget inherit-graph inkjar innodb inotify introspection ipfilter ipsec iptc ipv6 irc irrlicht ithreads jabber jack jad jadetex java java-external java6 jce jemalloc jingle jit jni john jpeg jpeg2k juju jumpplay kde kdecards kdenlive kdepim kdrive kerberos kexi kipi kmid kpathsea ktts kvm latex lcms ldap legacy-systray libcaca libkms libmpeg2 libmysqlclient libnotify libsamplerate libsexy libssh2 libvisual libwww liemikuutio lights lirc lircsettings livebuffer llvm llvm-shared-libs lm_sensors logrotate logviewer loop-playback lto lua lucene lyx lzma lzo mad magic mail mailwrapper mainmenuhooks maps masquerade math matroska maya-shaderlibrary mbox mbrola md5sum mdev mdnsresponder-compat meanwhile melt menu-plugin menubar menuorg messages metric mhash midi mikmod mime mimencode minizip mixer mjpeg mmap mmx mmxext mng mod modplug modules mounts-check mozdevelop mozdom mozilla mp2 mp3 mp4 mp4live mpd mpeg mpeg2 mpg123 mplayer mppe-mppc mpu401 mschap msn mtp multilib multiprocess musepack music mysql mysqli mythtv nagios-dns nagios-ntp nagios-ping nagios-ssh nat ncurses nepomuk net netjack netmeeting network network-cron networkmanager nfs nfsidmap nfsv4 nfsv41 nls nntp normalize nova nptl nsplugin nspr nss ntfs ntfsprogs nuv offensive ogg ogg123 ole opcache opencl openexr opengl openimageio openmp openssh openssl openvpn opus osmesa otr pam pango pascal pcap pcre pcre16 pda pdf pdfimport perl php physfs pim pixmaps pkcs11 plasma player plotutils pmu png policykit portaudio posix postfix postproc postscript povray pptp printsupport pth pulseaudio python qemu qml qt3support qt5 query-browser quicktime r600-llvm-compiler radio rar raw rc5 rdesktop rdp readline realmedia remix replaygain restrict-javascript rle rpc rss rtc rtmp rtsp samba sasl sbig scanner screen script scripttools sdk sdl sdl-image sdl-sound sdlaudio seamonkey search seccomp secure-delete semantic-desktop sensord server shared-dricore shorten shout sid signatures simplexml skins smime smp smtp sndfile sockets socks5 solver songs sortrecords sound soundex sounds sox speech speedo speex spell spice sql sqlite sqlite3 srtp sse sse2 sse3 sse4a ssl ssse3 stars stats stemmer stlport stream submenu subtitles subversion suhosin suid-wrapper svc svg svgz swat sylpheed sysfs syslog system-cairo system-icu system-jpeg system-jsoncpp system-libvncserver system-libvpx system-sqlite systray sysvipc szip t1lib taglib tagwriting tb4 tcpd teletext tetex tex text texteffect textures tftp tga themes theora thesaurus threads threadsafe tidy tiff timercmd timerinfo tk tls toolbar tools transcode trayicon truetype tta ttxtsubs twolame udev udisks ui unicode unlock-notify upcall usb usbredir userfiles utils uudeview uuencode v4l v4l2 vaapi vamp vcd vcdx vdpau vdr video videos view vim-syntax virgl visualization vlm vnc vncviewer voice volctrl vorbis vorbis-psy vpx wav wavpack wayland wayland-compositor web webdav webinterface webkit webm webp widgets wifi winbind winpopup wireshark wma wmf wmp wxwidgets x264 x265 xa xanim xattr xcb xcf xcomposite xephyr xetex xext xface xforms xfs xft xhtml xine xinerama xkb xml xmp xnest xorg xosd xplanet xpm xrandr xrender xscreensaver xsl xslt xspice xv xvfb xvid xvmc xvnc xwayland yahoo yv12 zeroconf zip zlib zrtp zvbi" ABI_X86="32 64" 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 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" APACHE2_MPMS="worker" 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="aes avx avx2 f16c fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" CURL_SSL="nss" 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" INPUT_DEVICES="evdev" KERNEL="linux" L10N="de en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-1" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5 python3_6" QEMU_SOFTMMU_TARGETS="x86_64 alpha arm i386 m68k mips mips64 mips64el mipsel ppc ppc64 ppcemb s390x sparc sparc64" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="dummy v4l virgl radeon r600" 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, ENV_UNSET, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-util/cmake-3.10.3::gentoo was built with the following:
USE="doc ncurses qt5 system-jsoncpp -emacs -test" ABI_X86="(64)" ELIBC="(glibc)" KERNEL="(linux)" USERLAND="(GNU)"


dev-libs/boost-1.65.0::gentoo was built with the following:
USE="doc icu nls python threads tools -context -debug -mpi -static-libs" ABI_MIPS="(-n32) (-n64) (-o32)" ABI_PPC="(-32) (-64)" ABI_S390="(-32) (-64)" ABI_X86="32 (64) (-x32)" ELIBC="(glibc)" KERNEL="(linux)" PYTHON_TARGETS="python2_7 python3_5 python3_6 -python3_4" USERLAND="(GNU)"
CXXFLAGS="-pipe -march=znver1 -O3 -fomit-frame-pointer -fivopts -fweb -frename-registers -ftracer -std=c++14"


games-strategy/freeorion-0.4.7.1-r3::gentoo was built with the following:
USE="" ABI_X86="(64)" ELIBC="(glibc)" KERNEL="(linux)" PYTHON_TARGETS="python2_7" USERLAND="(GNU)"
CFLAGS="-pipe -march=znver1 -O3 -fomit-frame-pointer -fivopts -fweb -frename-registers -ftracer -I/usr/include/SDL2"
CXXFLAGS="-pipe -march=znver1 -O3 -fomit-frame-pointer -fivopts -fweb -frename-registers -ftracer -I/usr/include/SDL2"
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2018-04-04 20:17:19 UTC
Please attach the entire build log to this bug report.
Comment 2 Torsten Kaiser 2018-04-05 05:38:46 UTC
Created attachment 526582 [details]
failed build.log with =dev-util/cmake-3.11.0
Comment 3 Torsten Kaiser 2018-04-05 05:55:34 UTC
Created attachment 526584 [details]
successfull build.log with =dev-util/cmake-3.10.3
Comment 4 Torsten Kaiser 2018-04-07 19:11:35 UTC
Created attachment 526822 [details]
build.log from app-office/ledger-3.1.1

Same error during configuration also hits app-office/ledger (see attached build.log) and media-gfx/openvdb (see Bug 652266 , the emerge-history.txt from that bug also shows an upgrade to cmake-3.11.0)

Probably because of https://gitlab.kitware.com/cmake/cmake/commit/1673923c303c6a4184904c4c5849911feddb87e7 the patch https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-util/cmake/files/cmake-3.8.0_rc2-FindBoost-python.patch was removed from cmake-3.11, but it seems this causes regressions.
Comment 5 Sergey 'L29Ah' Alirzaev 2018-05-15 09:15:54 UTC
Got hit by it on cmake-3.11.1.
Comment 6 Torsten Kaiser 2018-08-18 12:54:51 UTC
Still fails with dev-util/cmake-3.12.1 and dev-util/cmake-3.11.4-r1.

dev-util/cmake-3.10.3 no longer seems to compile, probably because libuv got upgraded:
-- Could NOT find LibUV: Found unsuitable version "", but required is at least "1.0.0" (found /usr/lib/libuv.so)
CMake Error at CMakeLists.txt:531 (message):
  CMAKE_USE_SYSTEM_LIBUV is ON but a libuv is not found!

(I have dev-libs/libuv-1.23.0 installed and will now try to check when this broke...)
Comment 7 Paramonov Valeriy 2018-11-03 11:43:16 UTC
Still fail with cmake-3.12.3
Comment 8 Paramonov Valeriy 2019-02-14 05:22:45 UTC
Still fail with cmake-3.13.3
---
CMake Error at /usr/share/cmake/Modules/FindBoost.cmake:2100 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.65.0

  Boost include path: /usr/include

  Could not find the following Boost libraries:

          boost_python

  No Boost libraries were found.  You may need to set BOOST_LIBRARYDIR to the
  directory containing Boost libraries or BOOST_ROOT to the location of
  Boost.
Call Stack (most recent call first):
  CMakeLists.txt:214 (find_package)
---

I tried 4.7... then 9999. The same error.
I tried search solution at freeorion.org, github.com, gentoo forum.. but sorrow.
Anyone solved?
Comment 9 Paramonov Valeriy 2019-02-14 05:49:59 UTC
I found solution:

--- CMakeLists.txt.old	2019-02-14 12:45:32.799407191 +0700
+++ CMakeLists.txt	2019-02-14 12:45:56.180719961 +0700
@@ -207,7 +207,7 @@
         system
         thread
     REQUIRED)
-if(${Boost_VERSION} GREATER 106699) # boost >= 1.67
+if(${Boost_VERSION} GREATER 106499) # boost >= 1.65
     find_package(Boost COMPONENTS python27 REQUIRED)
     set(Boost_PYTHON_LIBRARY ${Boost_PYTHON27_LIBRARY})
 else()


Our boost version 1.65 work like 1.67 with postfix 27
Comment 10 Oleg 2019-02-14 06:09:58 UTC
I've applied this patch and got error:

CMake Error at /usr/share/cmake/Modules/FindBoost.cmake:1942 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.65.0

  Boost include path: /usr/include

  Could not find the following Boost libraries:

          boost_python27

  No Boost libraries were found.  You may need to set BOOST_LIBRARYDIR to the
  directory containing Boost libraries or BOOST_ROOT to the location of
  Boost.

I have =dev-util/cmake-3.9.6 installed
Comment 11 Paramonov Valeriy 2019-02-17 10:04:30 UTC
> I have =dev-util/cmake-3.9.6 installed

I have cmake-3.13.3. But next error I got - freeoriond linking problem with boost (1.65). May be flto or may be gcc-8.2. I'll try post to friorion's forum about compilation problems..
Comment 12 Paramonov Valeriy 2019-02-17 10:27:32 UTC
> I have =dev-util/cmake-3.9.6 installed

You have old FindBoost.cmake. It does'nt support new postfixes in boost_python.
Comment 13 Paramonov Valeriy 2019-02-17 10:33:19 UTC
Ooouuhhhh yeahh!!! I got!

#!/bin/sh

FOPT="-march=amdfam10 -O2"
FBOOST="-DBOOST_OPTIONAL_CONFIG_USE_OLD_IMPLEMENTATION_OF_OPTIONAL"

if [ ! -d "./freeorion" ] ; then
    git clone https://github.com/freeorion/freeorion
    cd ./freeorion
else
    cd ./freeorion
    git pull
fi

if [ -f "./CMakeCache.txt" ]; then rm -f CMakeCache.txt; fi

make clean
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="$FOPT $FBOOST" .
make -j7 CFLAGS="$FOPT"
Comment 14 Paramonov Valeriy 2019-02-17 10:42:10 UTC
I wrote in the patch:
-if(${Boost_VERSION} GREATER 106699) # boost >= 1.67
+if(${Boost_VERSION} GREATER 106499) # boost >= 1.65

I think that true string is (like reversed numbers):

+if(${Boost_VERSION} GREATER 104699) # boost >= 1.65

---
Now it is builds ok and running!!!

I have current gentoo, gcc 8.2, cmake 3.13.3. Note: our boost-1.65 have postfixes for different python versions. Old cmake have wrong FindBoost.cmake, that not support recent boost builds. In prevoius post I send the script for build. You need change FOPT. It is custom build of current version.

Good luck.
Comment 15 Oleg 2019-02-18 10:12:49 UTC
(In reply to Paramonov Valeriy from comment #12)
> > I have =dev-util/cmake-3.9.6 installed
> 
> You have old FindBoost.cmake. It does'nt support new postfixes in
> boost_python.

It isn't old version. It is a stable version.

Looks like https://bugs.gentoo.org/668020 should be fixed first.
Comment 16 Paramonov Valeriy 2019-02-19 11:56:23 UTC
(In reply to Oleg from comment #15)
> 
> It isn't old version. It is a stable version.
> 

I have never had a stable gentoo. So did not know.

> Looks like https://bugs.gentoo.org/668020 should be fixed first.

Yep. But currents may play. Helped as I could..
Comment 17 is 2019-02-20 17:41:03 UTC
try this patch:
/etc/portage/patches/games-strategy/freeorion-0.4.7.1/freeorion.patch
 
--- a/CMakeLists.txt	2019-02-20 18:26:47.250238503 +0100
+++ b/CMakeLists.txt	2019-02-20 18:31:06.189003164 +0100
@@ -159,7 +159,7 @@
         log
         regex
         serialization
-        python
+        python2.7
         signals
         system
         thread


2.7 is the python version, change to yours, I guess someone more clever than me could determine the python version from the environment.
Comment 18 is 2019-02-21 14:40:46 UTC
I had to add this special environment to make it compile.
add this to /etc/portage/package.env:

/etc/portage/env/freeorion

with this content:

CFLAGS="-pthread -lboost_python-2.7 $CFLAGS"
CPPFLAGS=$CFLAGS
LDFLAGS="-pthread -lboost_python-2.7 $LDFLAGS"
# MAKEOPTS="-j1"
Comment 19 David Seifert gentoo-dev 2019-04-23 11:07:04 UTC
If possible, could you try CMake 3.14.3 and Boost 1.70.0? Boost 1.70 uses vanilla upstream naming, and should fix this issue.
Comment 20 Michael Palimaka (kensington) gentoo-dev 2019-04-25 03:13:28 UTC
CMakeLists.txt contains this:
>find_package(Boost ${MINIMUM_BOOST_VERSION}
>    COMPONENTS
>        ...
>        python

However, this is not valid anymore. Something like the following should be used instead:
> find_package(Boost ... python27 python34 python35 python36 python37)
Comment 21 Andreas Sturmlechner gentoo-dev 2019-05-01 12:23:17 UTC
Created attachment 574906 [details]
freeorion.build.log w/ cmake-3.14.3 and boost-1.70.0

not fixed by boost-1.70.0 it seems.
Comment 22 Michal Plichta 2019-05-05 12:45:10 UTC
Not sure if it helps but 9999 compiling fine:

 * dependency graph for games-strategy/freeorion-9999
 `--  games-strategy/freeorion-9999   
   `--  dev-libs/boost-1.65.0  (>=dev-libs/boost-1.56) amd64  [python threads python_targets_python2_7(-)? -python_single_target_jython2_7(-) -python_single_target_pypy(-) -python_single_target_pypy3(-) -python_single_target_python3_5(-) -python_single_target_python3_6(-) -python_single_target_python3_7(-) python_single_target_python2_7(+)]
   `--  media-libs/freealut-1.1.0-r3  (media-libs/freealut) amd64 
   `--  media-libs/freetype-2.9.1-r3  (media-libs/freetype) amd64 
   `--  media-libs/glew-2.1.0-r1  (media-libs/glew) amd64 
   `--  media-libs/libsdl2-2.0.9  (media-libs/libsdl2) amd64 
   `--  media-libs/libogg-1.3.3  (>=media-libs/libogg-1.1.3) amd64 
   `--  media-libs/libpng-1.6.37  (media-libs/libpng) amd64 
   `--  media-libs/libvorbis-1.3.6  (>=media-libs/libvorbis-1.1.2) amd64 
   `--  media-libs/openal-1.19.1  (media-libs/openal) amd64 
   `--  sci-physics/bullet-2.86  (sci-physics/bullet) amd64 
   `--  sys-libs/zlib-1.2.11-r2  (sys-libs/zlib) amd64 
   `--  virtual/opengl-7.0-r2  (virtual/opengl) amd64 
   `--  dev-util/desktop-file-utils-0.23  (dev-util/desktop-file-utils) amd64 
   `--  x11-misc/shared-mime-info-1.10  (x11-misc/shared-mime-info) amd64


Portage 2.3.62 (python 3.6.5-final-0, default/linux/amd64/17.0/desktop, gcc-8.2.0, glibc-2.28-r6, 5.0.9-gentoo x86_64)
=================================================================
System uname: Linux-5.0.9-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8500_@_3.16GHz-with-gentoo-2.6
KiB Mem:     8087792 total,   5841820 free
KiB Swap:   17835004 total,  17835004 free
Timestamp of repository gentoo: Sun, 05 May 2019 12:00:01 +0000
Head commit of repository gentoo: 876608f8a034f8f710853fcfdc7adbf4ac9cc488
sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.31.1 p5) 2.31.1
ccache version 3.6 [enabled]
app-shells/bash:          4.4_p23-r1::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.6.5::gentoo
dev-util/ccache:          3.6::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.38.3-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r4::gentoo
sys-devel/gcc:            8.2.0-r6::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.14-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.28-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1

phoebe
    location: /usr/local/portage
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
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="-march=native -O2 -pipe -fomit-frame-pointer"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache 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="-march=native -O2 -pipe -fomit-frame-pointer"
GENTOO_MIRRORS="ftp://ftp.vectranet.pl/gentoo/ ftp://mirror.leaseweb.com/gentoo/ ftp://gentoo.wheel.sk/pub/linux/gentoo/ http://mirror.dkm.cz/gentoo/ http://ftp.fau.de/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en-US pl"
MAKEOPTS="-j5"
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="X a52 aac acl acpi activities alsa amd64 berkdb branding bzip2 cairo cdda cdr cli consolekit crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam flac fortran gdbm gif glamor gpm gtk iconv ipv6 jpeg kde kipi kwallet lcms ldap libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon png policykit ppds qml qt5 readline sdl seccomp semantic-desktop spell ssl startup-notification svg tcpd tiff tk truetype udev udisks unicode upower usb vorbis widgets wxwidgets x264 xattr xcb xinerama xml xv xvid zlib" ABI_X86="64" 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 sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 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" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US pl" 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="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="nouveau" 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
Comment 23 Larry the Git Cow gentoo-dev 2019-05-08 17:04:42 UTC
The bug has been closed via the following commit(s):

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

commit b83f541321d7953d9dd934597560ef62eb44c7de
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2019-05-01 12:42:04 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2019-05-08 16:59:31 +0000

    games-strategy/freeorion: 0.4.8_p20190501 snapshot bump, EAPI-7 bump
    
    The amount of patching required to fix build with boost-1.70 but
    stay compatible with <boost-1.66 was too much to do 0.4.8.
    
    Closes: https://bugs.gentoo.org/652446
    Closes: https://bugs.gentoo.org/664900
    Package-Manager: Portage-2.3.66, Repoman-2.3.12
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 games-strategy/freeorion/Manifest                  |  1 +
 .../freeorion/freeorion-0.4.8_p20190501.ebuild     | 79 ++++++++++++++++++++++
 2 files changed, 80 insertions(+)
Comment 24 Michal Plichta 2019-05-21 20:48:36 UTC
Still failing the same way after upgrading cmake from 3.9.6 to 3.14.3. I got boost-1.65 installed. I've try freeorion-0.4.8_p20190501 and freeorion-9999, both cmake error.
Comment 25 Oleg 2019-06-05 18:05:04 UTC
Looks like correct name for python component is python27 which supposed to be introduced in boost >= 1.67.
Comment 26 Oleg 2019-06-10 04:19:06 UTC
(In reply to Michal Plichta from comment #24)
> Still failing the same way after upgrading cmake from 3.9.6 to 3.14.3. I got
> boost-1.65 installed. I've try freeorion-0.4.8_p20190501 and freeorion-9999,
> both cmake error.

I've made patch to fix this issue https://github.com/freeorion/freeorion/pull/2469