[SOLVED] Building WPS 3.5 on Ubuntu 12.10 x64

Installing the WRF Preprocessing System

[SOLVED] Building WPS 3.5 on Ubuntu 12.10 x64

Postby surgeon » Fri Apr 19, 2013 11:20 am

Using netcdf 3.6.3
WRFV3 3.5 smpar built without serious problems. But WPS 3.5, gfortran (serial):
Code: Select all
gcc -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL  -D_GEOGRID  -c read_geogrid.c
read_geogrid.c:23:0: warning: "BIG_ENDIAN" redefined [enabled by default]
In file included from /usr/include/x86_64-linux-gnu/bits/waitstatus.h:65:0,
                 from /usr/include/stdlib.h:43,
                 from read_geogrid.c:12:
/usr/include/endian.h:47:0: note: this is the location of the previous definition
read_geogrid.c:24:0: warning: "LITTLE_ENDIAN" redefined [enabled by default]
In file included from /usr/include/x86_64-linux-gnu/bits/waitstatus.h:65:0,
                 from /usr/include/stdlib.h:43,
                 from read_geogrid.c:12:
/usr/include/endian.h:46:0: note: this is the location of the previous definition
read_geogrid.c: In function ‘read_geogrid_’:
read_geogrid.c:123:13: warning: left shift count >= width of type [enabled by default]
gfortran   -o geogrid.exe cio.o wrf_debug.o bitarray_module.o constants_module.o module_stringutil.o geogrid.o gridinfo_module.o hash_module.o interp_module.o list_module.o llxy_module.o misc_definitions_module.o module_debug.o module_map_utils.o output_module.o parallel_module.o process_tile_module.o proc_point_module.o queue_module.o read_geogrid.o smooth_module.o source_data_module.o \
                /home/pawel/WRF-ARW3.5/WPS/../WRFV3/frame/module_driver_constants.o \
                /home/pawel/WRF-ARW3.5/WPS/../WRFV3/frame/pack_utils.o /home/pawel/WRF-ARW3.5/WPS/../WRFV3/frame/module_machine.o \
                /home/pawel/WRF-ARW3.5/WPS/../WRFV3/frame/module_internal_header_util.o \
                -I/home/pawel/WRF-ARW3.5/WPS/../WRFV3/external/io_netcdf -I/home/pawel/WRF-ARW3.5/WPS/../WRFV3/external/io_grib_share -I/home/pawel/WRF-ARW3.5/WPS/../WRFV3/external/io_grib1 -I/home/pawel/WRF-ARW3.5/WPS/../WRFV3/external/io_int -I/home/pawel/WRF-ARW3.5/WPS/../WRFV3/inc -I/usr/local/netcdf/include \
                -L/home/pawel/WRF-ARW3.5/WPS/../WRFV3/external/io_grib1 -lio_grib1 -L/home/pawel/WRF-ARW3.5/WPS/../WRFV3/external/io_grib_share -lio_grib_share -L/home/pawel/WRF-ARW3.5/WPS/../WRFV3/external/io_int -lwrfio_int -L/home/pawel/WRF-ARW3.5/WPS/../WRFV3/external/io_netcdf -lwrfio_nf -L/usr/local/netcdf/lib  -lnetcdf \

