Compilation 4.1.b4 with Intel tools fails at iogrid_netcdf.F90
Summary:
Hello,
Issue compiling 4.1b4. Any help will be really appreciated. Many thanks in advance
I have modified line 33 of Makefile regarding a recipe that used to work for Siesta #add in Makefile line 33: lib: libfdict.a libncdf.a libSiestaXC.a libfdf.a libSiestaForces.a
Arch.make as follows
.SUFFIXES: .SUFFIXES: .f .F .o .c .a .f90 .F90
SIESTA_ARCH=x86_64-unknown-linux-intel
CC = icc FPP = $(FC) -E -P FC = mpiifort #FC_SERIAL = ifort
#FFLAGS = -O2 -fPIC -fp-model source
#AR = ar RANLIB = ranlib
SYS = nag
SP_KIND = 4 DP_KIND = 8 KINDS = $(SP_KIND) $(DP_KIND)
#LDFLAGS =
FFLAGS= -qopenmp -I/opt/shared/apps/netCDF/4.4.1.1-intel/include/ -I/opt/apps/Siesta/4.1-b4-intel/Obj FPPFLAGS= -DMPI -DFC_HAVE_FLUSH -DFC_HAVE_ABORT -DCDF -DSIESTA__NO_MRRR
LDFLAGS= -qopenmp
ARFLAGS_EXTRA=
FCFLAGS_fixed_f= FCFLAGS_free_f90= FPPFLAGS_fixed_F= FPPFLAGS_free_F90=
BLACS_LIBS= -L${MKLROOT}/lib/intel64 -libmkl_scalapack_lp64 -libmkl_intel_lp64 -libmkl_intel_thread -libmkl_core -libmkl_blacs_intelmpi_lp64 -liomp5 -lpthread -lm -ldl SCALAPACK_LIBS= -L${MKLROOT}/lib/intel64 -libmkl_scalapack_lp64 -libmkl_intel_lp64 -libmkl_intel_thread -libmkl_core -libmkl_blacs_intelmpi_lp64 -liomp5 -lpthread -lm -ldl
#COMP_LIBS=dc_lapack.a liblapack.a libblas.a export NETCDF=/opt/shared/apps/netCDF/4.4.1.1-intel NETCDF_LIBS= -L$(NETCDF)/lib -L/opt/shared/apps/PnetCDF/1.7.0-intel/include -L/opt/shared/apps/HDF5/1.8.19-intel/lib -lnetcdff -lnetcdf -lhdf5_fortran -lhdf5 -lz -liomp5 NETCDF_INTERFACE=-I/apps/PNETCDF/1.8.1/INTEL/IMPI/include
LIBS=$(SCALAPACK_LIBS) $(BLACS_LIBS) $(LAPACK_LIBS) $(BLAS_LIBS) $(NETCDF_LIBS) -L/apps/METIS/5.1.0/INTEL/lib -lmetis
#SIESTA needs an F90 interface to MPI #This will give you SIESTA's own implementation #If your compiler vendor offers an alternative, you may change #to it here. MPI_INTERFACE=libmpi_f90.a MPI_INCLUDE=.
Code version:
v4.1-b4
System information: Centos 7.8
Loaded modules
intel/19.1.1.217
netCDF/4.4.1.1-intel
HDF5/1.8.10-intel
PnetCDF/1.8.1-intel
metis/5.1.0-intel
All of them have been compiled with intel tools.
Compilation output: [Full_PATH]/Src/iogrid_netcdf.F90(133): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [NETCDF] use netcdf
[Full_PATH]/Src/iogrid_netcdf.F90(272): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [NETCDF] use netcdf ----^ [Full_PATH]/Src/iogrid_netcdf.F90(391): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [NETCDF] use netcdf, only: nf90_noerr, nf90_strerror ----^ [Full_PATH]/Src/iogrid_netcdf.F90(157): error #6404: This name does not have a type, and must have an explicit type. [NF90_SHARE] iret = nf90_create(trim(name)//".grid.nc",NF90_SHARE+NF90_WRITE,ncid)
Possible fixes