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 compiling error

yuzj

New member
I have compiled WRFV4.4 successfully. When I try to compile WPS, it has some error. That can not find cio.o and read_geogrid.o. I am not sure what happened. I use the gcc version is ( gcc (GCC) 11.4.1 20231218 (Red Hat 11.4.1-3)) and GNU Fortran (GCC) 11.4.1 20231218 (Red Hat 11.4.1-3). I have attached my compile.log and configure.wps in this post. Thank you so much if you have any idea for this question.
 

Attachments

  • configure.wps
    3.4 KB · Views: 2
  • compile.log
    79 KB · Views: 2
I am not seeing any errors in your compile log. The errors we are interested in have a capital 'E" (Error). Do you have the metgrid.exe, geogrid.exe, and ungrib.exe executables in your WPS directory? If so, it looks like it compiled okay.
 
I am not seeing any errors in your compile log. The errors we are interested in have a capital 'E" (Error). Do you have the metgrid.exe, geogrid.exe, and ungrib.exe executables in your WPS directory? If so, it looks like it compiled okay.
oops, sorry I do not put the error information in this log file, I have updated a new version, that includes all the mistakes. I do not the exe file in my directory. Thank you so much for your reply.
 

Attachments

  • compile.log
    52.9 KB · Views: 2
Thanks for sending that! I see that you are compiling WPS for use with parallel processing (dmpar). Unless you are planning to use very large domains (1000s x 1000s of grid cells), it's not necessary to build WPS in dmpar, even if that's what you used for WRF. Either way, can you try to build WPS with a serial option and see if that makes any difference? If not, please attach the new configure.wps and compile log for WPS. Please also attach the configure.wrf and WRF compile log. Thanks!
 
Thank you so much for your help, I believe the condition has become much better. as your suggestion, I modify the configure choice to serial, there are geogrid.exe and metgrid.exe appears in my directory, but I do not find the ungrib.exe,
1727421448233.png
 

Attachments

  • compile.log
    106.4 KB · Views: 3
  • configure.wps
    3.4 KB · Views: 2
The error message in the compile log is:

Code:
/bin/ld: cannot find -lpng
collect2: error: ld returned 1 exit status
make[1]: [Makefile:19: ungrib.exe] Error 1 (ignored)

This looks like a problem with the PNG library. To avoid these errors, see the compiling chapter of the WRF Users' Guide and follow the instructions to build the GRIB2 libraries internally.
 
The error message in the compile log is:

Code:
/bin/ld: cannot find -lpng
collect2: error: ld returned 1 exit status
make[1]: [Makefile:19: ungrib.exe] Error 1 (ignored)

This looks like a problem with the PNG library. To avoid these errors, see the compiling chapter of the WRF Users' Guide and follow the instructions to build the GRIB2 libraries internally.
Thank you so much, the problem has solved, I use ./configure --build-grib2-libs and it works, and there are three exe files. Thank you again.
 
Top