Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

(RESOLVED) geogrid: undefined reference to `__kmpc_dispatch_next_4'

This post was from a previous version of the WRF&MPAS-A Support Forum. New replies have been disabled and if you have follow up questions related to this post, then please start a new thread from the forum home page.

xyli00

Member
Dear all,

I am following the latest tutorial about installing WRF but got the following error,
which I couldn’t understand.
https://www2.mmm.ucar.edu/wrf/users/tutorial/202001/werner_compiling.pdf

The directory “grid2/lib”, causes the following error,
$ make
icc: error #10236: File not found: '–L/pic/scratch/lixi307/software/grib2/lib'
make: *** [libz.so.1.2.11] Error 1

I defined
export JASPERLIB=$DIR/grib2/lib
export JASPERINC=$DIR/grib2/include
export LDFLAGS=–L$DIR/grib2/lib
export CPPFLAGS=–I$DIR/grib2/include
before the installation. However, this directory does not exist.
It does not work even I create it.

I am using the same compiler for all the libraries.
WRF works. I got stuck with WPS.

Any idea about this?

Best regards,

Xiangyu
 
Xiangyu,
The error related to icc looks like you chose an Intel compiler to install WPS. Did you use GNU for installing WRF? You need to make sure that you use the same compiler for both WRF and WPS. If that is not the case, can you please attach your configure.wps, configure.wrf, and your compile log for wrf? Thanks!
 
Thanks a lot.

Yes, I have been sticking to the same complier for all WPS and WRF.

Attached please kindly find the configure files and log files for both WRF and WPS.
 

Attachments

  • configure.wps
    3.3 KB · Views: 55
  • configure.wrf
    22.9 KB · Views: 61
  • log.wps
    43.7 KB · Views: 51
  • log.wrf
    640.7 KB · Views: 51
Thanks for sending those. The errors that are causing the problem look like this in the WPS compile log:
Code:
wrf_io.f:(.text+0x55499): undefined reference to `__kmpc_dispatch_init_4'
wrf_io.f:(.text+0x556c7): undefined reference to `__kmpc_dispatch_next_4'
wrf_io.f:(.text+0x55d88): undefined reference to `__kmpc_dispatch_init_4'
wrf_io.f:(.text+0x55fa7): undefined reference to `__kmpc_dispatch_next_4'
make[1]: [geogrid.exe] Error 1 (ignored)

This is a problem due to the fact that you compiled WRF with dm+sm, and it's trying to link against the I/O for smpar and needs openmp stuff. To correct this, you may need to add the following to the WRF_LIB line in your configure.wps file:
Code:
-liomp5 -lpthread
So you'll need to issue a 'clean -a' and then reconfigure. Then go into the configure.wps file and add that to the end of the that line, save the configure file, and then recompile.

However, there are a couple of things I'd like to point out:
1) You have compiled WRF for an idealized case, which doesn't use any real data, and therefore doesn't need the WPS program at all. If you want a real data case, then you'll need to recompile WRF for an em_real case
2) We typically don't even recommend compiling WRF with the option dm+sm. It's not highly tested, and has been known to cause problems. We usually recommend the dmpar option, or perhaps the smpar option.
 
Top