Building WRF-Hydro v5.4.0

26 views
Skip to first unread message

Anderson Ward

unread,
Oct 18, 2025, 1:18:47 PM (13 days ago) Oct 18
to wrf-hydro_users
Has anyone encountered this problem?
While building wrf_hydro-5.4.0 with gfortran-11 and cmake, I get:

[ 90%] Building Fortran object src/Routing/CMakeFiles/hydro_routing.dir/module_lsm_forcing.F90.o
/codes/WRF/wrf_hydro-5.4.0/src/Routing/module_RT.F90:914:14:

  914 |              )
      |              1
Error: Type mismatch in argument ‘infrom_node’ at (1); passed INTEGER(8) to INTEGER(4)
make[2]: *** [src/Routing/CMakeFiles/hydro_routing.dir/build.make:231: src/Routing/CMakeFiles/hydro_routing.dir/module_RT.F90.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:985: src/Routing/CMakeFiles/hydro_routing.dir/all] Error 2
make: *** [Makefile:101: all] Error 2

I understand the cause of the error but am unable to tell whether infrom_node is explicitly declared as INTEGER(8) or if it’s inheriting a type from a compiler setting or another module.

Anderson Ward

unread,
Oct 22, 2025, 12:45:11 AM (9 days ago) Oct 22
to wrf-hydro_users, Anderson Ward
Well, after a couple of days of trying all types of options and compiler flags, the only way to build the executable with the recommended GNU 11+, is to set -DOUTPUT_CHAN_CONN=0.
I'd still like to hear from anyone who has built WRF-Hydro v5.4.0 recently with GNU 11+...

Will H

unread,
Oct 22, 2025, 4:08:51 AM (9 days ago) Oct 22
to wrf-hydro_users
I have it

--
You received this message because you are subscribed to the Google Groups "wrf-hydro_users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wrf-hydro_use...@ucar.edu.
To view this discussion visit https://groups.google.com/a/ucar.edu/d/msgid/wrf-hydro_users/9eb8f9d1-df53-4352-9a22-66f6c0f6cdeen%40ucar.edu.

Ryan Cabell

unread,
Oct 22, 2025, 11:29:41 AM (9 days ago) Oct 22
to wrf-hyd...@ucar.edu, Anderson Ward
Hello,

At NCAR, our development system has GCC 12.4, and our GitHub-based CI system use GCC 13.3, and both build WRF-Hydro v5.4.0 correctly. 

However, the -DOUTPUT_CHAN_CONN is a rarely-used debug option that isn’t part of our standard test suite. I just tried building (with GCC 12.4) with that enabled and do indeed see the error you posted. We’ll look into it, but in the meantime, are you able to use the model without outputting channel connectivity? Typically that option is only used to validate the routing grid generated by the GIS tools and is not part of a standard run.

-Ryan



Reply all
Reply to author
Forward
0 new messages