爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 2051|回复: 4

在ubuntu上安装WRF

[复制链接]
发表于 2016-3-19 10:27:31 | 显示全部楼层 |阅读模式
GrADS
系统平台: ubuntu14.04
问题截图: -
问题概况: 在ubuntu和centos上安装WRF,都挺顺利的。最后安装WPS时,./configure后出现下面问题:
Configuration successful. To build the WPS, type: compile
------------------------------------------------------------------------

Testing for NetCDF, C and Fortran compiler

This installation NetCDF is 64-bit
C compiler is 64-bit
Fortran compiler is 64-bit


Your Fortran + NETCDF did not run successfully.

忽略错误继续安装,出现了以下错误:
enc_png.c:67: 错误:‘png_structp’未声明(在此函数内第一次使用)
enc_png.c:67: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其
enc_png.c:67: 错误:所在的函数内也只报告一次。)
enc_png.c:67: 错误:expected ‘;’ before ‘png_ptr’
enc_png.c:68: 错误:‘png_infop’未声明(在此函数内第一次使用)
enc_png.c:68: 错误:expected ‘;’ before ‘info_ptr’
enc_png.c:70: 错误:‘png_bytep’未声明(在此函数内第一次使用)
enc_png.c:70: 错误:‘row_pointers’未声明(在此函数内第一次使用)
enc_png.c:75: 错误:‘png_ptr’未声明(在此函数内第一次使用)
enc_png.c:75: 错误:‘PNG_LIBPNG_VER_STRING’未声明(在此函数内第一次使用)
enc_png.c:75: 错误:‘png_voidp’未声明(在此函数内第一次使用)
enc_png.c:80: 错误:‘info_ptr’未声明(在此函数内第一次使用)
enc_png.c:83: 错误:‘png_infopp’未声明(在此函数内第一次使用)
enc_png.c:97: 错误:expected ‘;’ before ‘pngbuf’
enc_png.c:102: 错误:‘png_rw_ptr’未声明(在此函数内第一次使用)
enc_png.c:102: 错误:expected ‘)’ before ‘user_write_data’
enc_png.c:111: 错误:‘PNG_COLOR_TYPE_GRAY’未声明(在此函数内第一次使用)
enc_png.c:114: 错误:‘PNG_COLOR_TYPE_RGB’未声明(在此函数内第一次使用)
enc_png.c:118: 错误:‘PNG_COLOR_TYPE_RGB_ALPHA’未声明(在此函数内第一次使用)
enc_png.c:121: 错误:‘PNG_INTERLACE_NONE’未声明(在此函数内第一次使用)
enc_png.c:122: 错误:‘PNG_COMPRESSION_TYPE_DEFAULT’未声明(在此函数内第一次使用)
enc_png.c:122: 错误:‘PNG_FILTER_TYPE_DEFAULT’未声明(在此函数内第一次使用)
enc_png.c:129: 错误:expected expression before ‘)’ token
enc_png.c:130: 错误:‘png_bytepp’未声明(在此函数内第一次使用)
enc_png.c:130: 错误:expected ‘)’ before ‘row_pointers’
enc_png.c:134: 错误:‘PNG_TRANSFORM_IDENTITY’未声明(在此函数内第一次使用)
make[2]: [enc_png.o] 错误 1 (忽略)
gcc -c -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -I/usr/local/zlib/include -I/usr/local/jasper/include -I/usr/local/libpng/ -DUSE_JPEG2000 -DUSE_PNG -D__64BIT__ dec_png.c
dec_png.c:5:17: 错误:png.h:没有那个文件或目录
dec_png.c:28: 警告:函数声明中出现形参名却未指定类型
dec_png.c:30: 错误:expected ‘)’ before ‘png_ptr’
dec_png.c: 在函数‘dec_png_’中:
dec_png.c:56: 错误:‘png_structp’未声明(在此函数内第一次使用)
dec_png.c:56: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其
dec_png.c:56: 错误:所在的函数内也只报告一次。)
dec_png.c:56: 错误:expected ‘;’ before ‘png_ptr’
dec_png.c:57: 错误:‘png_infop’未声明(在此函数内第一次使用)
dec_png.c:57: 错误:expected ‘;’ before ‘info_ptr’
dec_png.c:58: 错误:‘png_bytepp’未声明(在此函数内第一次使用)
dec_png.c:58: 错误:expected ‘;’ before ‘row_pointers’
dec_png.c:60: 错误:‘png_uint_32’未声明(在此函数内第一次使用)
dec_png.c:60: 错误:expected ‘;’ before ‘h32’
dec_png.c:69: 错误:‘png_ptr’未声明(在此函数内第一次使用)
dec_png.c:69: 错误:‘PNG_LIBPNG_VER_STRING’未声明(在此函数内第一次使用)
dec_png.c:69: 错误:‘png_voidp’未声明(在此函数内第一次使用)
dec_png.c:74: 错误:‘info_ptr’未声明(在此函数内第一次使用)
dec_png.c:77: 错误:‘png_infopp’未声明(在此函数内第一次使用)
dec_png.c:81: 错误:‘end_info’未声明(在此函数内第一次使用)
dec_png.c:84: 错误:expected ‘)’ before ‘info_ptr’
dec_png.c:98: 错误:expected ‘;’ before ‘pngbuf’
dec_png.c:103: 错误:‘png_rw_ptr’未声明(在此函数内第一次使用)
dec_png.c:103: 错误:expected ‘)’ before ‘user_read_data’
dec_png.c:108: 错误:‘PNG_TRANSFORM_IDENTITY’未声明(在此函数内第一次使用)
dec_png.c:112: 错误:‘row_pointers’未声明(在此函数内第一次使用)
dec_png.c:119: 错误:‘w32’未声明(在此函数内第一次使用)
dec_png.c:119: 错误:‘h32’未声明(在此函数内第一次使用)
dec_png.c:132: 错误:‘PNG_COLOR_TYPE_RGB’未声明(在此函数内第一次使用)
dec_png.c:135: 错误:‘PNG_COLOR_TYPE_RGB_ALPHA’未声明(在此函数内第一次使用)
make[2]: [dec_png.o] 错误 1 (忽略)
我看过提问的智慧: 看过
自己思考时长(天): 10

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

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

