I am getting an internal compiler error using ifort. Version information:
Intel(R) Fortran Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 188.8.131.52 Build 20180210
mpiifort -DMATRIX_SINGLE -O3 -w -fpp2 -recursive -align all -qopenmp -DMPI -g -I../camb -I/proj/snic2017-1-260/camille/mceng/currsrc -I/proj/snic2017-1-260/camille/raregal/rgnew -I. -I/proj/snic2017-1-260/inigo/CUBPACK_IFC -I/proj/snic2017-1-260/inigo -DNOWMAP -c xcsclusters.f90
catastrophic error: **Internal compiler error: internal abort** Please report this error along with the circumstances in which it occurred in a Software Problem Report. Note: File and line given may not be explicit cause of this error.
compilation aborted for xcsclusters.f90 (code 1)
make: *** [xcsclusters.o] Error 1
Well, an internal compiler error is always a compiler error. So the best thing is to provide a so called minimal reproducer, i.e. a code example as small as possible and still big enough to trigger to ICE and submit it to the official Intel support. Until the issue gets fixed, it might be much harder to find a workaround. Apparently your code is a hybrid OpenMP and MPI code, which doesn't make it any easier.
This issue is better to be reported via our Online Service Center at https://supporttickets.intel.com/ for further investigation.
Instructions on how to file a ticket are available here:
Intel Customer Support