hi, popatsalunke9, do u have save this problem? I have met same problem with you when I want to use gnu, Do you have any sueggestion? or comments?Hi,
When I run the build command, I receive an error.
-------------------------------------------------------------------------
CESM BUILDEXE SCRIPT STARTING
rm: No match.
COMPILER is intel
- Build Libraries: mct gptl pio csm_share
Wed May 17 11:03:39 EDT 2023 /net/fs10/d2/psalunke/CESM1.2.2/cases/CAM9/bld/intel/openmpi/nodebug/nothreads/mct.bldlog.230517-110333
Wed May 17 11:04:51 EDT 2023 /net/fs10/d2/psalunke/CESM1.2.2/cases/CAM9/bld/intel/openmpi/nodebug/nothreads/gptl.bldlog.230517-110333
Wed May 17 11:04:55 EDT 2023 /net/fs10/d2/psalunke/CESM1.2.2/cases/CAM9/bld/intel/openmpi/nodebug/nothreads/pio.bldlog.230517-110333
ERROR: buildlib.pio failed, see /net/fs10/d2/psalunke/CESM1.2.2/cases/CAM9/bld/intel/openmpi/nodebug/nothreads/pio.bldlog.230517-110333
ERROR: cat /net/fs10/d2/psalunke/CESM1.2.2/cases/CAM9/bld/intel/openmpi/nodebug/nothreads/pio.bldlog.230517-110333
-------------------------------------------------------------------------
Wed May 17 11:04:55 EDT 2023 /net/fs10/d2/psalunke/CESM1.2.2/cases/CAM9/bld/intel/openmpi/nodebug/nothreads/pio.bldlog.230517-110333
set pio_dir=/net/fs10/d2/psalunke/CESM1.2.2/cases/CAM9/bld/intel/openmpi/nodebug/nothreads/pio
cd /net/fs10/d2/psalunke/CESM1.2.2/cases/CAM9/bld/intel/openmpi/nodebug/nothreads/pio
set cmake_opts= -D USER_CMAKE_MODULE_PATH=/net/fs10/d2/psalunke/CESM1.2.2/scripts/ccsm_utils/CMake
set cmake_opts= -D USER_CMAKE_MODULE_PATH=/net/fs10/d2/psalunke/CESM1.2.2/scripts/ccsm_utils/CMake -D GENF90_PATH=/net/fs10/d2/psalunke/CESM1.2.2/tools/cprnc/genf90
gmake /net/fs10/d2/psalunke/CESM1.2.2/cases/CAM9/bld/intel/openmpi/nodebug/nothreads/pio/Makefile MODEL=pio USER_CMAKE_OPTS= -D USER_CMAKE_MODULE_PATH=/net/fs10/d2/psalunke/CESM1.2.2/scripts/ccsm_utils/CMake -D GENF90_PATH=/net/fs10/d2/psalunke/CESM1.2.2/tools/cprnc/genf90 PIO_LIBDIR=/net/fs10/d2/psalunke/CESM1.2.2/cases/CAM9/bld/intel/openmpi/nodebug/nothreads/pio -f /home/psalunke/fs10/psalunke/CESM1.2.2/cases/CAM9/Tools/Makefile
cat: Filepath: No such file or directory
cat: Srcfiles: No such file or directory
/home/psalunke/fs10/psalunke/CESM1.2.2/cases/CAM9/Tools/mkSrcfiles
cp -f /net/fs10/d2/psalunke/CESM1.2.2/cases/CAM9/bld/intel/openmpi/nodebug/nothreads/pio/Filepath /net/fs10/d2/psalunke/CESM1.2.2/cases/CAM9/bld/intel/openmpi/nodebug/nothreads/pio/Deppath
/home/psalunke/fs10/psalunke/CESM1.2.2/cases/CAM9/Tools/mkDepends Deppath Srcfiles > /net/fs10/d2/psalunke/CESM1.2.2/cases/CAM9/bld/intel/openmpi/nodebug/nothreads/pio/Depends
cd /net/fs10/d2/psalunke/CESM1.2.2/cases/CAM9/bld/intel/openmpi/nodebug/nothreads/pio; \
CC=mpicc CXX=mpicxx FC=mpif90 LDFLAGS="" cmake -D CMAKE_Fortran_FLAGS:STRING="-fp-model source -convert big_endian -assume byterecl -ftz -traceback -assume realloc_lhs -xHost -O2 -DLINUX -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRINTEL -DHAVE_SLASHPROC -I. -I/net/fs10/d2/psalunke/CESM1.2.2/cases/CAM9/bld/intel/openmpi/nodebug/nothreads/include -I/net/fs10/d2/psalunke/CESM1.2.2/cases/CAM9/bld/intel/openmpi/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/home/software/netcdf/4.4.1_nfsv3/include -I/home/software/intel/intel-2017.0.1/pkg/openmpi/2.0.2/include/../include -I/net/fs10/d2/psalunke/CESM1.2.2/cases/CAM9/bld/intel/openmpi/nodebug/nothreads/include -I/net/fs10/d2/psalunke/CESM1.2.2/models/csm_share/shr" -D CMAKE_C_FLAGS:STRING="-O2 -fp-model precise -xHost -DLINUX -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRINTEL -DHAVE_SLASHPROC -I. -I/net/fs10/d2/psalunke/CESM1.2.2/cases/CAM9/bld/intel/openmpi/nodebug/nothreads/include -I/net/fs10/d2/psalunke/CESM1.2.2/cases/CAM9/bld/intel/openmpi/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/home/software/netcdf/4.4.1_nfsv3/include -I/home/software/intel/intel-2017.0.1/pkg/openmpi/2.0.2/include/../include -I/net/fs10/d2/psalunke/CESM1.2.2/cases/CAM9/bld/intel/openmpi/nodebug/nothreads/include -I/net/fs10/d2/psalunke/CESM1.2.2/models/csm_share/shr" -D CMAKE_CXX_FLAGS:STRING="-O2 -fp-model precise -xHost -DLINUX -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRINTEL -DHAVE_SLASHPROC -I. -I/net/fs10/d2/psalunke/CESM1.2.2/cases/CAM9/bld/intel/openmpi/nodebug/nothreads/include -I/net/fs10/d2/psalunke/CESM1.2.2/cases/CAM9/bld/intel/openmpi/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/home/software/netcdf/4.4.1_nfsv3/include -I/home/software/intel/intel-2017.0.1/pkg/openmpi/2.0.2/include/../include -I/net/fs10/d2/psalunke/CESM1.2.2/cases/CAM9/bld/intel/openmpi/nodebug/nothreads/include -I/net/fs10/d2/psalunke/CESM1.2.2/models/csm_share/shr" -D CMAKE_VERBOSE_MAKEFILE:BOOL=ON -D NETCDF_DIR:STRING=/home/software/netcdf/4.4.1_nfsv3 -D USER_CMAKE_MODULE_DIR:STRING=/net/fs10/d2/psalunke/CESM1.2.2/scripts/ccsm_utils/CMake -D WITH_PNETCDF:LOGICAL=FALSE -D USER_CMAKE_MODULE_PATH=/net/fs10/d2/psalunke/CESM1.2.2/scripts/ccsm_utils/CMake -D GENF90_PATH=/net/fs10/d2/psalunke/CESM1.2.2/tools/cprnc/genf90 /net/fs10/d2/psalunke/CESM1.2.2/models/utils/pio
-- The C compiler identification is Intel 17.0.3.20170404
-- The Fortran compiler identification is Intel 17.0.3.20170404
-- Check for working C compiler: /home/software/intel/intel-2017.0.1/pkg/openmpi/2.0.2/bin/mpicc
-- Check for working C compiler: /home/software/intel/intel-2017.0.1/pkg/openmpi/2.0.2/bin/mpicc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working Fortran compiler: /home/software/intel/intel-2017.0.1/pkg/openmpi/2.0.2/bin/mpif90
-- Check for working Fortran compiler: /home/software/intel/intel-2017.0.1/pkg/openmpi/2.0.2/bin/mpif90 -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /home/software/intel/intel-2017.0.1/pkg/openmpi/2.0.2/bin/mpif90 supports Fortran 90
-- Checking whether /home/software/intel/intel-2017.0.1/pkg/openmpi/2.0.2/bin/mpif90 supports Fortran 90 -- yes
WARNING: did not find netcdf fortran library
NETCDF built without MPIIO
-- HDF5: Using hdf5 compiler wrapper to determine C configuration
-- Found HDF5: /usr/lib64/libhdf5.so;/usr/lib64/libz.so;/usr/lib64/libdl.so;/usr/lib64/libm.so (found version "1.8.16") found components: C HL
-- Adding hdf5 libraries
-- Could NOT find NETCDF (missing: NETCDF_Fortran_LIBRARY)
CMake Warning at CMakeLists.txt:63 (MESSAGE):
Warning: Not building with PNetcdf - cannot run all regression tests.
-- 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/home/software/netcdf/4.4.1_nfsv3/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: /net/fs10/d2/psalunke/CESM1.2.2/cases/CAM9/bld/intel/openmpi/nodebug/nothreads/pio
/home/psalunke/fs10/psalunke/CESM1.2.2/cases/CAM9/Tools/Makefile:498: recipe for target '/net/fs10/d2/psalunke/CESM1.2.2/cases/CAM9/bld/intel/openmpi/nodebug/nothreads/pio/Makefile' failed
gmake: *** [/net/fs10/d2/psalunke/CESM1.2.2/cases/CAM9/bld/intel/openmpi/nodebug/nothreads/pio/Makefile] Error 1
exit 1