爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 6026|回复: 4

wrf编译compile出错

[复制链接]
回帖奖励 4 金钱 回复本帖可获得 1 金钱奖励! 每人限 3 次

新浪微博达人勋

发表于 2014-12-2 09:26:53 | 显示全部楼层 |阅读模式

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

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

x
求教各位论坛学友,本人近日利用服务器编译wrf3.5.1理想模式(pgi编译器,configure选项都是1),此前编译过wrf没有问题,这次改动了dyn_em中的初始场文件后,./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

新浪微博达人勋

发表于 2018-5-9 20:28:18 | 显示全部楼层

回帖奖励 +1 金钱

我也出现了这个问题,请问您是怎么解决了这个问题啊,万分感谢!!!!
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2018-6-15 15:05:06 | 显示全部楼层

回帖奖励 +1 金钱

小猪爱睡觉 发表于 2018-5-9 20:28
我也出现了这个问题,请问您是怎么解决了这个问题啊,万分感谢!!!!

请问你的问题解决了吗?我也出现了类似的问题
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2018-6-16 18:00:43 | 显示全部楼层

回帖奖励 +1 金钱

木槿昔年617 发表于 2018-6-15 15:05
请问你的问题解决了吗?我也出现了类似的问题

没有。。。可能是机器带不动,如果你改过模式内部代码,数组什么的用完了就deallocate吧
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2018-11-28 13:32:24 | 显示全部楼层

回帖奖励 +1 金钱

2G这个limit最后能突破吗?
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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