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

Build error with CESM1.2.0 in new machine

Hello there,
I'm trying to build a 'test1' case of CESM1.2.0 in a new intel machine. I followed the steps in the user guide, but got this error when running test1.build:-------------------------------------------------------------------------
 CESM BUILDNML SCRIPT STARTING
 - To prestage restarts, untar a restart.tar file into /home/hermoso0/scratch/hugoteam/cesm1_2_0/test1/run
 infile is /home/hermoso0/scratch/cesm1_2_0/scripts/test1/Buildconf/cplconf/cesm_namelist
 CESM BUILDNML SCRIPT HAS FINISHED SUCCESSFULLY
-------------------------------------------------------------------------
-------------------------------------------------------------------------
 CESM PRESTAGE SCRIPT STARTING
 - Case input data directory, DIN_LOC_ROOT, is /home/hermoso0/scratch/inputdata
 - Checking the existence of input datasets in DIN_LOC_ROOT
 CESM PRESTAGE SCRIPT HAS FINISHED SUCCESSFULLY
-------------------------------------------------------------------------
-------------------------------------------------------------------------
 CESM BUILDEXE SCRIPT STARTING
 COMPILER is intel
 - Build Libraries: mct gptl pio csm_share
Tue Aug 23 12:08:48 ADT 2016 /home/hermoso0/scratch/hugoteam/cesm1_2_0/test1/bld/mct/mct.bldlog.160823-120841
Tue Aug 23 12:14:16 ADT 2016 /home/hermoso0/scratch/hugoteam/cesm1_2_0/test1/bld/gptl/gptl.bldlog.160823-120841
Tue Aug 23 12:14:37 ADT 2016 /home/hermoso0/scratch/hugoteam/cesm1_2_0/test1/bld/pio/pio.bldlog.160823-120841
Tue Aug 23 12:18:57 ADT 2016 /home/hermoso0/scratch/hugoteam/cesm1_2_0/test1/bld/csm_share/csm_share.bldlog.160823-120841
Tue Aug 23 12:22:50 ADT 2016 /home/hermoso0/scratch/hugoteam/cesm1_2_0/test1/bld/atm.bldlog.160823-120841
Tue Aug 23 12:22:53 ADT 2016 /home/hermoso0/scratch/hugoteam/cesm1_2_0/test1/bld/lnd.bldlog.160823-120841
Tue Aug 23 12:22:56 ADT 2016 /home/hermoso0/scratch/hugoteam/cesm1_2_0/test1/bld/ice.bldlog.160823-120841
Tue Aug 23 12:22:59 ADT 2016 /home/hermoso0/scratch/hugoteam/cesm1_2_0/test1/bld/ocn.bldlog.160823-120841
Tue Aug 23 12:23:02 ADT 2016 /home/hermoso0/scratch/hugoteam/cesm1_2_0/test1/bld/glc.bldlog.160823-120841
Tue Aug 23 12:23:04 ADT 2016 /home/hermoso0/scratch/hugoteam/cesm1_2_0/test1/bld/wav.bldlog.160823-120841
Tue Aug 23 12:23:07 ADT 2016 /home/hermoso0/scratch/hugoteam/cesm1_2_0/test1/bld/rof.bldlog.160823-120841
Tue Aug 23 12:23:10 ADT 2016 /home/hermoso0/scratch/hugoteam/cesm1_2_0/test1/bld/cesm.bldlog.160823-120841
ERROR: cesm.buildexe.csh failed, see /home/hermoso0/scratch/hugoteam/cesm1_2_0/test1/bld/cesm.bldlog.160823-120841
ERROR: cat /home/hermoso0/scratch/hugoteam/cesm1_2_0/test1/bld/cesm.bldlog.160823-120841

THe file cesm.bldlog.160823-120841 is quite big, so I attached it to the post. Basically, it starts with a "cat: Srcfiles: No such file or directory" and at the end got a ton of errors similar to "shr_mct_mod.F90:(.text+0x1b3): undefined reference to `nf_open_'". It looks to me like a library problem. I loaded the modules 'intel', 'netcdf' and 'openmpi' in env_mach_specific, and set NETCDF_PATH and MPI_PATH in Macros. What am I missing?
 
I was able to solve this, I will post it just in case somebody else has the same problem. In the Macros file I had this line:SLIBS+= $(shell $(NETCDF_PATH)/bin/nc-config --flibs)The problem was solved when I changed it to:SLIBS+= $(shell $(NETCDF_PATH)/bin/nf-config --flibs)Apparently newer versions of netcdf like nf-config better than nc-config.I was also able to solve my problem with the pio directory. I'll post that in the corresponding post.
 

baih

New Member
Hi Ignacio,I had the same error as yours when building my case, but it wasn't solved after I changed 'nc-config' to 'nf-config'. Could you please tell me how you solved your prblem with the pio directory? Thanks a lot!Bai
 
Did you also follow the instructions to download pio? It is not downloaded automatically when downloading CESM because the repostory where it should be is not available. To do so, go into models/utils and execute this command:> svn checkout https://github.com/NCAR/ParallelIO.git/tags/pio1_8_12/pioIf I remember correctly, a utility called genf90 that also failed to download is necessary as well to not have an error here. Go into tools/cprnc and execute this command:> svn checkout https://github.com/PARALLELIO/genf90/tags/genf90_140121 genf90That, along with the nf-config thing, did the trick for me. It should also work for you. 
 
Top