The Developer Toolset (devtoolset) and GNU compilers

This article shows how to enable GNU Fortran compiler version 6.3.1 & 7.3.1 using the Developer Toolsets ("devtoolset-6" and "devtoolset-7) which are installed on jasmin-sci1-test.ceda.ac.uk.

The Developer Toolset is not installed on the generic JASMIN scientific servers and nor on LOTUS. This is under review.

User can you use the  jasmin-sci1-test.ceda.ac.uk server to compile the Fortran code and test it on any JASMIN scientific server.

GNU Fortran compiler version 6.3.1 using devtoolset-6 

Login to:  jasmin-sci1-test.ceda.ac.uk

Launch sub-shell with devtoolset-6 enabled in path:

@jasmin-sci1-test ~]$ scl enable devtoolset-6 bash

Set up in existing SHELL:

jasmin-sci1-test ~]$. /opt/rh/devtoolset-6/enable

Check which GNU Fortran compiler is enabled:

@jasmin-sci1-test ~]$ which gfortran<br>/opt/rh/devtoolset-6/root/usr/bin/gfortran

Check which version of GNU Fortran compiler that Devtoolset-6 supports:

jasmin-sci1-test ~]$ gfortran --version
GNU Fortran (GCC) 6.3.1 20170216 (Red Hat 6.3.1-3)
Copyright (C) 2016 Free Software Foundation, Inc.

Please note to restore default SHELL setting you need to logout & then log in.

GNU Fortran compiler version 7.3.1 using devtoolset-7 

Login to jasmin-sci1-test.ceda.ac.uk

Launch sub-shell with devtoolset-7 enabled in path:

@jasmin-sci1-test ~]$ scl enable devtoolset-7 bash

Set up in existing SHELL:

jasmin-sci1-test ~]$ source /opt/rh/devtoolset-7/enable

Check which GNU Fortran compiler is enabled:

@jasmin-sci1-test ~]$ which gfortran 
/opt/rh/devtoolset-7/root/usr/bin/gfortran

Check which version of GNU Fortran compiler that Devtoolset-6 supports:

jasmin-sci1-test ~]$ gfortran --version 
GNU Fortran (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5)
Copyright (C) 2017 Free Software Foundation, Inc.<br>

Please note to restore default SHELL setting you need to logout & then log in.

Still need help? Contact Us Contact Us