爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 10418|回复: 8

运行CESM模式时build出错

[复制链接]
发表于 2013-9-29 19:46:45 | 显示全部楼层 |阅读模式

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

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

x
-------------------------------------------------------------------------
CCSM BUILDNML SCRIPT STARTING
- To prestage restarts, untar a restart.tar file into /home/yangkai/CESM/ROOTDIR/test01/run
- Create modelio namelist input files
CCSM BUILDNML SCRIPT HAS FINISHED SUCCESSFULLY
-------------------------------------------------------------------------
CCSM PRESTAGE SCRIPT STARTING
- CCSM input data directory, DIN_LOC_ROOT_CSMDATA, is /home/yangkai/CESM/datainput
- Case input data directory, DIN_LOC_ROOT, is /home/yangkai/CESM/datainput
- Checking the existence of input datasets in DIN_LOC_ROOT
CCSM PRESTAGE SCRIPT HAS FINISHED SUCCESSFULLY
-------------------------------------------------------------------------
CCSM BUILDEXE SCRIPT STARTING
- Build Libraries: mct pio csm_share
Sun Sep 29 19:38:10 CST 2013 /home/yangkai/CESM/ROOTDIR/test01/mct/mct.bldlog.130929-193809
Sun Sep 29 19:38:30 CST 2013 /home/yangkai/CESM/ROOTDIR/test01/pio/pio.bldlog.130929-193809
ERROR: pio.buildlib failed, see /home/yangkai/CESM/ROOTDIR/test01/pio/pio.bldlog.130929-193809
ERROR: cat /home/yangkai/CESM/ROOTDIR/test01/pio/pio.bldlog.130929-193809

