Environment
- Red Hat Enterprise Linux
- GCC Toolset (GTS)
- Developer Toolset (DTS)
- GNU Compiler Collection (GCC)
Issue
- What GCC versions are available in Red Hat Enterprise Linux?
- What C and C++ compiler comes with RHEL, GCC Toolset, Developer Toolset?
Resolution
Primary Compiler Packages
RHEL Release |
GCC Version |
RHEL 10 |
14 |
RHEL 9 |
11 |
RHEL 8 |
8 |
RHEL 7 |
4.8 |
RHEL 6 |
4.4 |
RHEL 5 |
4.1 |
RHEL 4 |
3.4 |
RHEL 3 |
3.2 |
GCC Toolset Release |
GCC Version |
GCC Toolset 14 |
14.2.1 |
GCC Toolset 13 |
13.2.1 |
GCC Toolset 12 |
12.2.1 |
GCC Toolset 11 |
11.2.1 |
GCC Toolset 10 |
10.2.1 |
GCC Toolset 9 |
9.2.1 |
Developer Toolset Release |
GCC Version |
DTS 9 |
9.1 |
DTS 8 |
8.2 |
DTS 7 |
7.2 |
DTS 6 |
6.2 |
DTS 4 |
5 |
DTS 3 |
4.9 |
DTS 2 |
4.8 |
DTS 1 |
4.7 |
Compiler Backward Compatibility
Compatibility packages are available to provide build compatibility with code built under earlier releases:
RHEL Release |
Compiler Compat Library |
RHEL 8 and later |
No compiler backwards compatibility library |
RHEL 7 |
compat-gcc-44 (gcc 4.4.7 compatibility with code built under RHEL 6) |
RHEL 6 |
compat-gcc-34 (gcc 3.4 compatibility with code built under RHEL 4) |
RHEL 5 |
compat-gcc-34 (gcc 3.4 compatibility with code built under RHEL 4) |
RHEL 4 |
compat-gcc-32 (gcc 3.2 compatibility with code built under RHEL 3) |
RHEL 3 |
compat-gcc (gcc-2.96 compatibility) |
C++ Standard Library Backward Compatibility
Compatibility packages are available to provide runtime compatibility for binary C++ code that was built under earlier releases:
RHEL Release |
libstdc++ Compat Library |
RHEL 8 and later |
No C++ standard library backwards compatibility library |
RHEL 7 |
compat-libstdc++-33 (3.3 compatibility) |
RHEL 6 |
compat-libstdc++-33 (3.3 compatibility)
compat-libstdc++-296 (2.96.x compatibility) |
RHEL 5 |
compat-libstdc++-33 (3.3 compatibility)
compat-libstdc++-296 (2.96 compatibility) |
RHEL 4 |
compat-libstdc++-33 (3.3 compatibility)
compat-libstdc++-296 (2.96 compatibility) |
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments