爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 5035|回复: 6

[提问] wrf安装compile报错

[复制链接]

新浪微博达人勋

发表于 2014-12-1 09:46:41 | 显示全部楼层 |阅读模式

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

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

x
求教各位论坛学友,本人近日利用服务器编译wrf3.5.1(pgi编译器,configure选项都是1),此前编译过wrf没有问题,这次改动了其中的初始文件后,./compile em_b_wave并没有生成ideal.exe和wrf.exe,报错如下:
pgf90 -o ideal.exe  -O3  -w -Mfree -byteswapio     ideal_em.o ../dyn_em/module_initialize_b_wave.o libwrflib.a /gpfs2/home/dwang/WRF3/WRFV3/external/fftpack/fftpack5/libfftpack.a /gpfs2/home/dwang/WRF3/WRFV3/external/io_grib1/libio_grib1.a /gpfs2/home/dwang/WRF3/WRFV3/external/io_grib_share/libio_grib_share.a /gpfs2/home/dwang/WRF3/WRFV3/external/io_int/libwrfio_int.a -L/gpfs2/home/dwang/WRF3/WRFV3/external/esmf_time_f90 -lesmf_time /gpfs2/home/dwang/WRF3/WRFV3/external/RSL_LITE/librsl_lite.a /gpfs2/home/dwang/WRF3/WRFV3/frame/module_internal_header_util.o /gpfs2/home/dwang/WRF3/WRFV3/frame/pack_utils.o  -L/gpfs2/home/dwang/WRF3/WRFV3/external/io_netcdf -lwrfio_nf -L/software/netcdf-3.6.3-pgi/lib  -lnetcdf
/software/pgi-10.6/linux86-64/10.6/lib/libpgf90.a(initpar.o)(.text+0x2): In function `__hpf_myprocnum':
: relocation truncated to fit: R_X86_64_PC32 __hpf_lcpu
/software/pgi-10.6/linux86-64/10.6/lib/libpgf90.a(initpar.o)(.text+0x12): In function `__hpf_ncpus':
: relocation truncated to fit: R_X86_64_PC32 __hpf_tcpus
/software/pgi-10.6/linux86-64/10.6/lib/libpgf90.a(initpar.o)(.text+0x22): In function `__hpf_getioproc':
: relocation truncated to fit: R_X86_64_PC32 __hpf_ioproc
/software/pgi-10.6/linux86-64/10.6/lib/libpgf90.a(initpar.o)(.text+0x5f): In function `__hpf_abort':

: relocation truncated to fit: R_X86_64_PC32 __hpf_lcpu
/software/pgi-10.6/linux86-64/10.6/lib/libpgf90.a(initpar.o)(.text+0xeb): In function `__hpf_abortp':
: relocation truncated to fit: R_X86_64_PC32 __hpf_lcpu
/software/pgi-10.6/linux86-64/10.6/lib/libpgf90.a(initpar.o)(.text+0x127): In function `__hpf_initarg':
: relocation truncated to fit: R_X86_64_PC32 .bss
/software/pgi-10.6/linux86-64/10.6/lib/libpgf90.a(initpar.o)(.text+0x151): In function `__hpf_initarg':
: relocation truncated to fit: R_X86_64_PC32 .bss
/software/pgi-10.6/linux86-64/10.6/lib/libpgf90.a(initpar.o)(.text+0x17b): In function `__hpf_initarg':
: relocation truncated to fit: R_X86_64_PC32 .bss
/software/pgi-10.6/linux86-64/10.6/lib/libpgf90.a(initpar.o)(.text+0x18b): In function `__hpf_initarg':
: additional relocation overflows omitted from the output
make[1]: [em_ideal] Error 2 (ignored)


在网上寻找答案,好像错误是静态数组物理内存超出了2G,建议改动编译器属性(-mcmodel=medium),结果报错如下:
pgf90 -o ideal.exe  -O3 -mcmodel=medium  -w -Mfree -byteswapio     ideal_em.o ../dyn_em/module_initialize_b_wave.o libwrflib.a /gpfs2/home/dwang/WRF3/WRFV3/external/fftpack/fftpack5/libfftpack.a /gpfs2/home/dwang/WRF3/WRFV3/external/io_grib1/libio_grib1.a /gpfs2/home/dwang/WRF3/WRFV3/external/io_grib_share/libio_grib_share.a /gpfs2/home/dwang/WRF3/WRFV3/external/io_int/libwrfio_int.a -L/gpfs2/home/dwang/WRF3/WRFV3/external/esmf_time_f90 -lesmf_time /gpfs2/home/dwang/WRF3/WRFV3/external/RSL_LITE/librsl_lite.a /gpfs2/home/dwang/WRF3/WRFV3/frame/module_internal_header_util.o /gpfs2/home/dwang/WRF3/WRFV3/frame/pack_utils.o  -L/gpfs2/home/dwang/WRF3/WRFV3/external/io_netcdf -lwrfio_nf -L/software/netcdf-3.6.3-pgi/lib  -lnetcdf
ideal_em.o(.text+0x7d): In function `ideal':

./ideal_em.f90:56: relocation truncated to fit: R_X86_64_32 _module_domain_type_1_
ideal_em.o(.text+0x11d):./ideal_em.f90:71: relocation truncated to fit: R_X86_64_32 _module_domain_type_1_
ideal_em.o(.text+0x148):./ideal_em.f90:71: relocation truncated to fit: R_X86_64_32 _module_domain_0_
ideal_em.o(.text+0x153):./ideal_em.f90:71: relocation truncated to fit: R_X86_64_32 _module_domain_0_
ideal_em.o(.text+0x15f):./ideal_em.f90:71: relocation truncated to fit: R_X86_64_PC32 _module_domain_0_
ideal_em.o(.text+0x3ae):./ideal_em.f90:71: relocation truncated to fit: R_X86_64_PC32 _module_domain_0_
ideal_em.o(.text+0x3ba):./ideal_em.f90:71: relocation truncated to fit: R_X86_64_32 _module_configure_0_
ideal_em.o(.text+0x3df):./ideal_em.f90:71: relocation truncated to fit: R_X86_64_PC32 _module_domain_0_
ideal_em.o(.text+0x42b):./ideal_em.f90:71: relocation truncated to fit: R_X86_64_32 _module_date_time_1_

ideal_em.o(.text+0x4ef):./ideal_em.f90:71: relocation truncated to fit: R_X86_64_32 _module_wrf_error_1_
ideal_em.o(.text+0x535):./ideal_em.f90:71: additional relocation overflows omitted from the output
make[1]: [em_ideal] Error 2 (ignored)

错误类型没发生变化,但是错误的地方发生了改变。着实无可奈何,望各位能指点一二,不胜感激!
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-12-1 09:48:31 | 显示全部楼层
发错版块了吧
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2014-12-2 09:21:07 | 显示全部楼层
多谢提醒,哎呀,真发错啦,
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-12-2 09:38:26 | 显示全部楼层
真不错!赞哦!~
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2014-12-2 09:38:33 | 显示全部楼层

哎呀,真发错啦,多谢提醒哈,请教如何才能删除此贴呢
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-12-3 10:00:31 | 显示全部楼层
MeteroCl 发表于 2014-12-2 09:38
哎呀,真发错啦,多谢提醒哈,请教如何才能删除此贴呢

不知道哈哈,你可以私信版主或者直接换板块吧
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-6-1 12:25:58 | 显示全部楼层
不知道怎么回事
!!!
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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