然后执行命令 cat /home/yangkai/CESM/ROOTDIR/test01/pio/pio.bldlog.130929-193809 结果如下:
Sun Sep 29 19:38:30 CST 2013 /home/yangkai/CESM/ROOTDIR/test01/pio/pio.bldlog.130929-193809
Copying source to CCSM EXEROOT...
ignore pio file alloc_mod.F90
ignore pio file box_rearrange.F90
cp: omitting directory `configure.old'
ignore pio file iompi_mod.F90
ignore pio file mct_rearrange.F90
ignore pio file piodarray.F90
ignore pio file pionfatt_mod.F90
ignore pio file pionfget_mod.F90
ignore pio file pionfput_mod.F90
ignore pio file pionfread_mod.F90
ignore pio file pionfwrite_mod.F90
ignore pio file pio_spmd_utils.F90
ignore pio file pio_support.F90
ignore pio file rearrange.F90
New build of PIO
Running configure...
for OS=Linux MACH=generic_linux_intel
cat: Filepath: No such file or directory
cat: Srcfiles: No such file or directory
/home/yangkai/CESM/test01/Tools/mkSrcfiles > /home/yangkai/CESM/ROOTDIR/test01/pio/Srcfiles
cp -f /home/yangkai/CESM/ROOTDIR/test01/pio/Filepath /home/yangkai/CESM/ROOTDIR/test01/pio/Deppath
/home/yangkai/CESM/test01/Tools/mkDepends Deppath Srcfiles > /home/yangkai/CESM/ROOTDIR/test01/pio/Depends
./configure   --disable-mct --disable-timing  CC="mpicc" F90="mpif90" NETCDF_PATH="/usr/local/netcdf-3.6.3-intel-3.2.02" MPI_INC="-I/usr/local/mpich-1.2.7p1-intel-3.2.02/include"
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 mpicc accepts -g... yes
checking for mpicc option to accept ISO C89... none needed
checking for mpicc... mpicc
checking for MPI_Init... yes
checking for mpi.h... yes
checking how to run the C preprocessor... mpicc -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 for char... yes
checking size of char... 1
checking for int... yes
checking size of int... 4
checking for float... yes
checking size of float... 4
checking for double... yes
checking size of double... 8
checking for void *... yes
checking size of void *... 8
checking Fortran 90 filename extension... .F90
checking whether we are using the GNU Fortran 90 compiler... no
checking for mpxlf90_r... no
checking for mpxlf90... no
checking for mpxlf95... no
checking for mpif90... mpif90
checking for mpif.h... yes
checking MPI-IO support in MPI implementation... yes
checking how to get the version output from mpif90... -V
checking whether byte ordering is bigendian... no
configure: WARNING: UNKNOWN FORTRAN 90 COMPILER
checking whether fortran .mod file is uppercase... no
checking for Fortran 90 name-mangling scheme... lower case, underscore
checking for cpp... cpp
checking if Fortran 90 compiler performs preprocessing... yes
checking if C preprocessor can work with Fortran compiler... yes
Full hostname= localhost
Hostname=*****
Machine=x86_64
OS=Linux
using NETCDF_PATH from environment
configure: error: netcdf.mod not found in NETCDF_PATH/include                             check the environment variable NETCDF_PATH
gmake: *** [configure] 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.

请懂CESM的大神帮忙解决一下,急!!!!!!
密码修改失败请联系微信:mofangbao
发表于 2013-9-29 21:28:59 | 显示全部楼层
netcdf.mod not found in NETCDF_PATH/include
netcdf装好了吗,路径设置对了吗
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2013-9-29 21:47:07 | 显示全部楼层

我是在服务器上用的,应该都没问题,现在我发现可能是没有进行移植的问题,想请教,在新建了一个case之后,出错了,需要进行CESM移植,该怎么办?  PS:我看网上有很多都是用的Porting via user defined machine file ,移植之后再新建的case
密码修改失败请联系微信:mofangbao
发表于 2013-10-13 01:12:10 | 显示全部楼层
空中流云 发表于 2013-9-29 21:47
我是在服务器上用的,应该都没问题,现在我发现可能是没有进行移植的问题,想请教,在新建了一个case之后 ...

楼主您好!我也正在做移植cesm1.2方面的工作,build的时候错误和你的一模一样,你这个问题解决了没有,能否交流一下?
密码修改失败请联系微信:mofangbao
发表于 2013-10-13 01:43:42 | 显示全部楼层

回帖奖励 +1 金钱

您能否帮我分析一下,具体问题在这个帖子里面:http://bbs.06climate.com/forum.p ... id=17752&extra=

非常感谢,不胜感激!
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2013-10-17 11:40:09 | 显示全部楼层
fascism 发表于 2013-10-13 01:43
您能否帮我分析一下,具体问题在这个帖子里面:http://bbs.06climate.com/forum.p ... id=17752&extra=

...

这个应该是你的netcdf的路径有问题,改成 NETCDF_PATH试一下(可能之前是NETCDF),还有就是netcdf和mpich要用同一个编译器编译,你看一下
密码修改失败请联系微信:mofangbao
发表于 2013-10-17 12:30:21 | 显示全部楼层
空中流云 发表于 2013-10-17 11:40
这个应该是你的netcdf的路径有问题,改成 NETCDF_PATH试一下(可能之前是NETCDF),还有就是netcdf和mpic ...

netcdf和mpich都是用同一个编译器编译的,我感觉是我的版本问题,我现在用的是netcdf 4.3. 每次不是找不到netcdf c libraries就是找不到netcdf fortran libraries。您用的什么版本的netcdf?
密码修改失败请联系微信:mofangbao
发表于 2014-1-19 22:39:31 | 显示全部楼层
fascism 发表于 2013-10-17 12:30
netcdf和mpich都是用同一个编译器编译的,我感觉是我的版本问题,我现在用的是netcdf 4.3. 每次不是找不到 ...

自从netcdf的4.2版本开始,C版本和fortran版本分开发行,你必须都安装~~~而且不能分开装~~~
密码修改失败请联系微信:mofangbao
发表于 2016-7-21 19:09:15 | 显示全部楼层
请问你还能记得你这个问题是怎么解决的么,我移植之后也出现了同样的问题,重装了mpich和netcdf好多次还是没法解决
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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