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

cesm1.2.2 test build problem

Bellanita

New Member
Hello, I'm a new user. I got some problems when performing ./test.build. All my command are as follows.

cd cesm1_2_2/scripts
./create_newcase -case test -res f19_g16 -compset X -mach bella
cd test
./cesm_setup
./test.build

Then I got errors

-------------------------------------------------------------------------
CESM BUILDEXE SCRIPT STARTING
rm: No match.
COMPILER is pgi
- Build Libraries: mct gptl pio csm_share
Mon 27 Jul 17:38:57 CST 2020 /home/bella/opt/cesm/cesm1_2_2/case/test/bld/pgi/mpich/nodebug/nothreads/mct.bldlog.200727-173855
Mon 27 Jul 17:38:57 CST 2020 /home/bella/opt/cesm/cesm1_2_2/case/test/bld/pgi/mpich/nodebug/nothreads/gptl.bldlog.200727-173855
Mon 27 Jul 17:38:57 CST 2020 /home/bella/opt/cesm/cesm1_2_2/case/test/bld/pgi/mpich/nodebug/nothreads/pio.bldlog.200727-173855
ERROR: buildlib.pio failed, see /home/bella/opt/cesm/cesm1_2_2/case/test/bld/pgi/mpich/nodebug/nothreads/pio.bldlog.200727-173855
ERROR: cat /home/bella/opt/cesm/cesm1_2_2/case/test/bld/pgi/mpich/nodebug/nothreads/pio.bldlog.200727-173855

Here I'll post my pio.bldlog.200727-173855

Mon 27 Jul 17:38:57 CST 2020 /home/bella/opt/cesm/cesm1_2_2/case/test/bld/pgi/mpich/nodebug/nothreads/pio.bldlog.200727-173855
set pio_dir=/home/bella/opt/cesm/cesm1_2_2/case/test/bld/pgi/mpich/nodebug/nothreads/pio
cd /home/bella/opt/cesm/cesm1_2_2/case/test/bld/pgi/mpich/nodebug/nothreads/pio
set cmake_opts= -D USER_CMAKE_MODULE_PATH=/home/bella/opt/cesm/cesm1_2_2/scripts/ccsm_utils/CMake
set cmake_opts= -D USER_CMAKE_MODULE_PATH=/home/bella/opt/cesm/cesm1_2_2/scripts/ccsm_utils/CMake -D GENF90_PATH=/home/bella/opt/cesm/cesm1_2_2/tools/cprnc/genf90
gmake /home/bella/opt/cesm/cesm1_2_2/case/test/bld/pgi/mpich/nodebug/nothreads/pio/Makefile MODEL=pio USER_CMAKE_OPTS= -D USER_CMAKE_MODULE_PATH=/home/bella/opt/cesm/cesm1_2_2/scripts/ccsm_utils/CMake -D GENF90_PATH=/home/bella/opt/cesm/cesm1_2_2/tools/cprnc/genf90 PIO_LIBDIR=/home/bella/opt/cesm/cesm1_2_2/case/test/bld/pgi/mpich/nodebug/nothreads/pio -f /home/bella/opt/cesm/cesm1_2_2/scripts/test/Tools/Makefile
cd /home/bella/opt/cesm/cesm1_2_2/case/test/bld/pgi/mpich/nodebug/nothreads/pio; \

