爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 4004|回复: 11

求助:CESM1.2.2 building报错

[复制链接]

新浪微博达人勋

发表于 2016-10-16 16:42:02 | 显示全部楼层 |阅读模式

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

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

x
本帖最后由 bibi_king 于 2016-10-16 16:46 编辑

显示如下:

mct.bldlog.161016-160843文件显示:
Sun Oct 16 16:08:45 CST 2016 /nuist/scratch/AnneMu/cesm1_2_2/case/test1/intel/openmpi/nodebug/nothreads/mct.bldlog.161016-160843
setenv MCT_DIR /nuist/scratch/AnneMu/cesm1_2_2/models/utils/mct
setenv LIBDIR /nuist/scratch/AnneMu/cesm1_2_2/case/test1/intel/openmpi/nodebug/nothreads
setenv MCT_LIBDIR /nuist/scratch/AnneMu/cesm1_2_2/case/test1/intel/openmpi/nodebug/nothreads/mct
echo MCT_LIBDIR /nuist/scratch/AnneMu/cesm1_2_2/case/test1/intel/openmpi/nodebug/nothreads/mct
MCT_LIBDIR /nuist/scratch/AnneMu/cesm1_2_2/case/test1/intel/openmpi/nodebug/nothreads/mct
cd /nuist/scratch/AnneMu/cesm1_2_2/case/test1/intel/openmpi/nodebug/nothreads/mct
echo Copying source to CCSM EXEROOT...
Copying source to CCSM EXEROOT...
cp /nuist/scratch/AnneMu/cesm1_2_2/models/utils/mct/Makefile .
mkdir mct
cp /nuist/scratch/AnneMu/cesm1_2_2/models/utils/mct/mct/Makefile mct
mkdir mpeu
cp /nuist/scratch/AnneMu/cesm1_2_2/models/utils/mct/mpeu/Makefile mpeu
mkdir mpi-serial
cp /nuist/scratch/AnneMu/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=CESM
for OS=LINUX MACH=CESM
gmake -f /nuist/scratch/AnneMu/cesm1_2_2/scripts/test1/Tools/Makefile /nuist/scratch/AnneMu/cesm1_2_2/case/test1/intel/openmpi/nodebug/nothreads/mct/Makefile.conf
cat: Filepath: No such file or directory
cat: Srcfiles: No such file or directory

/nuist/scratch/AnneMu/cesm1_2_2/scripts/test1/Tools/mkSrcfiles
cp -f /nuist/scratch/AnneMu/cesm1_2_2/case/test1/intel/openmpi/nodebug/nothreads/mct/Filepath /nuist/scratch/AnneMu/cesm1_2_2/case/test1/intel/openmpi/nodebug/nothreads/mct/Deppath
/nuist/scratch/AnneMu/cesm1_2_2/scripts/test1/Tools/mkDepends  Deppath Srcfiles > /nuist/scratch/AnneMu/cesm1_2_2/case/test1/intel/openmpi/nodebug/nothreads/mct/Depends
SHAREDLIBROOT |/nuist/scratch/AnneMu/cesm1_2_2/case/test1| SHAREDPATH |/nuist/scratch/AnneMu/cesm1_2_2/case/test1/intel/openmpi/nodebug/nothreads|
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/nuist/scratch/AnneMu/cesm1_2_2/case/test1/intel/openmpi/nodebug/nothreads/mct':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
gmake: *** [/nuist/scratch/AnneMu/cesm1_2_2/case/test1/intel/openmpi/nodebug/nothreads/mct/Makefile.conf] Error 1
if ( 0 == 1 ) then
cp -p Makefile.conf Makefile.conf.old
cp: cannot stat `Makefile.conf': No such file or directory
gmake
Makefile:4: Makefile.conf: No such file or directory
gmake: *** No rule to make target `Makefile.conf'.  Stop.
exit 1


1.png

libnetcdff.so.5所在文件夹

libnetcdff.so.5所在文件夹
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2016-10-16 16:42:16 | 显示全部楼层
本帖最后由 bibi_king 于 2016-10-17 15:09 编辑



