What GCC versions are available in Red Hat Enterprise Linux?

Solution Verified - Updated

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?
  • Are the GCC Toolset and Developer Toolset available for my RHEL version?

Resolution

Primary Compiler Packages
RHEL ReleaseGCC Version
RHEL 1014
RHEL 911
RHEL 88
RHEL 74.8
RHEL 64.4
RHEL 54.1
RHEL 43.4
RHEL 33.2
GCC Toolset ReleaseGCC Version
GCC Toolset 1414.2.1
GCC Toolset 1313.2.1
GCC Toolset 1212.2.1
GCC Toolset 1111.2.1
GCC Toolset 1010.2.1
GCC Toolset 99.2.1
Developer Toolset ReleaseGCC Version
DTS 99.1
DTS 88.2
DTS 77.2
DTS 66.2
DTS 45
DTS 34.9
DTS 24.8
DTS 14.7
Compiler Backward Compatibility

Compatibility packages are available to provide build compatibility with code built under earlier releases:

RHEL ReleaseCompiler Compat Library
RHEL 8 and laterNo compiler backwards compatibility library
RHEL 7compat-gcc-44 (gcc 4.4 compatibility with code built under RHEL 6)
RHEL 6compat-gcc-34 (gcc 3.4 compatibility with code built under RHEL 4)
RHEL 5compat-gcc-34 (gcc 3.4 compatibility with code built under RHEL 4)
RHEL 4compat-gcc-32 (gcc 3.2 compatibility with code built under RHEL 3)
RHEL 3compat-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 Releaselibstdc++ Compat Library
RHEL 8 and laterNo C++ standard library backwards compatibility library
RHEL 7compat-libstdc++-33 (3.3 compatibility)
RHEL 6compat-libstdc++-33 (3.3 compatibility)
compat-libstdc++-296 (2.96 compatibility)
RHEL 5compat-libstdc++-33 (3.3 compatibility)
compat-libstdc++-296 (2.96 compatibility)
RHEL 4compat-libstdc++-33 (3.3 compatibility)
compat-libstdc++-296 (2.96 compatibility)
SBR
Components
Category

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.