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

WRF compile issues with spack

es833

New member
Hello all,

I am new to working with WRF and am currently trying to compile it on my Linux machine. I installed WRF and its dependencies using Spack. However, I am encountering two issues during the build process:

  1. AR Issue:
    • The Makefile sets the AR variable to INTERNAL_BUILD_ERROR_SHOULD_NOT_NEED_AR, and the build fails. It seems the ar archiver tool is not being properly configured.
  2. Linker Error:
    • During the linking stage, I receive the following error: vbnet
      /usr/bin/ld: libwrflib.a(module_io.o): in function `wrf_write_field1_':
      module_io.f90:(.text+0x14093): undefined reference to `ext_pnc_write_field_'
      /usr/bin/ld: libwrflib.a(module_io.o): in function `wrf_read_field1_':
      module_io.f90:(.text+0x17f9b): undefined reference to `ext_pnc_read_field_'
      collect2: error: ld returned 1 exit status
I'd be grateful for any help. I've attached the compile log, bashrc, and environment set up if they help.
 

Attachments

  • compile.log
    169.7 KB · Views: 1
  • env_setup.txt
    1.6 KB · Views: 0
  • bashrc.txt
    1.2 KB · Views: 1
It looks like the compile log is starting with an already partially built WRF. There may be errors upstream that are no longer visible. Could you do `./clean -a` and recompile to get the full log?
 
I did that and it compiled now! Thanks for your help - I think I got so lost in so many hacky attempts at fixes I forgot to clean before retrying with some of them.
 
Top