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

Build failure in CTSM5.3

Yiqing Liu

Yiqing Liu
New Member
Dear all,

I’m trying to use CTSM5.3 (Release CTSM 5.3: New surface datasets, git-fleximod intro, Leung dust, explicit AC, Matrix-CN, FATES transient LU, time/history metadata changes · ESCOMP/CTSM) because I found that the crop yields simulated by CESM2.1.5 were unexpectedly low (Low crop yield issue in CLM5 BgcCrop simulations). I’ve made quite a few attempts and was actually able to successfully build CTSM5.3 once.

However, after I reinstalled the PIO and ESMF libraries (this time with PIO support enabled), I can no longer build successfully. The build fails with the following error:
ERROR: /home/test/CTSM5.3/components/cdeps/cime_config/buildlib FAILED, cat /data/cesm/scratch/I2000Clm60BgcCrop.f19_g17.test/bld/CDEPS.bldlog.250801-180239

I’ve attached the full CDEPS.bldlog file for reference. From the error messages, it seems that the issue might be related to an incorrect configuration of my machine or compiler settings.

Here’s how I currently set up my machine configuration:
I created a new folder called local under ./cime_config/machines, following examples from centos7-linux and derecho. Inside the local folder, I included the following three files (attached below):
- config_machines.xml
- intel_local.cmake
- local.cmake

It’s worth noting that I didn’t make any modifications to the cmake_macros directory, which might be unusual. However, I was able to build CTSM5.3 successfully before installing PIO and ESMF with PIO enabled.

For reference, here’s the command I used to create the case. I haven’t made any changes to the case after creation:
./create_newcase --case cases/I2000Clm60BgcCrop.f19_g17 --res f19_g17 --compset I2000Clm60BgcCrop --mach local --run-unsupported

Any suggestions or advice would be greatly appreciated!


Thanks in advance,
Yiqing
 

Attachments

  • CDEPS.bldlog.250801-180239.txt
    4.5 KB · Views: 3
  • intel_local.cmake.txt
    550 bytes · Views: 1
  • local.cmake.txt
    95 bytes · Views: 1
  • config_machines.txt
    2.1 KB · Views: 1

fischer

CSEG and Liaisons
Staff member
Hi Yiqing,

I'm a bit rusty on the ESMF/PIO builds, so I'm not sure exactly what's going one. Could you send
/home/test/cesm_build_tools/esmf-8.8.0/esmf_install/lib/libO/Linux.intel.64.intelmpi.default/esmf.mk
and
/data/cesm/scratch/I2000Clm60BgcCrop.f19_g17.test/bld/intel/impi/nodebug/nothreads/CDEPS/CMakeFiles/CMakeOutput.log

Thanks
Chris
 

Yiqing Liu

Yiqing Liu
New Member
Hi Chris,

sure! The file you requested is attached.

I’d also like to provide some background information to help with troubleshooting:
The reason I’m trying to install the PIO library is because I encountered an immediate error when running "./case.submit" after I successfully built the model at the first time. The error message was:
"Library needed by ESMF not present – This functionality requires ESMF to be built with the PIO library enabled."

I followed the instructions in this thread (The error about PIO) to install PIO and update ESMF.
I'm using PIO version 2.6.6 and ESMF version 8.8.0. Everything worked well and there were no error message during the process of PIO and ESMF installation.

However, after this, I'm no longer able to successfully build the model — it returns the error I mentioned in my original post.

If any additional files would be helpful for troubleshooting, I’d be happy to provide them.

Cheers,
Yiqing
 

Attachments

  • CMakeOutput.txt
    74.9 KB · Views: 2
  • esmf.txt
    12.4 KB · Views: 1

Yiqing Liu

Yiqing Liu
New Member
Upon further inspection of the build log file I attached in my original post, I noticed two warning messages:
No macro file found: /home/test/CTSM5.3/cime/scripts/cases/I2000Clm60BgcCrop.f19_g17.test/cmake_macros/LINUX.cmake
No macro file found: /home/test/CTSM5.3/cime/scripts/cases/I2000Clm60BgcCrop.f19_g17.test/cmake_macros/intel_LINUX.cmake

In that folder (/home/test/CTSM5.3/cime/scripts/cases/I2000Clm60BgcCrop.f19_g17.test/cmake_macros/), I only have intel_local.cmake and local.cmake. This is because I named my machine "local" rather than "LINUX", and placed those two files inside the "./ccs_config/machines/local/ directory" which I created to match the name of my machine rather than in the "./ccs_config/machines/cmake_macros/" directory.

I’m not sure if this setup might have caused some issues or if those missing macro files are expected in my case — just sharing this in case it's a useful clue.

Cheers,
Yiqing
 

fischer

CSEG and Liaisons
Staff member
Thanks Yiqing, I'll look over the files to see if I can find anything. Unfortunately our expert with the builds is on vacation, but I'll try my best.

Chris
 
Top