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

porting CTSM5.1 on archer2, when .case.build, the error appears

xiaoxiaokuishu

Ru Xu
Member
Hi, all

I run CLM5.0 (driver mct) well on archer2 (uk supercomputer), but when i try to
port the CTSM5.1, run ./case.build, the below error appears, is there anyone
has some suggestions for fix this error.

Building atm with output to /work/n02/n02/ruxu/cesm/CESM/runs/test.20241216-1845/bld/atm.bldlog.241216-185556
- Building rof Library
Building rof with output to /work/n02/n02/ruxu/cesm/CESM/runs/test.20241216-1845/bld/rof.bldlog.241216-185556
datm built in 5.100502 seconds
Component rof build complete with 5 warnings
mosart built in 9.991513 seconds
Building cesm from /mnt/lustre/a2fs-work2/work/n02/n02/ruxu/cesm/CESM/CTSM5.1/components/cmeps/cime_config/buildexe with output to /work/n02/n02/ruxu/cesm/CESM/runs/test.20241216-1845/bld/cesm.bldlog.241216-185556
Error: Symbol 'label_postchildrenadvertise' referenced at (1) not found in module 'nuopc_driver'

Error: Symbol 'ensemble_label_postchildrenadvertise' at (1) has no IMPLICIT type; did you mean 'ensemble_label_setmodelservices'?

ERROR: BUILD FAIL: buildexe failed, cat /work/n02/n02/ruxu/cesm/CESM/runs/test.20241216-1845/bld/cesm.bldlog.241216-185556



Best
Ru
 

xiaoxiaokuishu

Ru Xu
Member
What version of esmf are you using. You need to use v8.4.0 or newer - preferably 8.6.1 or 8.7.0
Hi, Jedwards,

The default ESMF on archer2 is ESMF/8.2.0, so I use default one..... not the version you mentioned,
So my error has nothing to do with nuopc driver right? It is the ESMF version issues.....?

Best
Ru
 

xiaoxiaokuishu

Ru Xu
Member

Sorry, I have a new error,

when i
export ESMFMKFILE=/home/linux-sles15-zen2/gcc-10.3.0/esmf-8.4.1-phihmm6g6tipktv73yt5oic25efkzpxj/lib/esmf.mk,
the above error disappear, but the a serious error appears when I ./case.build


othreads/nuopc/finclude' [-Wmissing-include-dirs]
f951: Warning: Nonexistent include directory '/work/n02/n02/ruxu/cesm/CESM/runs/test.20241216-2045/bld/gnu/mpich/nodebug/nothreads/nuopc/finclude' [-Wmissing-include-dirs]
/mnt/lustre/a2fs-work2/work/n02/n02/ruxu/cesm/CESM/CTSM5.1/src/cpl/share_esmf/ExcessIceStreamType.F90:20:7:

20 | use dshr_strdata_mod , only : shr_strdata_type
| 1
Fatal Error: Mismatch in components of derived type '__vtype_esmf_infocachemod_Esmf_infocache' from 'esmf_infocachemod' at (1): expecting 'esmf_infocacheinitialize', but got 'esmf_infocacheupdatefields'
compilation terminated.
gmake: *** [/work/n02/n02/ruxu/cesm/CESM/runs/test.20241216-2045/Tools/Makefile:975: ExcessIceStreamType.o] Error 1
gmake: *** Waiting for unfinished jobs....
f951: Warning: Nonexistent include directory '/work/n02/n02/ruxu/cesm/CESM/runs/test.20241216-2045/bld/gnu/mpich/nodebug/nothreads/nuopc/finclude' [-Wmissing-include-dirs]

