percona-xtrabackup fails to compile with dev-libs/boost-1.65.0: [ 74%] Building CXX object sql/CMakeFiles/sql.dir/item_geofunc_relchecks.cc.o /var/tmp/portage/dev-db/percona-xtrabackup-2.4.8/work/percona-xtrabackup-2.4.8/sql/item_geofunc_internal.cc: In function ‘void handle_gis_exception(const char*)’: /var/tmp/portage/dev-db/percona-xtrabackup-2.4.8/work/percona-xtrabackup-2.4.8/sql/item_geofunc_internal.cc:37:81: error: expected unqualified-id before ‘&’ token catch (const boost::geometry::detail::self_get_turn_points::self_ip_exception &) ^ /var/tmp/portage/dev-db/percona-xtrabackup-2.4.8/work/percona-xtrabackup-2.4.8/sql/item_geofunc_internal.cc:37:81: error: expected ‘)’ before ‘&’ token /var/tmp/portage/dev-db/percona-xtrabackup-2.4.8/work/percona-xtrabackup-2.4.8/sql/item_geofunc_internal.cc:37:81: error: expected ‘{’ before ‘&’ token /var/tmp/portage/dev-db/percona-xtrabackup-2.4.8/work/percona-xtrabackup-2.4.8/sql/item_geofunc_internal.cc:37:82: error: expected primary-expression before ‘)’ token catch (const boost::geometry::detail::self_get_turn_points::self_ip_exception &) ^ /var/tmp/portage/dev-db/percona-xtrabackup-2.4.8/work/percona-xtrabackup-2.4.8/sql/item_geofunc_internal.cc:42:3: error: expected primary-expression before ‘catch’ catch (const boost::geometry::empty_input_exception &) ^~~~~ /var/tmp/portage/dev-db/percona-xtrabackup-2.4.8/work/percona-xtrabackup-2.4.8/sql/item_geofunc_internal.cc:46:3: error: expected primary-expression before ‘catch’ catch (const boost::geometry::inconsistent_turns_exception &) ^~~~~ /var/tmp/portage/dev-db/percona-xtrabackup-2.4.8/work/percona-xtrabackup-2.4.8/sql/item_geofunc_internal.cc:50:3: error: expected primary-expression before ‘catch’ catch (const boost::geometry::exception &) ^~~~~ /var/tmp/portage/dev-db/percona-xtrabackup-2.4.8/work/percona-xtrabackup-2.4.8/sql/item_geofunc_internal.cc:54:3: error: expected primary-expression before ‘catch’ catch (const std::bad_alloc &e) ^~~~~ /var/tmp/portage/dev-db/percona-xtrabackup-2.4.8/work/percona-xtrabackup-2.4.8/sql/item_geofunc_internal.cc:58:3: error: expected primary-expression before ‘catch’ catch (const std::domain_error &e) ^~~~~ /var/tmp/portage/dev-db/percona-xtrabackup-2.4.8/work/percona-xtrabackup-2.4.8/sql/item_geofunc_internal.cc:62:3: error: expected primary-expression before ‘catch’ catch (const std::length_error &e) ^~~~~ /var/tmp/portage/dev-db/percona-xtrabackup-2.4.8/work/percona-xtrabackup-2.4.8/sql/item_geofunc_internal.cc:66:3: error: expected primary-expression before ‘catch’ catch (const std::invalid_argument &e) ^~~~~ /var/tmp/portage/dev-db/percona-xtrabackup-2.4.8/work/percona-xtrabackup-2.4.8/sql/item_geofunc_internal.cc:70:3: error: expected primary-expression before ‘catch’ catch (const std::out_of_range &e) ^~~~~ /var/tmp/portage/dev-db/percona-xtrabackup-2.4.8/work/percona-xtrabackup-2.4.8/sql/item_geofunc_internal.cc:74:3: error: expected primary-expression before ‘catch’ catch (const std::overflow_error &e) ^~~~~ /var/tmp/portage/dev-db/percona-xtrabackup-2.4.8/work/percona-xtrabackup-2.4.8/sql/item_geofunc_internal.cc:78:3: error: expected primary-expression before ‘catch’ catch (const std::range_error &e) ^~~~~ /var/tmp/portage/dev-db/percona-xtrabackup-2.4.8/work/percona-xtrabackup-2.4.8/sql/item_geofunc_internal.cc:82:3: error: expected primary-expression before ‘catch’ catch (const std::underflow_error &e) ^~~~~ /var/tmp/portage/dev-db/percona-xtrabackup-2.4.8/work/percona-xtrabackup-2.4.8/sql/item_geofunc_internal.cc:86:3: error: expected primary-expression before ‘catch’ catch (const std::logic_error &e) ^~~~~ /var/tmp/portage/dev-db/percona-xtrabackup-2.4.8/work/percona-xtrabackup-2.4.8/sql/item_geofunc_internal.cc:90:3: error: expected primary-expression before ‘catch’ catch (const std::runtime_error &e) ^~~~~ /var/tmp/portage/dev-db/percona-xtrabackup-2.4.8/work/percona-xtrabackup-2.4.8/sql/item_geofunc_internal.cc:94:3: error: expected primary-expression before ‘catch’ catch (const std::exception &e) ^~~~~ /var/tmp/portage/dev-db/percona-xtrabackup-2.4.8/work/percona-xtrabackup-2.4.8/sql/item_geofunc_internal.cc:98:3: error: expected primary-expression before ‘catch’ catch (...) ^~~~~
emerge --info Portage 2.3.8 (python 3.6.1-final-0, default/linux/amd64/13.0, gcc-7.2.0, glibc-2.26-r1, 4.13.2 x86_64) ================================================================= System uname: Linux-4.13.2-x86_64-AMD_PRO_A10-8700B_R6,_10_Compute_Cores_4C+6G-with-gentoo-2.4.1 KiB Mem: 15895964 total, 6227156 free KiB Swap: 4194304 total, 4194304 free Timestamp of repository gentoo: Wed, 13 Sep 2017 21:00:01 +0000 Head commit of repository gentoo: 0ac19a482526fa914eea2fd30f0b416be75d4c5b sh bash 4.4_p12 ld GNU ld (Gentoo 2.28.1 p1.0) 2.28.1 distcc 3.2rc1 x86_64-pc-linux-gnu [disabled] ccache version 3.3.4 [disabled] app-shells/bash: 4.4_p12::gentoo dev-java/java-config: 2.2.0-r3::local dev-lang/perl: 5.24.2::gentoo dev-lang/python: 2.7.13::gentoo, 3.4.6::gentoo, 3.5.3::gentoo, 3.6.1-r1::gentoo dev-util/ccache: 3.3.4-r1::gentoo dev-util/cmake: 3.9.2::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.4.1-r2::gentoo sys-apps/openrc: 0.30::gentoo sys-apps/sandbox: 2.10-r4::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.13.4-r1::gentoo, 1.15.1-r1::gentoo sys-devel/binutils: 2.28.1::gentoo sys-devel/gcc: 4.9.4::gentoo, 5.4.0-r3::gentoo, 6.3.0::gentoo, 7.2.0::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r4::gentoo sys-devel/make: 4.2.1-r1::gentoo sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers) sys-libs/glibc: 2.26-r1::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 gamerlay location: /usr/local/portage/gamerlay masters: gentoo priority: 0 qt location: /usr/local/portage/qt masters: gentoo priority: 1 kde location: /usr/local/portage/kde masters: gentoo priority: 2 local location: /usr/local/portage/local masters: gentoo priority: 3 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=bdver4 -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -msse4a -mcx16 -msahf -mmovbe -maes -mno-sha -mpclmul -mpopcnt -mabm -mlwp -mfma -mfma4 -mxop -mbmi -mbmi2 -mtbm -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mno-rtm -mno-hle -mrdrnd -mf16c -mfsgsbase -mno-rdseed -mprfchw -mno-adx -mfxsr -mxsave -mxsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 -mno-clflushopt -mno-xsavec -mno-xsaves -mno-avx512dq -mno-avx512bw -mno-avx512vl -mno-avx512ifma -mno-avx512vbmi -mno-clwb -mmwaitx -mno-clzero -mno-pku --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=1024 -mtune=bdver4 -ftree-vectorize -fvect-cost-model -pipe" 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-php7.1/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.1/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="-O2 -march=bdver4 -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -msse4a -mcx16 -msahf -mmovbe -maes -mno-sha -mpclmul -mpopcnt -mabm -mlwp -mfma -mfma4 -mxop -mbmi -mbmi2 -mtbm -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mno-rtm -mno-hle -mrdrnd -mf16c -mfsgsbase -mno-rdseed -mprfchw -mno-adx -mfxsr -mxsave -mxsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 -mno-clflushopt -mno-xsavec -mno-xsaves -mno-avx512dq -mno-avx512bw -mno-avx512vl -mno-avx512ifma -mno-avx512vbmi -mno-clwb -mmwaitx -mno-clzero -mno-pku --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=1024 -mtune=bdver4 -ftree-vectorize -fvect-cost-model -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps=y --quiet-build=n" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer multilib-strict news parallel-fetch preserve-libs 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_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j4" 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 aacplus acl alsa amd64 amr amrenc anacron berkdb bluetooth bzip2 cairo caps celt chm clang cleartype_hinting cli corefonts cracklib crypt cryptsetup cups cxx d3d9 dbus device-mapper djvu dri drm dvd ebook editorconfig efi egl eps epub evdev exif faac ffmpeg fftw flac fontconfig fortran gbm gdbm gif git glamor gmp gold gpg gphoto2 gpm graphviz harfbuzz iconv icu id3tag ipv6 jemalloc jpeg kipi lcms lensfun libatomic libcxx libcxxabi libffi libinput libkms libressl libsamplerate libunwind lm_sensors lz4 lzma lzo mad matroska mjpeg mmap mobi modern-top modules mp3 mpeg mtp multilib mysql ncurses networkmanager nfs nls nptl ogg openal opencl openexr opengl openmp opus pam parted pcre pcre16 pdf png policykit postscript pulseaudio python qt5 raw readline s3tc schroedinger sdl sdl2 seccomp session sift sndfile sox speex spice sqlite ssl subversion svg system-harfbuzz system-icu system-jpeg system-jsoncpp system-libvpx system-sqlite systemd taglib tcpd theora threads thumbnail tiff truetype udev unicode urandom usb usbredir user-session vaapi vde vdpau vhosts virgl virt-network virtfs vorbis vpx vte vulkan wavpack wayland webp wmf x264 x265 xattr xcb xcomposite xkb xml xmp xpm 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon ricoh ricoh_g3" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="avx avx2 f16c fma3 fma4 mmx mmxext sse sse2 sse3 ssse3 sse4_1 sse4_2 xop" CURL_SSL="libressl" 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-32 efi-64 pc" INPUT_DEVICES="evdev libinput synaptics" KERNEL="linux" L10N="de en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_5 python3_6" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby23 ruby24" USERLAND="GNU" VIDEO_CARDS="amdgpu" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 494484 [details, diff] percona-xtrabackup-2.4.8-boost-1.65.0.patch With this patch it compiles, but I'm not sure if it is correct
Next time, please don't forget to always attach the full build log.
Created attachment 495620 [details] build.log.bz2
https://bugs.launchpad.net/percona-xtrabackup/+bug/1718461
Workaround in https://github.com/gentoo/gentoo/pull/5740
commit a6761dd5bf5c0b13c2761f1ac174a5dc55f3fd2e (HEAD -> master, origin/master, origin/HEAD) Author: Tomas Mozes <hydrapolic@gmail.com> AuthorDate: Wed Sep 20 17:22:44 2017 +0200 Commit: Patrice Clement <monsieurp@gentoo.org> CommitDate: Fri Sep 22 11:58:02 2017 +0200 dev-db/percona-xtrabackup: require <dev-libs/boost-1.65.0. Gentoo-Bug: https://bugs.gentoo.org/630946 Package-Manager: Portage-2.3.8, Repoman-2.3.2 Closes: https://github.com/gentoo/gentoo/pull/5740 dev-db/percona-xtrabackup/percona-xtrabackup-2.4.7.ebuild | 2 +- dev-db/percona-xtrabackup/percona-xtrabackup-2.4.8.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)