GCC suite

Description

The GNU Compiler Collection includes front ends for C, C++, Objective-C, Fortran, Java, Ada, and Go, as well as libraries for these languages (libstdc++, libgcj,...). It produces binaries which, depending upon the application, can be highly competitive with those produced by the Intel suite.

User instructions

GCC 6.3.0 is installed on all the workstations from the repositories. Newer and older versions can be used by loading the appropriate mdoule into your environment.

$ module load gcc/7.1.0

Note

Most libraries are not compiled for versions of gcc other than 6.3 but can be recompiled upon request with if required.

License

GNU General Public License v3 and GNU Lesser General Public License v2.1. There is also an exception granted for the GCC Runtime Library.

Admin notes

Do not compile GCC directly on an NFS-mounted drive. The documentation warns weird things can result and I can confirm this...

tar -xf gcc-7.1.0.tar.bz2
(cd gcc-7.1.0; ./contrib/download_prerequisites)
mkdir build-7.1.0; cd build-7.1.0
../gcc-7.1.0/configure --prefix=/common/debian/9.1/Core/gcc/gcc-7.1.0 --disable-multilib
make
make install