Bug 2241139

Summary: -fstack-protector-strong FLAG causes compiler error on aarch64
Product: [Fedora] Fedora Reporter: Sébastien Le Roux <sebastien.leroux>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: alex.ploumistos, dmalcolm, dominik, fweimer, jakub, jlaw, jwakely, mcermak, mpolacek, msebor, nickc, sipoyare
Target Milestone: ---   
Target Release: ---   
Hardware: aarch64   
OS: Linux   
URL: https://koji.fedoraproject.org/koji/taskinfo?taskID=106686985
Whiteboard:
Fixed In Version: gcc-13.2.1-6.fc39 gcc-13.2.1-7.fc38 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-12-08 01:39:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sébastien Le Roux 2023-09-28 08:37:14 UTC
In the past weeks the updates of GCC for Fedora (and Debian) 
have introduce few identical Fortran modifications:

fortran/108961
fortran/109684
fortran/110825

As a result Fortran90 compilation fails on aarch64 (and arm64 on Debian). 
No idea if all Fortran programs are affected, but it is the case for my package 'atomes'

It seems that this bug has already been reported here: 

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111528

Reproducible: Always

Steps to Reproduce:
1.mock or Koji build on aarch64 for F39 or F40
Actual Results:  
Compiler error, build is impossible.

Expected Results:  
No error, build is possible.

The error message: 

fortran/spherical.F90:179:36: error: unrecognizable insn:
  179 |   !$OMP DO SCHEDULE(STATIC,NS/NUMTH)
      |                                    ^
(insn 1295 924 926 20 (parallel [
            (set (reg:DI 24 x24)
                (zero_extend:DI (mem/c:SI (plus:DI (reg/f:DI 29 x29)
                            (const_int -260 [0xfffffffffffffefc])) [29 %sfp+-260 S4 A32])))
            (set (reg:DI 7 x7)
                (zero_extend:DI (mem/c:SI (plus:DI (reg/f:DI 29 x29)
                            (const_int -256 [0xffffffffffffff00])) [29 %sfp+-256 S4 A32])))
        ]) "fortran/spherical.F90":184:35 -1
     (nil))
*** WARNING *** there are active plugins, do not report this as a bug unless you can reproduce it without enabling any plugins.
Event                            | Plugins
PLUGIN_FINISH_UNIT               | annobin: Generate final annotations
PLUGIN_START_UNIT                | annobin: Generate global annotations
PLUGIN_ALL_PASSES_START          | annobin: Generate per-function annotations
PLUGIN_ALL_PASSES_END            | annobin: Register per-function end symbols
during RTL pass: cprop_hardreg
fortran/spherical.F90:179:36: internal compiler error: in extract_insn, at recog.cc:2791
Please submit a full bug report, with preprocessed source.
See <http://bugzilla.redhat.com/bugzilla> for instructions.

Comment 1 Fedora Update System 2023-12-06 11:46:33 UTC
FEDORA-2023-1c6b112a75 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-1c6b112a75

Comment 2 Fedora Update System 2023-12-07 01:49:05 UTC
FEDORA-2023-1c6b112a75 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-1c6b112a75`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-1c6b112a75

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 3 Fedora Update System 2023-12-08 01:39:12 UTC
FEDORA-2023-1c6b112a75 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 4 Fedora Update System 2024-03-17 11:34:13 UTC
FEDORA-2024-a5ef56504d (gcc-13.2.1-7.fc38) has been submitted as an update to Fedora 38.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-a5ef56504d

Comment 5 Fedora Update System 2024-03-18 03:22:06 UTC
FEDORA-2024-a5ef56504d has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-a5ef56504d`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-a5ef56504d

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2024-03-24 01:35:46 UTC
FEDORA-2024-a5ef56504d (gcc-13.2.1-7.fc38) has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.