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

Problems building executables, look for errors in the build log

davidmumarin

New member
Hi guys! I'm building a Dockerfile for the WRF v4.5 model (I already did it for version 3.9), but I'm having difficulties compiling WRF. I think the error is related to the netCDF library. I'm working in a Mac, Chip Apple M2 and macOS Sonoma 14.2 (23C64). Furthermore, I'm attaching the Dockerfile, the log of the "./compile em_real" command and the "configure.wrf" file. I appreciate your help in advance.
 

Attachments

  • Archive.zip
    16.4 KB · Views: 6
Last edited:
In your Dockerfile you are installing libnetcdff-dev and netcdf-bin but also building netcdf from source. I would recommend doing one or the other - but not both - to simplify pathing. Additionally, the Dockerfile is not building netcdf Fortran from source, but the NETCDF variable is set to the source-built location DIR - this is most likely the cause of the "Error: Symbol 'nf_netcdf4' at (1) has no IMPLICIT type" issue where it isn't finding netCDF Fortran. Overall, I would recommend building both netCDF libraries from source and not installing anything through the package manager.
 
Top