ERROR: Command gmake complib -j 8 COMP_NAME=clm COMPLIB=/work/n02/n02/ruxu/cesm/CESM/runs/test.20241216-2045/bld/gnu/mpich/nodebug/nothreads/nuopc/nuopc/esmf/lib/libclm.a -f /work/n02/n02/ruxu/cesm/CESM/runs/test.20241216-2045/Tools/Makefile CIME_MODEL=cesm SMP=FALSE CASEROOT="/work/n02/n02/ruxu/cesm/CESM/runs/test.20241216-2045" CASETOOLS="/work/n02/n02/ruxu/cesm/CESM/runs/test.20241216-2045/Tools" CIMEROOT="/mnt/lustre/a2fs-work2/work/n02/n02/ruxu/cesm/CESM/CTSM5.1/cime" SRCROOT="/mnt/lustre/a2fs-work2/work/n02/n02/ruxu/cesm/CESM/CTSM5.1" COMP_INTERFACE="nuopc" COMPILER="gnu" DEBUG="FALSE" EXEROOT="/work/n02/n02/ruxu/cesm/CESM/runs/test.20241216-2045/bld" RUNDIR="/work/n02/n02/ruxu/cesm/CESM/runs/test.20241216-2045/run" INCROOT="/work/n02/n02/ruxu/cesm/CESM/runs/test.20241216-2045/bld/lib/include" LIBROOT="/work/n02/n02/ruxu/cesm/CESM/runs/test.20241216-2045/bld/lib" MACH="archer2" MPILIB="mpich" NINST_VALUE="c1a1l1r1" OS="CNL" PIO_VERSION=2 SHAREDLIBROOT="/work/n02/n02/ruxu/cesm/CESM/runs/test.20241216-2045/bld" SMP_PRESENT="FALSE" USE_ESMF_LIB="TRUE" USE_MOAB="FALSE" COMP_ATM="datm" COMP_ICE="sice" COMP_GLC="sglc" COMP_LND="clm" COMP_OCN="socn" COMP_ROF="mosart" COMP_WAV="swav" USE_TRILINOS="FALSE" USE_ALBANY="FALSE" USE_PETSC="FALSE" failed with rc=2
 

xiaoxiaokuishu

Ru Xu
Member
Hi, jedwars,

Ignore the above errors, i already solve it, my model build success now,
but when i submit the case, the warnning appears, this error I can not find anyone report such error in this forum..
the job is not really submit on my side. I did not know why it comes, beside I use ctsm5.1.dev133, the ESMF version is 8.4.1 on Archer2 (Uk supercomputer)..

Loading input file list: 'Buildconf/datm.input_data_list'
Check case OK
submit_jobs case.run
Submit job case.run
Deprecated "arg" node detected in /mnt/lustre/a2fs-work2/work/n02/n02/ruxu/cesm/CESM/runs/test.20241216-2216/env_batch.xml, check files /mnt/lustre/a2fs-work2/work/n02/n02/ruxu/cesm/CESM/CTSM5.1/ccs_config/machines/config_batch.xml
Submitting job script sbatch --time 24:00:00 -q standard --account n02-MRT019867 --export=ALL .case.run --resubmit
Submitted job id is 8334138
Submit job case.st_archive
Deprecated "arg" node detected in /mnt/lustre/a2fs-work2/work/n02/n02/ruxu/cesm/CESM/runs/test.20241216-2216/env_batch.xml, check files /mnt/lustre/a2fs-work2/work/n02/n02/ruxu/cesm/CESM/CTSM5.1/ccs_config/machines/config_batch.xml
Submitting job script sbatch --time 00:20:00 -q standard --account n02-MRT019867 --export=ALL --dependency=afterok:8334138 case.st_archive --resubmit
Submitted job id is 8334139
 

jedwards

CSEG and Liaisons
Staff member
It is a warning, you are using an older version of the config_batch.xml file. The newer version replaces code of form

Code:
<submit_args>                                                                                                                                           
      <arg flag="--time" name="$JOB_WALLCLOCK_TIME"/>                                                                                                       
      <arg flag="-p" name="$JOB_QUEUE"/>                                                                                                                     
    </submit_args>

with

Code:
<submit_args>                                                                                                                                           
      <argument> -q $JOB_QUEUE</argument>                                                                                                                   
      <argument> -l walltime=$JOB_WALLCLOCK_TIME</argument>                                                                                                 
      <argument> -A $PROJECT</argument>                                                                                                                     
    </submit_args>
 

xiaoxiaokuishu

Ru Xu
Member
Sorry, I have a new error,

when i
export ESMFMKFILE=/home/linux-sles15-zen2/gcc-10.3.0/esmf-8.4.1-phihmm6g6tipktv73yt5oic25efkzpxj/lib/esmf.mk,
the above error disappear, but the a serious error appears when I ./case.build