/home/pawel/WRF-ARW3.5/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `transposetor4_._omp_fn.13':
wrf_io.f:(.text+0x211): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x865): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x87b): undefined reference to `GOMP_loop_end_nowait'
/home/pawel/WRF-ARW3.5/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `transposetor4_._omp_fn.12':
wrf_io.f:(.text+0x917): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0xf3a): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0xf47): undefined reference to `GOMP_loop_end_nowait'
/home/pawel/WRF-ARW3.5/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `transposetor4_._omp_fn.11':
wrf_io.f:(.text+0xff4): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x162c): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x1642): undefined reference to `GOMP_loop_end_nowait'
/home/pawel/WRF-ARW3.5/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `transposetor4_._omp_fn.10':
wrf_io.f:(.text+0x16e4): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x1cfc): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x1d09): undefined reference to `GOMP_loop_end_nowait'
/home/pawel/WRF-ARW3.5/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `transposetor4_._omp_fn.9':
wrf_io.f:(.text+0x1db4): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x23f2): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x2408): undefined reference to `GOMP_loop_end_nowait'
/home/pawel/WRF-ARW3.5/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `transposetor4_._omp_fn.8':
wrf_io.f:(.text+0x24a4): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x2ac1): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x2ace): undefined reference to `GOMP_loop_end_nowait'
/home/pawel/WRF-ARW3.5/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `transposetor4_._omp_fn.7':
wrf_io.f:(.text+0x2b74): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x3197): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x31ad): undefined reference to `GOMP_loop_end_nowait'
/home/pawel/WRF-ARW3.5/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `transposetor4_._omp_fn.6':
wrf_io.f:(.text+0x3244): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x3856): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x3863): undefined reference to `GOMP_loop_end_nowait'
/home/pawel/WRF-ARW3.5/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `transposetor4_._omp_fn.5':
wrf_io.f:(.text+0x3911): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x3f65): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x3f7b): undefined reference to `GOMP_loop_end_nowait'
/home/pawel/WRF-ARW3.5/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `transposetor4_._omp_fn.4':
wrf_io.f:(.text+0x4017): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x463a): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x4647): undefined reference to `GOMP_loop_end_nowait'
/home/pawel/WRF-ARW3.5/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `transposetor4_._omp_fn.3':
wrf_io.f:(.text+0x46f1): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x4d0c): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x4d22): undefined reference to `GOMP_loop_end_nowait'
/home/pawel/WRF-ARW3.5/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `transposetor4_._omp_fn.2':
wrf_io.f:(.text+0x4dc1): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x53bf): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x53cc): undefined reference to `GOMP_loop_end_nowait'
/home/pawel/WRF-ARW3.5/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `transposetor4_._omp_fn.1':
wrf_io.f:(.text+0x5474): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x5a9a): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x5ab0): undefined reference to `GOMP_loop_end_nowait'
/home/pawel/WRF-ARW3.5/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `transposetor4_._omp_fn.0':
wrf_io.f:(.text+0x5b47): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x6140): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x614d): undefined reference to `GOMP_loop_end_nowait'
/home/pawel/WRF-ARW3.5/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+0x61dd): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x6660): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x666d): undefined reference to `GOMP_loop_end_nowait'
/home/pawel/WRF-ARW3.5/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+0x66fd): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x6b88): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x6b95): undefined reference to `GOMP_loop_end_nowait'
/home/pawel/WRF-ARW3.5/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+0x6c33): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x70d3): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x70e0): undefined reference to `GOMP_loop_end_nowait'
/home/pawel/WRF-ARW3.5/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+0x7184): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x762b): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x7638): undefined reference to `GOMP_loop_end_nowait'
/home/pawel/WRF-ARW3.5/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+0x76d3): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x7b73): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x7b80): undefined reference to `GOMP_loop_end_nowait'
/home/pawel/WRF-ARW3.5/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+0x7c24): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x80c3): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x80d0): undefined reference to `GOMP_loop_end_nowait'
/home/pawel/WRF-ARW3.5/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+0x8173): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x860b): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x8618): undefined reference to `GOMP_loop_end_nowait'
/home/pawel/WRF-ARW3.5/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+0x86b3): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x8b53): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x8b60): undefined reference to `GOMP_loop_end_nowait'
/home/pawel/WRF-ARW3.5/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+0x8bfd): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x9080): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x908d): undefined reference to `GOMP_loop_end_nowait'
/home/pawel/WRF-ARW3.5/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+0x911d): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x95a8): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x95b5): undefined reference to `GOMP_loop_end_nowait'
/home/pawel/WRF-ARW3.5/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+0x964d): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0x9ad8): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0x9ae5): undefined reference to `GOMP_loop_end_nowait'
/home/pawel/WRF-ARW3.5/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+0x9b7d): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0xa008): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0xa015): undefined reference to `GOMP_loop_end_nowait'
/home/pawel/WRF-ARW3.5/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+0xa0b3): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0xa54b): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0xa558): undefined reference to `GOMP_loop_end_nowait'
/home/pawel/WRF-ARW3.5/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+0xa5f3): undefined reference to `GOMP_loop_runtime_start'
wrf_io.f:(.text+0xaa93): undefined reference to `GOMP_loop_runtime_next'
wrf_io.f:(.text+0xaaa0): undefined reference to `GOMP_loop_end_nowait'
/home/pawel/WRF-ARW3.5/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `__ext_ncd_support_routines_MOD_transpose':
wrf_io.f:(.text+0xb9ff): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0xba11): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0xbbdd): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0xbbef): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0xbdaf): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0xbdc1): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0xbf61): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0xbf70): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0xc12d): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0xc13f): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0xc2ef): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0xc301): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0xc4bf): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0xc4d1): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0xc5e0): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0xc5f2): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0xc700): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0xc712): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0xc821): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0xc833): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0xc940): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0xc952): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0xca57): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0xca69): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0xcb6c): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0xcb7e): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0xcc86): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0xcc98): undefined reference to `GOMP_parallel_end'
/home/pawel/WRF-ARW3.5/WPS/../WRFV3/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `transposetor4_':
wrf_io.f:(.text+0x1098f): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x109a1): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x10b6d): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x10b7f): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x10d3f): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x10d51): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x10ef1): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x10f00): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x110bd): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x110cf): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x1127f): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x11291): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x1144f): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x11461): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x11570): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x11582): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x11690): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x116a2): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x117b1): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x117c3): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x118d0): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x118e2): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x119e7): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x119f9): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x11afc): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x11b0e): undefined reference to `GOMP_parallel_end'
wrf_io.f:(.text+0x11c16): undefined reference to `GOMP_parallel_start'
wrf_io.f:(.text+0x11c28): undefined reference to `GOMP_parallel_end'
collect2: error: ld returned 1 exit status
make[1]: [geogrid.exe] Error 1 (ignored)
make[1]: Leaving directory `/home/pawel/WRF-ARW3.5/WPS/geogrid/src'

It`s geogrid.exe.
The same error occurs when compiling metgrid.exe. It looks like there is a problem in /../WRFV3/external/io_netcdf/wrf_io.f file.
Any suggestions?
Last edited by surgeon on Fri May 10, 2013 3:30 pm, edited 2 times in total.
surgeon
 
