I am compiling exciting carbon for Linux Debian 9.3 stretch with gfortran 6.3.0 and I get the following error:
gfortran -O3 -march=native -fopenmp -DUSEOMP -ffree-line-length-0 -cpp -DXS -DISO -DLIBXC -I./finclude -c ../../src/modspdb.f90
../../src/modspdb.f90:7:10:
Use modspdb
1
Fatal Error: Can't open module file ‘modspdb.mod’ for reading at (1): No such file or directory
compilation terminated.
Makefile.mkmf:1004: recipe for target 'modspdb.o' failed
make[3]: *** [modspdb.o] Error 1
make[3]: Leaving directory '/home/bene/home/tutorials/exciting/build/serial'
../Make.common:39: recipe for target 'bin' failed
make[2]: *** [bin] Error 2
make[2]: Leaving directory '/home/bene/home/tutorials/exciting/build/serial'
Makefile:3: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/bene/home/tutorials/exciting/build/serial'
Makefile:14: recipe for target 'serial' failed
Here is my /build/make.inc file:
F90 = gfortran
F77 = $(F90)
F90_OPTS = -O3 -march=native -fopenmp -DUSEOMP -ffree-line-length-0
F77_OPTS = $(F90_OPTS)
CPP_ON_OPT = -cpp -DXS -DISO -DLIBXC
LIB_ARP = libarpack.a
# uncomment this line in case you want to use external LAPACK/BLAS library
#export USE_SYS_LAPACK=true
LIB_LPK = -L./ -llapack -lblas
LIB_FFT = fftlib.a
LIB_BZINT = libbzint.a
LIBS = $(LIB_ARP) $(LIB_LPK) $(LIB_FFT) $(LIB_BZINT)
F90_DEBUGOPTS = -g -fbounds-check -fbacktrace -Wall -ffree-line-length-0
F77_DEBUGOPTS = $(F90_DEBUGOPTS)
#Ignore if you don't have MPI or smplibs
MPIF90 = mpif90
MPIF90_OPTS = $(F90_OPTS) $(CPP_ON_OPT) -DMPI -DMPIRHO -DMPISEC
F77MT = $(F77)
F90MT = $(F90)
SMP_LIBS = $(LIBS)
SMPF90_OPTS = -fopenmp $(F90_OPTS)
SMPF77_OPTS = $(SMPF90_OPTS)
Do you have any suggestions on how to fix this error?
Thanks,
Benedikt
Unfold
Compilaton error: "Can't open module file ‘modspdb.mod" by
Benedikt Maurer (guest), 14 Jan 2018 13:43
