Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937358 - [guru] dev-libs/fortran-stdlib-0.6.1 fails to compile: internal compiler error: in build_function_decl, at trans-decl.cc:2447
Summary: [guru] dev-libs/fortran-stdlib-0.6.1 fails to compile: internal compiler erro...
Status: RESOLVED FIXED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sergey Torokhov
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-15
  Show dependency tree
 
Reported: 2024-08-05 09:38 UTC by Agostino Sarubbo
Modified: 2024-08-18 22:52 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,211.06 KB, text/plain)
2024-08-05 09:38 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-08-05 09:38:12 UTC
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
Comment 1 Agostino Sarubbo gentoo-dev 2024-08-05 09:38:13 UTC
CC'ing also toolchain@ because it is an ICE
Comment 2 Agostino Sarubbo gentoo-dev 2024-08-05 09:38:14 UTC
Created attachment 899064 [details]
build.log

build log and emerge --info
Comment 3 Agostino Sarubbo gentoo-dev 2024-08-05 09:38:15 UTC
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
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-08-05 10:08:37 UTC
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.
Comment 5 Sergey Torokhov 2024-08-08 19:30:42 UTC
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.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-08-09 17:01:58 UTC
Reported upstream at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116292 (in a kind of messy way as I reduced it badly).
Comment 7 Sergey Torokhov 2024-08-10 21:08:43 UTC
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.
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-08-12 07:28:33 UTC
(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.
Comment 9 Larry the Git Cow gentoo-dev 2024-08-18 22:52:01 UTC
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(+)