cd /home/bella/opt/cesm/cesm1_2_2/case/test/bld/pgi/mpich/nodebug/nothreads/pio; \
CC=mpicc CXX=mpicxx FC=mpif90 LDFLAGS="-time -Wl,--allow-multiple-definition -nomp " cmake -D CMAKE_Fortran_FLAGS:STRING="-i4 -gopt -Mlist -time -Mextend -byteswapio -Mflushz -Kieee -nomp -DLinux -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_SHR_VMATH -DNO_R16 -DLinux -DCPRPGI -I. -I/home/bella/opt/cesm/cesm1_2_2/case/test/bld/pgi/mpich/nodebug/nothreads/include -I/home/bella/opt/cesm/cesm1_2_2/case/test/bld/pgi/mpich/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/home/bella/opt/netcdf/include -I/home/bella/opt/mpich/include -I/home/bella/opt/pnetcdf/include -I/home/bella/opt/cesm/cesm1_2_2/case/test/bld/pgi/mpich/nodebug/nothreads/include -I/home/bella/opt/cesm/cesm1_2_2/models/csm_share/shr" -D CMAKE_C_FLAGS:STRING="-gopt -Mlist -time -nomp -DLinux -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_SHR_VMATH -DNO_R16 -DLinux -DCPRPGI -I. -I/home/bella/opt/cesm/cesm1_2_2/case/test/bld/pgi/mpich/nodebug/nothreads/include -I/home/bella/opt/cesm/cesm1_2_2/case/test/bld/pgi/mpich/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/home/bella/opt/netcdf/include -I/home/bella/opt/mpich/include -I/home/bella/opt/pnetcdf/include -I/home/bella/opt/cesm/cesm1_2_2/case/test/bld/pgi/mpich/nodebug/nothreads/include -I/home/bella/opt/cesm/cesm1_2_2/models/csm_share/shr" -D CMAKE_CXX_FLAGS:STRING="-gopt -Mlist -time -nomp -DLinux -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_SHR_VMATH -DNO_R16 -DLinux -DCPRPGI -I. -I/home/bella/opt/cesm/cesm1_2_2/case/test/bld/pgi/mpich/nodebug/nothreads/include -I/home/bella/opt/cesm/cesm1_2_2/case/test/bld/pgi/mpich/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/home/bella/opt/netcdf/include -I/home/bella/opt/mpich/include -I/home/bella/opt/pnetcdf/include -I/home/bella/opt/cesm/cesm1_2_2/case/test/bld/pgi/mpich/nodebug/nothreads/include -I/home/bella/opt/cesm/cesm1_2_2/models/csm_share/shr" -D CMAKE_VERBOSE_MAKEFILE:BOOL=ON -D NETCDF_DIR:STRING=/home/bella/opt/netcdf -D USER_CMAKE_MODULE_DIR:STRING=/home/bella/opt/cesm/cesm1_2_2/scripts/ccsm_utils/CMake -D PNETCDF_DIR:STRING="/home/bella/opt/pnetcdf" -D USER_CMAKE_MODULE_PATH=/home/bella/opt/cesm/cesm1_2_2/scripts/ccsm_utils/CMake -D GENF90_PATH=/home/bella/opt/cesm/cesm1_2_2/tools/cprnc/genf90 /home/bella/opt/cesm/cesm1_2_2/models/utils/pio
CMake Error: The source directory "/home/bella/opt/cesm/cesm1_2_2/models/utils/pio" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
gmake: *** [/home/bella/opt/cesm/cesm1_2_2/case/test/bld/pgi/mpich/nodebug/nothreads/pio/Makefile] Error 1
exit 1

Should I download the pio?
How can I fix it?
 

Bellanita

New Member
I tried it, but when I perform ./ cesm_setup, I got another errors.

ERROR: must set xml variable NTASKS_CPL to build the model
ERROR: must set xml variable NTASKS_ROF to build the model
ERROR: must set xml variable NTASKS_ICE to build the model
ERROR: must set xml variable NTASKS_WAV to build the model
ERROR: must set xml variable NTASKS_OCN to build the model
ERROR: must set xml variable NTASKS_GLC to build the model
ERROR: must set xml variable MAX_TASKS_PER_NODE to build the model
ERROR: must set xml variable NTASKS_LND to build the model
ERROR: must set xml variable NTASKS_ATM to build the model
 

CESM researcher

HW doctor
New Member
I tried it, but when I perform ./ cesm_setup, I got another errors.

ERROR: must set xml variable NTASKS_CPL to build the model
ERROR: must set xml variable NTASKS_ROF to build the model
ERROR: must set xml variable NTASKS_ICE to build the model
ERROR: must set xml variable NTASKS_WAV to build the model
ERROR: must set xml variable NTASKS_OCN to build the model
ERROR: must set xml variable NTASKS_GLC to build the model
ERROR: must set xml variable MAX_TASKS_PER_NODE to build the model
ERROR: must set xml variable NTASKS_LND to build the model
ERROR: must set xml variable NTASKS_ATM to build the model

This error seems to be the need to design compute nodes.e.g:./xmlchange NTASKS_ATM=${CPUs}
 

Bellanita

New Member
when I performed ./test.build , the same error happened
-------------------------------------------------------------------------
-------------------------------------------------------------------------
CESM BUILDEXE SCRIPT STARTING
rm: No match.
COMPILER is pgi
- Build Libraries: mct gptl pio csm_share
Wed 29 Jul 10:08:58 CST 2020 /home/bella/opt/cesm/cesm1_2_2_1/case/test/bld/pgi/mpich/nodebug/nothreads/mct.bldlog.200729-100856
Wed 29 Jul 10:08:58 CST 2020 /home/bella/opt/cesm/cesm1_2_2_1/case/test/bld/pgi/mpich/nodebug/nothreads/gptl.bldlog.200729-100856
Wed 29 Jul 10:09:01 CST 2020 /home/bella/opt/cesm/cesm1_2_2_1/case/test/bld/pgi/mpich/nodebug/nothreads/pio.bldlog.200729-100856
ERROR: buildlib.pio failed, see /home/bella/opt/cesm/cesm1_2_2_1/case/test/bld/pgi/mpich/nodebug/nothreads/pio.bldlog.200729-100856
ERROR: cat /home/bella/opt/cesm/cesm1_2_2_1/case/test/bld/pgi/mpich/nodebug/nothreads/pio.bldlog.200729-100856

