GNU Compiler Collection GCCΒΆ
Summary
Source: https://gcc.gnu.org/
License: GPL
Path: /usr/ and /software/gcc
Documentation: https://gcc.gnu.org/onlinedocs/
GCC development is a part of the GNU Project, aiming to improve the compiler used in the GNU system including the GNU/Linux variant. The GCC development effort uses an open development environment and supports many other platforms in order to foster a world-class optimizing compiler, to attract a larger team of developers, to ensure that GCC and the GNU system work on multiple architectures and diverse environments, and to more thoroughly test and extend the features of GCC.
EL9 comes with gcc 11.4.x. The compiler is recent enough for almost all applications. gcc, gfortran et al. are installed in /usr/bin/ and do not need any special setup.
gcc 11.4 is an entirely different generation than gcc 4.8, the standard compiler on Centos 7. Most code nevertheless compiles without major problem, but occasionally requires additional compiler flags. Legacy Fortran code frequently requires -fallow-argument-mismatch since gcc 11.4 is somewhat more strict.
A few more gcc versions are available in addition to the standard gcc 11.4.
module load maxwell
module avail gcc
will show additional options.Currently those are v10.5 and v12.2.
module load maxwell gcc/<version>
to select an alternative gcc.
Please note that gcc 10.5 comes with a libstdc++ which is too old for some application, so expect some problems after loading the gcc 10.5 environment.