I'm trying to compile CMFGEN (http://kookaburra.phyast.pitt.edu/hillier/web/CMFGEN.htm) using IFC 9.0 and while everything compile just fine I'm getting a segfault no matter what I do. Using the debugger it seems the segfault occur on every function CALL within a subroutine (cmfgen_sub.f):
If I copy the code directly inside however, it works.
But then the next call will cause a segfault
CALL GEN_ASCI_OPEN(LU_SE,'STEQ_VALS','UNKNOWN',' ',' ',IZERO,IOS)
this function is called before by the main program (cmfgen.f) and works fine. But from within cmfgen_sub.f, it doesn't.
Am I missing something??
Fortran CALL segfault