GNU Compiler Collection installations at NSC

Directory list:

4-centos6 gcc version 4-centos6
4.5.4 gcc 4.5.4
4.6.3 gcc 4.6.3
4.7.1 gcc 4.7.1
4.7.2 gcc 4.7.2
4.8.2 gcc 4.8.2
4.8.2-shared gcc 4.8.2-shared
4.9.0 gcc 4.9.0
4.9.2 gcc 4.9.2
5.1.0 gcc 5.1.0
system gcc system

Level of support

Tier 2 NSC has only limited experience with this software, but we will try to help as much as possible. We have ran some tests, for example, if the program comes with a test suite, but they may be far from exhaustive. We will try to install and test new versions, as soon as we can.

Please see the page describing our software support categories for more information.
You can also contact for further information.

The GNU Compiler Collection installations are generally maintained by Johan Raber (

How to use the GNU compilers

To use the GNU compilers you need to load the corresponding module, e.g.

module load gcc/4.7.2

The only included compilers of the suite are “gcc”, “g++” and “gfortran”. Using e.g. “gcc” can be done with

gcc -o example example.c

The GNU compilers are fully integrated with the NSC compiler wrappers with the exception of the module “gcc/4-centos6” which is the native, non-NSC-wrapped CentOS version. To use the native CentOS compiler with the NSC compiler wrapper, load the “gcc/system” module.