Posts: 15
Joined: Sun Jun 26, 2011 8:57 am

Re: Building WPS 3.5 on Ubuntu 12.10 x64

Postby surgeon » Wed Apr 24, 2013 9:52 am

The same error with latest netcdf version on CentOS 6.4. Someone screwed up the sources? :?
Last edited by surgeon on Mon May 06, 2013 5:34 pm, edited 1 time in total.
surgeon
 
Posts: 15
Joined: Sun Jun 26, 2011 8:57 am

Re: Building WPS 3.5 on Ubuntu 12.10 x64

Postby ksuseo » Fri Apr 26, 2013 2:42 pm

Hi...

It will be good to delete the 41st line in configure.wps(-I$(NETCDF)/include) and compile again.

Or... copy libwrfio_nf.a of the previous version to the current WPS.

I hope you can solve the problem.

Good luck to you !!!
ksuseo
 
Posts: 1
Joined: Fri Apr 26, 2013 2:31 pm

Re: Building WPS 3.5 on Ubuntu 12.10 x64

Postby surgeon » Fri Apr 26, 2013 5:43 pm

Looks like it's a problem with OpenMPI, because when I choose serial option for WRF, I got all the files for WPS, and no errors in compile log. But i still need smpar. :)
Last edited by surgeon on Mon May 06, 2013 5:35 pm, edited 1 time in total.
surgeon
 
Posts: 15
Joined: Sun Jun 26, 2011 8:57 am

Re: Building WPS 3.5 on Ubuntu 12.10 x64

Postby pdjakow » Mon May 06, 2013 2:07 pm

Has anyone solved this problem?
pdjakow
 
Posts: 16
Joined: Mon Sep 01, 2008 2:01 pm

Re: Building WPS 3.5 on Ubuntu 12.10 x64

Postby giaaan » Thu May 09, 2013 9:57 am

Hi,
I had the same problem on Centos 6.4 (64 bit) with gcc+gfortran, with "smpar" option on WRF & "serial" option on WPS. The very simple solution is to add "-lgomp" to the WRF_LIB variable in file configure.wps (just append it after -lnetcdf).
As the latter is overwritten in case of re-configuration you may want to alter the arch/configure.defaults.

I don't think the issue depends on netcdf. On the contrary I suppose the problem arises because metgrid & geogrid are linked to wrf lib which in turns depends on openmp library (if "smpar" is selected). So, even if openmp is not directly needed by metgrid & geogrid, libgomp has to be linked in any case.

Hope it helps
Gianluca
giaaan
 
Posts: 3
Joined: Thu May 09, 2013 9:48 am

Re: [SOLVED] Building WPS 3.5 on Ubuntu 12.10 x64

Postby pdjakow » Sat May 11, 2013 5:07 am

It helps, thanks giaaan :)
pdjakow
 
Posts: 16
Joined: Mon Sep 01, 2008 2:01 pm

Re: [SOLVED] Building WPS 3.5 on Ubuntu 12.10 x64

Postby soleiman » Wed Jun 05, 2013 6:41 pm

for intel compiler this line will help : -liomp5 -lpthread
Just add in WRF_LIB after -lnetcdf

Good luck
--
Best regards
Suleiman Mostamandy
soleiman
 
Posts: 12
Joined: Sat Oct 25, 2008 11:02 am

Re: [SOLVED] Building WPS 3.5 on Ubuntu 12.10 x64

Postby ruwiejin » Wed Oct 30, 2013 9:41 pm

for pgi compiler this line will help : -lpgmp -lnuma -pgbind
Just add in WRF_LIB after -lnetcdf
all exe files will be generated
ruwiejin
 
Posts: 1
Joined: Wed Jun 26, 2013 9:11 pm

Re: Building WPS 3.5 on Ubuntu 12.10 x64

Postby akhfa » Thu Sep 10, 2015 9:55 pm

giaaan wrote:Hi,
I had the same problem on Centos 6.4 (64 bit) with gcc+gfortran, with "smpar" option on WRF & "serial" option on WPS. The very simple solution is to add "-lgomp" to the WRF_LIB variable in file configure.wps (just append it after -lnetcdf).
As the latter is overwritten in case of re-configuration you may want to alter the arch/configure.defaults.

I don't think the issue depends on netcdf. On the contrary I suppose the problem arises because metgrid & geogrid are linked to wrf lib which in turns depends on openmp library (if "smpar" is selected). So, even if openmp is not directly needed by metgrid & geogrid, libgomp has to be linked in any case.

Hope it helps
Gianluca


Thanks giaaan, this help me :D
akhfa
 
Posts: 5
Joined: Fri Aug 14, 2015 10:38 am

Next

Return to Installation

Who is online

Users browsing this forum: No registered users and 1 guest

cron