Summary: | 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 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Torsten Kaiser <Storklerk> |
Component: | Current packages | Assignee: | Adam Feldman <np-hardass> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aballier, alex, da_risk, kensington, mplichta, O01eg |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=660980 | ||
Whiteboard: | fixed in 0.4.8 | ||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 664900 | ||
Bug Blocks: | |||
Attachments: |
failed build.log with =dev-util/cmake-3.11.0
successfull build.log with =dev-util/cmake-3.10.3 build.log from app-office/ledger-3.1.1 freeorion.build.log w/ cmake-3.14.3 and boost-1.70.0 |
Description
Torsten Kaiser
2018-04-04 19:28:42 UTC
Please attach the entire build log to this bug report. Created attachment 526582 [details]
failed build.log with =dev-util/cmake-3.11.0
Created attachment 526584 [details]
successfull build.log with =dev-util/cmake-3.10.3
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. Got hit by it on cmake-3.11.1. 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...) Still fail with cmake-3.12.3 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? 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 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
> 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..
> I have =dev-util/cmake-3.9.6 installed
You have old FindBoost.cmake. It does'nt support new postfixes in boost_python.
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" 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. (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. (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.. 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. 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" 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. 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) 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.
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 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(+) 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. Looks like correct name for python component is python27 which supposed to be introduced in boost >= 1.67. (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 |