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

Error while building CESM1.0.4

Hello, I am trying building CESM 1.0.4, compset F1850C5. But getting the following error while building:...CCSM BUILDNML SCRIPT STARTING
 - To prestage restarts, untar a restart.tar file into /ecofs/gbala/angshuman/re_f1co2/re_f1co2/run
 - Create modelio namelist input files
 CCSM BUILDNML SCRIPT HAS FINISHED SUCCESSFULLY
-------------------------------------------------------------------------
 CCSM PRESTAGE SCRIPT STARTING
 - CCSM input data directory, DIN_LOC_ROOT_CSMDATA, is /ecofs/gbala/cesm_inputdata/
 - Case input data directory, DIN_LOC_ROOT, is /ecofs/gbala/cesm_inputdata/
 - Checking the existence of input datasets in DIN_LOC_ROOT
 CCSM PRESTAGE SCRIPT HAS FINISHED SUCCESSFULLY
-------------------------------------------------------------------------
 CCSM BUILDEXE SCRIPT STARTING
 - Build Libraries: mct pio csm_share
Mon Feb 16 03:29:56 PST 2015 /ecofs/gbala/angshuman/re_f1co2/re_f1co2/mct/mct.bldlog.150216-032955
Mon Feb 16 03:30:31 PST 2015 /ecofs/gbala/angshuman/re_f1co2/re_f1co2/pio/pio.bldlog.150216-032955
ERROR: pio.buildlib failed, see /ecofs/gbala/angshuman/re_f1co2/re_f1co2/pio/pio.bldlog.150216-032955
ERROR: cat /ecofs/gbala/angshuman/re_f1co2/re_f1co2/pio/pio.bldlog.150216-032955
...Please find the attached pio.bldlog.150216-032955 file.I found from this forum to add a flag -DNO_MPI2 in the Macros file. However, even after adding (in line no. 29 and 31 in attached Macros file) the DNO_MPI2 flag for CPPDEFS , i am getting the same error.Probably, I am not changing at the correct line in macros file.Please find the attched Macros file as well. Many thanksAngshuman  
 

jedwards

CSEG and Liaisons
Staff member
Does the following program compile correctly? program mpitest  use mpi, only : MPI_ROOT  print *,'hi 'end program If it does not you have a broken mpi library.   
 
Hello,

Thanks. After using the flag -DNO_MPI2 in the use_mpiserial flag in Macros.$MACH file,
I am not getting the error in the pio.bldlog file. Actually for the DNO_MPI2 to be used
I have changed the flag USE_MPISERIAL in env_conf.xml file to 'TRUE'.

But another error is coming up in the atm.bldlog file. Please find the attached atm.bldlog file.
(I have created a new case. path: /home/gbala/angshuman/1xco2_fsst/cesm1_0_4/scripts/1xco2_fsst)

...
fortcom: Error: /home/gbala/angshuman/1xco2_fsst/cesm1_0_4/models/atm/cam/src/utils/spmd_utils.F90, line 51: This name has already been assigned a data type.   [MPI_STATUS_IGNORE]
   integer :: mpi_status_ignore     ! Needs to be defined in mpi-serial
--------------^
compilation aborted for /home/gbala/angshuman/1xco2_fsst/cesm1_0_4/models/atm/cam/src/utils/spmd_utils.F90 (code 1)
gmake: *** [spmd_utils.o] Error 1
...

Could you please suggest what is going wrong.

Many Thanks
Angshuman
 

jedwards

CSEG and Liaisons
Staff member
It's not clear to me what you intend - do you really want a serial job?  If the answer is no then you should not set mpi-serial to true.Try your build again from scratch, be sure and first remove the build directory completely so that you get a clean build.  rm -fr /ecofs/gbala/angshuman/re_f1co2/re_f1co2/
 
Top