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

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.
 
Back
Top