From Fedora Project Wiki

Revision as of 05:15, 18 November 2020 by Codonell (talk | contribs) (Updated all sections with valid text.)


GNU Toolchain update (gcc 11, glibc 2.33)

Summary

Switch the Fedora 33 GNU Toolchain to gcc 11, binutils 2.35, and glibc 2.33.

The binutils 2.35 change is being tracked here: https://fedoraproject.org/wiki/Changes/BINUTILS235

The gcc 11 and glibc 2.33 change will be tracked in this top-level GNU Toolchain system-wide update.

Owner

Current status

  • Targeted release: Fedora 34
  • Last updated: 2020-11-18
  • FESCo issue: <will be assigned by the Wrangler>
  • Tracker bug: <will be assigned by the Wrangler>
  • Release notes tracker: <will be assigned by the Wrangler>

Detailed Description

The GNU Compiler Collection, GNU C Library, and GNU Binary Utilities make up the core part of the GNU Toolchain and it is useful to transition these components as a complete implementation when making a new release of Fedora.

The GNU Compiler Collection will be releasing version 11 containing many new features documented here: https://gcc.gnu.org/gcc-11/changes.html. We have been tracking gcc 11 development by building packages out of koji using a continuous tester.

The GNU C Library version 2.33 will be released at the beginning of February 2020; we have started closely tracking the glibc 2.33 development code in Fedora Rawhide and are addressing any issues as they arise. Given the present schedule Fedora 34 will branch after the glibc 2.33 upstream release. However, the mass rebuild schedule means Fedora 34 will mass rebuild (if required) after glibc 2.33 upstream freezes ABI for release, but before the actual release, so careful attention must be paid to any last minute ABI changes.

Benefit to Fedora

Stays up to date with latest features, improvements security and bug fixes from gcc and glibc upstream.

Scope

  • Proposal owners: Fedora Toolchain Team (gcc, glibc, binutils, ...)
  • Other developers: Developers need to ensure that gcc, binutils, and glibc in rawhide is stable and ready for the Fedora 34 branch. Given that glibc is backwards compatible and we have been testing the new glibc in rawhide it should make very little impact when updated, except for the occasional deprecation warnings and removal of legacy interfaces from public header files.
  • Release engineering: #
  • Policies and guidelines: The policies and guidelines do not need to be updated.
  • Trademark approval: N/A (not needed for this Change)

Upgrade/compatibility impact

The compiler, and the the library are backwards compatible with the previous version of Fedora.

Some packaging changes may be required for the glibc 2.33 rebase: https://sourceware.org/glibc/wiki/Release/2.33#Packaging_Changes

Some source changes may be required for gcc 11 rebase: https://gcc.gnu.org/gcc-11/changes.html

We fully expect to fix all packaging changes in Fedora Rawhide without impact to the release.

How To Test

The GNU C compiler collection has its own testsuite which is run during the package build and examined by the gcc developers before being uploaded.

The GNU C Library has its own testsuite, which is run during the package build and examined by the glibc developers before being uploaded. This test suite has over 6200 tests that run to verify the correct operation of the library. In the future may also run the microbenchmark to look for performance regressions.

User Experience

Users will see improved performance, many bugfixes and improvements to POSIX compliance, additional locales, etc.

Dependencies

All packages do not need to be rebuilt.

Contingency Plan

  • Contingency mechanism: If gcc 11 proves too disruptive to compiling the distribution, which is not expected, we could revert to gcc 10 for the release. If glibc 2.33 provides too disruptive to compiling the distribution we could rever to 2.32, but given that Rawhide has started tracking glibc 2.33, no show-stopper problems are expected. At this point, we can still revert to upstream version 2.32 if insurmountable problems appear, but to do so may require a mass rebuild to remove new symbols from the ABI/API.
  • Contingency deadline: Upstream glibc ABI freeze deadline of 2021-02-01.
  • Blocks release? Yes, upgrading to gcc 11 blocks the release. Yes, upgrading glibc does block the release. We should not ship without a newer gcc and glibc, there will be gcc and language features that depend on glibc being upgraded. Thus without the upgrade some features will be disabled or fall back to less optimal implementations.

Documentation

The gcc manual contains the documentation for the release and doesn't need any more additional work.

The glibc manual contains the documentation for the release and doesn't need any more additional work.

Release Notes

The GNU Compiler Collection version 11 will be released shortly. See https://gcc.gnu.org/gcc-11/changes.html.

The GNU C Library version 2.32 will be released at the beginning of August 2020. The current NEWS notes can be seen here as they are added: https://sourceware.org/git/?p=glibc.git;a=blob;f=NEWS;hb=HEAD