config.log文件中显示:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by MCT configure 2.8, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ /nuist/scratch/AnneMu/cesm1_2_2/models/utils/mct/configure CC=icc  FC=ifort  MPICC=mpicc   MPIFC=mpif90  FCFLAGS=-fp-model source -convert big_endian -assume byterecl -ftz -traceback -assume realloc_lhs  -O2  -free  -I.  -I/nuist/scratch/AnneMu/cesm1_2_2/case/test1/intel/openmpi/nodebug/nothreads/include -I/nuist/scratch/AnneMu/cesm1_2_2/case/test1/intel/openmpi/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/nuist/p/public/app/netcdf/4.3.0/intel/11.1.046/include -I/nuist/p/public/app/openmpi/1.8.4/intel/11.1.046/include -I/nuist/scratch/AnneMu/cesm1_2_2/case/test1/intel/openmpi/nodebug/nothreads/include -I/nuist/scratch/AnneMu/cesm1_2_2/models/csm_share/shr CPPDEFS= -DLINUX  -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRINTEL  -DHAVE_SLASHPROC CFLAGS=-O2 -fp-model precise   -DLINUX  -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRINTEL  -DHAVE_SLASHPROC -I.. -I.  -I/nuist/scratch/AnneMu/cesm1_2_2/case/test1/intel/openmpi/nodebug/nothreads/include -I/nuist/scratch/AnneMu/cesm1_2_2/case/test1/intel/openmpi/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/nuist/p/public/app/netcdf/4.3.0/intel/11.1.046/include -I/nuist/p/public/app/openmpi/1.8.4/intel/11.1.046/include -I/nuist/scratch/AnneMu/cesm1_2_2/case/test1/intel/openmpi/nodebug/nothreads/include -I/nuist/scratch/AnneMu/cesm1_2_2/models/csm_share/shr NETCDF_PATH=/nuist/p/public/app/netcdf/4.3.0/intel/11.1.046 LDFLAGS= LIBS=-L/nuist/p/public/app/netcdf/4.3.0/intel/11.1.046/lib -lnetcdf -lnetcdff --srcdir /nuist/scratch/AnneMu/cesm1_2_2/models/utils/mct

## --------- ##
## Platform. ##
## --------- ##

hostname = log03
uname -m = x86_64
uname -r = 2.6.32-220.el6.x86_64
uname -s = Linux
uname -v = #1 SMP Wed Nov 9 08:03:13 EST 2011

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = x86_64
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /nuist/p/public/app/matlab/2012a/bin
PATH: /nuist/p/public/app/nco/4.3.7/bin
PATH: /nuist/p/public/app/udunits/2.1.24/bin
PATH: /nuist/p/public/app/grib_api/1.11.0/intel/11.1.046/bin
PATH: /nuist/p/public/app/openmpi/1.8.4/intel/11.1.046/bin
PATH: /nuist/p/public/app/ncl/6.3.0/intel/11.1.046/bin
PATH: /nuist/p/public/app/cdo/1.6.2/bin
PATH: /nuist/p/public/app/netcdf/4.3.0/intel/11.1.046/bin
PATH: /nuist/p/public/app/hdf5/1.8.11/intel/11.1.046/bin
PATH: /nuist/p/public/app/idl/7.1.1/bin
PATH: /nuist/p/public/app/grads/2.0.2/bin
PATH: /nuist/p/public/app/intel/Compiler/11.1/046/bin/intel64
PATH: /usr/lib64/qt-3.3/bin
PATH: /nuist/p/public/PBS_EXEC/default/bin
PATH: /usr/local/bin
PATH: /bin
PATH: /usr/bin
PATH: /usr/local/sbin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/lpp/mmfs/bin
PATH: /opt/bin
PATH: /nuist/u/home/AnneMu/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2358: checking for C compiler version
configure:2367: icc  --version >&5
icc (ICC) 11.1 20090630
Copyright (C) 1985-2009 Intel Corporation.  All rights reserved.

configure:2378: $? = 0
configure:2367: icc  -v >&5
Version 11.1
configure:2378: $? = 0
configure:2367: icc  -V >&5
Intel(R) C Intel(R) 64 Compiler Professional for applications running on Intel(R) 64, Version 11.1    Build 20090630 Package ID: l_cproc_p_11.1.046
Copyright (C) 1985-2009 Intel Corporation.  All rights reserved.

