Errors building cprnc

ntandon

Neil Tandon
Member
I am attempting to build cprnc according to the instructions in the README file, by running the following commands in cime/tools/cprnc:
COMPILER=intel
MPILIB=intelmpi
CIMEROOT=../.. ../configure --macros-format=Makefile --mpilib=intelmpi
CIMEROOT=../.. source ./.env_mach_specific.sh && make

I am getting the make errors below. I don't understand why I'm getting this error, as the paths in Macros.make (attached) appear to be correct. Do I need to add the include path for netcdf-fortran-mpi to FFLAGS in order for netcdf.mod to be found?

[ 12%] Built target COMPARE_VARS
[ 25%] Building Fortran object CMakeFiles/cprnc.dir/filestruct.F90.o
f951: Warning: Nonexistent include directory ‘/include’ [-Wmissing-include-dirs]
/home/ntandon/my_cesm_sandbox/cime/tools/cprnc/filestruct.F90:2:6:

use netcdf
1
Fatal Error: Can't open module file ‘netcdf.mod’ for reading at (1): No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/cprnc.dir/build.make:80: CMakeFiles/cprnc.dir/filestruct.F90.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:77: CMakeFiles/cprnc.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
 

Attachments

ntandon

Neil Tandon
Member
One additional thing I'm noticing: when I run "cmake .", the first two lines of output are
-- The C compiler identification is GNU 7.3.0
-- The Fortran compiler identification is GNU 7.3.0

...even though I have specified intel as the compiler, both through the configure argument and the COMPILER environment variable. So I think cmake is not receiving the right information from the files that configure produces.
 

ntandon

Neil Tandon
Member
I deleted and re-downloaded the cprnc directory and it worked. I guess ../configure --clean isn't enough to wipe the slate clean! :D
 
Back
Top