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

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

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.
 
Back
Top