Main menu

Navigation

Build error with CESM1.2.0 in new machine

5 posts / 0 new
Last post
ihmn.zgz@...
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?

Ignacio HMN

jedwards

You should go back to cesm1.2.2 and follow the instructions to download pio 

CESM Software Engineer

ihmn.zgz@...

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.

Ignacio HMN

baisy@...

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

ihmn.zgz@...

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/pio

If 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 genf90

That, along with the nf-config thing, did the trick for me. It should also work for you.

 

Ignacio HMN

Log in or register to post comments

Who's new

  • kimmo.ruosteeno...
  • wangna@...
  • julio.fernandez@...
  • fjaume@...
  • sha59@...