configure:2378: $? = 0
configure:2367: icc  -qversion >&5
icc: command line warning #10006: ignoring unknown option '-qversion'
icc: command line error: no files specified; for help type "icc -help"
configure:2378: $? = 1
configure:2398: checking whether the C compiler works
configure:2420: icc  -O2 -fp-model precise   -DLINUX  -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRINTEL  -DHAVE_SLASHPROC -I.. -I.  -I/nuist/scratch/AnneMu/cesm1_2_2/case/test1/intel/openmpi/nodebug/nothreads/include -I/nuist/scratch/AnneMu/cesm1_2_2/case/test1/intel/openmpi/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/nuist/p/public/app/netcdf/4.3.0/intel/11.1.046/include -I/nuist/p/public/app/openmpi/1.8.4/intel/11.1.046/include -I/nuist/scratch/AnneMu/cesm1_2_2/case/test1/intel/openmpi/nodebug/nothreads/include -I/nuist/scratch/AnneMu/cesm1_2_2/models/csm_share/shr   conftest.c -L/nuist/p/public/app/netcdf/4.3.0/intel/11.1.046/lib -lnetcdf -lnetcdff >&5
configure:2424: $? = 0
configure:2472: result: yes
configure:2475: checking for C compiler default output file name
configure:2477: result: a.out
configure:2483: checking for suffix of executables
configure:2490: icc  -o conftest -O2 -fp-model precise   -DLINUX  -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRINTEL  -DHAVE_SLASHPROC -I.. -I.  -I/nuist/scratch/AnneMu/cesm1_2_2/case/test1/intel/openmpi/nodebug/nothreads/include -I/nuist/scratch/AnneMu/cesm1_2_2/case/test1/intel/openmpi/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/nuist/p/public/app/netcdf/4.3.0/intel/11.1.046/include -I/nuist/p/public/app/openmpi/1.8.4/intel/11.1.046/include -I/nuist/scratch/AnneMu/cesm1_2_2/case/test1/intel/openmpi/nodebug/nothreads/include -I/nuist/scratch/AnneMu/cesm1_2_2/models/csm_share/shr   conftest.c -L/nuist/p/public/app/netcdf/4.3.0/intel/11.1.046/lib -lnetcdf -lnetcdff >&5
configure:2494: $? = 0
configure:2516: result:
configure:2538: checking whether we are cross compiling
configure:2546: icc  -o conftest -O2 -fp-model precise   -DLINUX  -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRINTEL  -DHAVE_SLASHPROC -I.. -I.  -I/nuist/scratch/AnneMu/cesm1_2_2/case/test1/intel/openmpi/nodebug/nothreads/include -I/nuist/scratch/AnneMu/cesm1_2_2/case/test1/intel/openmpi/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/nuist/p/public/app/netcdf/4.3.0/intel/11.1.046/include -I/nuist/p/public/app/openmpi/1.8.4/intel/11.1.046/include -I/nuist/scratch/AnneMu/cesm1_2_2/case/test1/intel/openmpi/nodebug/nothreads/include -I/nuist/scratch/AnneMu/cesm1_2_2/models/csm_share/shr   conftest.c -L/nuist/p/public/app/netcdf/4.3.0/intel/11.1.046/lib -lnetcdf -lnetcdff >&5
configure:2550: $? = 0
configure:2557: ./conftest
./conftest: symbol lookup error: /nuist/p/public/app/netcdf/4.3.0/intel/11.1.046/lib/libnetcdff.so.5: undefined symbol: ncopts
configure:2561: $? = 127
configure:2568: error: in `/nuist/scratch/AnneMu/cesm1_2_2/case/test1/intel/openmpi/nodebug/nothreads/mct':
configure:2570: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details



根据config.log文件中提示的./conftest: symbol lookup error: /nuist/p/public/app/netcdf/4.3.0/intel/11.1.046/lib/libnetcdff.so.5: undefined symbol: ncopts 找到 libnetcdff.so.5所在的文件夹显示:



已经纠结了一个月了,各位大神走过路过千万不要错过~

万分感谢!!!
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2016-10-23 09:11:19 | 显示全部楼层

回帖奖励 +5 金钱

帮顶一个,
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

新浪微博达人勋

发表于 2016-10-26 21:00:20 | 显示全部楼层

回帖奖励 +5 金钱

求问有没有关于cesm的使用说明书?新手不懂怎么入门
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2016-10-27 20:44:11 | 显示全部楼层

谢谢
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2016-10-27 20:46:03 | 显示全部楼层
TZ一叶舟 发表于 2016-10-26 21:00
求问有没有关于cesm的使用说明书?新手不懂怎么入门

官网上可以下载。另外,QQ群:245364236,里面有很多run CESM的前辈。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2016-10-30 10:46:45 | 显示全部楼层
bibi_king 发表于 2016-10-27 20:46
官网上可以下载。另外,QQ群:245364236,里面有很多run CESM的前辈。

谢谢
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2017-4-15 09:42:21 | 显示全部楼层

回帖奖励 +5 金钱

请问解决了吗
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2017-5-26 18:35:07 | 显示全部楼层

没有,用其他方法build过了
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2017-7-14 14:05:34 | 显示全部楼层

回帖奖励 +5 金钱

{:eb502:}{:eb502:}{:eb502:}
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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