Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 721806 - app-office/libreoffice-6.4.3.2 with dev-libs/boost-1.73.0 - .../boost/bimap/detail/bimap_core.hpp:410:7: error: no class template named ‘rebind’ in ‘boost::bimaps::detail::manage_additional_parameters<mpl_::na, mpl_::na, mpl_::na>::case_NNN::allocator’
Summary: app-office/libreoffice-6.4.3.2 with dev-libs/boost-1.73.0 - .../boost/bimap/d...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Office Team
URL:
Whiteboard: fixed in git master
Keywords:
: 721874 (view as bug list)
Depends on:
Blocks: boost-1.74
  Show dependency tree
 
Reported: 2020-05-09 08:26 UTC by Dennis Schridde
Modified: 2020-05-15 17:47 UTC (History)
14 users (show)

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


Attachments
build.log.xz (build.log.xz,282.70 KB, application/x-xz)
2020-05-09 08:27 UTC, Dennis Schridde
Details
Patch from opensuse replacing boost bimap in pdfimport (replace-boost-bimap-in-sdext-pdfimport.patch,3.93 KB, patch)
2020-05-09 12:14 UTC, Bernd Feige
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2020-05-09 08:26:31 UTC
S=/var/tmp/portage/app-office/libreoffice-6.4.3.2/work/libreoffice-6.4.3.2 && I=$S/instdir && W=$S/workdir &&  mkdir -p $W/CxxObject/sdext/source/pdfimport/ $W/Dep/CxxObject/sdext/source/pdfimport/ && cd /var/tmp/portage/app-office/libreoffice-6.4.3.2/work/libreoffice-6.4.3.2 &&    x86_64-pc-linux-gnu-g++ -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECAT
ED -DCPPU_ENV=gcc3 -DLINUX -DNDEBUG -DOSL_DEBUG_LEVEL=0 -DUNIX -DUNX -DX86_64 -D_PTHREADS -D_REENTRANT  -DSYSTEM_ZLIB  -DBOOST_SPIRIT_USE_OLD_NAMESPACE -DBOOST_ALL_NO_LIB   -fvisibility=hidden    -Wall -Wno-missing-braces -Wnon-virtual-dtor -Wendif-labels -Wextra -Wundef -Wunreachable-code -Wunused-macros -finput-charset=UTF-8 -fmessage-length=0 -fno-common -pip
e -fstack-protector-strong  -Wduplicated-cond -Wlogical-op -Wshift-overflow=2 -Wunused-const-variable=1 -Wno-cast-function-type -fvisibility-inlines-hidden -fPIC -Wshadow -Woverloaded-virtual -std=c++2a -pthread  -pipe -O2 -march=znver1  -DEXCEPTIONS_ON -fexceptions -fno-enforce-eh-specs    -DLIBO_INTERNAL_ONLY  -c $S/sdext/source/pdfimport/pdfiadaptor.cxx -o $W
/CxxObject/sdext/source/pdfimport/pdfiadaptor.o  -I$S/sdext/source/pdfimport/inc -I$S/include  -I/usr/lib64/openjdk-11/include -I/usr/lib64/openjdk-11/include/linux -I$S/config_host  -I$W/UnoApiHeadersTarget/udkapi/normal -I$W/UnoApiHeadersTarget/offapi/normal -I$W/CustomTarget/sdext/pdfimport  -I/usr/include   -I/usr/include/uuid -I/usr/include/freetype2 -I/usr
/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include    
[CXX] sdext/source/pdfimport/pdfparse/pdfparse.cxx
In file included from /usr/include/boost/bimap/bimap.hpp:61,
                 from /var/tmp/portage/app-office/libreoffice-6.4.3.2/work/libreoffice-6.4.3.2/sdext/source/pdfimport/inc/pdfiprocessor.hxx:40,
                 from /var/tmp/portage/app-office/libreoffice-6.4.3.2/work/libreoffice-6.4.3.2/sdext/source/pdfimport/pdfiadaptor.cxx:26:
