aamaricci / SciFortran

A library of fortran modules and routines for scientific calculations (*in a way* just like scipy for python)
GNU Lesser General Public License v3.0
160 stars 39 forks source link

compilation not working on ubuntu 20.04.2 #12

Closed DMFTSever closed 2 years ago

DMFTSever commented 2 years ago

Hi, I am having troubls compiling the SciFor library. It works with version 4.7.5 but not from 4.7.6 onwards. The compilation error I get after invoking make is:

/home/severino/Desktop/Codes/QcmPLab/SciFortran/src/SCIFOR.f90:2:7: 2 | USE SF_ARRAYS | 1 Fatal Error: Cannot open module file ‘sf_arrays.mod’ for reading at (1): No such file or directory compilation terminated. make[2]: [src/CMakeFiles/SCIFORLIB.dir/build.make:63: src/CMakeFiles/SCIFORLIB.dir/SCIFOR.f90.o] Error 1 make[1]: [CMakeFiles/Makefile2:1012: src/CMakeFiles/SCIFORLIB.dir/all] Error 2 make: *** [Makefile:130: all] Error 2

I noticed that after invoking cmake I have a modified src/SCIFOR_VERSION.f90 file. I don't know if this is expected behaviour.

Attached are the CMakeCache.txt and CMakeOutput.log files. CMakeCache.txt CMakeOutput.log

UPDATE: I have the same issue with the DMFTTools library, version 2.3.3 works, version 2.3.4 not

Best Sever

aamaricci commented 2 years ago

Should be fixed in version 4.7.8

This was caused by a bad variable naming in the CMakeLists.txt.

aamaricci commented 2 years ago

please, check if the new version compiles properly.

DMFTSever commented 2 years ago

Now everything compiles again. Thanks for fixing it so quickly