.Updated GCC Toolset 11
GCC Toolset 11 is a compiler toolset that provides recent versions of development tools. It is available as an Application Stream in the form of a Software Collection in the `AppStream` repository.
Notable changes introduced with RHEL 8.6 include:
* The GCC compiler has been updated to version 11.2.1.
* `annobin` has been updated to version 10.23.
The following tools and versions are provided by GCC Toolset 10:
[options="header"]
|====
| Tool | Version
| GCC | 11.2.1
| GDB | 10.2
| Valgrind | 3.17.0
| SystemTap | 4.5
| Dyninst | 11.0.0
| binutils | 2.36.1
| elfutils | 0.185
| dwz | 0.14
| make | 4.3
| strace | 5.13
| ltrace | 0.7.91
| annobin | 10.23
|====
To install GCC Toolset 11, run the following command as root:
[literal]
----
# yum install gcc-toolset-11
----
To run a tool from GCC Toolset 11:
[literal,subs="quotes"]
----
$ scl enable gcc-toolset-11 __tool__
----
To run a shell session where tool versions from GCC Toolset 11 override system versions of these tools:
[literal]
----
$ scl enable gcc-toolset-11 bash
----
For more information about usage, see link:https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/developing_c_and_cpp_applications_in_rhel_8/additional-toolsets-for-development_developing-applications#gcc-toolset_assembly_additional-toolsets-for-development[Using GCC Toolset].
The GCC Toolset 11 components are available in the two container images:
* `rhel8/gcc-toolset-11-toolchain`, which includes the GCC compiler, the GDB debugger, and the `make` automation tool.
* `rhel8/gcc-toolset-11-perftools`, which includes the performance monitoring tools, such as SystemTap and Valgrind.
To pull a container image, run the following command as root:
----
# podman pull registry.redhat.io/<image_name>
----
Note that only the GCC Toolset 11 container images are now supported. Container images of earlier GCC Toolset versions are deprecated.
For details regarding the container images, see link:https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/developing_c_and_cpp_applications_in_rhel_8/additional-toolsets-for-development_developing-applications#using-the-gcc-toolset-container-images_assembly_additional-toolsets-for-development[Using the GCC Toolset container images].
We should update from gcc-11.2.1-3.fc36 (or newer), which brings various changes (updated to latest snapshot, added the libgcc LDFLAGS_FOR_TARGET patch, __VA_OPT__ support, constint thread_local opt, bundled(lib{backtrace,ffi}), ldconfig* fix etc.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (gcc-toolset-11-gcc bug fix and enhancement update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2022:1761
We should update from gcc-11.2.1-3.fc36 (or newer), which brings various changes (updated to latest snapshot, added the libgcc LDFLAGS_FOR_TARGET patch, __VA_OPT__ support, constint thread_local opt, bundled(lib{backtrace,ffi}), ldconfig* fix etc.