x
错误
密码修改失败请联系微信:mofangbao
发表于 2016-3-20 10:53:06 | 显示全部楼层
要注意下编译器的问题,所有的库的安装及NETCDF,WRF都要使用同一种编译器,比如PGI,INTEL,还有貌似LIBPNG的库没有链接到。
可能是由这方面问题引起的,请楼主尝试下。
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2016-3-20 18:37:26 | 显示全部楼层
好的,非常感谢!
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2016-3-21 07:51:22 | 显示全部楼层
辉辉学模式 发表于 2016-3-20 10:53
要注意下编译器的问题,所有的库的安装及NETCDF,WRF都要使用同一种编译器,比如PGI,INTEL,还有貌似LIBPNG ...

请问大神,编译器我用的都是 gfortran,应该没什么问题。我昨天重新安装了库,成功编译了ungrib.exe,但是其它两个没有出现。查看log文件,出现了下面问题:
rotate_winds_module.o storage_module.o write_met_module.o \
                /home/wyf/WRF/WPS/../WRFV3/frame/module_driver_constants.o \
                /home/wyf/WRF/WPS/../WRFV3/frame/pack_utils.o /home/wyf/WRF/WPS/../WRFV3/frame/module_machine.o \
                /home/wyf/WRF/WPS/../WRFV3/frame/module_internal_header_util.o \
                -I/home/wyf/WRF/WPS/../WRFV3/external/io_netcdf -I/home/wyf/WRF/WPS/../WRFV3/external/io_grib_share -I/home/wyf/WRF/WPS/../WRFV3/external/io_grib1 -I/home/wyf/WRF/WPS/../WRFV3/external/io_int -I/home/wyf/WRF/WPS/../WRFV3/inc -I/usr/local/netcdf/include \
                -L/home/wyf/WRF/WPS/../WRFV3/external/io_grib1 -lio_grib1 -L/home/wyf/WRF/WPS/../WRFV3/external/io_grib_share -lio_grib_share -L/home/wyf/WRF/WPS/../WRFV3/external/io_int -lwrfio_int -L/home/wyf/WRF/WPS/../WRFV3/external/io_netcdf -lwrfio_nf -L/usr/local/netcdf/lib -lnetcdff -lnetcdf \
               