But the pio.bldlog.200729-100856 file is different from before

set pio_dir=/home/bella/opt/cesm/cesm1_2_2_1/case/test/bld/pgi/mpich/nodebug/nothreads/pio
cd /home/bella/opt/cesm/cesm1_2_2_1/case/test/bld/pgi/mpich/nodebug/nothreads/pio
set cmake_opts= -D USER_CMAKE_MODULE_PATH=/home/bella/opt/cesm/cesm1_2_2_1/scripts/ccsm_utils/CMake
set cmake_opts= -D USER_CMAKE_MODULE_PATH=/home/bella/opt/cesm/cesm1_2_2_1/scripts/ccsm_utils/CMake -D
......

[ 37%] Building Fortran object CMakeFiles/pio.dir/pio_types.F90.o
/home/bella/opt/mpich/bin/mpif90 -DUSEMPIIO -D_NETCDF -D_NETCDF4 -D_NOUSEMCT -D_PNETCDF -D_USEBOX -I/home/bella/opt/cesm/cesm1_2_2_1/models/utils/pio -I/home/bella/opt/cesm/cesm1_2_2_1/case/test/bld/pgi/mpich/nodebug/nothreads/pio -I/home/bella/opt/netcdf/include -I/home/bella/opt/pnetcdf/include -i4 -gopt -Mlist -time -Mextend -byteswapio -Mflushz -Kieee -nomp -DLINUX -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_SHR_VMATH -DNO_R16 -DLINUX -DCPRPGI -DHAVE_SLASHPROC -I. -I/home/bella/opt/cesm/cesm1_2_2_1/case/test/bld/pgi/mpich/nodebug/nothreads/include -I/home/bella/opt/cesm/cesm1_2_2_1/case/test/bld/pgi/mpich/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/home/bella/opt/netcdf/include -I/home/bella/opt/mpich/include -I/home/bella/opt/pnetcdf/include -I/home/bella/opt/cesm/cesm1_2_2_1/case/test/bld/pgi/mpich/nodebug/nothreads/include -I/home/bella/opt/cesm/cesm1_2_2_1/models/csm_share/shr -c /home/bella/opt/cesm/cesm1_2_2_1/models/utils/pio/pio_types.F90 -o CMakeFiles/pio.dir/pio_types.F90.o
PGF90-F-0906-Can't find include file pnetcdf.inc (/home/bella/opt/cesm/cesm1_2_2_1/models/utils/pio/pio_types.F90: 294)
PGF90/x86-64 Linux 19.10-0: compilation aborted
gmake[2]: *** [CMakeFiles/pio.dir/pio_types.F90.o] Error 2
gmake[2]: Leaving directory `/home/bella/opt/cesm/cesm1_2_2_1/case/test/bld/pgi/mpich/nodebug/nothreads/pio'
gmake[1]: *** [CMakeFiles/pio.dir/all] Error 2
gmake[1]: Leaving directory `/home/bella/opt/cesm/cesm1_2_2_1/case/test/bld/pgi/mpich/nodebug/nothreads/pio'
gmake: *** [all] Error 2

exit 2
 

Attachments

  • pio.bldlog.200729-100856.txt
    13.6 KB · Views: 4

dbailey

CSEG and Liaisons
Staff member
It looks like you don't have pnetcdf on your system, or at least you are not pointing to the right area:

PGF90-F-0906-Can't find include file pnetcdf.inc (/home/bella/opt/cesm/cesm1_2_2_1/models/utils/pio/pio_types.F90: 294)
 

Bellanita

New Member
It looks like you don't have pnetcdf on your system, or at least you are not pointing to the right area:

PGF90-F-0906-Can't find include file pnetcdf.inc (/home/bella/opt/cesm/cesm1_2_2_1/models/utils/pio/pio_types.F90: 294)
I have pnetcdf on my system. Did you mean something wrong with my environment variable setting of pnetcdf? Here is my setting of pnetcdf

# set pnetcdf
export PNETCDF=/home/bella/opt/pnetcdf
export PNETCDF_LIB=$PNETCDF/lib
export PNETCDF_INC=$PNETCDF/include
export PATH=$PNETCDF/bin:$PATH
export MNAPATH=$PNETCDF/man:$MANPATH
export LD_LIBRARY_PATH=$PNETCDF/lib:$LD_LIBRARY_PATH

And in my config_compilers.xml file , I also set the path of pnetcdf

