爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 40228|回复: 34

求助大神,WRF安装编译时出错,放上log部分求帮助解决

[复制链接]

新浪微博达人勋

发表于 2015-3-18 13:42:31 | 显示全部楼层 |阅读模式

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

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

x
系统是centos7
编译器用的PGI10.6  安装完输入 pgf90测试pgf90-Warning-No files to process 成功
netcdf为4.1.3  输入#ncdump  出现操作说明
ncl为ncl_ncarg-6.1.2.Linux_Debian6.0_x86_64_nodap_gcc445  安装完测试图也能出来
然后安装WRF
/.cofigure后出现

Testing for NetCDF, C and Fortran compiler

This installation of NetCDF is 64-bit
                 C compiler is 64-bit
           Fortran compiler is 64-bit
              It will build in 64-bit



************************** W A R N I N G ************************************

There are some Fortran 2003 features in WRF that your compiler does not recognize
The IEEE signaling call has been removed.  That may not be enough.

看别人说warning可以不用管
然后开始编译,最后没有那四个exe,看编译的log,下面放上部分问题

ar: setfeenv.o: 没有那个文件或目录
make[2]: [shared] 错误 1 (忽略)
make[2]: 离开目录“/home/face/WRF/WRFV3/share”
make[1]: 离开目录“/home/face/WRF/WRFV3”

rm -f setfeenv.o
pgcc -o setfeenv.o -c -w -O3 -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -DNMM_CORE=0  setfeenv.c
PGC-S-0040-Illegal use of symbol, __SWBLK_T_TYPE (/usr/local/pgi/linux86-64/10.6/include/bits/types.h: 159)
PGC/x86-64 Linux 10.6-0: compilation completed with severe errors
make[2]: [setfeenv.o] 错误 2 (忽略)
rm -f input_wrf.o

libwrflib.a(couple_or_uncouple_em.o):在函数‘.C2_285’中:
couple_or_uncouple_em.f90:(.data+0x58):对‘module_bc_’未定义的引用
couple_or_uncouple_em.f90:(.data+0xe0):对‘module_model_constants_’未定义的引用
libwrflib.a(nest_init_utils.o):在函数‘input_terrain_rsmas_’中:
/home/face/WRF/WRFV3/dyn_em/./nest_init_utils.f90:520:对‘get_terrain_’未定义的引用
libwrflib.a(nest_init_utils.o):在函数‘.C9_17912’中:
nest_init_utils.f90:(.data+0x29c):对‘module_bc_’未定义的引用
nest_init_utils.f90:(.data+0x2d4):对‘module_model_constants_’未定义的引用
make[1]: [em_real] 错误 2 (忽略)
make[1]: 离开目录“/home/face/WRF/WRFV3/main”

