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).
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.
This is completely intentional and we've been doing it for more than a decade. This is not going to change.