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

CESM 1.2.2, Compset FSDW, machine pleiades-san, Does not compile

I tried a vanilla case of FSDW on pleiades. My create_newcase statement was:
create_newcase -res f19_f19 -mach pleiades-san -compset FSDW -case /u/epeck/case/sdwaccm_vanilla_1_2_2

I was able to configure the case using: cesm_setup

When I tried to build, I get the following error message:
Thu Jul 10 15:32:23 PDT 2014 /nobackup/epeck/sdwaccm_vanilla_1_2_2/bld/intel/mpich/nodebug/nothreads/pio.bldlog.140710-153000
ERROR: buildlib.pio failed, see /nobackup/epeck/sdwaccm_vanilla_1_2_2/bld/intel/mpich/nodebug/nothreads/pio.bldlog.140710-153000
ERROR: cat /nobackup/epeck/sdwaccm_vanilla_1_2_2/bld/intel/mpich/nodebug/nothreads/pio.bldlog.140710-153000


In the file, the following warnings show up:
-- The C compiler identification is Intel 13.1.0.20130607
-- The Fortran compiler identification is Intel
-- Check for working C compiler: /nasa/intel/Compiler/2013.5.192/composer_xe_2013.5.192/bin/intel64/icc
-- Check for working C compiler: /nasa/intel/Compiler/2013.5.192/composer_xe_2013.5.192/bin/intel64/icc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working Fortran compiler: /nasa/sgi/mpt/2.08r7/bin/mpif90
-- Check for working Fortran compiler: /nasa/sgi/mpt/2.08r7/bin/mpif90 -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /nasa/sgi/mpt/2.08r7/bin/mpif90 supports Fortran 90
-- Checking whether /nasa/sgi/mpt/2.08r7/bin/mpif90 supports Fortran 90 -- yes
WARNING: did not find netcdf fortran library
NETCDF built without MPIIO
-- Could NOT find HDF5 (missing: HDF5_LIBRARIES HDF5_INCLUDE_DIRS)
-- Could NOT find NETCDF (missing: NETCDF_Fortran_LIBRARY)
-- Found pnetcdf: /home1/fvitt/parallel-netcdf-1.3.1/lib/libpnetcdf.a
-- MPIIO detected and enabled.
-- MPI Fortran module detected and enabled.
-- Configuring done
CMake Error at CMakeLists.txt:190 (ADD_LIBRARY):
Target "pio" links to item " -L/nasa/netcdf/4.0-i10.1/lib -lnetcdf" which
has leading or trailing whitespace. This is now an error according to
policy CMP0004.


-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

CMAKE_CXX_FLAGS
USER_CMAKE_MODULE_DIR


-- Build files have been written to: /nobackup/epeck/sdwaccm_vanilla_1_2_2/bld/intel/mpich/nodebug/nothreads/pio
gmake: *** [/nobackup/epeck/sdwaccm_vanilla_1_2_2/bld/intel/mpich/nodebug/nothreads/pio/Makefile] Error 1
exit 1


It looks like the proper paths for the netcdf and hdf5 libraries were not set correctly. Does anyone know where I set the paths and what those paths are for pleiades? Thank you for your time!

Sincerely,
Ethan D. Peck
 

santos

Member
I'm not exactly sure what is going on here, but the following changes to one of our CMake modules seems to fix this issue on pleiades. We'll have to see whether or not this works in general; it's difficult to predict whether or not a FindNETCDF change that "should" work actually will work on all the machines that we support.Edit: I just removed the patch that was originally posted here, because it was wrong. Instead use the one attached to this comment:https://bb.cgd.ucar.edu/runtime-error-pio-pleiades-san-122#comment-1008067
 
Top