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

buildlib.csm_share failing

Shruti

Shruti Joshi
Member
Hello,
I was trying to build CESM 2.1.2 with clang 9.0.0.
I added a section for clang referring the gnu section in config_compiler.xml.
But i am facing issue with csm_share build.
PFA the macros.make file and the csm_share error log.
Please let me know what compiler options can i modify.
 

Attachments

  • csm_share.bldlog.txt
    136.5 KB · Views: 19
  • Macros.make.txt
    1.2 KB · Views: 7

jedwards

CSEG and Liaisons
Staff member
We do not have a port to the clang compiler - I recommend using homebrew to install gcc on your mac - there are instructions in cime/config/cesm/machines/config_machines.xml to do that. The problem is in file shr_reprosum_mod.F90 - if you decide to pursue clang / flang and find a solution, please report it back here so that we can share with the community.
 

Shruti

Shruti Joshi
Member
Hello,

This issue i could resolve by adding a section in the cime/src/share/util/shr_infnan_mod.F90.in file.
Add " || defined CPR(Compilername) " in the 4th line in the above file.

I have done the above and now facing issue at pio build.
It is giving the error "Could NOT find PnetCDF_Fortran".
I have added "PnetCDF_Fortran" as env variable in config_machine.xml and also included lib folder as slib in config_compiler.xml.
But the error still exists. Can you please tell me if i'm missing something here.

PFA the pio error log.
 

Attachments

  • pio.bldlog.200414-162745.txt
    9.4 KB · Views: 11

jedwards

CSEG and Liaisons
Staff member
You should be able to specify the pnetcdf path with a single PNETCDF_PATH= variable.
The specific _Fortran variables for netcdf and pnetcdf should only be needed if the c and fortran libraries are in separate locations (rare).
 

jackma

jack
New Member
Hello,

This issue i could resolve by adding a section in the cime/src/share/util/shr_infnan_mod.F90.in file.
Add " || defined CPR(Compilername) " in the 4th line in the above file.

I have done the above and now facing issue at pio build.
It is giving the error "Could NOT find PnetCDF_Fortran".
I have added "PnetCDF_Fortran" as env variable in config_machine.xml and also included lib folder as slib in config_compiler.xml.
But the error still exists. Can you please tell me if i'm missing something here.

PFA the pio error log.
Hello,
I encounter the same problem,so I want to know the detail what you add a section in the cime/src/share/util/shr_infnan_mod.F90.in file.
adding a section in the cime/src/share/util/shr_infnan_mod.F90.in file.
 
Top