https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: dev-libs/fortran-stdlib-0.6.1 fails to compile. Discovered on: amd64 (internal ref: guru_tinderbox) System: GCC-15-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#GCC-15) Info about the issue: https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
CC'ing also toolchain@ because it is an ICE
Created attachment 899064 [details] build.log build log and emerge --info
Error(s) that match a know pattern in addition to what has been reported in the summary: FAILED: src/CMakeFiles/fortran_stdlib.dir/stdlib_logger.f90.o src/mod_files/stdlib_logger.mod internal compiler error: in build_function_decl, at fortran/trans-decl.cc:2447 internal compiler error: in build_function_decl, at fortran/trans-decl.cc:2447
Can you give me preprocessed sources please? ``` FAILED: src/CMakeFiles/fortran_stdlib.dir/stdlib_logger.f90.o src/mod_files/stdlib_logger.mod /usr/bin/x86_64-pc-linux-gnu-gfortran -I/var/tmp/portage/dev-libs/fortran-stdlib-0.6.1/work/stdlib-0.6.1/src -I/var/tmp/portage/dev-libs/fortran-stdlib-0.6.1/work/stdlib-0.6.1_build/src/mod_files -O2 -march=x86-64 -pipe -pipe -frecord-gcc-switches -fno-diagnostics-color -fmessage-length=0 -fimplicit-none -ffree-line-length-132 -Jsrc/mod_files/ -fPIC -fpreprocessed -c src/CMakeFiles/fortran_stdlib.dir/stdlib_logger.f90-pp.f90 -o src/CMakeFiles/fortran_stdlib.dir/stdlib_logger.f90.o ``` Run this: ``` /usr/bin/x86_64-pc-linux-gnu-gfortran -I/var/tmp/portage/dev-libs/fortran-stdlib-0.6.1/work/stdlib-0.6.1/src -I/var/tmp/portage/dev-libs/fortran-stdlib-0.6.1/work/stdlib-0.6.1_build/src/mod_files -O2 -march=x86-64 -pipe -pipe -frecord-gcc-switches -fno-diagnostics-color -fmessage-length=0 -fimplicit-none -ffree-line-length-132 -Jsrc/mod_files/ -fPIC -fpreprocessed -c src/CMakeFiles/fortran_stdlib.dir/stdlib_logger.f90-pp.f90 -o src/CMakeFiles/fortran_stdlib.dir/stdlib_logger.f90.o -save-temps ``` inside the builddir at /var/tmp/portage/dev-libs/fortran-stdlib-0.6.1/work/stdlib-0.6.1_build. I don't know what filename it creates, it might be XXX.F90 (f->F). You can look for filenames beginning with stdlib_logger after running the command.
The fortran-stdlib 0.7.0 was released and I will package it soon and then check against GCC-15. However I expect the same issue for 0.7.0 too.
Reported upstream at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116292 (in a kind of messy way as I reduced it badly).
The 0.7.0 and upstream are affected too. As I could see from gcc bugzilla discussion the issue is GCC regression, isn't it? So I currently didn't report to fortran-stdlib upstream. Waiting for GCC fix now.
(In reply to Sergey Torokhov from comment #7) > The 0.7.0 and upstream are affected too. As I could see from gcc bugzilla > discussion the issue is GCC regression, isn't it? So I currently didn't > report to fortran-stdlib upstream. Waiting for GCC fix now. Correct -- yes, unless we hear otherwise, let's treat it as solely a GCC bug and wait and see what they do.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aec6f016c5c69610cef87683e40c84615e83da2b commit aec6f016c5c69610cef87683e40c84615e83da2b Author: Sam James <sam@gentoo.org> AuthorDate: 2024-08-18 22:50:50 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-08-18 22:51:13 +0000 sys-devel/gcc: add 15.0.0_pre20240818 Closes: https://bugs.gentoo.org/937358 Closes: https://bugs.gentoo.org/938157 Signed-off-by: Sam James <sam@gentoo.org> sys-devel/gcc/Manifest | 1 + sys-devel/gcc/gcc-15.0.0_pre20240818.ebuild | 52 +++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+)