/usr/include/boost/bimap/detail/bimap_core.hpp: In instantiation of ‘class boost::bimaps::detail::bimap_core<boost::bimaps::unordered_set_of<pdfi::GraphicsContext, pdfi::GraphicsContextHash>, boost::bimaps::unordered_set_of<int>, mpl_::na, mpl_::na, mpl_::na>’:
/usr/include/boost/bimap/bimap.hpp:133:7:   required from ‘class boost::bimaps::bimap<boost::bimaps::unordered_set_of<pdfi::GraphicsContext, pdfi::GraphicsContextHash>, boost::bimaps::unordered_set_of<int> >’
/var/tmp/portage/app-office/libreoffice-6.4.3.2/work/libreoffice-6.4.3.2/sdext/source/pdfimport/inc/pdfiprocessor.hxx:181:44:   required from here
/usr/include/boost/bimap/detail/bimap_core.hpp:410:7: error: no class template named ‘rebind’ in ‘boost::bimaps::detail::manage_additional_parameters<mpl_::na, mpl_::na, mpl_::na>::case_NNN::allocator’ {aka ‘class std::allocator<void>’}
  410 |     > core_type;
      |       ^~~~~~~~~
/usr/include/boost/bimap/detail/bimap_core.hpp:417:49: error: no class template named ‘rebind’ in ‘boost::bimaps::detail::manage_additional_parameters<mpl_::na, mpl_::na, mpl_::na>::case_NNN::allocator’ {aka ‘class std::allocator<void>’}
  417 |         index<core_type, logic_left_tag>::type  left_index;
      |                                                 ^~~~~~~~~~
/usr/include/boost/bimap/detail/bimap_core.hpp:420:48: error: no class template named ‘rebind’ in ‘boost::bimaps::detail::manage_additional_parameters<mpl_::na, mpl_::na, mpl_::na>::case_NNN::allocator’ {aka ‘class std::allocator<void>’}
  420 |         index<core_type,logic_right_tag>::type right_index;
      |                                                ^~~~~~~~~~~
/usr/include/boost/bimap/detail/bimap_core.hpp:434:13: error: no class template named ‘rebind’ in ‘boost::bimaps::detail::manage_additional_parameters<mpl_::na, mpl_::na, mpl_::na>::case_NNN::allocator’ {aka ‘class std::allocator<void>’}
  434 |     >::type relation_set_core_index;
      |             ^~~~~~~~~~~~~~~~~~~~~~~
[...]

Reproducible: Always
Comment 1 Dennis Schridde 2020-05-09 08:27:17 UTC
Created attachment 636938 [details]
build.log.xz

