Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 727188 - =app-office/libreoffice-6.4.4.2 - xmlfilterjar.cxx:(.text+0x2436): undefined reference to `non-virtual thunk to cppu::ImplInheritanceHelper<utl::OInputStreamWrapper, com::sun::star::io::XSeekable>::acquire()'
Summary: =app-office/libreoffice-6.4.4.2 - xmlfilterjar.cxx:(.text+0x2436): undefined ...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Office Team
URL: https://bugs.documentfoundation.org/s...
Whiteboard:
Keywords:
: 752981 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-06-05 06:36 UTC by Rob Carruthers
Modified: 2023-12-02 22:40 UTC (History)
9 users (show)

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


Attachments
emerge --info (einfo.txt,5.66 KB, text/plain)
2020-06-05 06:36 UTC, Rob Carruthers
Details
build.log (build.log.gz,511.24 KB, application/gzip)
2020-06-05 06:37 UTC, Rob Carruthers
Details
build.log (gcc-10.2.0-r2 -O2) (libreoffice-6.4.7.2:20201104-121848.log.xz,461.19 KB, application/x-xz)
2020-11-04 13:50 UTC, ernsteiswuerfel
Details
gcc-10 patch for app-office/libreoffice-7.1.3.2 (gcc-10.patch,6.22 KB, patch)
2021-08-16 15:33 UTC, PF4Public
Details | Diff
libreoffice 7.2.5.2 gcc10 patch (libreoffice-7.2.5.2-gcc10.patch,7.47 KB, patch)
2022-02-16 21:56 UTC, cJ
Details | Diff
gzipped build.log for libreoffice-7.3.4.2-r1 (build.log.gz,593.21 KB, application/gzip)
2022-08-08 20:58 UTC, Michail Shurutov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rob Carruthers 2020-06-05 06:36:31 UTC
Created attachment 643484 [details]
emerge --info

emerge libreoffice fails on my ~amd64 system with the following error:

/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/app-office/libreoffice-6.4.4.2/work/libreoffice-6.4.4.2/workdir/CxxObject/filter/source/xsltdialog/xmlfilterjar.o: in function `XMLFilterJarHelper::addFile(com::sun::star::uno::Reference<com::sun::star::uno::XInterface> const&, com::sun::star::uno::Reference<com::sun::star::lang::XSingleServiceFactory> const&, rtl::OUString const&)':
xmlfilterjar.cxx:(.text+0x2436): undefined reference to `non-virtual thunk to cppu::ImplInheritanceHelper<utl::OInputStreamWrapper, com::sun::star::io::XSeekable>::acquire()'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/app-office/libreoffice-6.4.4.2/work/libreoffice-6.4.4.2/workdir/CxxObject/filter/source/xsltdialog/xmlfilterjar.o: in function `XMLFilterJarHelper::savePackage(rtl::OUString const&, std::vector<filter_info_impl*, std::allocator<filter_info_impl*> > const&)':
xmlfilterjar.cxx:(.text+0x2fea): undefined reference to `non-virtual thunk to cppu::ImplInheritanceHelper<utl::OInputStreamWrapper, com::sun::star::io::XSeekable>::acquire()'

The error and undefined reference are not referenced anywhere else on a Google search.
Comment 1 Rob Carruthers 2020-06-05 06:37:40 UTC
Created attachment 643486 [details]
build.log
Comment 2 he.ousia 2020-06-19 12:18:13 UTC
Hi,
absolutely the same error here:

/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/app-office/libreoffice-6.4.4.2/work/libreoffice-6.4.4.2/workdir/CxxObject/filter/source/xsltdialog/xmlfilterjar.o: in function `XMLFilterJarHelper::addFile(com::sun::star::uno::Reference<com::sun::star::uno::XInterface> const&, com::sun::star::uno::Reference<com::sun::star::lang::XSingleServiceFactory> const&, rtl::OUString const&)':
xmlfilterjar.cxx:(.text+0x2436): undefined reference to `non-virtual thunk to cppu::ImplInheritanceHelper<utl::OInputStreamWrapper, com::sun::star::io::XSeekable>::acquire()'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/app-office/libreoffice-6.4.4.2/work/libreoffice-6.4.4.2/workdir/CxxObject/filter/source/xsltdialog/xmlfilterjar.o: in function `XMLFilterJarHelper::savePackage(rtl::OUString const&, std::vector<filter_info_impl*, std::allocator<filter_info_impl*> > const&)':
xmlfilterjar.cxx:(.text+0x2fea): undefined reference to `non-virtual thunk to cppu::ImplInheritanceHelper<utl::OInputStreamWrapper, com::sun::star::io::XSeekable>::acquire()'
Comment 3 Laslo Hunhold 2020-06-26 10:38:34 UTC
I can confirm this, with the same log. This error is especially frustrating, as libreoffice takes hours to compile and this only occurs in the last linking step. Lots of wasted time and energy.
Comment 4 he.ousia 2020-07-07 05:50:01 UTC
The same error in 6.4.5.2.
Comment 5 Laslo Hunhold 2020-07-29 09:14:30 UTC
Any news on this?
Comment 6 Laslo Hunhold 2020-08-20 13:15:34 UTC
I can confirm the same error in app-office/libreoffice-6.4.6.2, but can't really give more input or do more research as this is deeply rooted in a horrible C++-macro-hell.
Comment 7 he.ousia 2020-09-14 05:09:43 UTC
The same error in 6.4.6.2-r1.
Comment 8 Toei Rei 2020-09-17 07:48:34 UTC
Same here with a custom -7 ebuild.
Comment 9 he.ousia 2020-10-23 09:00:53 UTC
The same error with 6.4.7.2.
Why churn out new versions if they are unusable anyway?
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-10-23 12:03:21 UTC
(In reply to he.ousia from comment #9)
> The same error with 6.4.7.2.
> Why churn out new versions if they are unusable anyway?

I think a bit more respect (or just goodwill) should be given here. Do you really think that this version works for *nobody*? I'm not denying you are experiencing a bug, but it has obviously been tested.

Can you please try with -O2?
Comment 11 Laslo Hunhold 2020-10-25 12:25:53 UTC
(In reply to Sam James from comment #10)
> (In reply to he.ousia from comment #9)
> > The same error with 6.4.7.2.
> > Why churn out new versions if they are unusable anyway?
> 
> I think a bit more respect (or just goodwill) should be given here. Do you
> really think that this version works for *nobody*? I'm not denying you are
> experiencing a bug, but it has obviously been tested.
> 
> Can you please try with -O2?

I was on -Os and set -O2 in my make.conf (it was the only change, and it failed earlier in the exact configuration with the same dependencies) and now the compilation succeeded.
Comment 12 Andreas Sturmlechner gentoo-dev 2020-11-03 19:54:23 UTC
*** Bug 752981 has been marked as a duplicate of this bug. ***
Comment 13 ernsteiswuerfel archtester 2020-11-04 13:50:34 UTC
Created attachment 669998 [details]
build.log (gcc-10.2.0-r2 -O2)

Builds fine for me with gcc -O2. So what I have found out so far is:

gcc-10.2.0-r2 -Os, binutils-2.35.1-r1: FAILS
gcc-10.2.0-r2 -O2, binutils-2.35.1-r1: BUILDS OK
clang-10.0.1 -Os, lld-10.0.1: BUILDS OK
Comment 14 K9spud 2021-02-01 14:11:14 UTC
libreoffce-7.0.4.2 build failed for me on RPi4 (arm64) using gcc-10.2.0-r5/binutils-2.35.1-r1 with -Os.

I think I've seen some ebuild's for other packages overriding my /etc/portage/make.conf -Os setting. Maybe libreoffice should "replace-flags -Os -O2"?
Comment 15 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-02-01 14:28:43 UTC
Zero_Chaos is hitting this too:

[03:02:33]  <Zero_Chaos> sam_: https://bugs.gentoo.org/727188 fails for me, gcc-10 but with binutils-2.34-r2, and I can't build with -Os or -O2 or -O3 or literally at all
[03:03:27]  <Zero_Chaos> sam_: I even rebuilt gcc with -O2 and -O3 to see if the flags I built gcc with mattered. they don't.

Interesting that (I think) we only have one report of -O2 failing.
Comment 16 Alessandro Barbieri 2021-03-16 02:01:23 UTC
Same on 7.0.5.2
Comment 17 PF4Public 2021-06-15 17:58:07 UTC
For me 7.1.3.2 fails with `-march=x86-64 -Os -pipe`, but succeeds with `-march=i686 -Os -pipe`
Comment 18 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-08-16 01:55:48 UTC
See https://gitlab.alpinelinux.org/alpine/aports/-/issues/12109#note_161369 on the Alpine bug tracker. They filed https://bugs.documentfoundation.org/show_bug.cgi?id=142442 after hitting ismilar errors at least.

Alpine also applied their own patch in https://gitlab.alpinelinux.org/alpine/aports/-/commit/8fac12716006b0f8fdf1a01812f65310e33b7c6c.
Comment 19 PF4Public 2021-08-16 15:33:06 UTC
Created attachment 733300 [details, diff]
gcc-10 patch for app-office/libreoffice-7.1.3.2
Comment 20 PF4Public 2021-08-16 15:35:51 UTC
Sam, thank you for the hint! I've combined both patches and the compilation was successful for `-march=x86-64 -Os -pipe`! I've attached the resulting patch.
Comment 21 Andreas K. Hüttel archtester gentoo-dev 2022-02-12 12:19:03 UTC
Is this still a problem with current versions?
Comment 22 ernsteiswuerfel archtester 2022-02-13 01:32:40 UTC
(In reply to Andreas K. Hüttel from comment #21)
> Is this still a problem with current versions?
libreoffice-7.2.5.2 still fails to build with -Os on amd64-musl. Did not try a build on glibc though as I use libreoffice-bin there.
Comment 23 cJ 2022-02-16 19:22:27 UTC
Adding data point: 7.3.0.3 fails to build with gcc 11.2.1, -Os or -O2, for the same reason.

I am not sure why TDF has closed the bug as RESOLVED NOTOURBUG, couldn't find further info.
Comment 24 cJ 2022-02-16 21:56:50 UTC
Created attachment 765276 [details, diff]
libreoffice 7.2.5.2 gcc10 patch

Attaching a patch for 7.2.5.2
Comment 25 Michail Shurutov 2022-08-08 20:48:42 UTC
emerge libreoffice-7.3.4.2-r1 failed with same error. emerge --info:
Portage 3.0.30 (python 3.10.5-final-0, default/linux/amd64/17.1/desktop/systemd, gcc-11.3.0, glibc-2.35-r8, 5.15.37-x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.15.37-x86_64-x86_64-Intel-R-_Core-TM-_i5-8250U_CPU_@_1.60GHz-with-glibc2.35
KiB Mem:    16240264 total,   5066536 free
KiB Swap:     524284 total,    524284 free
Timestamp of repository gentoo: Mon, 08 Aug 2022 15:30:01 +0000
Head commit of repository gentoo: c0e3ab5a829f86e167d3f5d498e1382af8359816
sh bash 5.1_p16-r1
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
app-misc/pax-utils:        1.3.4::gentoo
app-shells/bash:           5.1_p16-r1::gentoo
dev-lang/perl:             5.34.1-r3::gentoo
dev-lang/python:           3.9.13::gentoo, 3.10.5::gentoo
dev-lang/rust-bin:         1.62.1::gentoo
dev-util/cmake:            3.22.4::gentoo
dev-util/meson:            0.62.2::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          251.2::gentoo
sys-devel/autoconf:        2.13-r2::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.37_p1-r2::gentoo, 2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           13.0.1::gentoo, 14.0.6-r1::gentoo
sys-devel/gcc:             11.3.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             14.0.6::gentoo
sys-devel/llvm:            13.0.1::gentoo, 14.0.6-r2::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.35-r8::gentoo
Repositories:

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

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=generic -Os -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
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 -Os -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH 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 buildpkg-live candy config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync metadata-transfer multilib-strict network-sandbox news parallel-fetch 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://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru en"
MAKEOPTS="-j9"
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"
SHELL="/bin/bash"
USE="X a52 aac aalib acl acpi alsa amd64 amr ao audiofile avif bash-completion bluetooth bmff branding bzip2 cairo cdda cdr cli corefonts crypt cups dbus djvu dri dts dvd dvdr ebook encode eps epub exif ffmpeg flac gd gdbm gdk-pixbuf gif glamor gme gnutls gui hdri heif iconv icu idn imlib infinality ipv6 jbig jpeg jpeg2k jpegxl kerberos lcms ldap libglvnd libnotify libtirpc lz4 lzma lzo mac mad matroska mng mp3 mp4 mpeg mspub multilib musepack mwaw ncurses nls nptl ogg openal openexr opengl openmp opus pam pango pcre pdf png policykit ppds private-headers raw readline sdl seccomp sndfile speex spell split-usr ssl startup-notification svg systemd theora threads tiff truetype udev udisks unicode upower usb vaapi vcd vdpau vim-syntax visio vorbis vpx vulkan wavpack webp wmf woff2 wpd wps wxp-compat wxwidgets x264 x265 xattr xcb xcomposite xface xinerama xml xmp xpm xps xv xvid xvmc zlib zmf" ABI_X86="64 32" ADA_TARGET="gnat_2020" 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 aes avx f16c fma3 pclmul popcnt sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" 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 pc" INPUT_DEVICES="libinput metadata-transfer synaptics" KERNEL="linux" L10N="ru en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 26 Michail Shurutov 2022-08-08 20:58:58 UTC
Created attachment 798939 [details]
gzipped build.log for libreoffice-7.3.4.2-r1

emerge -pqv libreoffice:
[ebuild     U ] app-office/libreoffice-7.3.4.2-r1 [7.3.3.2-r3] USE="branding cups dbus ldap* mariadb vulkan* -accessibility (-base) -bluetooth -clang (-coinmp) -custom-cflags -debug -eds (-firebird) -googledrive -gstreamer -gtk -java -kde -odk -pdfimport -postgres -test" LIBREOFFICE_EXTENSIONS="-nlpsolver -scripting-beanshell -scripting-javascript -wiki-publisher" PYTHON_SINGLE_TARGET="python3_10 -python3_8 -python3_9 (-python3_11)"
Comment 27 LE GARREC Vincent 2023-12-02 22:40:26 UTC
Change -O1 to -O2 fix the problem.

app-office/libreoffice-7.5.8.2-r2