Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 900146 - sys-devel/gcc-13: ICE when building kde-frameworks/ktexteditor-5.103.0 with -fdevirtualize-at-ltrans
Summary: sys-devel/gcc-13: ICE when building kde-frameworks/ktexteditor-5.103.0 with -...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-13
  Show dependency tree
 
Reported: 2023-03-07 10:53 UTC by Ninpo
Modified: 2024-04-20 13:46 UTC (History)
1 user (show)

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


Attachments
kde-frameworks/ktexteditor-5.103.0 build log (ktexteditor-5.103.0-build.log,901.17 KB, text/x-log)
2023-03-07 10:53 UTC, Ninpo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ninpo 2023-03-07 10:53:28 UTC
Created attachment 856612 [details]
kde-frameworks/ktexteditor-5.103.0 build log

Regression in sys-devel/gcc-13.0.1_pre20230305 (sys-devel/gcc-13.0.1_pre20230205-r1 was fine), Internal Compiler Error in lto wrapper for kde-frameworks/ktexteditor-5.103.0 when -fdevirtualize-at-ltrans flag is enabled.

Disabling just this flag merges the package successfully.

# emerge --info sys-devel/gcc
Portage 3.0.44 (python 3.10.10-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-13, glibc-2.36-r7, 5.15.88-gentoo-x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.15.88-gentoo-x86_64-x86_64-AMD_Ryzen_Threadripper_1950X_16-Core_Processor-with-glibc2.36
KiB Mem:    65677116 total,  27549396 free
KiB Swap:    8388604 total,   5497852 free
Timestamp of repository gentoo: Mon, 06 Mar 2023 15:47:11 +0000
Head commit of repository gentoo: d11f182721a958bc5536eb0e26c042d1019cccd2

Timestamp of repository kde: Sun, 05 Mar 2023 23:16:52 +0000
Head commit of repository kde: 17f974740cc0789ced6d5632aa209650698a0890

Timestamp of repository lto-overlay: Sun, 19 Feb 2023 19:48:33 +0000
Head commit of repository lto-overlay: 159bef9361326b3e0acd53a4b5b641e5db806018

Head commit of repository mv: 15bf77a292f968c125f432e78c2727a56d5279a1

Timestamp of repository steam-overlay: Thu, 23 Feb 2023 13:47:16 +0000
Head commit of repository steam-overlay: 5dbabcc794ef909f45c8fb40eec07cebf569e0d1

sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.39 p5) 2.39.0
ccache version 4.7.4 [disabled]
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r2::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.0-r1::gentoo
dev-lang/python:           3.10.10_p2::gentoo, 3.11.2_p1::gentoo
dev-lang/rust:             1.66.1::gentoo
dev-util/ccache:           4.7.4::gentoo
dev-util/cmake:            3.25.2::gentoo
dev-util/meson:            1.0.1::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/openrc:           0.45.2-r2::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.13-r7::gentoo, 2.71-r5::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.39-r4::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           15.0.7-r1::gentoo
sys-devel/gcc:             12.2.1_p20230121-r1::gentoo, 13.0.1_pre20230305::gentoo
sys-devel/gcc-config:      2.8::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             15.0.7::gentoo
sys-devel/llvm:            15.0.7::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo
    priority: -1000
    volatile: True

custom
    location: /var/db/repos/custom
    masters: gentoo
    volatile: True

kde
    location: /var/db/repos/kde
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/kde.git
    masters: gentoo
    volatile: True

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

mv
    location: /var/db/repos/mv
    sync-type: git
    sync-uri: https://github.com/vaeth/mv-overlay.git
    masters: gentoo
    volatile: True

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo
    volatile: True

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -pipe -O2 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fno-semantic-interposition -flto=8 -fuse-linker-plugin"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -pipe -march=native -pipe -O2 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fno-semantic-interposition -flto=8 -fuse-linker-plugin"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS="-march=native -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified 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="-march=native -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j17"
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/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi activities alsa amd64 branding bzip2 cairo cdda cdr cli crypt cups dbus declarative dri dts dvd dvdr elogind encode exif flac fortran gdbm gif googledrive gpm gtk gui i3wm iconv icu ipv6 jpeg kde kwallet lcms libglvnd libnotify libtirpc lto mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf pgo pipewire plasma png policykit ppds pulseaudio qml qt5 readline sdl seccomp semantic-desktop sound spell split-usr ssl startup-notification svg system-bootstrap system-llvm test-rust tiff truetype udev udisks unicode upower usb vim vim-syntax vorbis widgets wxwidgets x264 xattr xcb xft xml xv xvid zlib zstd" ABI_X86="64 32" ADA_TARGET="gnat_2021" 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" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en-GB 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 ruby30" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, LFLAGS, LIBTOOL, LINGUAS, 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

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

sys-devel/gcc-12.2.1_p20230121-r1::gentoo was built with the following:
USE="(cxx) fortran graphite lto (multilib) nls nptl openmp pgo (pie) sanitize ssp zstd -ada (-cet) (-custom-cflags) -d -debug -default-stack-clash-protection -default-znow -doc (-fixed-point) -go -hardened (-ieee-long-double) -jit (-libssp) -objc -objc++ -objc-gc (-pch) -systemtap -test -valgrind -vanilla -vtv" ABI_X86="(64)"
CFLAGS="-march=native -pipe -Wl,-O1 -Wl,--as-needed -O2"
CXXFLAGS="-march=native -pipe -march=native -pipe -Wl,-O1 -Wl,--as-needed -O2"
FEATURES="userfetch ipc-sandbox multilib-strict binpkg-logs unmerge-orphans assume-digests strict news protect-owned buildpkg-live usersandbox usersync unknown-features-warn preserve-libs userpriv xattr ebuild-locks ccache distlocks sfperms binpkg-dostrip parallel-fetch binpkg-docompress config-protect-if-modified pid-sandbox sandbox qa-unresolved-soname-deps network-sandbox fixlafiles unmerge-logs merge-sync"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -march=native -pipe"


sys-devel/gcc-13.0.1_pre20230305::gentoo was built with the following:
USE="(cxx) fortran graphite lto (multilib) nls nptl openmp pgo (pie) sanitize ssp zstd -ada (-cet) (-custom-cflags) -d -debug -default-stack-clash-protection -default-znow -doc (-fixed-point) -go -hardened (-ieee-long-double) -jit (-libssp) -objc -objc++ -objc-gc (-pch) -rust -systemtap -test -valgrind -vanilla -vtv" ABI_X86="(64)"
CFLAGS="-march=native -pipe -Wl,-O1 -Wl,--as-needed -O2"
CXXFLAGS="-march=native -pipe -march=native -pipe -Wl,-O1 -Wl,--as-needed -O2"
FEATURES="network-sandbox usersandbox userpriv qa-unresolved-soname-deps news distlocks buildpkg-live config-protect-if-modified ebuild-locks unmerge-logs usersync assume-digests unknown-features-warn xattr ipc-sandbox pid-sandbox unmerge-orphans preserve-libs ccache protect-owned sandbox fixlafiles multilib-strict strict userfetch merge-sync sfperms parallel-fetch binpkg-dostrip binpkg-logs binpkg-docompress"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -march=native -pipe"
Comment 1 andrewkomnenos 2024-02-24 01:52:22 UTC
This is also happening with me. The relevant error message seems to be: lto1: internal compiler error: in remove_unreachable_nodes, at ipa.cc:577