Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

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

  • config_batch.xml.txt
    564 bytes · Views: 0
  • config_compilers.xml.txt
    652 bytes · Views: 0
  • config_machines.xml.txt
    7 KB · Views: 1
  • describe_version.txt
    4.7 KB · Views: 2
  • Macros.make.txt
    2.1 KB · Views: 1

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
 
Top