othreads/nuopc/finclude' [-Wmissing-include-dirs]
f951: Warning: Nonexistent include directory '/work/n02/n02/ruxu/cesm/CESM/runs/test.20241216-2045/bld/gnu/mpich/nodebug/nothreads/nuopc/finclude' [-Wmissing-include-dirs]
/mnt/lustre/a2fs-work2/work/n02/n02/ruxu/cesm/CESM/CTSM5.1/src/cpl/share_esmf/ExcessIceStreamType.F90:20:7:

20 | use dshr_strdata_mod , only : shr_strdata_type
| 1
Fatal Error: Mismatch in components of derived type '__vtype_esmf_infocachemod_Esmf_infocache' from 'esmf_infocachemod' at (1): expecting 'esmf_infocacheinitialize', but got 'esmf_infocacheupdatefields'
compilation terminated.
gmake: *** [/work/n02/n02/ruxu/cesm/CESM/runs/test.20241216-2045/Tools/Makefile:975: ExcessIceStreamType.o] Error 1
gmake: *** Waiting for unfinished jobs....
f951: Warning: Nonexistent include directory '/work/n02/n02/ruxu/cesm/CESM/runs/test.20241216-2045/bld/gnu/mpich/nodebug/nothreads/nuopc/finclude' [-Wmissing-include-dirs]

ERROR: Command gmake complib -j 8 COMP_NAME=clm COMPLIB=/work/n02/n02/ruxu/cesm/CESM/runs/test.20241216-2045/bld/gnu/mpich/nodebug/nothreads/nuopc/nuopc/esmf/lib/libclm.a -f /work/n02/n02/ruxu/cesm/CESM/runs/test.20241216-2045/Tools/Makefile CIME_MODEL=cesm SMP=FALSE CASEROOT="/work/n02/n02/ruxu/cesm/CESM/runs/test.20241216-2045" CASETOOLS="/work/n02/n02/ruxu/cesm/CESM/runs/test.20241216-2045/Tools" CIMEROOT="/mnt/lustre/a2fs-work2/work/n02/n02/ruxu/cesm/CESM/CTSM5.1/cime" SRCROOT="/mnt/lustre/a2fs-work2/work/n02/n02/ruxu/cesm/CESM/CTSM5.1" COMP_INTERFACE="nuopc" COMPILER="gnu" DEBUG="FALSE" EXEROOT="/work/n02/n02/ruxu/cesm/CESM/runs/test.20241216-2045/bld" RUNDIR="/work/n02/n02/ruxu/cesm/CESM/runs/test.20241216-2045/run" INCROOT="/work/n02/n02/ruxu/cesm/CESM/runs/test.20241216-2045/bld/lib/include" LIBROOT="/work/n02/n02/ruxu/cesm/CESM/runs/test.20241216-2045/bld/lib" MACH="archer2" MPILIB="mpich" NINST_VALUE="c1a1l1r1" OS="CNL" PIO_VERSION=2 SHAREDLIBROOT="/work/n02/n02/ruxu/cesm/CESM/runs/test.20241216-2045/bld" SMP_PRESENT="FALSE" USE_ESMF_LIB="TRUE" USE_MOAB="FALSE" COMP_ATM="datm" COMP_ICE="sice" COMP_GLC="sglc" COMP_LND="clm" COMP_OCN="socn" COMP_ROF="mosart" COMP_WAV="swav" USE_TRILINOS="FALSE" USE_ALBANY="FALSE" USE_PETSC="FALSE" failed with rc=2
I check the CaseStatus file, it said

---------------------------------------------------
2024-12-16 22:31:42: case.run error
ERROR: ESMFMKFILE not found /home1/home/n02/n02/ruxu/spack/opt/spack/linux-sles15-zen2/gcc-10.3.0/esmf-8.4.1-phihmm6g6tipktv73yt5oic25efkzpxj/lib/esmf.mk
--------------------------------------
but i have the file in this folder, the way i set it is use
export ESMFMKFILE=/home1/home/n02/n02/ruxu/spack/opt/spack/linux-sles15-zen2/gcc-10.3.0/esmf-8.4.1-phihmm6g6tipktv73yt5oic25efkzpxj/lib/esmf.mk

I have a question, if i set it in the wrong way, how the build can success....
 
Top