爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 9404|回复: 5

CESM1_2_2 build报错

[复制链接]
发表于 2016-10-20 21:04:11 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
各位好,我最近移植CESM1_2_2,到 ./test.build这一步的时候报错,下面内容来自 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
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
感觉像是gfortran出问题了,但我已经在Macros文件里面,定义了fortran编译器了,用的是ifort,不是gfortran。下面是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 question:
我看有帖子说要运行/models/utils/mct/configure以及/models/utils/pio/configure,运行这两个script的目的是什么?一定要运行吗?


模式菜鸟先谢过啦

                               
登录/注册后可看大图


密码修改失败请联系微信:mofangbao
发表于 2017-7-27 14:24:50 | 显示全部楼层
你好,我在gmake的时候遇到了同样的问题,请问你的问题解决了吗?
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"
gmake: *** [gen_domain.o] Error 1
密码修改失败请联系微信:mofangbao
发表于 2018-4-13 10:57:38 | 显示全部楼层
jiyishiyoushang 发表于 2017-7-27 14:24
你好,我在gmake的时候遇到了同样的问题,请问你的问题解决了吗?
gfortran: source: No such file or dir ...

请问下你现在这个问题解决了吗?
密码修改失败请联系微信:mofangbao
发表于 2018-4-13 10:57:50 | 显示全部楼层
jiyishiyoushang 发表于 2017-7-27 14:24
你好,我在gmake的时候遇到了同样的问题,请问你的问题解决了吗?
gfortran: source: No such file or dir ...

我也出现了这个问题
密码修改失败请联系微信:mofangbao
发表于 2020-12-16 15:39:30 | 显示全部楼层
咋回事呢?
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

发表于 3 天前 | 显示全部楼层
生成的Macros文件里这三项:
MPICC:= mpicc  
MPICXX:= mpicxx
MPIFC:= mpif90
需要改成对应intel的
MPICC:= mpiicc
MPICXX:= mpiicpc
MPIFC:= mpifort
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表