爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 10178|回复: 0

make[1]: *** [airs2m3] Error 1

[复制链接]

新浪微博达人勋

发表于 2020-7-19 12:24:55 | 显示全部楼层 |阅读模式
2金钱
编译ioapi的时候遇到make[1]: *** [airs2m3] Error 1报错,用的是intel编译器,请教大神有什么解决方法,所有的编译过程如下:
################ intel #####################
source /data/software/intel/bin/compilervars.sh intel64
export FC=ifort
export CC=icc
export CXX=icpc
export BIN=Linux2_x86_64ifort



################# zlib ###############
cd/opt/zlib
unzip zlib-1.2.11.zip
cdzlib-1.2.11
./configure--prefix=/data/software/wrf/netcdf-intel
sed -i's/CC=gcc/CC=icc/' Makefile
make -j 8
makeinstall


################# hdf5 ###############
cd/opt/hdf5
tar -xzvfhdf5-1.12.0.tar.gz
cd hdf5-1.12.0
./configure--prefix=/data/software/wrf/netcdf-intel --with-zlib=/data/software/wrf/netcdf-intel--enable-fortran --enable-cxx CC=icc FC=ifort
make -j 8
makeinstall


################## netcdf-c ###############
yuminstall libjpeg*
cd/opt/netcdf
tar -xzvfnetcdf-c-4.7.4.tar.gz
cdnetcdf-c-4.7.4
./configure--prefix=/data/software/wrf/netcdf-intel CC=icc FC=ifortCPPFLAGS=-I/data/software/wrf/netcdf-intel/includeLDFLAGS=-L/data/software/wrf/netcdf-intel/lib --enable-shared --disable-dap
make -j 8
makeinstall


################## netcdf-fortran ###############
cd/opt/netcdf
tar -xzvfnetcdf-fortran-4.5.3.tar.gz
cdnetcdf-fortran-4.5.3
export LD_LIBRARY_PATH=/data/software/wrf/netcdf-intel/lib:$LD_LIBRARY_PATH
./configure--prefix=/data/software/wrf/netcdf-intel CC=icc FC=ifortCPPFLAGS=-I/data/software/wrf/netcdf-intel/include FCFLAGS=-I/data/software/wrf/netcdf-intel/includeLDFLAGS=-L/data/software/wrf/netcdf-intel/lib
make -j 8
makeinstall


################## ioapi #####################
mkdir /opt/ioapi-3.2-intel
tar -xzvf/opt/ioapi/ioapi-3.2.tar.gz -C /opt/ioapi-3.2-intel
cd /opt/ioapi-3.2-intel
cp Makefile.template Makefile
vim Makefile
VERSION    = 3.2-${CPLMODE}
BASEDIR    = ${PWD}
BIN        = Linux2_x86_64ifort
INSTALL    = /data/software/wrf/ioapi/ioapi-3.2
LIBINST    = $(INSTALL)/$(BIN)
BININST    = $(INSTALL)/$(BIN)
CPLMODE    = nocpl
IOAPIDEFS  =
PVMINCL    =
NCFLIBS    = -lnetcdff -lnetcdf
IODIR      = $(BASEDIR)/ioapi
FIXDIR     = $(IODIR)/fixed_src
HTMLDIR    = $(BASEDIR)/HTML
TOOLDIR    = $(BASEDIR)/m3tools
OBJDIR     = $(BASEDIR)/$(BIN)


cp ioapi/Makefile.nocplioapi/Makefile
cp m3tools/Makefile.nocplm3tools/Makefile


mkdir $BIN
cp/data/software/wrf/netcdf-intel/lib/* $BIN
make configure
make -j 8
make install


################ 报错信息 ##################
ifort: command line remark #10411: option '-openmp' is deprecated and will be removed in a future release. Please use the replacement option '-qopenmp'
/opt/ioapi-3.2-intel/Linux2_x86_64ifort/libnetcdff.a(nf_var1io.o): In function `nf_put_var1_int64_':
nf_var1io.F90:(.text+0x16e0): multiple definition of `nf_put_var1_int64_'
/opt/ioapi-3.2-intel/Linux2_x86_64ifort/libioapi.a(modncfio.o):modncfio.F90:(.text+0x71360): first defined here
/opt/ioapi-3.2-intel/Linux2_x86_64ifort/libnetcdff.a(nf_var1io.o): In function `nf_get_var1_int64_':
nf_var1io.F90:(.text+0x3600): multiple definition of `nf_get_var1_int64_'
/opt/ioapi-3.2-intel/Linux2_x86_64ifort/libioapi.a(modncfio.o):modncfio.F90:(.text+0x71380): first defined here
/opt/ioapi-3.2-intel/Linux2_x86_64ifort/libnetcdff.a(nf_varaio.o): In function `nf_put_vara_int64_':
nf_varaio.F90:(.text+0x32c0): multiple definition of `nf_put_vara_int64_'
/opt/ioapi-3.2-intel/Linux2_x86_64ifort/libioapi.a(modncfio.o):modncfio.F90:(.text+0x713a0): first defined here
/opt/ioapi-3.2-intel/Linux2_x86_64ifort/libnetcdff.a(nf_varaio.o): In function `nf_get_vara_int64_':
nf_varaio.F90:(.text+0x7510): multiple definition of `nf_get_vara_int64_'
/opt/ioapi-3.2-intel/Linux2_x86_64ifort/libioapi.a(modncfio.o):modncfio.F90:(.text+0x713c0): first defined here
make[1]: *** [airs2m3] Error 1
make[1]: Leaving directory `/opt/ioapi-3.2-intel/m3tools'
make: *** [all] Error 2

密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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