然后就是出现好多  未定义的引用  这里有好多,只放一点
wrf.o:在函数‘.C1_283’中:
wrf.f90:(.data+0xa4):对‘module_check_a_mundo_’未定义的引用
wrf.f90:(.data+0xcc):对‘module_model_constants_’未定义的引用
../main/module_wrf_top.o:在函数‘module_wrf_top_wrf_init_’中:
/home/face/WRF/WRFV3/main/../main/module_wrf_top.f90:143:对‘init_modules_’未定义的引用
/home/face/WRF/WRFV3/main/../main/module_wrf_top.f90:151:对‘init_modules_’未定义的引用
/home/face/WRF/WRFV3/main/../main/module_wrf_top.f90:171:对‘module_check_a_mundo_check_nml_consistency_’未定义的引用
/home/face/WRF/WRFV3/main/../main/module_wrf_top.f90:171:对‘module_check_a_mundo_set_physics_rconfigs_’未定义的引用
/home/face/WRF/WRFV3/main/../main/module_wrf_top.f90:171:对‘init_wrfio_’未定义的引用
/home/face/WRF/WRFV3/main/../main/module_wrf_top.f90:253:对‘setup_timekeeping_’未定义的引用
/home/face/WRF/WRFV3/main/../main/module_wrf_top.f90:253:对‘med_initialdata_input_’未定义的引用
/home/face/WRF/WRFV3/main/../main/module_wrf_top.f90:282:对‘med_restart_out_’未定义的引用
../main/module_wrf_top.o:在函数‘module_wrf_top_wrf_finalize_’中:
/home/face/WRF/WRFV3/main/../main/module_wrf_top.f90:357:对‘med_shutdown_io_’未定义的引用
../main/module_wrf_top.o:在函数‘module_wrf_top_wrf_dfi_’中:
/home/face/WRF/WRFV3/main/../main/module_wrf_top.f90:390:对‘wrf_dfi_fwd_init_’未定义的引用
/home/face/WRF/WRFV3/main/../main/module_wrf_top.f90:390:对‘wrf_dfi_array_reset_’未定义的引用
/home/face/WRF/WRFV3/main/../main/module_wrf_top.f90:390:对‘wrf_dfi_fst_init_’未定义的引用
/home/face/WRF/WRFV3/main/../main/module_wrf_top.f90:404:对‘wrf_dfi_write_initialized_state_’未定义的引用
/home/face/WRF/WRFV3/main/../main/module_wrf_top.f90:408:对‘wrf_dfi_bck_init_’未定义的引用
/home/face/WRF/WRFV3/main/../main/module_wrf_top.f90:408:对‘wrf_dfi_fwd_init_’未定义的引用
/home/face/WRF/WRFV3/main/../main/module_wrf_top.f90:408:对‘wrf_dfi_array_reset_’未定义的引用
/home/face/WRF/WRFV3/main/../main/module_wrf_top.f90:408:对‘wrf_dfi_fst_init_’未定义的引用
/home/face/WRF/WRFV3/main/../main/module_wrf_top.f90:428:对‘wrf_dfi_write_initialized_state_’未定义的引用
/home/face/WRF/WRFV3/main/../main/module_wrf_top.f90:432:对‘wrf_dfi_bck_init_’未定义的引用
/home/face/WRF/WRFV3/main/../main/module_wrf_top.f90:432:对‘wrf_dfi_array_reset_’未定义的引用
/home/face/WRF/WRFV3/main/../main/module_wrf_top.f90:432:对‘wrf_dfi_fwd_init_’未定义的引用
/home/face/WRF/WRFV3/main/../main/module_wrf_top.f90:432:对‘wrf_dfi_array_reset_’未定义的引用
/home/face/WRF/WRFV3/main/../main/module_wrf_top.f90:432:对‘wrf_dfi_fst_init_’未定义的引用
/home/face/WRF/WRFV3/main/../main/module_wrf_top.f90:454:对‘wrf_dfi_write_initialized_state_’未定义的引用
../main/module_wrf_top.o:在函数‘module_wrf_top_alloc_doms_for_dfi_’中:
/home/face/WRF/WRFV3/main/../main/module_wrf_top.f90:514:对‘setup_timekeeping_’未定义的引用
/home/face/WRF/WRFV3/main/../main/module_wrf_top.f90:514:对‘med_nest_initial_’未定义的引用

libwrflib.a(module_integrate.o):在函数‘.C2_303’中:
module_integrate.f90:(.data+0x2f8):对‘module_model_constants_’未定义的引用
libwrflib.a(module_dm.o):在函数‘module_dm_patch_domain_rsl_lite_’中:
/home/face/WRF/WRFV3/frame/./module_dm.f90:621:对‘med_add_config_info_to_grid_’未定义的引用

ndown_em.o:在函数‘ndown_em’中:
/home/face/WRF/WRFV3/main/./ndown_em.f90:178:对‘init_modules_’未定义的引用
/home/face/WRF/WRFV3/main/./ndown_em.f90:178:对‘init_modules_’未定义的引用
/home/face/WRF/WRFV3/main/./ndown_em.f90:198:对‘module_check_a_mundo_check_nml_consistency_’未定义的引用

ndown_em.o:在函数‘ndown_em’中:
/home/face/WRF/WRFV3/main/./ndown_em.f90:842:对‘module_bc_stuff_bdytend_new_’未定义的引用
/home/face/WRF/WRFV3/main/./ndown_em.f90:842:对‘module_bc_stuff_bdytend_new_’未定义的引用

libwrflib.a(module_dm.o):在函数‘.C94_283’中:
module_dm.f90:(.data+0x888):对‘module_model_constants_’未定义的引用
libwrflib.a(module_io_quilt.o):在函数‘.C54_305’中:
module_io_quilt.f90:(.data+0x204):对‘module_model_constants_’未定义的引用
libwrflib.a(module_cpl.o):在函数‘.C13_283’中:
module_cpl.f90:(.data+0x4c0):对‘module_model_constants_’未定义的引用
libwrflib.a(module_big_step_utilities_em.o):在函数‘.C40_287’中:
module_big_step_utilities_em.f90:(.data+0x2dc):对‘module_llxy_’未定义的引用
module_big_step_utilities_em.f90:(.data+0x2e4):对‘module_model_constants_’未定义的引用
libwrflib.a(module_polarfft.o):在函数‘.C8_287’中:
module_polarfft.f90:(.data+0x394):对‘module_model_constants_’未定义的引用
libwrflib.a(couple_or_uncouple_em.o):在函数‘couple_or_uncouple_em_’中:
/home/face/WRF/WRFV3/dyn_em/./couple_or_uncouple_em.f90:177:对‘module_bc_set_physical_bc2d_’未定义的引用
/home/face/WRF/WRFV3/dyn_em/./couple_or_uncouple_em.f90:177:对‘module_bc_set_physical_bc2d_’未定义的引用
/home/face/WRF/WRFV3/dyn_em/./couple_or_uncouple_em.f90:177:对‘module_bc_set_physical_bc2d_’未定义的引用

