20/29] /usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -DSHADERC_IMPLEMENTATION -DSHADERC_SHAREDLIB -Dshaderc_shared_EXPORTS -I/tmp/portage/media-libs/shaderc-2025.2/work/shaderc-2025.2/libshaderc/include -I/include -I/tmp/portage/media-libs/shaderc-2025.2/work/shaderc-2025.2/libshaderc_util/include -march=native -mtune=native -O3 -pipe -falign-functions=32 -fipa-pta -fomit-frame-pointer -fsched-pressure -ftree-vectorize -fno-asynchronous-unwind-tables -fno-plt -fno-semantic-interposition -fno-stack-protector -g0 -s -w -fdevirtualize-speculatively -fdevirtualize-at-ltrans -fgraphite-identity -floop-nest-optimize -floop-parallelize-all -fuse-ld=mold -fuse-linker-plugin -fno-fat-lto-objects -flto=25 -flto-compression-level=19 -ffat-lto-objects -Wimplicit-fallthrough -fPIC -Wextra-semi -Wall -fvisibility=hidden -fPIC -MD -MT libshaderc/CMakeFiles/shaderc_shared.dir/src/shaderc.cc.o -MF libshaderc/CMakeFiles/shaderc_shared.dir/src/shaderc.cc.o.d -o libshaderc/CMakeFiles/shaderc_shared.dir/src/shaderc.cc.o -c /tmp/portage/media-libs/shaderc-2025.2/work/shaderc-2025.2/libshaderc/src/shaderc.cc FAILED: libshaderc/CMakeFiles/shaderc_shared.dir/src/shaderc.cc.o /usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -DSHADERC_IMPLEMENTATION -DSHADERC_SHAREDLIB -Dshaderc_shared_EXPORTS -I/tmp/portage/media-libs/shaderc-2025.2/work/shaderc-2025.2/libshaderc/include -I/include -I/tmp/portage/media-libs/shaderc-2025.2/work/shaderc-2025.2/libshaderc_util/include -march=native -mtune=native -O3 -pipe -falign-functions=32 -fipa-pta -fomit-frame-pointer -fsched-pressure -ftree-vectorize -fno-asynchronous-unwind-tables -fno-plt -fno-semantic-interposition -fno-stack-protector -g0 -s -w -fdevirtualize-speculatively -fdevirtualize-at-ltrans -fgraphite-identity -floop-nest-optimize -floop-parallelize-all -fuse-ld=mold -fuse-linker-plugin -fno-fat-lto-objects -flto=25 -flto-compression-level=19 -ffat-lto-objects -Wimplicit-fallthrough -fPIC -Wextra-semi -Wall -fvisibility=hidden -fPIC -MD -MT libshaderc/CMakeFiles/shaderc_shared.dir/src/shaderc.cc.o -MF libshaderc/CMakeFiles/shaderc_shared.dir/src/shaderc.cc.o.d -o libshaderc/CMakeFiles/shaderc_shared.dir/src/shaderc.cc.o -c /tmp/portage/media-libs/shaderc-2025.2/work/shaderc-2025.2/libshaderc/src/shaderc.cc during IPA pass: pta /tmp/portage/media-libs/shaderc-2025.2/work/shaderc-2025.2/libshaderc/src/shaderc.cc:814:1: internal compiler error: Segmentation fault 814 | } | ^ 0x55f348e54dad diagnostic_context::diagnostic_impl(rich_location*, diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag (*) [1], diagnostic_t) ???:0 0x55f348e1efa0 internal_error(char const*, ...) ???:0 0x55f34985597b execute_ipa_pass_list(opt_pass*) ???:0 0x55f349854f12 symbol_table::compile() ???:0 0x55f34986805e symbol_table::finalize_compilation_unit() ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://bugs.gentoo.org/> for instructions. --------------------------------------------------------------------------------- Serious regression since 15.1.1_p20250503 with ipa-pta. Before that it was okay. Reproducible: Always
Created attachment 928707 [details] shaderc as example
Created attachment 928708 [details] gcc_build.log
~ $ emerge --info Portage 3.0.68 (python 3.13.3-final-0, default/linux/amd64/23.0/no-multilib, gcc-15, glibc-2.41-r2, 6.14.6-gentoo x86_64) ================================================================= System uname: Linux-6.14.6-gentoo-x86_64-AMD_Ryzen_9_9900X_12-Core_Processor-with-glibc2.41 KiB Mem: 96443828 total, 80195188 free KiB Swap: 98028540 total, 98017952 free Head commit of repository guru: 03df3d6b51eb737186906e1523d7866f22a6de85 Head commit of repository pf4public: 1821ea4f3be42bb60096446719121e58697b32d3 Head commit of repository librewolf: 476836c7b7a19b7cb1ded18215d82ad935e63f04 Head commit of repository qt: a2cba216d481f006d5f643ae1029d39ab6cd64ad Head commit of repository kde: 1370b0ed0b30b9f8ece0998a26d9c8c7a7d7e5d2 Head commit of repository gentoo: 2093a77f71227ad3e41a06ffd355b60391844909 Head commit of repository pg_overlay: aebc6e7b53e51b4d0c8712b76ca2fd8fe94788e5 sh bash 5.3_rc1_p20250504-r1 ld GNU ld (Gentoo 2.44 p1) 2.44.0 ccache version 4.11.3 [disabled] app-misc/pax-utils: 1.3.8::gentoo app-shells/bash: 5.3_rc1_p20250504-r1::gentoo dev-build/autoconf: 2.13-r8::gentoo, 2.72-r1::gentoo dev-build/automake: 1.17-r2::gentoo dev-build/cmake: 3.31.7-r1::gentoo dev-build/libtool: 2.5.4::gentoo dev-build/make: 4.4.1-r100::gentoo dev-build/meson: 1.8.0::gentoo dev-lang/perl: 5.40.2::gentoo dev-lang/python: 3.13.3::pg_overlay dev-lang/rust: 1.86.0-r1::gentoo dev-util/ccache: 4.11.3::gentoo llvm-core/clang: 19.1.7::gentoo, 20.1.4::gentoo llvm-core/lld: 20.1.4::gentoo llvm-core/llvm: 19.1.7::gentoo, 20.1.4::gentoo sys-apps/baselayout: 2.17::gentoo sys-apps/openrc: 0.62.2::gentoo sys-apps/sandbox: 2.46::gentoo sys-devel/binutils: 2.44::gentoo sys-devel/binutils-config: 5.5.2::gentoo sys-devel/gcc: 15.1.1_p20250510::gentoo sys-devel/gcc-config: 2.12.1::gentoo sys-kernel/linux-headers: 6.14::gentoo (virtual/os-headers) sys-libs/glibc: 2.41-r2::gentoo Repositories: guru location: /var/db/repos/guru sync-type: git sync-uri: https://anongit.gentoo.org/git/repo/proj/guru.git masters: gentoo priority: -3 eclass-overrides: guru qt gentoo kde pg_overlay volatile: False sync-git-clone-extra-opts: --progress --verbose --single-branch --branch dev pf4public location: /var/db/repos/pf4public sync-type: git sync-uri: https://github.com/PF4Public/gentoo-overlay.git masters: gentoo priority: -1 eclass-overrides: guru qt gentoo kde pg_overlay volatile: False librewolf location: /var/db/repos/librewolf sync-type: git sync-uri: https://codeberg.org/librewolf/gentoo.git masters: gentoo priority: 1 eclass-overrides: guru qt gentoo kde pg_overlay volatile: False qt location: /var/db/repos/qt sync-type: git sync-uri: https://anongit.gentoo.org/git/proj/qt.git masters: gentoo priority: 7 eclass-overrides: guru qt gentoo kde pg_overlay volatile: False kde location: /var/db/repos/kde sync-type: git sync-uri: https://anongit.gentoo.org/git/proj/kde.git masters: gentoo priority: 9 eclass-overrides: guru qt gentoo kde pg_overlay volatile: False gentoo location: /var/db/repos/gentoo sync-type: git sync-uri: https://anongit.gentoo.org/git/repo/gentoo.git priority: 11 eclass-overrides: guru qt gentoo kde pg_overlay volatile: False sync-git-clone-extra-opts: --progress --verbose --single-branch --branch master pg_overlay location: /var/db/repos/pg_overlay sync-type: git sync-uri: https://gitlab.com/Perfect_Gentleman/PG_Overlay.git masters: gentoo priority: 13 eclass-overrides: guru qt gentoo kde pg_overlay volatile: False Binary Repositories: gentoobinhost priority: 1 sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -mtune=native -O3 -pipe -falign-functions=32 -fipa-pta -fomit-frame-pointer -fsched-pressure -ftree-vectorize -fno-asynchronous-unwind-tables -fno-plt -fno-semantic-interposition -fno-stack-protector -g0 -s -w -fdevirtualize-speculatively -fdevirtualize-at-ltrans -fgraphite-identity -floop-nest-optimize -floop-parallelize-all -fuse-ld=mold -fuse-linker-plugin -fno-fat-lto-objects -flto=25 -flto-compression-level=19" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /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/vmware-installer" CXXFLAGS="-march=native -mtune=native -O3 -pipe -falign-functions=32 -fipa-pta -fomit-frame-pointer -fsched-pressure -ftree-vectorize -fno-asynchronous-unwind-tables -fno-plt -fno-semantic-interposition -fno-stack-protector -g0 -s -w -fdevirtualize-speculatively -fdevirtualize-at-ltrans -fgraphite-identity -floop-nest-optimize -floop-parallelize-all -fuse-ld=mold -fuse-linker-plugin -fno-fat-lto-objects -flto=25 -flto-compression-level=19" 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 -mtune=native -O3 -pipe -falign-functions=32 -fipa-pta -fomit-frame-pointer -fsched-pressure -ftree-vectorize -fno-asynchronous-unwind-tables -fno-plt -fno-semantic-interposition -fno-stack-protector -g0 -s -w -fdevirtualize-speculatively -fdevirtualize-at-ltrans -fgraphite-identity -floop-nest-optimize -floop-parallelize-all -fuse-ld=mold -fuse-linker-plugin -fno-fat-lto-objects -flto=25 -flto-compression-level=19" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks export-pms-vars fixlafiles ipc-sandbox merge-sync merge-wait metadata-transfer multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync warn-on-large-env xattr" FFLAGS="-march=native -mtune=native -O3 -pipe -falign-functions=32 -fipa-pta -fomit-frame-pointer -fsched-pressure -ftree-vectorize -fno-asynchronous-unwind-tables -fno-plt -fno-semantic-interposition -fno-stack-protector -g0 -s -w -fdevirtualize-speculatively -fdevirtualize-at-ltrans -fgraphite-identity -floop-nest-optimize -floop-parallelize-all -fuse-ld=mold -fuse-linker-plugin -fno-fat-lto-objects -flto=25 -flto-compression-level=19" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="C.UTF8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--gc-sections -Wl,--relax -Wl,--sort-common -Wl,-z,norelro -march=native -mtune=native -O3 -pipe -falign-functions=32 -fipa-pta -fomit-frame-pointer -fsched-pressure -ftree-vectorize -fno-asynchronous-unwind-tables -fno-plt -fno-semantic-interposition -fno-stack-protector -g0 -s -w -fdevirtualize-speculatively -fdevirtualize-at-ltrans -fgraphite-identity -floop-nest-optimize -floop-parallelize-all -fuse-ld=mold -fuse-linker-plugin -fno-fat-lto-objects -flto=25 -flto-compression-level=19" LEX="reflex" LIBTOOL="rlibtool" LINGUAS="en en_US en-US ru ru_RU ru-RU" MAKE="make LIBTOOL=rlibtool" MAKEFLAGS="LIBTOOL=rlibtool" MAKEOPTS="-j25" 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="/tmp" RUSTFLAGS=" -Ccodegen-units=1 -Cdebuginfo=0 -Copt-level=3 -Ctarget-cpu=native" SHELL="/bin/bash" USE="alsa amd64 asm bash-completion brotli bzip2 cairo cet custom-cflags cxx dbus elogind ffmpeg fontconfig gmp iconv icu introspection io-uring ipv6 jit jpeg lcms libtirpc lto lz4 lzma mmap mtp ncurses nls opengl openmp orc pam pcre pipewire pulseaudio readline screencast seccomp ssl symlink test-rust threads truetype udev unicode vaapi vulkan wayland xattr xcb zip zlib zstd" ABI_X86="64" ADA_TARGET="gcc_14" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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 avx512_bf16 avx512_bitalg avx512_vbmi2 avx512_vnni avx512_vp2intersect avx512_vpopcntdq avx512bw avx512cd avx512dq avx512f avx512ifma avx512vbmi avx512vl f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 vpclmulqdq" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en_US en-US ru ru_RU ru-RU" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_SLOT="19" LLVM_TARGETS="X86 AMDGPU" LUA_SINGLE_TARGET="lua5-4" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PERL_FEATURES="ithreads" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres17" PYTHON_SINGLE_TARGET="python3_13" PYTHON_TARGETS="python3_13" QEMU_SOFTMMU_TARGETS="x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby34" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account" YACC="byacc" 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, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, SIZE, STRINGS, STRIP, YFLAGS
(In reply to Perfect Gentleman from comment #1) > Created attachment 928707 [details] > shaderc > > as example Please include preprocessed source for one of the failing commands (run one of the "FAILED:" lines w/ -save-temps appended, show me the command + the .i(i) it creates). -freport-bug may also work instead of -save-temps BTW and it recently got fixed, so that is preferable if it does the job.
This might be the same as https://gcc.gnu.org/PR120146. If so, it'll be fixed in the next 15 snapshot.
Created attachment 928781 [details] mesa_build.log
Created attachment 928782 [details] mesa_preprocessor.out
Created attachment 928783 [details] gallivm_lp_bld_debug.cpp.ii
Thanks. Full bt: ``` during IPA pass: pta ../mesa-25.1.0/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp:402:1: internal compiler error: Segmentation fault 0x62714a7b5c19 internal_error(char const*, ...) /usr/src/debug/sys-devel/gcc-15.1.1_p20250510/gcc-15-20250510/gcc/diagnostic-global-context.cc:517 0x627148c7f323 crash_signal /usr/src/debug/sys-devel/gcc-15.1.1_p20250510/gcc-15-20250510/gcc/toplev.cc:322 0x7c994ec202bf ??? /usr/src/debug/sys-libs/glibc-2.41.9999/glibc-2.41.9999/signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0 0x627147885cef varpool_node::all_refs_explicit_p() /usr/src/debug/sys-devel/gcc-15.1.1_p20250510/gcc-15-20250510/gcc/cgraph.h:3193 0x627147885cef create_variable_info_for /usr/src/debug/sys-devel/gcc-15.1.1_p20250510/gcc-15-20250510/gcc/tree-ssa-structalias.cc:6565 0x627147885cef get_vi_for_tree /usr/src/debug/sys-devel/gcc-15.1.1_p20250510/gcc-15-20250510/gcc/tree-ssa-structalias.cc:3049 0x627148f7cbad get_constraint_for_ssa_var /usr/src/debug/sys-devel/gcc-15.1.1_p20250510/gcc-15-20250510/gcc/tree-ssa-structalias.cc:3141 0x627148f7e06a get_constraint_for_address_of /usr/src/debug/sys-devel/gcc-15.1.1_p20250510/gcc-15-20250510/gcc/tree-ssa-structalias.cc:3574 0x627148f8005b get_constraint_for_rhs /usr/src/debug/sys-devel/gcc-15.1.1_p20250510/gcc-15-20250510/gcc/tree-ssa-structalias.cc:3798 0x627148f8005b get_constraint_for_ptr_offset /usr/src/debug/sys-devel/gcc-15.1.1_p20250510/gcc-15-20250510/gcc/tree-ssa-structalias.cc:3278 0x627148f7d4ba get_constraint_for_1 /usr/src/debug/sys-devel/gcc-15.1.1_p20250510/gcc-15-20250510/gcc/tree-ssa-structalias.cc:3660 0x627148f7e06a get_constraint_for_address_of /usr/src/debug/sys-devel/gcc-15.1.1_p20250510/gcc-15-20250510/gcc/tree-ssa-structalias.cc:3574 0x627148f7d2b0 get_constraint_for_1 /usr/src/debug/sys-devel/gcc-15.1.1_p20250510/gcc-15-20250510/gcc/tree-ssa-structalias.cc:3739 0x627148f7c876 create_variable_info_for /usr/src/debug/sys-devel/gcc-15.1.1_p20250510/gcc-15-20250510/gcc/tree-ssa-structalias.cc:6579 0x627148f7c876 get_vi_for_tree /usr/src/debug/sys-devel/gcc-15.1.1_p20250510/gcc-15-20250510/gcc/tree-ssa-structalias.cc:3049 0x627148f861b2 ipa_pta_execute /usr/src/debug/sys-devel/gcc-15.1.1_p20250510/gcc-15-20250510/gcc/tree-ssa-structalias.cc:8490 0x627148f861b2 execute /usr/src/debug/sys-devel/gcc-15.1.1_p20250510/gcc-15-20250510/gcc/tree-ssa-structalias.cc:8871 Please submit a full bug report, with preprocessed source. Please include the complete backtrace with any bug report. See <https://bugs.gentoo.org/> for instructions. ``` so it should be the same as the bug I linked and fixed in the next snapshot.
(In reply to Sam James from comment #4) > (In reply to Perfect Gentleman from comment #1) > > Created attachment 928707 [details] > > shaderc > > > > as example > > Please include preprocessed source for one of the failing commands (run one > of the "FAILED:" lines w/ -save-temps appended, show me the command + the > .i(i) it creates). -freport-bug may also work instead of -save-temps BTW and > it recently got fixed, so that is preferable if it does the job. (In reply to Sam James from comment #5) > This might be the same as https://gcc.gnu.org/PR120146. If so, it'll be > fixed in the next 15 snapshot. I confirm that https://gcc.gnu.org/cgit/gcc/commit/?id=47e830211d39b5efb14144bbdaf8f2d83ba8375e fixes the error.
Thank you for testing the snapshots.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69fb19f051bcd497901ca43ad378d0d14bf0b395 commit 69fb19f051bcd497901ca43ad378d0d14bf0b395 Author: Sam James <sam@gentoo.org> AuthorDate: 2025-05-18 08:04:04 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-05-18 08:04:16 +0000 sys-devel/gcc: add 15.1.1_p20250517 Closes: https://bugs.gentoo.org/955914 Signed-off-by: Sam James <sam@gentoo.org> sys-devel/gcc/Manifest | 1 + sys-devel/gcc/gcc-15.1.1_p20250517.ebuild | 56 +++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+)