<compiler MACH="bella">
<NETCDF_PATH>/home/bella/opt/netcdf</NETCDF_PATH>
<PNETCDF_PATH>/home/bella/opt/pnetcdf</PNETCDF_PATH>
<ADD_SLIBS>-L/home/bella/opt/netcdf -lnetcdf -lnetcdff</ADD_SLIBS>
<ADD_CPPDEFS></ADD_CPPDEFS>
<CONFIG_ARGS></CONFIG_ARGS>
<ESMF_LIBDIR></ESMF_LIBDIR>
<MPI_LIB_NAME>mpich</MPI_LIB_NAME>
<MPI_PATH>/home/bella/opt/mpich</MPI_PATH>
</compiler>
 

Bellanita

New Member
I have reinstall pnetcdf, and the pio library buiding was sucessful. However, the csm_share building failed.

COMPILER is pgi
- Build Libraries: mct gptl pio csm_share
Mon 3 Aug 17:11:52 CST 2020 /home/bella/opt/cesm/cesm1_2_2_1/case/test/bld/pgi/mpich/nodebug/nothreads/mct.bldlog.200803-171151
Mon 3 Aug 17:11:52 CST 2020 /home/bella/opt/cesm/cesm1_2_2_1/case/test/bld/pgi/mpich/nodebug/nothreads/gptl.bldlog.200803-171151
Mon 3 Aug 17:11:52 CST 2020 /home/bella/opt/cesm/cesm1_2_2_1/case/test/bld/pgi/mpich/nodebug/nothreads/pio.bldlog.200803-171151
Mon 3 Aug 17:11:52 CST 2020 /home/bella/opt/cesm/cesm1_2_2_1/case/test/bld/pgi/mpich/nodebug/nothreads/csm_share.bldlog.200803-171151
ERROR: buildlib.csm_share failed, see /home/bella/opt/cesm/cesm1_2_2_1/case/test/bld/pgi/mpich/nodebug/nothreads/csm_share.bldlog.200803-171151
ERROR: cat /home/bella/opt/cesm/cesm1_2_2_1/case/test/bld/pgi/mpich/nodebug/nothreads/csm_share.bldlog.200803-171151


And this is csm_share.bldlog.200803-171151

mpif90 -c -I. -I/home/bella/opt/cesm/cesm1_2_2_1/case/test/bld/pgi/mpich/nodebug/nothreads/include -I/home/bella/opt/cesm/cesm1_2_2_1/case/test/bld/pgi/mpich/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/home/bella/opt/netcdf/include -I/home/bella/opt/mpich/include -I/home/bella/opt/pnetcdf/include -I/home/bella/opt/cesm/cesm1_2_2_1/case/test/bld/pgi/mpich/nodebug/nothreads/include -I/home/bella/opt/cesm/cesm1_2_2_1/models/csm_share/shr -I. -I/home/bella/opt/cesm/cesm1_2_2_1/scripts/test/SourceMods/src.share -I/home/bella/opt/cesm/cesm1_2_2_1/models/drv/shr -I/home/bella/opt/cesm/cesm1_2_2_1/models/dead_share -I/home/bella/opt/cesm/cesm1_2_2_1/models/csm_share/shr -I/home/bella/opt/cesm/cesm1_2_2_1/models/utils/esmf_wrf_timemgr -I/home/bella/opt/cesm/cesm1_2_2_1/case/test/bld/lib/include -i4 -gopt -Mlist -time -Mextend -byteswapio -Mflushz -Kieee -nomp -DNUM_COMP_INST_ATM=1 -DNUM_COMP_INST_LND=1 -DNUM_COMP_INST_OCN=1 -DNUM_COMP_INST_ICE=1 -DNUM_COMP_INST_GLC=1 -DNUM_COMP_INST_WAV=1 -DNUM_COMP_INST_ROF=1 -DLINUX -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_SHR_VMATH -DNO_R16 -DLINUX -DCPRPGI -DHAVE_SLASHPROC -Mfree /home/bella/opt/cesm/cesm1_2_2_1/models/csm_share/shr/mct_mod.F90
PGF90-F-0004-Unable to open MODULE file m_mctworld.mod (/home/bella/opt/cesm/cesm1_2_2_1/models/csm_share/shr/mct_mod.F90: 42)
PGF90/x86-64 Linux 19.10-0: compilation aborted
gmake: *** [mct_mod.o] Error 2

gmake complib -j 1 MODEL=csm_share COMPLIB=libcsm_share.a USER_CPPDEFS=" -DNUM_COMP_INST_ATM=1 -DNUM_COMP_INST_LND=1 -DNUM_COMP_INST_OCN=1 -DNUM_COMP_INST_ICE=1 -DNUM_COMP_INST_GLC=1 -DNUM_COMP_INST_WAV=1 -DNUM_COMP_INST_ROF=1" -f /home/bella/opt/cesm/cesm1_2_2_1/scripts/test/Tools/Makefile returned non-zero exit status 2
 

dbailey

CSEG and Liaisons
Staff member
This is failing in the MCT build. Did you do a ./case.build --clean-all first or create a new case?
 
Top