Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LibreOffice only needs the semantic interposition workaround #478

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

janlam7
Copy link
Contributor

@janlam7 janlam7 commented Jan 23, 2020

Title: app-office/libreoffice: libreoffice can be compiled with lto with the semantic interposition workaround

@elsandosgrande
Copy link
Contributor

Oh, so link-time optimization is fine? #382

@janlam7
Copy link
Contributor Author

janlam7 commented Jan 23, 2020

On my system, with these use flags, it is.

[ebuild R ] app-office/libreoffice-6.3.4.2::gentoo USE="branding cups dbus gtk java kde ldap mariadb -accessibility -bluetooth (-coinmp) -debug -eds (-firebird) -googledrive -gstreamer -gtk2 -odk -pdfimport -postgres -test" LIBREOFFICE_EXTENSIONS="-nlpsolver -scripting-beanshell -scripting-javascript -wiki-publisher" PYTHON_SINGLE_TARGET="python3_6 (-python3_7) (-python3_8)" PYTHON_TARGETS="python3_6 (-python3_7) (-python3_8)" 0 KiB

@elsandosgrande
Copy link
Contributor

In other words, you have not tested the necessity of the link-time optimization workaround. Link-time optimization is specifically disabled if you have the firebird USE flag enabled, which you do not.

@janlam7
Copy link
Contributor Author

janlam7 commented Jan 24, 2020

I enabled the firebird use flag and re-emerged; seems to work:

[ebuild R ] app-office/libreoffice-6.3.4.2::gentoo USE="branding cups dbus firebird gtk java kde ldap mariadb -accessibility -bluetooth (-coinmp) -debug -eds -googledrive -gstreamer -gtk2 -odk -pdfimport -postgres -test" LIBREOFFICE_EXTENSIONS="-nlpsolver -scripting-beanshell -scripting-javascript -wiki-publisher" PYTHON_SINGLE_TARGET="python3_6 (-python3_7) (-python3_8)" PYTHON_TARGETS="python3_6 (-python3_7) (-python3_8)" 0 Ki

Did need to update the firebird entry in ltoworkarounds.conf.

@elsandosgrande
Copy link
Contributor

All right then.

@petronio
Copy link
Contributor

I've been able to confirm that this works even with the firebird USE. @janlam7 can you please resolve the conflicts?

@petronio
Copy link
Contributor

@InBetweenNames This one's good to go

@darena67
Copy link

bump, still an issue with libreoffice

@evilbulgarian
Copy link

Having this problem with app-office/libreoffice-6.4.7.2

@evilbulgarian
Copy link

This workaround did not work for me on 6.4.x or 7.x
attaching build log and emerge --info

❯ emerge --info
Portage 3.0.9 (python 3.8.6-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-10.2.0, glibc-2.32-r3, 5.10.4+ x86_64)

System uname: Linux-5.10.4+-x86_64-AMD_Ryzen_7_3700X_8-Core_Processor-with-glibc2.2.5
KiB Mem: 16419676 total, 7958476 free
KiB Swap: 16137212 total, 16132604 free
Timestamp of repository gentoo: Wed, 06 Jan 2021 17:05:22 +0000
Head commit of repository gentoo: 289b6d2963195d9fdc59b8c526eaa232c31d5c74

Head commit of repository lto-overlay: a41c376

Head commit of repository mv: 79566063caedca8dc913c6d3b21a38347512ccb1

Head commit of repository steam-overlay: 6ed5630096d43208168572264f204d40e6b2a5c0

Head commit of repository mva: 78a1eed622b961673dadb20f768312908d2717e2

