InBetweenNames / gentooLTO

A Gentoo Portage configuration for building with -O3, Graphite, and LTO optimizations
GNU General Public License v2.0
570 stars 96 forks source link

libreoffice-6.4.7.2 -- internal compiler error: in record_target_from_binfo, at ipa-devirt.c:2555 #709

Open jonesmz opened 3 years ago

jonesmz commented 3 years ago

Possible duplicates?

https://github.com/InBetweenNames/gentooLTO/issues/382 https://github.com/InBetweenNames/gentooLTO/issues/535

Portage 3.0.13 (python 3.9.1-final-0, default/linux/amd64/17.1, gcc-10.2.0, glibc-2.32-r7, 5.4.97-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.4.97-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E3-1240_V2_@_3.40GHz-with-glibc2.32
KiB Mem:    32850152 total,  13871636 free
KiB Swap:    8388604 total,   8339708 free
Timestamp of repository gentoo: Mon, 01 Mar 2021 00:52:13 +0000
Head commit of repository gentoo: b0a29cae8d6b0a0b5d8e22f095f7f6ef6615087b

Head commit of repository jonesmz-public-overlay: f2a4eeea473f94bf0045e49ca098cd36b44b2bf3

Head commit of repository lto-overlay: 5f4da2341e063a09ca109031dceb39db19f6c5ae

Head commit of repository mv: 9a634a63286f8abb2bd2cdb77c57b897f56a2e50

Head commit of repository plex-overlay: f69eefbab2da9f623863d7c80827b1b388240e36

Head commit of repository wsdd: 4b59f6a4e725498f95857fbcf6a53677d29950d7

Head commit of repository steam-overlay: 656212492f399065178bd255e27530ebe6886361

sh bash 5.0_p18
ld GNU ld (Gentoo 2.35.1 p2) 2.35.1
distcc 3.3.3 x86_64-pc-linux-gnu [disabled]
ccache version 4.1 [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:          2.7.18-r100::lto-overlay, 3.8.7-r1::gentoo, 3.9.1-r1::gentoo
dev-util/ccache:          4.1::gentoo
dev-util/cmake:           3.18.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::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.35.1-r1::gentoo
sys-devel/gcc:            10.2.0-r5::gentoo
sys-devel/gcc-config:     2.3.3::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: git://anongit.gentoo.org/repo/sync/gentoo.git
    priority: -1000

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

lto-overlay
    location: /var/db/repos/lto-overlay
    sync-type: git
    sync-uri: https://github.com/InBetweenNames/gentooLTO.git
    masters: gentoo mv

mv
    location: /var/db/repos/mv
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/user/mv.git
    masters: gentoo

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

wsdd
    location: /var/db/repos/wsdd-gentoo
    sync-type: git
    sync-uri: https://github.com/christgau/wsdd-gentoo
    masters: gentoo

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

Installed sets: @archive, @creative, @desktop-applications, @lxqt, @pc-base-system, @portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=1 -fuse-linker-plugin -march=x86-64 -mtune=generic -pipe"
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"
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="-O2 -pipe -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=1 -fuse-linker-plugin -march=x86-64 -mtune=generic -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS=" --jobs --keep-going --newuse --changed-deps --deep --tree --backtrack=3000 --complete-graph --with-bdeps=y --binpkg-respect-use=y --binpkg-changed-deps=y --changed-slot=y --usepkg=y"
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 binpkg-multi-instance buildpkg clean-logs compress-build-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles installsources ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-elog split-log splitdebug 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 en_US"
MAKEOPTS="-j10"
PKGDIR="/var/cache/binpkgs"
PORTAGE_COMPRESS="xz"
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 alsa amd64 branding bzip2 cairo cdda cdr clang crypt dbus dri dts dvd dvdr egl emboss encode exif flac gif glamor gles2 gnome-keyring gpm gstreamer gtk gui hardened iconv icu ipv6 jpeg lcms libglvnd libnotify libtirpc mad mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf pie png policykit ppds pulseaudio qt5 readline samba sdl seccomp sound spell split-usr ssl ssp startup-notification svg systemd theora threads tiff truetype udev udisks unicode upower usb vaapi vorbis wayland widevine x264 xattr xcb xinerama xml xtpax xv xvid zeroconf zlib" ABI_X86="64" ADA_TARGET="gnat_2018" 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 sse sse2 mmxext" 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="coreboot efi-64 emu qemu pc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US" 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-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python2_7 python3_8 python3_9" QEMU_SOFTMMU_TARGETS="aarch64 x86_64" QEMU_USER_TARGETS="aarch64 x86_64" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="vesa modesetting radeon radeonsi 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_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

app-office/libreoffice-6.4.7.2::gentoo was built with the following:
USE="branding dbus -accessibility (-base) -bluetooth (-coinmp) -cups -debug -eds (-firebird) -googledrive -gstreamer -gtk -java -kde -ldap -mariadb -odk -pdfimport -postgres -test" ABI_X86="(64)" LIBREOFFICE_EXTENSIONS="-nlpsolver -scripting-beanshell -scripting-javascript -wiki-publisher" PYTHON_SINGLE_TARGET="python3_8 -python3_7 -python3_9"
CFLAGS="-O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=1 -fuse-linker-plugin -march=x86-64 -mtune=generic -O2 -pipe -ffat-lto-objects -Wl,-O1 -Wl,--as-needed"
CXXFLAGS="-O2 -pipe -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=1 -fuse-linker-plugin -march=x86-64 -mtune=generic -O2 -pipe -ffat-lto-objects -Wl,-O1 -Wl,--as-needed"
FEATURES="ebuild-locks userfetch compressdebug parallel-install binpkg-multi-instance unmerge-logs multilib-strict binpkg-dostrip splitdebug preserve-libs news split-elog split-log qa-unresolved-soname-deps clean-logs sfperms config-protect-if-modified parallel-fetch unmerge-orphans usersync binpkg-logs userpriv unknown-features-warn binpkg-docompress distlocks compress-build-logs network-sandbox pid-sandbox fixlafiles buildpkg usersandbox assume-digests sandbox xattr strict ipc-sandbox installsources protect-owned merge-sync"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=1 -fuse-linker-plugin -march=x86-64 -mtune=generic -O2 -pipe -ffat-lto-objects"
In function ‘memcpy’,
    inlined from ‘addData’ at /var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/include/rtl/stringconcat.hxx:84:11,
    inlined from ‘addData’ at /var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/include/rtl/stringconcat.hxx:246:117,
    inlined from ‘addData’ at /var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/include/rtl/stringconcat.hxx:265:129,
    inlined from ‘__ct ’ at /var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/include/rtl/ustring.hxx:406:41,
    inlined from ‘Edit’ at /var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/sfx2/source/appl/fileobj.cxx:284:46:
/usr/include/bits/string_fortified.h:29:33: warning: writing 2 bytes into a region of size 0 [-Wstringop-overflow=]
   29 |   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
      |                                 ^
/var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/sfx2/source/appl/fileobj.cxx: In member function ‘Edit’:
/var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/include/rtl/ustring.h:1205:25: note: at offset 2 to object ‘buffer’ with size 2 declared here
 1205 |     sal_Unicode         buffer[1];
      |                         ^
during GIMPLE pass: forwprop
/var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/include/sfx2/basedlgs.hxx: In member function ‘_ZThn520_N17SfxFloatingWindowD0Ev’:
/var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/include/sfx2/basedlgs.hxx:102: internal compiler error: in record_target_from_binfo, at ipa-devirt.c:2555
  102 |                             virtual ~SfxFloatingWindow() override;
      |
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.gentoo.org/> for instructions.
lto-wrapper: fatal error: x86_64-pc-linux-gnu-g++ returned 1 exit status
compilation terminated.
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[1]: *** [/var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/Library_merged.mk:11: /var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/instdir/program/libmergedlo.so] Error 1
rm /var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/workdir/CustomTarget/i18npool/breakiterator/edit_word_hu.txt /var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/workdir/CustomTarget/i18npool/breakiterator/dict_word_hu.brk /var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/workdir/CustomTarget/i18npool/breakiterator/edit_word.brk /var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/workdir/CustomTarget/i18npool/breakiterator/char_in.txt /var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/workdir/CustomTarget/i18npool/breakiterator/edit_word.txt /var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/workdir/CustomTarget/i18npool/breakiterator/char_in.brk /var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/workdir/CustomTarget/i18npool/breakiterator/sent.txt /var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/workdir/CustomTarget/i18npool/breakiterator/line.brk /var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/workdir/CustomTarget/i18npool/breakiterator/dict_word.brk /var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/workdir/CustomTarget/i18npool/breakiterator/edit_word_he.brk /var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/workdir/CustomTarget/i18npool/breakiterator/dict_word_he.brk /var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/workdir/CustomTarget/i18npool/breakiterator/sent.brk /var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/workdir/CustomTarget/i18npool/breakiterator/dict_word_nodash.brk /var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/workdir/CustomTarget/i18npool/breakiterator/count_word.brk /var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/workdir/CustomTarget/i18npool/breakiterator/char.brk /var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/workdir/CustomTarget/i18npool/breakiterator/dict_word_prepostdash.txt /var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/workdir/CustomTarget/i18npool/breakiterator/dict_word_he.txt /var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/workdir/CustomTarget/i18npool/breakiterator/edit_word_he.txt /var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/workdir/CustomTarget/i18npool/breakiterator/line.txt /var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/workdir/CustomTarget/i18npool/breakiterator/char.txt /var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/workdir/CustomTarget/i18npool/breakiterator/dict_word.txt /var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/workdir/CustomTarget/i18npool/breakiterator/edit_word_hu.brk /var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/workdir/CustomTarget/i18npool/breakiterator/count_word.txt /var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/workdir/CustomTarget/i18npool/breakiterator/dict_word_nodash.txt /var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/workdir/CustomTarget/i18npool/breakiterator/dict_word_hu.txt /var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/workdir/CustomTarget/i18npool/breakiterator/dict_word_prepostdash.brk
make[1]: Leaving directory '/var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2'
make: *** [Makefile:282: build] Error 2
 * ERROR: app-office/libreoffice-6.4.7.2::gentoo failed (compile phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line 125:  Called src_compile
 *   environment, line 6612:  Called die
 * The specific snippet of code:
 *       make ${target} || die
 *
 * If you need support, post the output of `emerge --info '=app-office/libreoffice-6.4.7.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-office/libreoffice-6.4.7.2::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info =libreoffice-6.4.7.2
 * The complete build log is located at '/var/tmp/portage/app-office/libreoffice-6.4.7.2/temp/build.log.gz'.
 * The ebuild environment file is located at '/var/tmp/portage/app-office/libreoffice-6.4.7.2/temp/environment'.
 * Working directory: '/var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2'
 * S: '/var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2'
CyB3RC0nN0R commented 3 years ago

I had the same issue and could solve it by adding the following line to my /etc/portage/package.cflags/no-semantic-interposition.conf:

app-office/libreoffice *FLAGS-="${SEMINTERPOS}" # internal compiler error, see issue #709

evilbulgarian commented 3 years ago

yup same issue with even latest 7.x libreoffice, can someone please add the fix to the repo? app-office:libreoffice-7.0.5.2:20210311-184826.log