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

Building error of mksurfdat

Status
Not open for further replies.

InneVanderkelen

Inne Vanderkelen
New Member
Hello,

I am building the new mksurfdata_esmf tool, provided in the ctsm5.2.mksurfdata branch on our machine Piz daint, following the instructions layed out in the Readme here: CTSM/tools/mksurfdata_esmf at ctsm5.2.mksurfdata · ESCOMP/CTSM.


When building the tool, I manually export the COMPILER=gnu
In addition, the LD_LIBRARY_PATH environmental variable contains the paths to the netcdf-c and netcdf-fortran packages. And the ESMF_PATH to the esmf package.
These settings make that the port can successfully compile and run CTSM with the NUOCP driver.

After cloning the branch and checking out the externals, I issue

Code:
cd tools/mksurfdata_esmf/
./gen_mksurfdata_build.sh -m pizdaint -v

This gives the following error message:

Code:
[daint101:~/ctsm5.2.mksurfdata/tools/mksurfdata_esmf]$ ./gen_mksurfdata_build.sh -m pizdaint -v
cime Machine is: pizdaint...
Run cime configure for machine pizdaint...
configure for the default MPI-library and compiler...
COMPILER = gnu, MPILIB = mpich, DEBUG = FALSE, OS = CNL
Do the cmake build...
CMake Error at /usr/share/cmake/Modules/CMakeDetermineFortranCompiler.cmake:33 (message):
  Could not find compiler set in environment variable FC:

  mpif90.
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)


CMake Error: CMAKE_Fortran_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "/users/ivanderk/ctsm5.2.mksurfdata/tools/mksurfdata_esmf/tool_bld/CMakeFiles/CMakeOutput.log".
Error doing cmake for pizdaint mpich gnu

Attached are the config machine and compilers xml files, which are saved in .cime.

Do you have any idea how I could solve this issue?
Please let me know if more information is needed. Many thanks in advance!
 

InneVanderkelen

Inne Vanderkelen
New Member
Thanks both Sam and Jim for your replies.

I tried to set FC to ftn, both manually with an export command and in the config_compilers.xml as below.

Code:
<compiler MACH="pizdaint" COMPILER="gnu">
 <FC> ftn </FC>
</compiler>

However, the error remains the same. Does this variable needs to be hardcoded in the build script somewhere?

@slevis I am using the tool on Cheyenne, but we want to have a more sustainable solution for my other group members who don't have access to cheyenne.
 
Status
Not open for further replies.
Top