Portage 2.3.99 (python 3.6.9-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-10.1.0, glibc-2.31-r2, 5.6.11 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.6.11-x86_64-AMD_Ryzen_5_2400G_with_Radeon_Vega_Graphics-with-gentoo-2.7
KiB Mem:    14128204 total,   3343736 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sat, 09 May 2020 06:15:02 +0000
Head commit of repository gentoo: 2f7008749d94310074719b0712f36d1aa5f575c0
Head commit of repository flatpak-overlay: 2bcc4b030ff8288683533a84f15777680c8c883e

Head commit of repository local: 81f7cbe5fd1e848eebc861f574951e536e273ddf

sh bash 5.0_p17
ld GNU gold (Gentoo 2.34 p1 2.34.0) 1.16
ccache version 3.7.9 [disabled]
app-shells/bash:          5.0_p17::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.2::gentoo
dev-lang/python:          2.7.18::gentoo, 3.6.10-r2::gentoo, 3.7.7-r2::gentoo, 3.8.2-r2::gentoo, 3.9.0_alpha6::gentoo
dev-util/ccache:          3.7.9::gentoo
dev-util/cmake:           3.17.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.2::gentoo
sys-devel/binutils:       2.34::gentoo
sys-devel/gcc:            9.3.0::gentoo, 10.1.0::gentoo
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.6::gentoo (virtual/os-headers)
sys-libs/glibc:           2.31-r2::gentoo
Repositories:

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

flatpak-overlay
    location: /var/db/repos/flatpak-overlay
    sync-type: git
    sync-uri: https://github.com/fosero/flatpak-overlay.git
    masters: gentoo

local
    location: /var/cache/portage/local
    sync-type: git
    sync-uri: https://github.com/devurandom/gentoo-overlay.git
    masters: gentoo
    priority: 1000

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -O2 -march=znver1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/grs/systems.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.6/conf"
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="-pipe -O2 -march=znver1"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner"
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="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildsyspkg cgroup compressdebug config-protect-if-modified distlocks ebuild-locks fakeroot fixlafiles ipc-sandbox merge-sync mount-sandbox multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
MAKEOPTS="-j6 -l4"
PKGDIR="/var/cache/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="/tmp"
USE="7z 7zip X a52 aac aacplus aacs acl acpi activities aio alsa amd64 appindicator appstream archive audit avahi ayatana bdplus berkdb blake2 bluetooth bluray bpf branding brotli bs2b btrfs bzip2 cairo caps cdda cddb cdio cdr celt chromaprint cjk clang cli clipboard color-management colord conntrack crypt cups d3d9 dav1d dbus declarative device-mapper dirac djvu dri drm dts dvb dvd dvdr ed25519 editorconfig egl elf emboss encode epub evdev exif faudio fax fbcon fdk ffmpeg fftw filecaps firefox firewalld fish-completion fits flac fontconfig fontforge fortran fribidi gamepad gbm gdal gdbm geoclue geolocation gif git gles2 gmp gnome-online-accounts gnupg google googledrive gpg gps graphicsmagick gstreamer gtk gtk3 gzip harfbuzz hdf5 heif http2 ibus iconv icu idn imlib inotify introspection ipv6 jemalloc jpeg jpeg2k json kde kipi kms kwallet ladspa latex lcms libatomic libglvnd libidn2 libinput libnotify libproxy libsecret libsoxr libtirpc libvirt lm-sensors lrz lv2 lvm lz4 lzma lzo mad mariadb markdown mbim mercurial mjpeg mng mobi modemmanager modplug mp3 mp4 mpeg mplayer mpris mtp multilib mysql ncurses netlink networkmanager nftables nls nptl numa office ofx ogg openal opencl opencv openexr opengl openh264 openmax openmp opus pam pango pcap pch pcre pcre2 pdf pgo phonon pixman pkcs11 pkcs7 plasma pm-utils png policykit postscript ppds prison pulseaudio pwquality python qml qrcode qt5 raw rdp readline redfish samba sasl scanner schroedinger screencast sctp sdl sdl2 seccomp semantic-desktop share smartcard snappy sparse speech speex spell spice ssl startup-notification steamruntime stemmer svg systemd systemtap tbb tcpd teamd telemetry telepathy tga theora threads thunderbolt tiff timezone tmux truetype tslib udev udisks uinput unicode unwind upnp upnp-av upower usb utempter v4l v4l2 vaapi vdpau vkd3d vorbis vpx vulkan wasm wavpack wayland webchannel webengine webp widgets wireguard wmf woff2 wps x264 x265 xattr xcb xcomposite xinerama xkb xml xmp xrandr xscreensaver xv xvid xwayland xxhash xz yaml zeroconf zeromq zimg zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel" 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" ENLIGHTENMENT_MODULES="*" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="joystick libinput" KERNEL="linux" L10N="de de-DE en en-GB ar fa tr ja ko zh zh-CN zh-TW" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-javascript wiki-publisher" LIRC_DEVICES="devinput" LLVM_TARGETS="AMDGPU BPF RISCV WebAssembly" LUA_TARGET="lua5-2" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7 pypy pypy3" QEMU_SOFTMMU_TARGETS="riscv32 riscv64 x86_64" QEMU_USER_TARGETS="riscv32 riscv64" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu virgl" 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, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

app-office/libreoffice-6.4.3.2::gentoo was built with the following:
USE="bluetooth branding cups dbus googledrive gstreamer gtk java kde mariadb pdfimport -accessibility -coinmp -debug -eds -firebird -ldap -odk -postgres -test" ABI_X86="(64)" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-javascript wiki-publisher -scripting-beanshell" PYTHON_SINGLE_TARGET="python3_7 -python3_6 -python3_8"
FEATURES="fakeroot usersync assume-digests ebuild-locks binpkg-docompress config-protect-if-modified pid-sandbox unknown-features-warn parallel-fetch buildsyspkg compressdebug mount-sandbox merge-sync sandbox qa-unresolved-soname-deps unmerge-logs fixlafiles parallel-install strict sfperms binpkg-logs ipc-sandbox binpkg-dostrip cgroup distlocks multilib-strict network-sandbox protect-owned xattr userfetch usersandbox userpriv news preserve-libs unmerge-orphans"


dev-libs/boost-1.73.0::gentoo was built with the following:
USE="bzip2 icu lzma nls python threads zlib zstd -context -debug -doc -mpi -numpy -static-libs -tools" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7 python3_6 python3_7 -python3_8"
CXXFLAGS="-pipe -O2 -march=znver1 -std=c++14"
Comment 2 David Kredba 2020-05-09 08:52:03 UTC
The same with znver2 and LTO enabled both for boost and libreoffice, gcc-10.1.0.
Boost built with -fno-common and LTO disabled not helps.
I will try complete boost ecosystem rebuild (gcc-9 -> gcc-10, rebuild of @system is done already).
Comment 3 Vasco Gervasi 2020-05-09 09:43:23 UTC
Same error for me.
gcc-10.1.0 and CFLAGS="-march=native -O3 -pipe"
Comment 4 Bernd Feige 2020-05-09 12:14:39 UTC
Created attachment 637022 [details, diff]
Patch from opensuse replacing boost bimap in pdfimport

Opensuse carries the attached patch. With this, libreoffice compiles with dev-libs/boost-1.73.0.
This is Opensuse's commit message: https://www.mail-archive.com/opensuse-commit@opensuse.org/msg188677.html
https://bugzilla.opensuse.org/ is currently down; the commit says it was bug boo#1167463
Comment 5 Andreas Sturmlechner gentoo-dev 2020-05-10 08:13:28 UTC
*** Bug 721874 has been marked as a duplicate of this bug. ***
Comment 6 Andreas Sturmlechner gentoo-dev 2020-05-14 19:13:02 UTC
That patch is also in upstream git master already: https://cgit.freedesktop.org/libreoffice/core/commit/?id=55c724b93dfd4c9a1afb10d60fbc2d7a9a66cf61
Comment 7 Larry the Git Cow gentoo-dev 2020-05-14 20:10:19 UTC
The bug has been closed via the following commit(s):

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

commit 5058ef8800018f93e7297a7ed722960502df486d
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2020-05-14 19:41:17 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2020-05-14 20:10:02 +0000

    app-office/libreoffice: Fix build with boost-1.73
    
    Reported-by: Dennis Schridde <devurandom@gmx.net>
    Closes: https://bugs.gentoo.org/721806
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../files/libreoffice-6.4.3.2-boost-1.73.patch     | 118 +++++++++++++++++++++
 app-office/libreoffice/libreoffice-6.4.3.2.ebuild  |   3 +
 2 files changed, 121 insertions(+)
Comment 8 Jiří Moravec 2020-05-15 17:47:47 UTC
(In reply to Bernd Feige from comment #4)
> Created attachment 637022 [details, diff] [details, diff]
> Patch from opensuse replacing boost bimap in pdfimport
> 
> Opensuse carries the attached patch. With this, libreoffice compiles with
> dev-libs/boost-1.73.0.
> This is Opensuse's commit message:
> https://www.mail-archive.com/opensuse-commit@opensuse.org/msg188677.html
> https://bugzilla.opensuse.org/ is currently down; the commit says it was bug
> boo#1167463

Even with boost-1.72. Thanks for patch.