Bug 2071068 - GCC 12 hasn't been released yet upstream, but Fedora 36 is going to ship compiled with it
Summary: GCC 12 hasn't been released yet upstream, but Fedora 36 is going to ship comp...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 36
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-01 18:12 UTC by Török Edwin
Modified: 2022-04-01 18:18 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-04-01 18:18:01 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Török Edwin 2022-04-01 18:12:09 UTC
Description of problem:

GCC is version 12 in Fedora 36 Beta, but GCC 12 hasn't been released yet upstream:

gcc --version
gcc (GCC) 12.0.1 20220308 (Red Hat 12.0.1-0)
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

gcc.gnu.org says it is still in Stage 4
Development: GCC 12.0 (release criteria, changes)
    Status: 2022-01-17 (regression fixes & docs only).
https://gcc.gnu.org/pipermail/gcc/2022-January/238136.html
https://gcc.gnu.org/develop.html#timeline

Version-Release number of selected component (if applicable):
gcc-12.0.1-0.12.fc36

How reproducible:
Always

Steps to Reproduce:
1. Install GCC
2. Check whether it is a supported compiler upstream
3.

Actual results:
Not yet a supported compiler upstream

Expected results:
Fedora 36 should be built using a supported compiler

Additional info:
Using a new compiler is fine for Rawhide, and a great way to find bugs, however before shipping a whole distro compiled with an experimental compiler I think Fedora should wait until GCC 12 is released officially by upstream.
Given how a lot of packages have already been rebuilt using GCC 12 I'd suggest to wait with the final release of Fedora 36 until GCC 12 is released upstream (however long that takes).

Comment 1 Török Edwin 2022-04-01 18:16:13 UTC
According to https://fedoraproject.org/wiki/Changes/GNUToolchainF36:
"The GNU Compiler Collection is expected to release version 12 in Q2, before the Fedora 36 release. It will contain many new features, documented here: https://gcc.gnu.org/gcc-12/changes.html. The latest point release for gcc 12 will be included in Fedora 36, this will most probably be 12.1. "
"Contingency mechanism for gcc: If gcc 12 proves too disruptive to compiling the distribution we could revert to gcc 11."

As evidence of GCC 12 being too disruptive see https://bugzilla.redhat.com/show_bug.cgi?id=2044284 where Julia is in danger of being dropped from Fedora 36 due to GCC 12 floating point changes.
It is probably too late to revert to GCC11 now though.

Comment 2 Jakub Jelinek 2022-04-01 18:18:01 UTC
This is completely intentional and we've been doing it for more than a decade.
This is not going to change.


Note You need to log in before you can comment on or make changes to this bug.