/home/wyf/WRF/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `transposetor4_.omp_fn.13':
wrf_io.f:(.text+0x3637d): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x36b28): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x36b3e): undefined reference to `GOMP_loop_end_nowait'
/home/wyf/WRF/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `transposetor4_.omp_fn.12':
wrf_io.f:(.text+0x36bd3): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x37397): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x373a4): undefined reference to `GOMP_loop_end_nowait'
/home/wyf/WRF/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `transposetor4_.omp_fn.11':
wrf_io.f:(.text+0x37450): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x37c0e): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x37c24): undefined reference to `GOMP_loop_end_nowait'
/home/wyf/WRF/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `transposetor4_.omp_fn.10':
wrf_io.f:(.text+0x37cc3): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x3847c): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x38489): undefined reference to `GOMP_loop_end_nowait'
/home/wyf/WRF/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `transposetor4_.omp_fn.9':
wrf_io.f:(.text+0x38530): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x38d00): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x38d16): undefined reference to `GOMP_loop_end_nowait'
/home/wyf/WRF/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `transposetor4_.omp_fn.8':
wrf_io.f:(.text+0x38db6): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x39597): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x395a4): undefined reference to `GOMP_loop_end_nowait'
/home/wyf/WRF/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `transposetor4_.omp_fn.7':
wrf_io.f:(.text+0x39650): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x39dfe): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x39e14): undefined reference to `GOMP_loop_end_nowait'
/home/wyf/WRF/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `transposetor4_.omp_fn.6':
wrf_io.f:(.text+0x39eb6): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x3a677): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x3a684): undefined reference to `GOMP_loop_end_nowait'
/home/wyf/WRF/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `transposetor4_.omp_fn.5':
wrf_io.f:(.text+0x3a72d): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x3aed8): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x3aeee): undefined reference to `GOMP_loop_end_nowait'
/home/wyf/WRF/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `transposetor4_.omp_fn.4':
wrf_io.f:(.text+0x3af83): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x3b747): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x3b754): undefined reference to `GOMP_loop_end_nowait'
/home/wyf/WRF/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `transposetor4_.omp_fn.3':
wrf_io.f:(.text+0x3b7fd): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x3bf98): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x3bfae): undefined reference to `GOMP_loop_end_nowait'
/home/wyf/WRF/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `transposetor4_.omp_fn.2':
wrf_io.f:(.text+0x3c043): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x3c807): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x3c814): undefined reference to `GOMP_loop_end_nowait'
/home/wyf/WRF/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `transposetor4_.omp_fn.1':
wrf_io.f:(.text+0x3c8c0): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x3d05e): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x3d074): undefined reference to `GOMP_loop_end_nowait'
/home/wyf/WRF/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `transposetor4_.omp_fn.0':
wrf_io.f:(.text+0x3d116): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x3d8cf): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x3d8dc): undefined reference to `GOMP_loop_end_nowait'
/home/wyf/WRF/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `__ext_ncd_support_routines_MOD_transpose.omp_fn.27':
wrf_io.f:(.text+0x3d96a): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x3df5c): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x3df69): undefined reference to `GOMP_loop_end_nowait'
/home/wyf/WRF/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `__ext_ncd_support_routines_MOD_transpose.omp_fn.26':
wrf_io.f:(.text+0x3dffa): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x3e5ec): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x3e5f9): undefined reference to `GOMP_loop_end_nowait'
/home/wyf/WRF/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `__ext_ncd_support_routines_MOD_transpose.omp_fn.25':
wrf_io.f:(.text+0x3e693): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x3eca2): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x3ecaf): undefined reference to `GOMP_loop_end_nowait'
/home/wyf/WRF/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `__ext_ncd_support_routines_MOD_transpose.omp_fn.24':
wrf_io.f:(.text+0x3ed43): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x3f352): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x3f35f): undefined reference to `GOMP_loop_end_nowait'
/home/wyf/WRF/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `__ext_ncd_support_routines_MOD_transpose.omp_fn.23':
wrf_io.f:(.text+0x3f3f3): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x3f9f2): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x3f9ff): undefined reference to `GOMP_loop_end_nowait'
/home/wyf/WRF/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `__ext_ncd_support_routines_MOD_transpose.omp_fn.22':
wrf_io.f:(.text+0x3fa93): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x40092): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x4009f): undefined reference to `GOMP_loop_end_nowait'
/home/wyf/WRF/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `__ext_ncd_support_routines_MOD_transpose.omp_fn.21':
wrf_io.f:(.text+0x40133): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x40732): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x4073f): undefined reference to `GOMP_loop_end_nowait'
/home/wyf/WRF/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `__ext_ncd_support_routines_MOD_transpose.omp_fn.20':
wrf_io.f:(.text+0x407d3): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x40dd2): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x40ddf): undefined reference to `GOMP_loop_end_nowait'
/home/wyf/WRF/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `__ext_ncd_support_routines_MOD_transpose.omp_fn.19':
wrf_io.f:(.text+0x40e6a): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x4145c): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x41469): undefined reference to `GOMP_loop_end_nowait'
/home/wyf/WRF/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `__ext_ncd_support_routines_MOD_transpose.omp_fn.18':
wrf_io.f:(.text+0x414fa): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x41aec): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x41af9): undefined reference to `GOMP_loop_end_nowait'
/home/wyf/WRF/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `__ext_ncd_support_routines_MOD_transpose.omp_fn.17':
wrf_io.f:(.text+0x41b90): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x42184): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x42191): undefined reference to `GOMP_loop_end_nowait'
/home/wyf/WRF/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `__ext_ncd_support_routines_MOD_transpose.omp_fn.16':
wrf_io.f:(.text+0x42230): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x42834): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x42841): undefined reference to `GOMP_loop_end_nowait'
/home/wyf/WRF/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `__ext_ncd_support_routines_MOD_transpose.omp_fn.15':
wrf_io.f:(.text+0x428e3): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x42ef7): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x42f04): undefined reference to `GOMP_loop_end_nowait'
/home/wyf/WRF/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `__ext_ncd_support_routines_MOD_transpose.omp_fn.14':
wrf_io.f:(.text+0x42fa3): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x435c7): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x435d4): undefined reference to `GOMP_loop_end_nowait'
/home/wyf/WRF/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `__ext_ncd_support_routines_MOD_transpose':
wrf_io.f:(.text+0x438b2): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x438bf): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x43aa2): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x43aaf): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x43c82): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x43c8f): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x43e50): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x43e5d): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x44030): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x4403d): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x44203): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x44210): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x443e2): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x443ef): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x444f8): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x44505): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x4460a): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x44617): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x4471a): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x44727): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x44809): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x44816): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x44908): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x44915): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x44a08): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x44a15): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x44b0a): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x44b17): undefined reference to `GOMP_parallel_end'
/home/wyf/WRF/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `transposetor4_':
wrf_io.f:(.text+0x44dd2): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x44ddf): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x44fc2): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x44fcf): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x451a2): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x451af): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x45370): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x4537d): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x45550): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x4555d): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x45723): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x45730): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x45902): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x4590f): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x45a18): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x45a25): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x45b2a): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x45b37): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x45c3a): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x45c47): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x45d29): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x45d36): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x45e28): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x45e35): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x45f28): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x45f35): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x4602a): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x46037): undefined reference to `GOMP_parallel_end'
collect2: ld 返回 1
make[1]: [metgrid.exe] 错误 1 (忽略)
密码修改失败请联系微信:mofangbao
发表于 2016-3-21 09:53:08 | 显示全部楼层
wangifan 发表于 2016-3-21 07:51
请问大神,编译器我用的都是 gfortran,应该没什么问题。我昨天重新安装了库,成功编译了ungrib.exe,但 ...

。。不是大神,共同学习。
你的WRFV3编译选项是不是选择了带smpar的选项。如果是,那就是因为你在WPS编译的时候编译选项没有指定OpenmMP库的路径或者编译选项,修改下configure.wps应该就可以编译出来,intel的编译器加-openmp选项就可以编译出来,GFORTRAN我不了解,你可以查一下。
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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