sh bash 5.0_p18
ld GNU ld (Gentoo 2.34 p6) 2.34.0
distcc 3.3.3 x86_64-pc-linux-gnu [enabled]
ccache version 3.7.12 [disabled]
app-shells/bash: 5.0_p18::gentoo
dev-java/java-config: 2.3.1::gentoo
dev-lang/perl: 5.30.3::gentoo
dev-lang/python: 3.8.6::gentoo, 3.9.0::gentoo
dev-util/ccache: 3.7.12::gentoo
dev-util/cmake: 3.17.4-r1::gentoo
dev-util/pkgconfig: 0.29.2::gentoo
sys-apps/baselayout: 2.7::gentoo
sys-apps/openrc: 0.42.1::gentoo
sys-apps/sandbox: 2.20::gentoo
sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake: 1.16.2-r1::gentoo
sys-devel/binutils: 2.34-r2::gentoo
sys-devel/gcc: 10.2.0-r4::gentoo
sys-devel/gcc-config: 2.3.2-r1::gentoo
sys-devel/libtool: 2.4.6-r6::gentoo
sys-devel/make: 4.3::gentoo
sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc: 2.32-r3::gentoo
Repositories:

gentoo
location: /usr/portage
sync-type: git
sync-uri: https://github.com/gentoo-mirror/gentoo
priority: -1000

x-portage
location: /usr/local/portage
masters: gentoo
priority: 0

lto-overlay
location: /usr/local/portage/lto-overlay
sync-type: git
sync-uri: https://github.com/InBetweenNames/gentooLTO.git
masters: gentoo mv
priority: 50

mv
location: /usr/local/portage/mv
sync-type: git
sync-uri: https://anongit.gentoo.org/git/user/mv.git
masters: gentoo
priority: 50

steam-overlay
location: /usr/local/portage/steam
sync-type: git
sync-uri: https://github.com/anyc/steam-overlay.git
masters: gentoo
priority: 50

mva
location: /usr/local/portage/mva
sync-type: git
sync-uri: https://github.com/msva/mva-overlay.git
masters: gentoo
priority: 9999

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=znver2 -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=auto -fuse-linker-plugin -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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=znver2 -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=auto -fuse-linker-plugin -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 config-protect-if-modified distcc distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync 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="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en bg"
MAKEOPTS="-j17 -l9"
PKGDIR="/var/cache/binpkgs"
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/cache/gentoo"
USE="X a52 aac aalib acl acpi activities adns aio alsa amd64 asf bash-completion berkdb bluetooth branding btrfs bzip2 cairo caps cdda cdr chroot cli crypt cryptsetup cups curl custom-cflags custom-optimization dav1d dbus declarative device-mapper dri dts dv dvd dvdr egl elogind emboss encode exif faac faad ffmpeg flac fortran gbm gdbm gif glamor gles gles2 glib gnutls gold gpg graphite gstreamer gui hwaccel iconv icu imap inotify introspection iproute2 ipv6 irc ithreads iwd jpeg jumbo-build kde kerberos kipi kwallet lcms libaom libglvnd libinput libnotify libtirpc lto lzo mad maps matroska mdnsresponder-compat melt mng mp3 mp4 mpd mpeg mtp multilib ncurses networkmanager nls nptl offensive ogg ogm opengl openmp opus otr ozone pam pango pcre pdf pdfimport pgo phonon pic plasma png policykit ppds pulseaudio qml qt5 rar rav1e rdp readline rpc sasl screencast sdl seccomp semantic-desktop speex spell split-usr sql ssl startup-notification svg system-av1 system-cairo system-ffmpeg system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-llvm system-mesa system-webp theora threads thumbnail tidy tiff truetype udev udisks unicode upower usb user-session v4l vaapi vcd vim-syntax vnc vorbis vpx wayland widgets x264 xattr xcb xml xv xvfb xvid zip zlib zsh-completion" ABI_X86="64 32" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 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="pc efi-64" INPUT_DEVICES="keyboard libinput" KERNEL="linux" 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-2 php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python2_7 python3_8" RUBY_TARGETS="ruby25 ruby26" SANE_BACKENDS="fujitsu" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" 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

libreoffice.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants