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

cism.buildlib failed for CESM2.1.4 on Derecho

jhu279

Jie Hu
New Member
Hi, I am following through the 2023 CESM tutorial and using realease-cesm2.1.4 version, when I want to build the case I get failed with CISM, the error message is as follows.

ERROR: BUILD FAIL: cism.buildlib failed, cat /glade/derecho/scratch/jhu279/b.day2.1.1/bld/glc.bldlog.230823-094343.
ERROR cism.buildexe: gmake -j 16 failed: 512

Could you please let me know what tags are ported to Derecho? And how should I follow through the CESM tutorial on Derecho? Thanks!
 

jedwards

CSEG and Liaisons
Staff member
This tag is ported to derecho - but there is a simple change required in cism.

diff --git a/libglimmer/writestats.c b/libglimmer/writestats.c
index b3b81eb2..75741e5e 100644
--- a/libglimmer/writestats.c
+++ b/libglimmer/writestats.c
@@ -40,7 +40,7 @@
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
-
+#include <ctype.h>
 
I running into the following error when attempting to build:

cat /glade/derecho/scratch/jmejia/base_runq/bld/lnd.bldlog.231011-194604

/glade/derecho/scratch/jmejia/cases/base_runq/Tools/Makefile:189: *** NETCDF not found: Define NETCDF_PATH or NETCDF_C_PATH and NETCDF_FORTRAN_PATH in config_machines.xml or config_compilers.xml. Stop.

Any insight? thanks for your help
 
I am forcing the environmental variables for NETCDF paths in the conf_machines.xml files.
NETCDF_PATH > /glade/u/apps/derecho/23.06/spack/opt/spack/netcdf/4.9.2/intel-oneapi-mpi/2021.8.0/oneapi/2023.0.0/pbyg/

However, now I am having the following error when building:

cat /glade/derecho/scratch/jmejia/base_run/bld/lnd.bldlog.231011-210421

This is a weird behavior. I am using cesm v 2.1.3 as indicated in other forums. Any insight is appreciated.




/glade/u/home/jmejia/my_cesm_sandbox/components/clm//cime_config/buildlib:6: DeprecationWarning: the imp module is deprecated in f


avour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses


import sys, os, shutil, imp


gmake complib -j 16 MODEL=clm COMPLIB=/glade/derecho/scratch/jmejia/base_run/bld/intel/mpich/nodebug/nothreads/mct/mct/noesmf/lib/


libclm.a -f /glade/derecho/scratch/jmejia/cases/base_run/Tools/Makefile MACFILE=/glade/derecho/scratch/jmejia/cases/base_run/Macro


s.derecho :





output:


/mkSrcfiles


cp -f Filepath Deppath





err:





gmake: /xmlquery: Command not found


gmake: /xmlquery: Command not found


cat: Srcfiles: No such file or directory


gmake: /mkSrcfiles: Command not found


/glade/derecho/scratch/jmejia/cases/base_run/Tools/Makefile:78: /Macros.make: No such file or directory


gmake: *** No rule to make target '/Macros.make'. Stop.


gmake: *** Waiting for unfinished jobs....





ERROR: Command gmake complib -j 16 MODEL=clm COMPLIB=/glade/derecho/scratch/jmejia/base_run/bld/intel/mpich/nodebug/nothreads/mct/


mct/noesmf/lib/libclm.a -f /glade/derecho/scratch/jmejia/cases/base_run/Tools/Makefile MACFILE=/glade/derecho/scratch/jmejia/cases


/base_run/Macros.derecho failed with rc=2
 
Never mind. I started from scratch and force the use of release-cesm2.1.4. Then, I fixed the missing line in #include <ctype.h> inside libglimmer/writestats.c.
It built smoothly. Thanks.
 

jiamengl

Jiameng Lai
Member
I am forcing the environmental variables for NETCDF paths in the conf_machines.xml files.
NETCDF_PATH > /glade/u/apps/derecho/23.06/spack/opt/spack/netcdf/4.9.2/intel-oneapi-mpi/2021.8.0/oneapi/2023.0.0/pbyg/

However, now I am having the following error when building:

cat /glade/derecho/scratch/jmejia/base_run/bld/lnd.bldlog.231011-210421

This is a weird behavior. I am using cesm v 2.1.3 as indicated in other forums. Any insight is appreciated.




/glade/u/home/jmejia/my_cesm_sandbox/components/clm//cime_config/buildlib:6: DeprecationWarning: the imp module is deprecated in f


avour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses


import sys, os, shutil, imp


gmake complib -j 16 MODEL=clm COMPLIB=/glade/derecho/scratch/jmejia/base_run/bld/intel/mpich/nodebug/nothreads/mct/mct/noesmf/lib/


libclm.a -f /glade/derecho/scratch/jmejia/cases/base_run/Tools/Makefile MACFILE=/glade/derecho/scratch/jmejia/cases/base_run/Macro


s.derecho :





output:


/mkSrcfiles


cp -f Filepath Deppath





err:





gmake: /xmlquery: Command not found


gmake: /xmlquery: Command not found


cat: Srcfiles: No such file or directory


gmake: /mkSrcfiles: Command not found


/glade/derecho/scratch/jmejia/cases/base_run/Tools/Makefile:78: /Macros.make: No such file or directory


gmake: *** No rule to make target '/Macros.make'. Stop.


gmake: *** Waiting for unfinished jobs....





ERROR: Command gmake complib -j 16 MODEL=clm COMPLIB=/glade/derecho/scratch/jmejia/base_run/bld/intel/mpich/nodebug/nothreads/mct/


mct/noesmf/lib/libclm.a -f /glade/derecho/scratch/jmejia/cases/base_run/Tools/Makefile MACFILE=/glade/derecho/scratch/jmejia/cases


/base_run/Macros.derecho failed with rc=2
Hello I wondering how did you add the NETCDF_PATH in conf_machines.xml? I tried add this line
<env name="NETCDF_PATH">/glade/u/apps/derecho/23.06/spack/opt/spack/netcdf/4.9.2/intel-oneapi-mpi/2021.8.0/oneapi/2023.0.0/pbyg/</env>
in <environment_variables> but still got errors about NETCDF_PATH
 
Top