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

ERROR: BUILD FAIL: cam.buildlib failed

chingan

Ching
New Member
Hi all,

I am a student who is trying to run a nudged CAM6 simulation. I got a code from somebody else who had cesm2.0.0 setup. I now changed to cesm2.2.0, but it is giving me the following error message:
...
Building glc with output to /glade/scratch/chingan/SOCRATES_cam6_f09_MERRA2_nudg/bld/glc.bldlog.230227-181809
- Building wav Library
Building wav with output to /glade/scratch/chingan/SOCRATES_cam6_f09_MERRA2_nudg/bld/wav.bldlog.230227-181809
- Building iac Library
Building iac with output to /glade/scratch/chingan/SOCRATES_cam6_f09_MERRA2_nudg/bld/iac.bldlog.230227-181809
- Building esp Library
Building esp with output to /glade/scratch/chingan/SOCRATES_cam6_f09_MERRA2_nudg/bld/esp.bldlog.230227-181809
swav built in 2.551506 seconds
sesp built in 2.547515 seconds
cam built in 2.571834 seconds
siac built in 2.917545 seconds
docn built in 5.068669 seconds
mosart built in 29.123190 seconds
Component ice build complete with 1 warnings
cice built in 116.994680 seconds
Component glc build complete with 3 warnings
cism built in 241.845818 seconds
ERROR: BUILD FAIL: cam.buildlib failed, cat /glade/scratch/chingan/SOCRATES_cam6_f09_MERRA2_nudg/bld/atm.bldlog.230227-181809
Model failed to build

I read some other posts that had a similar issue. Somebody mentioned that might be because of the old gnu or gfortran version. I am not sure about that. Where can I upgrade the gnu version? Should I modify my config_compilers.xml?

I attached the atm.bldlog.230227-181809 file and the 3 config files.

Thank you!
 

Attachments

  • atm.bldlog.230227-181809.txt
    3.6 KB · Views: 13

chingan

Ching
New Member
The XML files didn't get uploaded.
 

Attachments

  • config_machines.txt
    119.7 KB · Views: 3
  • config_compilers.txt
    44.8 KB · Views: 4
  • config_batch.txt
    25.8 KB · Views: 1

jedwards

CSEG and Liaisons
Staff member
You are running on cheyenne which is our primary development and testing platform. This is not a system issue.
In your SourceMods directory you have a file radheat_UV.F90 if you intend for this to replace the code in
radheat.F90 the file name must remain the same as the original file, otherwise you are adding and not replacing code.
The error is because both radheat.F90 and radheat_UV.F90 contain the same module.
 

chingan

Ching
New Member
You are running on cheyenne which is our primary development and testing platform. This is not a system issue.
In your SourceMods directory you have a file radheat_UV.F90 if you intend for this to replace the code in
radheat.F90 the file name must remain the same as the original file, otherwise you are adding and not replacing code.
The error is because both radheat.F90 and radheat_UV.F90 contain the same module.
Thank you so much for the reply! I have resolved the issue.
 
Top