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] WRF 4.2.1 compilation issue - "Problems building executables"

Kylie

New member
Hi there,

I'm trying to install WRF v4.2.1, following the instructions in the UCAR guide (Compiling WRF) and keep getting this error on compilation: "Problems building executables, look for errors in the build log".

I've tried the following, with the same result:
  • Cleaning and re-compiling
  • Re-installing from scratch
  • Installing WRF v.4.6.0 (thinking it may be a versioning/library compatibility issue)
  • Installing netCDF v4.3.1 instead of netCDF-C v4.7.2 and netCDF-Fortran v4.5.2 (since this is the netCDF version a colleague has)

I also dug into the netCDF installation (based on some non-specific errors in the compilation log) and tried different LDFLAGS and CPPFLAGS as suggested in this thread, but that was unsuccessful as well. I'm using GNU compilers version 9.4.0 on Ubuntu 20.04.6.

I've attached my compilation log and configure file. Any advice would be appreciated!
 

Attachments

  • configure.wrf.txt
    20.5 KB · Views: 5
  • log.compile.txt
    958.6 KB · Views: 6
Last edited:
Hello! Exactly the same thing happens to me and I can't move forward. I am following the same steps and pages without success.
 
I was able to resolve the problem! As per this post, I replaced the "-V" with "-v" in the configure file for netCDF-Fortran and I added $DIR/netcdf/lib to LDFLAGS and $DIR/netcdf/include to CPPFLAGS. I did not need to disable the gcc test (step 2 in the linked post).

I also installed the MPICH, Jasper, zlib, and libpng libraries before compiling the netCDF libraries; I don't know if that had an effect, but that is something I did differently than the UCAR guide.
 
Top