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

WPS compilation only creates ungrib.exe executable

FcoSalamanca

New member
I have compiled WRF successfully but when I try to compile the WPS only creates the ungrib.exe executable.
Attached is my configuration.wps and compile.log errors file. Any suggestion? Thanks in advance
 

Attachments

  • compile.log
    110.2 KB · Views: 1
  • configure.wps
    3.2 KB · Views: 1
Hi,
The error message in your compile log is:

Code:
/usr/bin/ld: cannot find -lnetcdf
collect2: error: ld returned 1 exit status
make[1]: [Makefile:13: geogrid.exe] Error 1 (ignored)

When you build WPS, the geogrid and metgrid programs rely on some of the specifics from the WRF build. You must make sure to use the same compiler (and version) as used to build WRF, along with the same version of netCDF. You may want to check that your NETCDF path is pointing to the same netCDF version you used for installing WRF.
 
Hi,
The error message in your compile log is:

Code:
/usr/bin/ld: cannot find -lnetcdf
collect2: error: ld returned 1 exit status
make[1]: [Makefile:13: geogrid.exe] Error 1 (ignored)

When you build WPS, the geogrid and metgrid programs rely on some of the specifics from the WRF build. You must make sure to use the same compiler (and version) as used to build WRF, along with the same version of netCDF. You may want to check that your NETCDF path is pointing to the same netCDF version you used for installing WRF.
Hi Kwerner,
Thank you for your reply.
I am building the WPS with the same netcdf version and compilers that I used for the WRF compilation. I am also attaching the configure WRF file in this email.
Best
 

Attachments

  • configure.wrf.txt
    20.2 KB · Views: 1
Thanks for sharing that. Can you modify this line in the configure.wps file:

Code:
WRF_LIB         =       -L$(WRF_DIR)/external/io_grib1 -lio_grib1 \
                        -L$(WRF_DIR)/external/io_grib_share -lio_grib_share \
                        -L$(WRF_DIR)/external/io_int -lwrfio_int \
                        -L$(WRF_DIR)/external/io_netcdf -lwrfio_nf \
                        -L$(NETCDF)/lib -lnetcdff -lnetcdf

to remove the final "-lnetcdf" in that bottom line? Then save that configure.wps file and try to recompile WPS and let me know if that makes any difference?
 
Hi kwerner,
Thank you for your help. I removed the final "-lnetcdf" in the bottom line and the three (geogrid.exe, metgrid.exe, and ungrib.exe) executables were created !!
All the best,
Francisco
 
Top