CLM5.0 Build Error.

Immi

Imiraan
New Member
Hello Discuss CESM Community,

I am clonning CLM 5.0 to my ubuntu-latest system. For which I have followed the below steps.

1st
git clone -b release-clm5.0 GitHub - ESCOMP/CTSM: Community Terrestrial Systems Model (includes the Community Land Model of CESM) clm5.0

cd clm5.0

./manage_externals/checkout_externals

2nd
export CIME_MODEL="cesm"
export CTSMROOT="$home/swelab/clm5.0"

3rd
./create_newcase --case test0 --mach ubuntu-latest --res f09_g17 --compset I1850Clm50Sp

4th
cd test0
./xmlchange CLM_FORCE_COLDSTART=off,RUN_TYPE=startup
./xmlchange RUN_STARTDATE=2010-01-01,STOP_OPTION=ndays,STOP_N=1
./xmlchange DATM_CLMNCEP_YR_ALIGN=1
./xmlchange DATM_CLMNCEP_YR_START=2010,DATM_CLMNCEP_YR_END=2010
export datas="/home/swelab/cesm/inputdata"
./xmlchange --file env_run.xml --id DIN_LOC_ROOT --val $datas
./xmlchange --file env_run.xml --id DIN_LOC_ROOT_CLMFORC --val $datas/atm/datm

5th
./case.setup

However, when I am running the ./case.build command. I am getting the below error. I am unable to resolve this error; when asked by GPT, it says it's a problem with the CLM. Can someone guide me on how to fix this issue?



Topost.png
 

Immi

Imiraan
New Member
I searched and read on various platforms that a BOZ literal-related error can be avoided by adding -fallow-argument-mismatch and -fallow-invalid-boz to Fortran sources in config_compilers.xml. However, even after adding these, I am still facing the same error.

ToPost1.png
 
Vote Upvote 0 Downvote

jedwards

CSEG and Liaisons
Staff member
It looks like you are porting to a recent version of the gcc compiler. If you had provided the requested information in your post I would
know this instead of just guessing. For versions of gcc 10 and newer you need to add flags " -fallow-argument-mismatch -fallow-invalid-boz "
 
Vote Upvote 0 Downvote

Immi

Imiraan
New Member
Thank you, Jedwards, for the answer. As I have mentioned in my previous comment and shared the picture as well, I read that for versions of gcc 10 and newer, we need to add flags, which I have added to config_compilers.xml. However, the error is consistent. My first comment shows the detail of the error I am getting, and my second comment shows the config_compilers.xml where I have added flags.
 
Vote Upvote 0 Downvote
Back
Top