- 积分
- 67
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-5-17
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
大家好,最近我正在做CESM1.2.0移植的工作,但是到了$case.build这一步总是出错,我分别用了两组编译器尝试,第一组是pgi和openmpi,另一组是intel和mpich,但是得到的错误信息大同小异,下面主要说一下intel和mpich版本的,具体如下:
-------------------------------------------------------------------------
CESM BUILDNML SCRIPT STARTING
- To prestage restarts, untar a restart.tar file into /labs/climate/jiminglab2/baoqing/cesm1_2_0/mycases/test1/run
infile is /labs/climate/jiminglab2/baoqing/cesm1_2_0/scripts/test1/Buildconf/cplconf/cesm_namelist
CESM BUILDNML SCRIPT HAS FINISHED SUCCESSFULLY
-------------------------------------------------------------------------
-------------------------------------------------------------------------
CESM PRESTAGE SCRIPT STARTING
- Case input data directory, DIN_LOC_ROOT, is /archive/jiminglab07/baoqing/CESM/inputdata
- Checking the existence of input datasets in DIN_LOC_ROOT
CESM PRESTAGE SCRIPT HAS FINISHED SUCCESSFULLY
-------------------------------------------------------------------------
-------------------------------------------------------------------------
CESM BUILDEXE SCRIPT STARTING
COMPILER is intel
- Build Libraries: mct gptl pio csm_share
Sat Oct 12 11:19:19 MDT 2013 /labs/climate/jiminglab2/baoqing/cesm1_2_0/mycases/test1/bld/mct/mct.bldlog.131012-111916
Sat Oct 12 11:20:09 MDT 2013 /labs/climate/jiminglab2/baoqing/cesm1_2_0/mycases/test1/bld/gptl/gptl.bldlog.131012-111916
Sat Oct 12 11:20:12 MDT 2013 /labs/climate/jiminglab2/baoqing/cesm1_2_0/mycases/test1/bld/pio/pio.bldlog.131012-111916
ERROR: buildlib.pio failed, see /labs/climate/jiminglab2/baoqing/cesm1_2_0/mycases/test1/bld/pio/pio.bldlog.131012-111916
ERROR: cat /labs/climate/jiminglab2/baoqing/cesm1_2_0/mycases/test1/bld/pio/pio.bldlog.131012-111916
pio.bldlog.131012-111916文件具体内容是:
Sat Oct 12 11:20:12 MDT 2013 /labs/climate/jiminglab2/baoqing/cesm1_2_0/mycases/test1/bld/pio/pio.bldlog.131012-111916
Copying source to CCSM EXEROOT...
New build of PIO
Running configure...
for OS=LINUX MACH=userdefined
cat: Filepath: No such file or directory
cat: Srcfiles: No such file or directory
/labs/climate/jiminglab2/baoqing/cesm1_2_0/scripts/test1/Tools/mkSrcfiles
cp -f /labs/climate/jiminglab2/baoqing/cesm1_2_0/mycases/test1/bld/pio/Filepath /labs/climate/jiminglab2/baoqing/cesm1_2_0/mycases/test1/bld/pio/Deppath
/labs/climate/jiminglab2/baoqing/cesm1_2_0/scripts/test1/Tools/mkDepends Deppath Srcfiles > /labs/climate/jiminglab2/baoqing/cesm1_2_0/mycases/test1/bld/pio/Depends
cd /labs/climate/jiminglab2/baoqing/cesm1_2_0/mycases/test1/bld/pio; \
/labs/climate/jiminglab2/baoqing/cesm1_2_0/models/utils/pio/configure --enable-timing CC="icc " FC="ifort " MPICC="mpicc " MPIFC="mpif90 " FCFLAGS="-O2 -fp-model source -convert big_endian -assume byterecl -ftz -traceback -free -I. -I/labs/climate/jiminglab2/baoqing/cesm1_2_0/mycases/test1/bld/pio -I/rc/tools/free/redhat_6_x86_64/datatools-climate-ifort-icc-mvapich2-0//include -I/rc/tools/free/redhat_6_x86_64/datatools-climate-ifort-icc-mvapich2-0//include -I/rc/tools/free/redhat_6_x86_64/datatools-climate-ifort-icc-mvapich2-0//include -I/labs/climate/jiminglab2/baoqing/cesm1_2_0/mycases/test1/bld/mct/mct -I/labs/climate/jiminglab2/baoqing/cesm1_2_0/mycases/test1/bld/mct/mpeu -I/labs/climate/jiminglab2/baoqing/cesm1_2_0/mycases/test1/bld/pio -I/labs/climate/jiminglab2/baoqing/cesm1_2_0/mycases/test1/bld/gptl -I/labs/climate/jiminglab2/baoqing/cesm1_2_0/models/utils/pio -I/labs/climate/jiminglab2/baoqing/cesm1_2_0/mycases/test1/bld/lib/include" CPPDEFS=" -DLINUX -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRINTEL -DHAVE_SLASHPROC" CFLAGS="-O2 -fp-model precise -DLINUX -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRINTEL -DHAVE_SLASHPROC -I.. -I. -I/labs/climate/jiminglab2/baoqing/cesm1_2_0/mycases/test1/bld/pio -I/rc/tools/free/redhat_6_x86_64/datatools-climate-ifort-icc-mvapich2-0//include -I/rc/tools/free/redhat_6_x86_64/datatools-climate-ifort-icc-mvapich2-0//include -I/rc/tools/free/redhat_6_x86_64/datatools-climate-ifort-icc-mvapich2-0//include -I/labs/climate/jiminglab2/baoqing/cesm1_2_0/mycases/test1/bld/mct/mct -I/labs/climate/jiminglab2/baoqing/cesm1_2_0/mycases/test1/bld/mct/mpeu -I/labs/climate/jiminglab2/baoqing/cesm1_2_0/mycases/test1/bld/pio -I/labs/climate/jiminglab2/baoqing/cesm1_2_0/mycases/test1/bld/gptl -I/labs/climate/jiminglab2/baoqing/cesm1_2_0/models/utils/pio -I/labs/climate/jiminglab2/baoqing/cesm1_2_0/mycases/test1/bld/lib/include" NETCDF_PATH=/rc/tools/free/redhat_6_x86_64/datatools-climate-ifort-icc-mvapich2-0/ LDFLAGS="" LIBS="" PNETCDF_PATH=/rc/tools/free/redhat_6_x86_64/datatools-climate-ifort-icc-mvapich2-0/ --srcdir /labs/climate/jiminglab2/baoqing/cesm1_2_0/models/utils/pio
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether icc accepts -g... yes
checking for icc option to accept ISO C89... none needed
checking how to run the C preprocessor... icc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking whether we are using the GNU Fortran compiler... no
checking whether ifort accepts -g... yes
checking for Fortran flag to compile .F90 files... none
checking for Fortran flag needed to accept free-form source... none
checking for Fortran flag needed to accept 132 column source lines... none
checking for Fortran flag to compile preprocessed .F files... none
checking how to define symbols for preprocessed Fortran... -D
checking for ftn... mpif90
checking for mpif.h... yes
checking for Fortran flag to compile .F90 files... (cached) none
checking for mpi.mod... yes
checking Fortran support for c_sizeof()... yes
checking MPI-IO support in MPI implementation... yes
Full hostname= login-02
Hostname=login-02.rc.usu.edu
Machine=x86_64
OS=Linux
checking Fortran 90 module extension... mod
checking Fortran 90 module inclusion flag... -I
using NETCDF_PATH from environment
checking for Fortran flag to compile .F90 files... (cached) none
checking for hdf5... yes
checking for H5open in -lhdf5... no
checking for H5Dclose in -lhdf5_hl... no
configure: Fortran not checked for yet
checking for netcdf... /rc/tools/free/redhat_6_x86_64/datatools-climate-ifort-icc-mvapich2-0/
checking for library containing nc_inq_libvers... -lnetcdf
checking for library containing NF_INQ_LIBVERS... no
configure: error: cannot find netCDF fortran library
gmake: *** [/labs/climate/jiminglab2/baoqing/cesm1_2_0/mycases/test1/bld/pio/Makefile.conf] Error 1
cp: cannot stat `Makefile.conf': No such file or directory
Makefile:25: Makefile.conf: No such file or directory
gmake: *** No rule to make target `Makefile.conf'. Stop.
我感觉是netcdf有问题,但是我的netcdf已经安装测试过了,应该好着呢。
我看了天道酬勤发表的帖子:http://bbs.06climate.com/forum.php?mod=viewthread&tid=14380
感觉很有道理,应该是没有
cp: cannot stat `Makefile.conf.old': No such file or directory
cp: cannot stat `Makefile.conf': No such file or directory
Makefile:4: Makefile.conf: No such file or directory
make: *** No rule to make target `Makefile.conf'. Stop.
感觉是缺少Makefile.conf.old以及Makefile.conf。然后按照他的方法,
cd ...../cesm/models/utils/mct
./configure这一步正常完成了,但是当我
cd ...../cesm/models/utils/pio
./configure的时候,又出错了,具体作物信息如下:
checking for xlc... no
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking for gfortran... gfortran
checking whether we are using the GNU Fortran compiler... yes
checking whether gfortran accepts -g... yes
checking for Fortran flag to compile .F90 files... none
checking for Fortran flag needed to accept free-form source... none
checking for Fortran flag needed to accept 132 column source lines... none
checking for Fortran flag to compile preprocessed .F files... none
checking how to define symbols for preprocessed Fortran... -D
checking for ftn... no
checking for mpif90... mpif90
checking for MPI_Init... yes
checking for mpif.h... yes
checking for Fortran flag to compile .F90 files... (cached) none
checking for mpi.mod... yes
checking Fortran support for c_sizeof()... no
checking Fortran support for sizeof()... yes
checking MPI-IO support in MPI implementation... no
Full hostname= login-02
Hostname=login-02.rc.usu.edu
Machine=x86_64
OS=Linux
checking Fortran 90 module extension... mod
checking Fortran 90 module inclusion flag... -I
configure: WARNING: NETCDF_PATH not found in environment, defaulting to /usr/local/netcdf
checking for Fortran flag to compile .F90 files... (cached) none
checking for hdf5... yes
checking for H5open in -lhdf5... no
checking for H5Dclose in -lhdf5_hl... no
configure: Fortran not checked for yet
checking for netcdf... yes
checking for library containing nc_inq_libvers... no
configure: error: cannot find netCDF C library
还是netcdf的问题,我现在严重怀疑我的netcdf版本有问题,我用的是netcdf 4.3.0. 不知道netcdf用什么版本的比较好呢?
或者有什么其他原因,请大家帮我分析一下!我已经卡了快10天了,不胜感激!希望能尽快解决
|
|