wangsz@fio_org_cn
New Member
Hi, I am porting CESM1_2_2 to my own server, and I encountered problems when I run the script ./test.build.
This is from mct.bldlog.xxx:
-------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------
Thu Oct 20 19:57:14 CST 2016 /soa01/home/wangsz/cesm1_2_2/scripts//bld/intel/mpich/nodebug/nothreads/mct.bldlog.161020-195712
setenv MCT_DIR /soa01/home/wangsz/cesm1_2_2/models/utils/mct
setenv LIBDIR /soa01/home/wangsz/cesm1_2_2/scripts//bld/intel/mpich/nodebug/nothreads
setenv MCT_LIBDIR /soa01/home/wangsz/cesm1_2_2/scripts//bld/intel/mpich/nodebug/nothreads/mct
echo MCT_LIBDIR /soa01/home/wangsz/cesm1_2_2/scripts//bld/intel/mpich/nodebug/nothreads/mct
MCT_LIBDIR /soa01/home/wangsz/cesm1_2_2/scripts//bld/intel/mpich/nodebug/nothreads/mct
cd /soa01/home/wangsz/cesm1_2_2/scripts//bld/intel/mpich/nodebug/nothreads/mct
echo Copying source to CCSM EXEROOT...
Copying source to CCSM EXEROOT...
cp /soa01/home/wangsz/cesm1_2_2/models/utils/mct/Makefile .
mkdir mct
mkdir: cannot create directory `mct': File exists
cp /soa01/home/wangsz/cesm1_2_2/models/utils/mct/mct/Makefile mct
mkdir mpeu
mkdir: cannot create directory `mpeu': File exists
cp /soa01/home/wangsz/cesm1_2_2/models/utils/mct/mpeu/Makefile mpeu
mkdir mpi-serial
mkdir: cannot create directory `mpi-serial': File exists
cp /soa01/home/wangsz/cesm1_2_2/models/utils/mct/mpi-serial/Makefile mpi-serial
set runconf = 0
set runclean = 0
echo Running configure...
Running configure...
echo for OS=Linux MACH=userdefined
for OS=Linux MACH=userdefined
gmake -f /soa01/home/wangsz/cesm1_2_2/scripts/test1/Tools/Makefile /soa01/home/wangsz/cesm1_2_2/scripts//bld/intel/mpich/nodebug/nothreads/mct/Makefile.conf
gmake: `/soa01/home/wangsz/cesm1_2_2/scripts//bld/intel/mpich/nodebug/nothreads/mct/Makefile.conf' is up to date.
if ( 0 == 1 ) then
cp -p Makefile.conf Makefile.conf.old
gmake
gmake[1]: Entering directory `/soa01/home/wangsz/cesm1_2_2/scripts/bld/intel/mpich/nodebug/nothreads/mct/mpeu'
mpif90 -c -I. -I../ -DLinux -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLinux -DCPRINTEL -DSYSLINUX -DCPRINTEL -O2 -fp-model source -convert big_endian -assume byterecl -ftz -traceback -assume realloc_lhs -O2 -free -I. -I/soa01/home/wangsz/cesm1_2_2/scripts//bld/intel/mpich/nodebug/nothreads/include -I/soa01/home/wangsz/cesm1_2_2/scripts//bld/intel/mpich/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -IUSERDEFINED_MUST_EDIT_THIS/include -I/soa01/home/wangsz/cesm1_2_2/scripts//bld/intel/mpich/nodebug/nothreads/include -I/soa01/home/wangsz/cesm1_2_2/models/csm_share/shr /soa01/home/wangsz/cesm1_2_2/models/utils/mct/mpeu/m_mpif.F90
gfortran: source: No such file or directory
gfortran: big_endian: No such file or directory
gfortran: byterecl: No such file or directory
gfortran: realloc_lhs: No such file or directory
gfortran: unrecognized option '-convert'
gfortran: unrecognized option '-traceback'
f951: error: unrecognized command line option "-assume"
f951: error: unrecognized command line option "-assume"
f951: error: unrecognized command line option "-fp-model"
f951: error: unrecognized command line option "-ftz"
f951: error: unrecognized command line option "-free"
gmake[1]: *** [m_mpif.o] Error 1
gmake[1]: Leaving directory `/soa01/home/wangsz/cesm1_2_2/scripts/bld/intel/mpich/nodebug/nothreads/mct/mpeu'
gmake: *** [subdirs] Error 2
exit 1
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
It seems that gfortran is where errors come from. But I have defined compiler to ifort in Macros.
This is from Macros:
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
#
# Makefile Macros generated from /soa01/home/wangsz/cesm1_2_2/scripts/ccsm_utils/Machines/config_compilers.xml using
# COMPILER=intel
# OS=Linux
# MACH=userdefined
#
CPPDEFS+= -DFORTRANUNDERSCORE -DNO_R16 -DLinux -DCPRINTEL
#SLIBS+=# USERDEFINED $(shell $(NETCDF_PATH)/bin/nc-config --flibs)
SLIBS+=# -L /soa01/home/wangsz/local/netcdf/lib -lnetcdf -lnetcdff
CFLAGS:= -O2 -fp-model precise
CONFIG_ARGS:=
CXX_LDFLAGS:= -cxxlib
CXX_LINKER:=FORTRAN
ESMF_LIBDIR:=
FC_AUTO_R8:= -r8
FFLAGS:= -fp-model source -convert big_endian -assume byterecl -ftz -traceback -assume realloc_lhs
FFLAGS_NOOPT:= -O0
FIXEDFLAGS:= -fixed -132
FREEFLAGS:= -free
MPICC:= mpicc
MPICXX:= mpicxx
MPIFC:= mpif90
MPI_LIB_NAME:=
MPI_PATH:= /opt/intel/impi/5.0.0.028/intel64/
NETCDF_PATH:= $NETCDFDIR
PNETCDF_PATH:=
SCC:= icc
SCXX:= icpc
SFC:= ifort
SUPPORTS_CXX:=TRUE
ifeq ($(DEBUG), TRUE)
FFLAGS += -O0 -g -check uninit -check bounds -check pointers -fpe0
endif
ifeq ($(DEBUG), FALSE)
FFLAGS += -O2
endif
ifeq ($(compile_threaded), true)
LDFLAGS += -openmp
CFLAGS += -openmp
FFLAGS += -openmp
endif
ifeq ($(MODEL), pop2)
CPPDEFS += -D_USE_FLOW_CONTROL
endi
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
One more quetion:
What are ./configure scripts in /models/utils/mct and /models/utils/pio used for? Do I have to run these two ./configure scripts?
--------------------------------------------------------------------------------------------------------------
Any suggestions will be highly appreciated, especially to a rookie in climate modelling.
This is from mct.bldlog.xxx:
-------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------
Thu Oct 20 19:57:14 CST 2016 /soa01/home/wangsz/cesm1_2_2/scripts//bld/intel/mpich/nodebug/nothreads/mct.bldlog.161020-195712
setenv MCT_DIR /soa01/home/wangsz/cesm1_2_2/models/utils/mct
setenv LIBDIR /soa01/home/wangsz/cesm1_2_2/scripts//bld/intel/mpich/nodebug/nothreads
setenv MCT_LIBDIR /soa01/home/wangsz/cesm1_2_2/scripts//bld/intel/mpich/nodebug/nothreads/mct
echo MCT_LIBDIR /soa01/home/wangsz/cesm1_2_2/scripts//bld/intel/mpich/nodebug/nothreads/mct
MCT_LIBDIR /soa01/home/wangsz/cesm1_2_2/scripts//bld/intel/mpich/nodebug/nothreads/mct
cd /soa01/home/wangsz/cesm1_2_2/scripts//bld/intel/mpich/nodebug/nothreads/mct
echo Copying source to CCSM EXEROOT...
Copying source to CCSM EXEROOT...
cp /soa01/home/wangsz/cesm1_2_2/models/utils/mct/Makefile .
mkdir mct
mkdir: cannot create directory `mct': File exists
cp /soa01/home/wangsz/cesm1_2_2/models/utils/mct/mct/Makefile mct
mkdir mpeu
mkdir: cannot create directory `mpeu': File exists
cp /soa01/home/wangsz/cesm1_2_2/models/utils/mct/mpeu/Makefile mpeu
mkdir mpi-serial
mkdir: cannot create directory `mpi-serial': File exists
cp /soa01/home/wangsz/cesm1_2_2/models/utils/mct/mpi-serial/Makefile mpi-serial
set runconf = 0
set runclean = 0
echo Running configure...
Running configure...
echo for OS=Linux MACH=userdefined
for OS=Linux MACH=userdefined
gmake -f /soa01/home/wangsz/cesm1_2_2/scripts/test1/Tools/Makefile /soa01/home/wangsz/cesm1_2_2/scripts//bld/intel/mpich/nodebug/nothreads/mct/Makefile.conf
gmake: `/soa01/home/wangsz/cesm1_2_2/scripts//bld/intel/mpich/nodebug/nothreads/mct/Makefile.conf' is up to date.
if ( 0 == 1 ) then
cp -p Makefile.conf Makefile.conf.old
gmake
gmake[1]: Entering directory `/soa01/home/wangsz/cesm1_2_2/scripts/bld/intel/mpich/nodebug/nothreads/mct/mpeu'
mpif90 -c -I. -I../ -DLinux -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLinux -DCPRINTEL -DSYSLINUX -DCPRINTEL -O2 -fp-model source -convert big_endian -assume byterecl -ftz -traceback -assume realloc_lhs -O2 -free -I. -I/soa01/home/wangsz/cesm1_2_2/scripts//bld/intel/mpich/nodebug/nothreads/include -I/soa01/home/wangsz/cesm1_2_2/scripts//bld/intel/mpich/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -IUSERDEFINED_MUST_EDIT_THIS/include -I/soa01/home/wangsz/cesm1_2_2/scripts//bld/intel/mpich/nodebug/nothreads/include -I/soa01/home/wangsz/cesm1_2_2/models/csm_share/shr /soa01/home/wangsz/cesm1_2_2/models/utils/mct/mpeu/m_mpif.F90
gfortran: source: No such file or directory
gfortran: big_endian: No such file or directory
gfortran: byterecl: No such file or directory
gfortran: realloc_lhs: No such file or directory
gfortran: unrecognized option '-convert'
gfortran: unrecognized option '-traceback'
f951: error: unrecognized command line option "-assume"
f951: error: unrecognized command line option "-assume"
f951: error: unrecognized command line option "-fp-model"
f951: error: unrecognized command line option "-ftz"
f951: error: unrecognized command line option "-free"
gmake[1]: *** [m_mpif.o] Error 1
gmake[1]: Leaving directory `/soa01/home/wangsz/cesm1_2_2/scripts/bld/intel/mpich/nodebug/nothreads/mct/mpeu'
gmake: *** [subdirs] Error 2
exit 1
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
It seems that gfortran is where errors come from. But I have defined compiler to ifort in Macros.
This is from Macros:
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
#
# Makefile Macros generated from /soa01/home/wangsz/cesm1_2_2/scripts/ccsm_utils/Machines/config_compilers.xml using
# COMPILER=intel
# OS=Linux
# MACH=userdefined
#
CPPDEFS+= -DFORTRANUNDERSCORE -DNO_R16 -DLinux -DCPRINTEL
#SLIBS+=# USERDEFINED $(shell $(NETCDF_PATH)/bin/nc-config --flibs)
SLIBS+=# -L /soa01/home/wangsz/local/netcdf/lib -lnetcdf -lnetcdff
CFLAGS:= -O2 -fp-model precise
CONFIG_ARGS:=
CXX_LDFLAGS:= -cxxlib
CXX_LINKER:=FORTRAN
ESMF_LIBDIR:=
FC_AUTO_R8:= -r8
FFLAGS:= -fp-model source -convert big_endian -assume byterecl -ftz -traceback -assume realloc_lhs
FFLAGS_NOOPT:= -O0
FIXEDFLAGS:= -fixed -132
FREEFLAGS:= -free
MPICC:= mpicc
MPICXX:= mpicxx
MPIFC:= mpif90
MPI_LIB_NAME:=
MPI_PATH:= /opt/intel/impi/5.0.0.028/intel64/
NETCDF_PATH:= $NETCDFDIR
PNETCDF_PATH:=
SCC:= icc
SCXX:= icpc
SFC:= ifort
SUPPORTS_CXX:=TRUE
ifeq ($(DEBUG), TRUE)
FFLAGS += -O0 -g -check uninit -check bounds -check pointers -fpe0
endif
ifeq ($(DEBUG), FALSE)
FFLAGS += -O2
endif
ifeq ($(compile_threaded), true)
LDFLAGS += -openmp
CFLAGS += -openmp
FFLAGS += -openmp
endif
ifeq ($(MODEL), pop2)
CPPDEFS += -D_USE_FLOW_CONTROL
endi
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
One more quetion:
What are ./configure scripts in /models/utils/mct and /models/utils/pio used for? Do I have to run these two ./configure scripts?
--------------------------------------------------------------------------------------------------------------
Any suggestions will be highly appreciated, especially to a rookie in climate modelling.