- 积分
- 3085
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-5-16
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
最近在安装WRF3.5版本,./compile的时候不能正常的生成wrf.exe和real.exe,求大神们帮我看看问题出在哪了?
安装环境:
系统Centos 7.0
编译器及软件:
PGI 10.6 安装的时候没有作并行计算,经测试可正常运行一些小的fortran程序
netcdf 4.1.3 安装出现congratulations提示,然后ncdump也能出现返回正常信息。
GCC安装版本:
[root@KJ1610 WRFV3]# rpm -qa|grep gcc
gcc-gfortran-4.8.5-4.el7.x86_64
compat-gcc-44-4.4.7-8.el7.x86_64
compat-gcc-44-c++-4.4.7-8.el7.x86_64
libgcc-4.8.5-4.el7.x86_64
compat-gcc-44-gfortran-4.4.7-8.el7.x86_64
gcc-c++-4.8.5-4.el7.x86_64
gcc-4.8.5-4.el7.x86_64
zlib,jasper,libpng已安装,并设置了环境
环境设置如下:
#PGI
export PGI=/usr/local/pgi/
export PATH=$PGI/linux86-64/10.6/bin:$PATH
export MANPATH=$PGI/linux86-64/10.6/man:$MANPATH
export LM_LICENSE_FILE=$PGI/license.dat
#ZLIB
export ZLIB=/usr/local/zlib
export ZLIBLIB=/usr/local/lib
export ZLIBINC=/usr/local/include
#LIBPNG
export LIBPNG=/usr/local/libpng
export LIBPNGLIB=/usr/local/libpng/lib
export LIBPNGINC=/usr/local/libpng/include
#JASPER
export JASPERLIB=/usr/local/jasper/lib
export JASPERINC=/usr/local/jasper/include
export JASPER=/usr/local/jasper
#NETCDF
export NETCDF=/usr/local/netcdf
export NETCDF_LIB=$NETCDF/lib
export NETCDF_INC=$NETCDF/include
export PATH=$PATH:$NETCDF/bin
export LD_LIBRARY_PATH=$NETCDF/lib
#WRF
export WRFIO_NCD_LARGE_FILE_SUPPORT=1
export WRF_EM_CORE=1
export WRF_NMM_CORE=0
export WRF_DA_CORE=0
然后安装WRF主模块的时候:
./configure 选择1. Linux x86_64 i486 i586 i686, PGI compiler with gcc (serial),然后选择basic
./compile em_real的时候就报错了,错误提示如下:
rm -f io_grib_share.o
gcc -I. -w -O3 -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -DNMM_CORE=0 -c get_region_center.c
/lib/cpp -C -P -traditional -I. io_grib_share.F > io_grib_share.f90
pgf90 -r4 -i4 -I. -w -Mfree -byteswapio -I. -c io_grib_share.f90
PGF90-S-0034-Syntax error at or near / (io_grib_share.f90: 1)
PGF90-S-0034-Syntax error at or near identifier file (io_grib_share.f90: 2)
PGF90-S-0034-Syntax error at or near identifier gnu (io_grib_share.f90: 4)
PGF90-S-0034-Syntax error at or near identifier it (io_grib_share.f90: 5)
PGF90-S-0034-Syntax error at or near identifier as (io_grib_share.f90: 6)
PGF90-S-0034-Syntax error at or near real constant 2.0999999E+0 (io_grib_share.f90: 7)
PGF90-S-0034-Syntax error at or near identifier gnu (io_grib_share.f90: 9)
PGF90-S-0034-Syntax error at or near identifier without (io_grib_share.f90: 10)
PGF90-S-0034-Syntax error at or near identifier or (io_grib_share.f90: 11)
PGF90-S-0034-Syntax error at or near identifier general (io_grib_share.f90: 12)
PGF90-S-0034-Syntax error at or near identifier should (io_grib_share.f90: 14)
PGF90-S-0034-Syntax error at or near identifier along (io_grib_share.f90: 15)
PGF90-S-0034-Syntax error at or near < (io_grib_share.f90: 16)
PGF90-S-0034-Syntax error at or near / (io_grib_share.f90: 19)
PGF90-S-0034-Syntax error at or near identifier it (io_grib_share.f90: 20)
PGF90-S-0034-Syntax error at or near identifier t (io_grib_share.f90: 21)
PGF90-S-0034-Syntax error at or near < (io_grib_share.f90: 22)
PGF90-S-0034-Syntax error at or near identifier macros (io_grib_share.f90: 23)
PGF90-S-0034-Syntax error at or near identifier includes (io_grib_share.f90: 24)
PGF90-S-0034-Syntax error at or near identifier in (io_grib_share.f90: 25)
PGF90-S-0034-Syntax error at or near / (io_grib_share.f90: 27)
PGF90-S-0034-Syntax error at or near / (io_grib_share.f90: 29)
PGF90-S-0034-Syntax error at or near real constant 6.0000000E+0 (io_grib_share.f90: 30)
PGF90-S-0034-Syntax error at or near / (io_grib_share.f90: 32)
0 inform, 0 warnings, 24 severes, 0 fatal for get_dims
make[4]: [io_grib_share.o] 错误 2 (忽略)
gcc -I. -w -O3 -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -DNMM_CORE=0 -c gridnav.c
gcc -I. -w -O3 -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -DNMM_CORE=0 -c open_file.c
ar ru ./libio_grib_share.a io_grib_share.o get_region_center.o gridnav.o open_file.o
ar: 正在创建 ./libio_grib_share.a
ar: io_grib_share.o: 没有那个文件或目录
make[4]: [thisdir_archive] 错误 1 (忽略)
ranlib ./libio_grib_share.a
ranlib: './libio_grib_share.a': No such file
make[4]: [thisdir_archive] 错误 1 (忽略)
pgf90 -r4 -i4 -I. -w -Mfree -byteswapio -I. -I./MEL_grib1 -Igrib1_util -I../io_grib_share -I../ -c io_grib1.f90
PGF90-S-0034-Syntax error at or near / (io_grib1.f90: 1)
PGF90-S-0034-Syntax error at or near identifier file (io_grib1.f90: 2)
PGF90-S-0034-Syntax error at or near identifier gnu (io_grib1.f90: 4)
PGF90-S-0034-Syntax error at or near identifier it (io_grib1.f90: 5)
PGF90-S-0034-Syntax error at or near identifier as (io_grib1.f90: 6)
PGF90-S-0034-Syntax error at or near real constant 2.0999999E+0 (io_grib1.f90: 7)
PGF90-S-0034-Syntax error at or near identifier gnu (io_grib1.f90: 9)
PGF90-S-0034-Syntax error at or near identifier without (io_grib1.f90: 10)
PGF90-S-0034-Syntax error at or near identifier or (io_grib1.f90: 11)
PGF90-S-0034-Syntax error at or near identifier general (io_grib1.f90: 12)
PGF90-S-0034-Syntax error at or near identifier should (io_grib1.f90: 14)
PGF90-S-0034-Syntax error at or near identifier along (io_grib1.f90: 15)
PGF90-S-0034-Syntax error at or near < (io_grib1.f90: 16)
PGF90-S-0034-Syntax error at or near / (io_grib1.f90: 19)
PGF90-S-0034-Syntax error at or near identifier it (io_grib1.f90: 20)
PGF90-S-0034-Syntax error at or near identifier t (io_grib1.f90: 21)
PGF90-S-0034-Syntax error at or near < (io_grib1.f90: 22)
PGF90-S-0034-Syntax error at or near identifier macros (io_grib1.f90: 23)
PGF90-S-0034-Syntax error at or near identifier includes (io_grib1.f90: 24)
PGF90-S-0034-Syntax error at or near identifier in (io_grib1.f90: 25)
PGF90-S-0034-Syntax error at or near / (io_grib1.f90: 27)
PGF90-S-0034-Syntax error at or near / (io_grib1.f90: 29)
PGF90-S-0034-Syntax error at or near real constant 6.0000000E+0 (io_grib1.f90: 30)
PGF90-S-0034-Syntax error at or near / (io_grib1.f90: 32)
0 inform, 0 warnings, 24 severes, 0 fatal for gr1_data_info
PGF90-F-0000-Internal compiler error. interf:new_symbol, symbol not found 582 (io_grib1.f90: 136)
PGF90/x86-64 Linux 10.6-0: compilation aborted
make[4]: [io_grib1.o] 错误 2 (忽略)
gcc -I. -I./MEL_grib1 -Igrib1_util -I../io_grib_share -I../ -w -O3 -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -DNMM_CORE=0 -c trim.c
ar ru ./libio_grib1.a grib1_routines.o gribmap.o io_grib1.o trim.o
ar: io_grib1.o: 没有那个文件或目录
make[4]: [thisdir_archive] 错误 1 (忽略)
ranlib ./libio_grib1.a
还有还几个类以于这样的错误,感觉是PGI的问题,但不知道具体到底是哪个环节出问题了,求指导!谢谢!
|
|