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-Chem V4.4 dmpar Compile Fails: Cannot open module file gocart_dust.mod

I am trying to compile WRF-Chem V4.4 on my system and am running into a persistent error when the build process reaches the chem directory. I have tried many of the standard fixes but the error remains the same

1. System Configuration:
  • WRF Version: V4.4
  • Chemistry: WRF_CHEM = 1, WRF_KPP = 1
  • Compiler Choice: GNU (gfortran/gcc) with dmpar (Option 34)
  • Operating System: Ubuntu Linux
  • Compilers: mpicc and mpif90 from a self-compiled MPICH library.
2. The Error:
After running ./clean -a, ./configure, and then ./compile em_real, the build fails. The key errors at the end of the compilation log are:

Error: Symbol ‘indf_m’ at (1) has no IMPLICIT type
make[2]: [../configure.wrf:364: module_kpp_cbm4_interface.o] Error 1 (ignored)
Fatal Error: Cannot open module file ‘gocart_dust.mod’ for reading at (1): No such file or directory
make[2]: [../configure.wrf:364: module_mosaic_addemiss.o] Error 1 (ignored)
Fatal Error: Cannot open module file ‘module_kpp_cbm4_interf.mod’ for reading at (1): No such file or directory
make[2]: [../configure.wrf:364: kpp_mechanism_driver.o] Error 1 (ignored)
make[2]: [Makefile:428: chemics] Error 1 (ignored)
collect2: error: ld returned 1 exit status
make[1]: [Makefile:17: em_wrf] Error 1 (ignored)
---> Problems building executables, look for errors in the build log <---

I also see messages like this earlier in the log:
AR="INTERNAL_BUILD_ERROR_SHOULD_NOT_NEED_AR"

3. What I Have Already Tried:
I have worked through many potential solutions, including:

  • Ensuring my .bashrc sets CC=mpicc and FC=mpif90 and that no Conda environment is active.
  • Verifying that my NetCDF C and Fortran libraries are correctly installed.
  • Manually editing configure.wrf after running ./configure to:
    1. Change CPP from /lib/cpp to /usr/bin/cpp -P -traditional.
    2. Simplify DM_CC from mpicc -cc=$(SCC) to just mpicc.
    3. Ensure LIB_EXTERNAL uses $(NETCDFPATH) correctly.

Despite these changes, the error persists,

The compile_wrf.log is also attached
 

Attachments

  • compile_wrf.log
    1.6 MB · Views: 1
Top