fkc000@163_com
Member
Hello,
I started to learn to port CESM1_2_2 recently. I did as the CESM User's Guide said, but failed at ./test.build. Here's the pio.bldlog:
set pio_dir=/disk6/fkc/cesm1_2_2/build/gnu/mpich/nodebug/nothreads/pio
cd /disk6/fkc/cesm1_2_2/build/gnu/mpich/nodebug/nothreads/pio
set cmake_opts= -D USER_CMAKE_MODULE_PATH=/disk6/fkc/cesm1_2_2/scripts/ccsm_utils/CMake
set cmake_opts= -D USER_CMAKE_MODULE_PATH=/disk6/fkc/cesm1_2_2/scripts/ccsm_utils/CMake -D GENF90_PATH=/disk6/fkc/cesm1_2_2/tools/cprnc/genf90
gmake /disk6/fkc/cesm1_2_2/build/gnu/mpich/nodebug/nothreads/pio/Makefile MODEL=pio USER_CMAKE_OPTS= -D USER_CMAKE_MODULE_PATH=/disk6/fkc/cesm1_2_2/scripts/ccsm_utils/CMake -D GENF90_PATH=/disk6/fkc/cesm1_2_2/tools/cprnc/genf90 PIO_LIBDIR=/disk6/fkc/cesm1_2_2/build/gnu/mpich/nodebug/nothreads/pio -f /disk6/fkc/cesm1_2_2/scripts/test/Tools/Makefile
cd /disk6/fkc/cesm1_2_2/build/gnu/mpich/nodebug/nothreads/pio;
CC=mpicc CXX=mpicxx FC=mpif90 LDFLAGS="" cmake -D CMAKE_Fortran_FLAGS:STRING="-O -fconvert=big-endian -ffree-line-length-none -ffixed-line-length-none -DLINUX -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRGNU -DHAVE_SLASHPROC -I. -I/disk6/fkc/cesm1_2_2/build/gnu/mpich/nodebug/nothreads/include -I/disk6/fkc/cesm1_2_2/build/gnu/mpich/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/disk6/fkc/packman/netcdf_c/4.3.2/0/include -I/disk6/fkc/packman/mpich/3.1.2/0/include -I/disk6/fkc/pnetcdf/include -I/disk6/fkc/cesm1_2_2/build/gnu/mpich/nodebug/nothreads/include -I/disk6/fkc/cesm1_2_2/models/csm_share/shr" -D CMAKE_C_FLAGS:STRING=" -DLINUX -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRGNU -DHAVE_SLASHPROC -I. -I/disk6/fkc/cesm1_2_2/build/gnu/mpich/nodebug/nothreads/include -I/disk6/fkc/cesm1_2_2/build/gnu/mpich/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/disk6/fkc/packman/netcdf_c/4.3.2/0/include -I/disk6/fkc/packman/mpich/3.1.2/0/include -I/disk6/fkc/pnetcdf/include -I/disk6/fkc/cesm1_2_2/build/gnu/mpich/nodebug/nothreads/include -I/disk6/fkc/cesm1_2_2/models/csm_share/shr" -D CMAKE_CXX_FLAGS:STRING=" -DLINUX -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRGNU -DHAVE_SLASHPROC -I. -I/disk6/fkc/cesm1_2_2/build/gnu/mpich/nodebug/nothreads/include -I/disk6/fkc/cesm1_2_2/build/gnu/mpich/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/disk6/fkc/packman/netcdf_c/4.3.2/0/include -I/disk6/fkc/packman/mpich/3.1.2/0/include -I/disk6/fkc/pnetcdf/include -I/disk6/fkc/cesm1_2_2/build/gnu/mpich/nodebug/nothreads/include -I/disk6/fkc/cesm1_2_2/models/csm_share/shr" -D CMAKE_VERBOSE_MAKEFILE:BOOL=ON -D NETCDF_DIR:STRING=/disk6/fkc/packman/netcdf_c/4.3.2/0 -D USER_CMAKE_MODULE_DIR:STRING=/disk6/fkc/cesm1_2_2/scripts/ccsm_utils/CMake -D PNETCDF_DIR:STRING="/disk6/fkc/pnetcdf" -D USER_CMAKE_MODULE_PATH=/disk6/fkc/cesm1_2_2/scripts/ccsm_utils/CMake -D GENF90_PATH=/disk6/fkc/cesm1_2_2/tools/cprnc/genf90 /disk6/fkc/cesm1_2_2/models/utils/pio
CMake Error at CMakeLists.txt:44 (TRY_COMPILE):
Unknown extension ".f90" for file
/disk6/fkc/cesm1_2_2/models/utils/pio/cmake/TryMPIIO.f90
try_compile() works only for enabled languages. Currently these are:
C CXX
See project() command to enable other languages.
-- MPIIO not detected and therefore disabled.
-- Configuring incomplete, errors occurred!
See also "/disk6/fkc/cesm1_2_2/build/gnu/mpich/nodebug/nothreads/pio/CMakeFiles/CMakeOutput.log".
gmake: *** [/disk6/fkc/cesm1_2_2/build/gnu/mpich/nodebug/nothreads/pio/Makefile] Error 1
exit 1
I'm using the gnu compiler to compile CESM and sure that gfortran is available. I guess it's just a problem concerning compiler settings. And here's my Macros file attached below.
I'm stuck here for several days. Any help would be greatly appreciated.Thanks.
I started to learn to port CESM1_2_2 recently. I did as the CESM User's Guide said, but failed at ./test.build. Here's the pio.bldlog:
set pio_dir=/disk6/fkc/cesm1_2_2/build/gnu/mpich/nodebug/nothreads/pio
cd /disk6/fkc/cesm1_2_2/build/gnu/mpich/nodebug/nothreads/pio
set cmake_opts= -D USER_CMAKE_MODULE_PATH=/disk6/fkc/cesm1_2_2/scripts/ccsm_utils/CMake
set cmake_opts= -D USER_CMAKE_MODULE_PATH=/disk6/fkc/cesm1_2_2/scripts/ccsm_utils/CMake -D GENF90_PATH=/disk6/fkc/cesm1_2_2/tools/cprnc/genf90
gmake /disk6/fkc/cesm1_2_2/build/gnu/mpich/nodebug/nothreads/pio/Makefile MODEL=pio USER_CMAKE_OPTS= -D USER_CMAKE_MODULE_PATH=/disk6/fkc/cesm1_2_2/scripts/ccsm_utils/CMake -D GENF90_PATH=/disk6/fkc/cesm1_2_2/tools/cprnc/genf90 PIO_LIBDIR=/disk6/fkc/cesm1_2_2/build/gnu/mpich/nodebug/nothreads/pio -f /disk6/fkc/cesm1_2_2/scripts/test/Tools/Makefile
cd /disk6/fkc/cesm1_2_2/build/gnu/mpich/nodebug/nothreads/pio;
CC=mpicc CXX=mpicxx FC=mpif90 LDFLAGS="" cmake -D CMAKE_Fortran_FLAGS:STRING="-O -fconvert=big-endian -ffree-line-length-none -ffixed-line-length-none -DLINUX -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRGNU -DHAVE_SLASHPROC -I. -I/disk6/fkc/cesm1_2_2/build/gnu/mpich/nodebug/nothreads/include -I/disk6/fkc/cesm1_2_2/build/gnu/mpich/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/disk6/fkc/packman/netcdf_c/4.3.2/0/include -I/disk6/fkc/packman/mpich/3.1.2/0/include -I/disk6/fkc/pnetcdf/include -I/disk6/fkc/cesm1_2_2/build/gnu/mpich/nodebug/nothreads/include -I/disk6/fkc/cesm1_2_2/models/csm_share/shr" -D CMAKE_C_FLAGS:STRING=" -DLINUX -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRGNU -DHAVE_SLASHPROC -I. -I/disk6/fkc/cesm1_2_2/build/gnu/mpich/nodebug/nothreads/include -I/disk6/fkc/cesm1_2_2/build/gnu/mpich/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/disk6/fkc/packman/netcdf_c/4.3.2/0/include -I/disk6/fkc/packman/mpich/3.1.2/0/include -I/disk6/fkc/pnetcdf/include -I/disk6/fkc/cesm1_2_2/build/gnu/mpich/nodebug/nothreads/include -I/disk6/fkc/cesm1_2_2/models/csm_share/shr" -D CMAKE_CXX_FLAGS:STRING=" -DLINUX -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRGNU -DHAVE_SLASHPROC -I. -I/disk6/fkc/cesm1_2_2/build/gnu/mpich/nodebug/nothreads/include -I/disk6/fkc/cesm1_2_2/build/gnu/mpich/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/disk6/fkc/packman/netcdf_c/4.3.2/0/include -I/disk6/fkc/packman/mpich/3.1.2/0/include -I/disk6/fkc/pnetcdf/include -I/disk6/fkc/cesm1_2_2/build/gnu/mpich/nodebug/nothreads/include -I/disk6/fkc/cesm1_2_2/models/csm_share/shr" -D CMAKE_VERBOSE_MAKEFILE:BOOL=ON -D NETCDF_DIR:STRING=/disk6/fkc/packman/netcdf_c/4.3.2/0 -D USER_CMAKE_MODULE_DIR:STRING=/disk6/fkc/cesm1_2_2/scripts/ccsm_utils/CMake -D PNETCDF_DIR:STRING="/disk6/fkc/pnetcdf" -D USER_CMAKE_MODULE_PATH=/disk6/fkc/cesm1_2_2/scripts/ccsm_utils/CMake -D GENF90_PATH=/disk6/fkc/cesm1_2_2/tools/cprnc/genf90 /disk6/fkc/cesm1_2_2/models/utils/pio
CMake Error at CMakeLists.txt:44 (TRY_COMPILE):
Unknown extension ".f90" for file
/disk6/fkc/cesm1_2_2/models/utils/pio/cmake/TryMPIIO.f90
try_compile() works only for enabled languages. Currently these are:
C CXX
See project() command to enable other languages.
-- MPIIO not detected and therefore disabled.
-- Configuring incomplete, errors occurred!
See also "/disk6/fkc/cesm1_2_2/build/gnu/mpich/nodebug/nothreads/pio/CMakeFiles/CMakeOutput.log".
gmake: *** [/disk6/fkc/cesm1_2_2/build/gnu/mpich/nodebug/nothreads/pio/Makefile] Error 1
exit 1
I'm using the gnu compiler to compile CESM and sure that gfortran is available. I guess it's just a problem concerning compiler settings. And here's my Macros file attached below.
I'm stuck here for several days. Any help would be greatly appreciated.Thanks.