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

Error compiling WRF (GNU)

Hello,

I carefully followed this guide on installing the latest version of WRF and WPS on GNU architecture and I am getting an error when trying to compile. I am attaching my log.compile and configure.wrf files. I have already used the ./clean -a command and retried compiling but to no success. Any guidance will be appreciated.

Thanks!
 

Attachments

  • configure.wrf.txt
    20.6 KB · Views: 3
  • log.compile.txt
    1 MB · Views: 5
Can you try compiling again (after clean and configure), but this time request only a single processor to compile:

./compile em_real -j 1 >& log.compile

and assuming it will still fail, then share the log.compile and the new configure.wrf file. Thanks!
 
Hello,

Thank you so much for looking into this. It did fail again with one processor. Attached is the new log.compile and configure.wrf files. For more context, I am trying to install this on a server running ubuntu.

Thanks!
 

Attachments

  • configure_wrf.txt
    20.6 KB · Views: 0
  • log_compile.txt
    1 MB · Views: 1
This looks a lot like the issue found here:

which can be further confirmed by the output of mpif90 -show containing "lto" flags (e.g. -flto=auto)

It is worth noting, however that if it is the above case the reason for this happening is the MPI used in the configuration is using /usr/bin/mpif90 and not the mpif90 created from the setup instructions. This means it is using the default installed mpif90 of Ubuntu which is including flags which we do not support. A better solution when you've built using the guide instructions is to ensure you have the built binaries in your PATH.

The following excerpt from the linked guide (just after all the build+install instructions) is what adds the proper mpif90 that was user-built to the PATH:
Code:
export PATH=$NETCDF/bin:$DIR/mpich/bin:${PATH}

NETCDF and DIR must be set according to the previously noted instructions from the guide.
 
Top