Table of Contents

Software – GCC

Supported Versions

VersionLocationOperating SysyemNotes
gcc-4.8.5/usr/bin/gccCentOS 7System Default
gcc-5.3.0/usr/local/bin/gccCentOS 7Default on IPPP WS Only
gcc-8.3.1/opt/rh/devtoolset-8/bin/gccCentOS 7Login, WS, GPU, GridUIs
gcc-9.3.1/opt/rh/devtoolset-9/bin/gccCentOS 7Login, WS, GPU, GridUIs
gcc-10.2.1/opt/rh/devtoolset-10/bin/gccCentOS 7Login, WS, GPU, GridUIs
gcc-11.3.1/usr/bin/gccRocky 9System Default
gcc-12.2.1/usr/bin/gccFedora 36System Default
gcc-13.1.1/usr/bin/gccFefora 38System Default

IPPP Defaults

The default GCC depends on the system you’re using. It could be any of the versions listed above; please check with gcc -v

Enabling GCC (Devtoolset) – Source

To enable any of the devtoolset versions of gcc run the following: 

source /opt/rh/devtoolset-<version>/enable

This will load any functions associated with that devtoolset version.

Enabling GCC (Devtoolset) – User Modules 

Run the following command to display a list of modules available to the user: 

module avail

Load GCC module with the following:

module load compilers/<gcc version show in the avail command>

Show Loaded modules:

module list

To unload a module:

module unload compilers/<gcc version shown in list command>