Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 862417 - sys-devel/gcc-11.3[fortran] fails to build on SPARC with gcc 11.3 (ICE)
Summary: sys-devel/gcc-11.3[fortran] fails to build on SPARC with gcc 11.3 (ICE)
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Sparc64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-31 02:07 UTC by Red
Modified: 2023-01-25 09:00 UTC (History)
0 users

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


Attachments
full build log (oeK1.log.gz,380.58 KB, application/gzip)
2022-07-31 23:39 UTC, Red
Details
emerge --info (oeKj.bin,6.91 KB, text/plain)
2022-07-31 23:43 UTC, Red
Details
gimple-isel.ii - self contained source (oeNf.ii.gz,284.70 KB, text/plain)
2022-07-31 23:46 UTC, Red
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Red 2022-07-31 02:07:04 UTC
GCC fails to build a newer version of itself. 

http://0x0.st/oeHH.bin
http://0x0.st/oeHX.txt
http://0x0.st/oeHK.log
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-31 02:08:18 UTC
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.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-31 02:08:51 UTC
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
Comment 3 Red 2022-07-31 23:39:50 UTC
Created attachment 796285 [details]
full build log
Comment 4 Red 2022-07-31 23:43:19 UTC
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.
Comment 5 Red 2022-07-31 23:46:56 UTC
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)
Comment 6 Red 2022-08-01 22:11:09 UTC
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?
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-24 10:56:07 UTC
(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?
Comment 8 Red 2023-01-24 19:52:11 UTC
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.
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-25 09:00:31 UTC
(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.