最后面是这样
( cd test/em_real ; /bin/rm -f GENPARM.TBL ; ln -s ../../run/GENPARM.TBL . )
( cd test/em_real ; /bin/rm -f LANDUSE.TBL ; ln -s ../../run/LANDUSE.TBL . )
( cd test/em_real ; /bin/rm -f SOILPARM.TBL ; ln -s ../../run/SOILPARM.TBL . )
( cd test/em_real ; /bin/rm -f URBPARM.TBL ; ln -s ../../run/URBPARM.TBL . )
( cd test/em_real ; /bin/rm -f VEGPARM.TBL ; ln -s ../../run/VEGPARM.TBL . )
( cd test/em_real ; /bin/rm -f MPTABLE.TBL ; ln -s ../../run/MPTABLE.TBL . )
( cd test/em_real ; /bin/rm -f tr49t67 ; ln -s ../../run/tr49t67 . )
( cd test/em_real ; /bin/rm -f tr49t85 ; ln -s ../../run/tr49t85 . )
( cd test/em_real ; /bin/rm -f tr67t85 ; ln -s ../../run/tr67t85 . )
( cd test/em_real ; /bin/rm -f gribmap.txt ; ln -s ../../run/gribmap.txt . )
( cd test/em_real ; /bin/rm -f grib2map.tbl ; ln -s ../../run/grib2map.tbl . )
( cd run ; /bin/rm -f real.exe ; ln -s ../main/real.exe . )
( cd run ; /bin/rm -f tc.exe ; ln -s ../main/tc.exe . )
( cd run ; /bin/rm -f ndown.exe ; ln -s ../main/ndown.exe . )
( cd run ; /bin/rm -f nup.exe ; ln -s ../main/nup.exe . )
( cd run ; if test -f namelist.input ; then \
    /bin/cp -f namelist.input namelist.input.backup ; fi ; \
    /bin/rm -f namelist.input ; cp ../test/em_real/namelist.input . )
build started:   2015年 03月 18日 星期三 13:02:05 CST
build completed: 2015年 03月 18日 星期三 13:18:20 CST

求帮助啊




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

新浪微博达人勋

 楼主| 发表于 2015-4-9 16:59:17 | 显示全部楼层
安Mai 发表于 2015-4-8 18:35
这个问题解决了吗?我也遇到了这个问题

我已经转投GCC了。用centos7自带编译器就OK
密码修改失败请联系微信:mofangbao
回复 支持 1 反对 0

使用道具 举报

新浪微博达人勋

 楼主| 发表于 2015-3-18 13:43:54 | 显示全部楼层
求帮助  还需要什么我都贴上来
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2015-3-18 16:04:03 | 显示全部楼层
{:eb303:}
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

新浪微博达人勋

 楼主| 发表于 2015-3-19 20:00:51 | 显示全部楼层
求帮助阿,已经编译好几次了 包括前面的重装
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-4-8 18:35:37 | 显示全部楼层
这个问题解决了吗?我也遇到了这个问题
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-4-8 18:35:57 | 显示全部楼层
怎么样都不行,求助啊
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-4-8 18:38:08 | 显示全部楼层
我也是遇到一样的问题,装了无数次.exe都是红色!!!!求助
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-4-9 09:58:18 | 显示全部楼层
我也遇到了,我感觉是pgi的include路径要单独设置

PGC-S-0040-Illegal use of symbol, __SWBLK_T_TYPE (/home/program/pgi/linux86-64/10.6/include/bits/types.h: 159)
PGC-S-0040-Illegal use of symbol, __syscall_slong_t (/usr/include/time.h: 123)
PGC/x86-64 Linux 10.6-0: compilation completed with severe errors

我的是这个问题
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2015-4-9 17:00:44 | 显示全部楼层
搁浅的鱼 发表于 2015-4-8 18:38
我也是遇到一样的问题,装了无数次.exe都是红色!!!!求助

现在已经开始转了。我换成GCC GFORTRAN编译器了。centos7自带的就行
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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