GCC fails to build a newer version of itself. http://0x0.st/oeHH.bin http://0x0.st/oeHX.txt http://0x0.st/oeHK.log
Please attach the full build.log and emerge --info. You can compress the build.log if needed. Note that the GCC ebuild should produce a tarball for you to upload as well.
during GIMPLE pass: isel /var/tmp/portage/sys-devel/gcc-11.3.0/work/gcc-11.3.0/gcc/fortran/check.c: In function ‘gfc_check_fe_runtime_error’: /var/tmp/portage/sys-devel/gcc-11.3.0/work/gcc-11.3.0/gcc/fortran/check.c:6706:1: internal compiler error: in gimple_expand_vec_cond_expr, at gimple-isel.cc:267 6706 | gfc_check_fe_runtime_error (gfc_actual_arglist *a) | ^ Please submit a full bug report, with preprocessed source if appropriate. See <https://bugs.gentoo.org/> for instructions. An ICE on GCC itself :( https://wiki.gentoo.org/wiki/Gcc-ICE-reporting-guide
Created attachment 796285 [details] full build log
Created attachment 796288 [details] emerge --info I retried doing this from an 11.3 compiler. seems that fortran support is causing the ICE. 11.3 is the latest stable for sparc. These logs are from 11.3 being unable to compile itself when USE=fortan.
Created attachment 796291 [details] gimple-isel.ii - self contained source and here is my gcc -v: Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/sparc64-unknown-linux-gnu/11.3.0/lto-wrapper Target: sparc64-unknown-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-11.3.0/work/gcc-11.3.0/configure --host=sparc64-unknown-linux-gnu --build=sparc64-unknown-linux-gnu --prefix=/usr --bindir=/usr/sparc64-unknown-linux-gnu/gcc-bin/11.3.0 --includedir=/usr/lib/gcc/sparc64-unknown-linux-gnu/11.3.0/include --datadir=/usr/share/gcc-data/sparc64-unknown-linux-gnu/11.3.0 --mandir=/usr/share/gcc-data/sparc64-unknown-linux-gnu/11.3.0/man --infodir=/usr/share/gcc-data/sparc64-unknown-linux-gnu/11.3.0/info --with-gxx-include-dir=/usr/lib/gcc/sparc64-unknown-linux-gnu/11.3.0/include/g++-v11 --with-python-dir=/share/gcc-data/sparc64-unknown-linux-gnu/11.3.0/python --enable-languages=c,c++ --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --disable-libunwind-exceptions --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 11.3.0 p5' --disable-esp --enable-libstdcxx-time --disable-libstdcxx-pch --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --disable-multilib --disable-fixed-point --enable-targets=all --enable-libgomp --disable-libssp --disable-libada --disable-cet --disable-systemtap --disable-valgrind-annotations --disable-vtable-verify --disable-libvtv --without-zstd --enable-lto --without-isl --enable-default-pie --enable-default-ssp Thread model: posix Supported LTO compression algorithms: zlib gcc version 11.3.0 (Gentoo 11.3.0 p5)
Confirmed both GCC 11.3.0 and 10.3.1 build successfully with USE=-fortran and both fail with USE=fortran. Will test if I can reproduce one last time before filing a bug upstream. Has anyone else experienced this behavior?
(In reply to Red from comment #6) > Confirmed both GCC 11.3.0 and 10.3.1 build successfully with USE=-fortran > and both fail with USE=fortran. Will test if I can reproduce one last time > before filing a bug upstream. Has anyone else experienced this behavior? Any update?
hey! I have hit a lot of ICEs for sparc, I have been filing them all upstream, forgot I opened a bug here. Closing this.
(In reply to Red from comment #8) > hey! I have hit a lot of ICEs for sparc, I have been filing them all > upstream, forgot I opened a bug here. Closing this. Please CC toolchain@gentoo.org when you file bugs upstream for ICEs, especially for odd platforms.