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

unable to compile wrf hydro coupled with intel llvm compilers

William.Hatheway

Active member
############################################################################

workhorse@workhorse-MS-7D91:~/WRFHYDRO_COUPLED_Intel$
cd "${WRF_FOLDER}"
git clone GitHub - wrf-model/WRF: The official repository for the Weather Research and Forecasting (WRF) model

cd WRF
git submodule update --init --recursive
Cloning into 'WRF'...
remote: Enumerating objects: 64441, done.
remote: Counting objects: 100% (437/437), done.
remote: Compressing objects: 100% (284/284), done.
remote: Total 64441 (delta 297), reused 153 (delta 153), pack-reused 64004 (from 4)
Receiving objects: 100% (64441/64441), 269.66 MiB | 37.22 MiB/s, done.
Resolving deltas: 100% (49738/49738), done.
Submodule '.ci/hpc-workflows' (GitHub - islas/hpc-workflows: Template Workflows for running HPC CI/CD Regression Suites) registered for path '.ci/hpc-workflows'
Submodule 'phys/noahmp' (GitHub - NCAR/noahmp: Noah-MP Community Repository) registered for path 'phys/noahmp'
Cloning into '/home/workhorse/WRFHYDRO_COUPLED_Intel/WRF/.ci/hpc-workflows'...
Cloning into '/home/workhorse/WRFHYDRO_COUPLED_Intel/WRF/phys/noahmp'...
Submodule path '.ci/hpc-workflows': checked out 'dfc8e6d823b80497ea41bab94e1fdf3f4594ad18'
Submodule path 'phys/noahmp': checked out '848f54ad3d28c4303151fe5ad83724e232694422'
workhorse@workhorse-MS-7D91:~/WRFHYDRO_COUPLED_Intel/WRF$
#If statment for changing folder name
if [ -d ""${WRF_FOLDER}"/WRF" ]; then
mv -f "${WRF_FOLDER}"/WRF "${WRF_FOLDER}"/WRFV${WRF_VERSION}
fi

cd "${WRF_FOLDER}"/WRFV${WRF_VERSION}
workhorse@workhorse-MS-7D91:~/WRFHYDRO_COUPLED_Intel/WRFV4.6.1$ ./configure_new
Using default build directory : _build
Using default install directory : /home/workhorse/WRFHYDRO_COUPLED_Intel/WRFV4.6.1/install
0 Linux gfortran / gcc / mpif90 / mpicc GNU (gfortran/gcc)
1 Linux ifx / icx / mpif90 / mpicc INTEL (ifx/icx) : oneAPI LLVM
!! - Compiler not found, some configurations will not work and will be hidden
Select configuration [0-1] Default [0] (note !!) : 1
Select option for WRF_CORE from WRF_CORE_OPTIONS [0-4]
0 : ARW
1 : CONVERT
2 : DA
3 : DA_4D_VAR
4 : PLUS
Default [0] : 0
Select option for WRF_NESTING from WRF_NESTING_OPTIONS [0-3]
0 : NONE
1 : BASIC
2 : MOVES
3 : VORTEX
Default [1] : 1
Select option for WRF_CASE from WRF_CASE_OPTIONS [0-14]
0 : EM_REAL
1 : EM_FIRE
2 : EM_SCM_XY
3 : EM_TROPICAL_CYCLONE
4 : EM_HELDSUAREZ
5 : EM_B_WAVE
6 : EM_GRAV2D_X
7 : EM_HILL2D_X
8 : EM_LES
9 : EM_QUARTER_SS
10 : EM_SEABREEZE2D_X
11 : EM_CONVRAD
12 : EM_SQUALL2D_X
13 : EM_SQUALL2D_Y
14 : NONE
Default [0] : 0
[DM] Use MPI? Default [Y] [Y/n] : y
[SM] Use OpenMP? Default [N] [y/N] : n
Configure additional options? Default [N] [y/N] : y
ID Option : Default
0 USE_DOUBLE : OFF
1 USE_HDF5 : OFF
2 USE_JASPER : OFF
3 USE_PIO : OFF
4 USE_IPO : OFF
5 ENABLE_CHEM : OFF
6 ENABLE_CMAQ : OFF
7 ENABLE_CTSM : OFF
8 ENABLE_DFI_RADAR : OFF
9 ENABLE_HYDRO : OFF
10 ENABLE_KPP : OFF
11 ENABLE_MARS : OFF
12 ENABLE_TERRAIN : OFF
13 ENABLE_TITAN : OFF
14 ENABLE_VENUS : OFF
15 USE_ALLOCATABLES : ON
16 wrfmodel : ON
17 GRIB1 : ON
18 INTIO : ON
19 KEEP_INT_AROUND : ON
20 LIMIT_ARGS : ON
21 WRFIO_NCD_NO_LARGE_FILE_SUPPORT : OFF
22 FORCE_NETCDF_CLASSIC : OFF
23 BUILD_RRTMG_FAST : OFF
24 BUILD_RRTMK : OFF
25 BUILD_SBM_FAST : ON
26 SHOW_ALL_VARS_USED : OFF
27 PROFILE_COMPILATION : OFF
Enter ID to toggle option on or off, q to quit :
1
Set USE_HDF5 to ON
2
Set USE_JASPER to ON
9
Set ENABLE_HYDRO to ON
q
-- The C compiler identification is IntelLLVM 2025.0.4
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/intel/oneapi/compiler/2025.0/bin/icx - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- The CXX compiler identification is IntelLLVM 2025.0.4
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/intel/oneapi/compiler/2025.0/bin/icpx - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The Fortran compiler identification is IntelLLVM 2025.0.4
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: /opt/intel/oneapi/compiler/2025.0/bin/ifx - skipped
-- Retrieving git information...
-- git SHA : v4.6.1-0-gd66e442fccc04111067e29274c9f9eaccc3cef28
-- git diff :
-- Setting project version to 4.6.1
-- Set default build type to Release
-- netCDF large file support not suppressed, if available it will be used
-- Found MPI_C: /opt/intel/oneapi/mpi/2021.14/lib/libmpi.so (found version "3.1")
-- Found MPI_Fortran: /opt/intel/oneapi/mpi/2021.14/lib/libmpifort.so (found version "3.1")
-- Found MPI: TRUE (found version "3.1") found components: Fortran C
-- Checking if MPI requires IPO
-- Found HDF5: /home/workhorse/WRFHYDRO_COUPLED_Intel/Libs/grib2/lib/libhdf5.so;/home/workhorse/WRFHYDRO_COUPLED_Intel/Libs/grib2/lib/libz.so;/usr/lib/x86_64-linux-gnu/libdl.a;/usr/lib/x86_64-linux-gnu/libm.so (found version "1.14.4-3")
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1")
-- Found Jasper: /home/workhorse/WRFHYDRO_COUPLED_Intel/Libs/grib2/lib/libjasper.a (found suitable version "1.900.1", required range is "1.900.1...<1.900.24")
-- Found NETCDF_PROGRAM : /home/workhorse/WRFHYDRO_COUPLED_Intel/Libs/NETCDF/bin/nc-config
-- Found netCDF: /home/workhorse/WRFHYDRO_COUPLED_Intel/Libs/NETCDF/include (found version "4.9.2")
-- Found NETCDF-FORTRAN_PROGRAM : /home/workhorse/WRFHYDRO_COUPLED_Intel/Libs/NETCDF/bin/nf-config
-- Found netCDF-Fortran: /home/workhorse/WRFHYDRO_COUPLED_Intel/Libs/NETCDF/include (found version "4.6.1")
-- Found PNETCDF_PROGRAM : /home/workhorse/WRFHYDRO_COUPLED_Intel/Libs/grib2/bin/pnetcdf-config
-- Found ZLIB: /home/workhorse/WRFHYDRO_COUPLED_Intel/Libs/grib2/lib/libz.so (found version "1.3.1")
-- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found version "8.5.0")
-- WRF_CONFIG : /home/workhorse/WRFHYDRO_COUPLED_Intel/WRFV4.6.1/_build/wrf_config.cmake
-- CMAKE_BUILD_TYPE : Release
-- WRF_CORE : ARW
-- WRF_NESTING : BASIC
-- WRF_CASE : EM_REAL
-- USE_DOUBLE : OFF
-- USE_MPI : ON
-- USE_OPENMP : OFF
-- USE_IPO : OFF
-- ENABLE_CHEM : OFF
-- ENABLE_CLM :
-- ENABLE_CMAQ : OFF
-- ENABLE_DFI_RADAR : OFF
-- ENABLE_HYDRO : ON
-- ENABLE_KPP : OFF
-- ENABLE_MARS : OFF
-- ENABLE_TERRAIN : OFF
-- ENABLE_TITAN : OFF
-- ENABLE_VENUS : OFF
-- USE_ALLOCATABLES : ON
-- wrfmodel : ON
-- GRIB1 : ON
-- INTIO : ON
-- KEEP_INT_AROUND : ON
-- LIMIT_ARGS : ON
-- FORCE_NETCDF_CLASSIC : OFF
-- BUILD_RRTMG_FAST : OFF
-- BUILD_RRTMK : OFF
-- BUILD_SBM_FAST : ON
-- SHOW_ALL_VARS_USED : OFF
-- WRFIO_NCD_NO_LARGE_FILE_SUPPORT : OFF
-- Performing Test Fortran_2003_IEEE
-- Performing Test Fortran_2003_IEEE - Success
-- Performing Test Fortran_2003_ISO_C
-- Performing Test Fortran_2003_ISO_C - Success
-- Performing Test Fortran_2003_FLUSH
-- Performing Test Fortran_2003_FLUSH - Success
-- Performing Test Fortran_2003_GAMMA
-- Performing Test Fortran_2003_GAMMA - Success
-- Performing Test FSEEKO64
-- Performing Test FSEEKO64 - Success
-- Adding [io_netcdfpar] to configuration
-- Adding [io_pnetcdf] to configuration
-- Adding [io_phdf5] to configuration
-- Adding [io_grib2] to configuration
-- Setting gen_comms to RSL_LITE
-- Setting module_dm to RSL_LITE
-- Configuring done (2.8s)
-- Generating done (0.1s)
-- Build files have been written to: /home/workhorse/WRFHYDRO_COUPLED_Intel/WRFV4.6.1/_build
workhorse@workhorse-MS-7D91:~/WRFHYDRO_COUPLED_Intel/WRFV4.6.1$ ./compile_new -j 1
Using default build directory : /home/workhorse/WRFHYDRO_COUPLED_Intel/WRFV4.6.1/_build
[ 1%] Building Fortran object hydro/MPP/CMakeFiles/hydro_mpp.dir/CPL_WRF.F90.o
[ 1%] Building Fortran object hydro/MPP/CMakeFiles/hydro_mpp.dir/hashtable.F90.o
[ 1%] Building Fortran object hydro/MPP/CMakeFiles/hydro_mpp.dir/mpp_land.F90.o
[ 1%] Building Fortran object hydro/MPP/CMakeFiles/hydro_mpp.dir/module_mpp_GWBUCKET.F90.o
[ 1%] Building Fortran object hydro/MPP/CMakeFiles/hydro_mpp.dir/module_mpp_ReachLS.F90.o
[ 1%] Linking Fortran static library libhydro_mpp.a
[ 1%] Built target hydro_mpp
[ 1%] Building Fortran object hydro/utils/CMakeFiles/hydro_utils.dir/module_hydro_stop.F90.o
/home/workhorse/WRFHYDRO_COUPLED_Intel/WRFV4.6.1/hydro/utils/module_hydro_stop.F90(10): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MPI]
use module_mpp_land
------------^
compilation aborted for /home/workhorse/WRFHYDRO_COUPLED_Intel/WRFV4.6.1/hydro/utils/module_hydro_stop.F90 (code 1)
make[2]: *** [hydro/utils/CMakeFiles/hydro_utils.dir/build.make:88: hydro/utils/CMakeFiles/hydro_utils.dir/module_hydro_stop.F90.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2100: hydro/utils/CMakeFiles/hydro_utils.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
 
Cloning into 'WRF'...
remote: Enumerating objects: 64441, done.
remote: Counting objects: 100% (437/437), done.
remote: Compressing objects: 100% (284/284), done.
remote: Total 64441 (delta 297), reused 153 (delta 153), pack-reused 64004 (from 4)
Receiving objects: 100% (64441/64441), 269.66 MiB | 48.10 MiB/s, done.
Resolving deltas: 100% (49738/49738), done.
Submodule '.ci/hpc-workflows' (GitHub - islas/hpc-workflows: Template Workflows for running HPC CI/CD Regression Suites) registered for path '.ci/hpc-workflows'
Submodule 'phys/noahmp' (GitHub - NCAR/noahmp: Noah-MP Community Repository) registered for path 'phys/noahmp'
Cloning into '/home/workhorse/WRFHYDRO_COUPLED_Intel/WRF/.ci/hpc-workflows'...
Cloning into '/home/workhorse/WRFHYDRO_COUPLED_Intel/WRF/phys/noahmp'...
Submodule path '.ci/hpc-workflows': checked out 'dfc8e6d823b80497ea41bab94e1fdf3f4594ad18'
Submodule path 'phys/noahmp': checked out '848f54ad3d28c4303151fe5ad83724e232694422'
workhorse@workhorse-MS-7D91:~/WRFHYDRO_COUPLED_Intel/WRFV4.6.1$
cp -rf "${WRF_FOLDER}"/Hydro-Basecode/wrf_hydro_nwm_public/src/* "${WRF_FOLDER}"/WRFV${WRF_VERSION}/hydro
cp -rf "${WRF_FOLDER}"/Hydro-Basecode/wrf_hydro_nwm_public/build/src/* "${WRF_FOLDER}"/WRFV${WRF_VERSION}/hydro
workhorse@workhorse-MS-7D91:~/WRFHYDRO_COUPLED_Intel/WRFV4.6.1$
export ZLIB_ROOT=$DIR/grib2
export JASPER_DIR=$DIR/grib2
export HDF5_ROOT=$DIR/grib2
export PNETCDF_DIR=$DIR/grib2
workhorse@workhorse-MS-7D91:~/WRFHYDRO_COUPLED_Intel/WRFV4.6.1$ ./configure_new
Using default build directory : _build
Using default install directory : /home/workhorse/WRFHYDRO_COUPLED_Intel/WRFV4.6.1/install
0 Linux gfortran / gcc / mpif90 / mpicc GNU (gfortran/gcc)
1 Linux ifx / icx / mpif90 / mpicc INTEL (ifx/icx) : oneAPI LLVM
!! - Compiler not found, some configurations will not work and will be hidden
Select configuration [0-1] Default [0] (note !!) : 1
Select option for WRF_CORE from WRF_CORE_OPTIONS [0-4]
0 : ARW
1 : CONVERT
2 : DA
3 : DA_4D_VAR
4 : PLUS
Default [0] : 0
Select option for WRF_NESTING from WRF_NESTING_OPTIONS [0-3]
0 : NONE
1 : BASIC
2 : MOVES
3 : VORTEX
Default [1] : 1
Select option for WRF_CASE from WRF_CASE_OPTIONS [0-14]
0 : EM_REAL
1 : EM_FIRE
2 : EM_SCM_XY
3 : EM_TROPICAL_CYCLONE
4 : EM_HELDSUAREZ
5 : EM_B_WAVE
6 : EM_GRAV2D_X
7 : EM_HILL2D_X
8 : EM_LES
9 : EM_QUARTER_SS
10 : EM_SEABREEZE2D_X
11 : EM_CONVRAD
12 : EM_SQUALL2D_X
13 : EM_SQUALL2D_Y
14 : NONE
Default [0] : 0
[DM] Use MPI? Default [Y] [Y/n] : y
[SM] Use OpenMP? Default [N] [y/N] : n
Configure additional options? Default [N] [y/N] : y
ID Option : Default
0 USE_DOUBLE : OFF
1 USE_HDF5 : OFF
2 USE_JASPER : OFF
3 USE_PIO : OFF
4 USE_IPO : OFF
5 ENABLE_CHEM : OFF
6 ENABLE_CMAQ : OFF
7 ENABLE_CTSM : OFF
8 ENABLE_DFI_RADAR : OFF
9 ENABLE_HYDRO : OFF
10 ENABLE_KPP : OFF
11 ENABLE_MARS : OFF
12 ENABLE_TERRAIN : OFF
13 ENABLE_TITAN : OFF
14 ENABLE_VENUS : OFF
15 USE_ALLOCATABLES : ON
16 wrfmodel : ON
17 GRIB1 : ON
18 INTIO : ON
19 KEEP_INT_AROUND : ON
20 LIMIT_ARGS : ON
21 WRFIO_NCD_NO_LARGE_FILE_SUPPORT : OFF
22 FORCE_NETCDF_CLASSIC : OFF
23 BUILD_RRTMG_FAST : OFF
24 BUILD_RRTMK : OFF
25 BUILD_SBM_FAST : ON
26 SHOW_ALL_VARS_USED : OFF
27 PROFILE_COMPILATION : OFF
Enter ID to toggle option on or off, q to quit :
1
Set USE_HDF5 to ON
2
Set USE_JASPER to ON
9
Set ENABLE_HYDRO to ON
q
-- The C compiler identification is IntelLLVM 2025.0.4
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/intel/oneapi/compiler/2025.0/bin/icx - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- The CXX compiler identification is IntelLLVM 2025.0.4
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/intel/oneapi/compiler/2025.0/bin/icpx - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The Fortran compiler identification is IntelLLVM 2025.0.4
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: /opt/intel/oneapi/compiler/2025.0/bin/ifx - skipped
-- Retrieving git information...
-- git SHA : v4.6.1-0-gd66e442fccc04111067e29274c9f9eaccc3cef28-dirty
-- git diff : 62 files changed, 6300 insertions(+), 2951 deletions(-)
-- Setting project version to 4.6.1
-- Set default build type to Release
-- netCDF large file support not suppressed, if available it will be used
-- Found MPI_C: /opt/intel/oneapi/mpi/2021.14/lib/libmpi.so (found version "3.1")
-- Found MPI_Fortran: /opt/intel/oneapi/mpi/2021.14/lib/libmpifort.so (found version "3.1")
-- Found MPI: TRUE (found version "3.1") found components: Fortran C
-- Checking if MPI requires IPO
-- Found HDF5: /home/workhorse/WRFHYDRO_COUPLED_Intel/Libs/grib2/lib/libhdf5.so;/home/workhorse/WRFHYDRO_COUPLED_Intel/Libs/grib2/lib/libz.so;/usr/lib/x86_64-linux-gnu/libdl.a;/usr/lib/x86_64-linux-gnu/libm.so (found version "1.14.4-3")
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1")
-- Found Jasper: /home/workhorse/WRFHYDRO_COUPLED_Intel/Libs/grib2/lib/libjasper.a (found suitable version "1.900.1", required range is "1.900.1...<1.900.24")
-- Found NETCDF_PROGRAM : /home/workhorse/WRFHYDRO_COUPLED_Intel/Libs/NETCDF/bin/nc-config
-- Found netCDF: /home/workhorse/WRFHYDRO_COUPLED_Intel/Libs/NETCDF/include (found version "4.9.2")
-- Found NETCDF-FORTRAN_PROGRAM : /home/workhorse/WRFHYDRO_COUPLED_Intel/Libs/NETCDF/bin/nf-config
-- Found netCDF-Fortran: /home/workhorse/WRFHYDRO_COUPLED_Intel/Libs/NETCDF/include (found version "4.6.1")
-- Found PNETCDF_PROGRAM : /home/workhorse/WRFHYDRO_COUPLED_Intel/Libs/grib2/bin/pnetcdf-config
-- Found ZLIB: /home/workhorse/WRFHYDRO_COUPLED_Intel/Libs/grib2/lib/libz.so (found version "1.3.1")
-- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found version "8.5.0")
-- WRF_CONFIG : /home/workhorse/WRFHYDRO_COUPLED_Intel/WRFV4.6.1/_build/wrf_config.cmake
-- CMAKE_BUILD_TYPE : Release
-- WRF_CORE : ARW
-- WRF_NESTING : BASIC
-- WRF_CASE : EM_REAL
-- USE_DOUBLE : OFF
-- USE_MPI : ON
-- USE_OPENMP : OFF
-- USE_IPO : OFF
-- ENABLE_CHEM : OFF
-- ENABLE_CLM :
-- ENABLE_CMAQ : OFF
-- ENABLE_DFI_RADAR : OFF
-- ENABLE_HYDRO : ON
-- ENABLE_KPP : OFF
-- ENABLE_MARS : OFF
-- ENABLE_TERRAIN : OFF
-- ENABLE_TITAN : OFF
-- ENABLE_VENUS : OFF
-- USE_ALLOCATABLES : ON
-- wrfmodel : ON
-- GRIB1 : ON
-- INTIO : ON
-- KEEP_INT_AROUND : ON
-- LIMIT_ARGS : ON
-- FORCE_NETCDF_CLASSIC : OFF
-- BUILD_RRTMG_FAST : OFF
-- BUILD_RRTMK : OFF
-- BUILD_SBM_FAST : ON
-- SHOW_ALL_VARS_USED : OFF
-- WRFIO_NCD_NO_LARGE_FILE_SUPPORT : OFF
-- Performing Test Fortran_2003_IEEE
-- Performing Test Fortran_2003_IEEE - Success
-- Performing Test Fortran_2003_ISO_C
-- Performing Test Fortran_2003_ISO_C - Success
-- Performing Test Fortran_2003_FLUSH
-- Performing Test Fortran_2003_FLUSH - Success
-- Performing Test Fortran_2003_GAMMA
-- Performing Test Fortran_2003_GAMMA - Success
-- Performing Test FSEEKO64
-- Performing Test FSEEKO64 - Success
-- Adding [io_netcdfpar] to configuration
-- Adding [io_pnetcdf] to configuration
-- Adding [io_phdf5] to configuration
-- Adding [io_grib2] to configuration
-- Setting gen_comms to RSL_LITE
-- Setting module_dm to RSL_LITE
-- Configuring done (2.8s)
-- Generating done (0.1s)
-- Build files have been written to: /home/workhorse/WRFHYDRO_COUPLED_Intel/WRFV4.6.1/_build
workhorse@workhorse-MS-7D91:~/WRFHYDRO_COUPLED_Intel/WRFV4.6.1$ ./compile_new
Using default build directory : /home/workhorse/WRFHYDRO_COUPLED_Intel/WRFV4.6.1/_build
[ 0%] Building Fortran object hydro/MPP/CMakeFiles/hydro_mpp.dir/CPL_WRF.F90.o
[ 0%] Building Fortran object hydro/MPP/CMakeFiles/hydro_mpp.dir/hashtable.F90.o
[ 0%] Building Fortran object hydro/MPP/CMakeFiles/hydro_mpp.dir/mpp_land.F90.o
[ 0%] Building Fortran object hydro/MPP/CMakeFiles/hydro_mpp.dir/module_mpp_GWBUCKET.F90.o
[ 1%] Building Fortran object hydro/MPP/CMakeFiles/hydro_mpp.dir/module_mpp_ReachLS.F90.o
[ 1%] Linking Fortran static library libhydro_mpp.a
[ 1%] Built target hydro_mpp
[ 1%] Building Fortran object hydro/utils/CMakeFiles/hydro_utils.dir/module_hydro_stop.F90.o
/home/workhorse/WRFHYDRO_COUPLED_Intel/WRFV4.6.1/hydro/utils/module_hydro_stop.F90(10): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MPI]
use module_mpp_land
------------^
compilation aborted for /home/workhorse/WRFHYDRO_COUPLED_Intel/WRFV4.6.1/hydro/utils/module_hydro_stop.F90 (code 1)
make[2]: *** [hydro/utils/CMakeFiles/hydro_utils.dir/build.make:88: hydro/utils/CMakeFiles/hydro_utils.dir/module_hydro_stop.F90.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2137: hydro/utils/CMakeFiles/hydro_utils.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
 
##############################################################################
workhorse@workhorse-MS-7D91:~/WRFHYDRO_COUPLED_Intel$
cd "${WRF_FOLDER}"
git clone GitHub - wrf-model/WRF: The official repository for the Weather Research and Forecasting (WRF) model

cd WRF
git submodule update --init --recursive
Cloning into 'WRF'...
remote: Enumerating objects: 64441, done.
remote: Counting objects: 100% (438/438), done.
remote: Compressing objects: 100% (283/283), done.
remote: Total 64441 (delta 297), reused 155 (delta 155), pack-reused 64003 (from 4)
Receiving objects: 100% (64441/64441), 269.66 MiB | 38.27 MiB/s, done.
Resolving deltas: 100% (49732/49732), done.
Submodule '.ci/hpc-workflows' (GitHub - islas/hpc-workflows: Template Workflows for running HPC CI/CD Regression Suites) registered for path '.ci/hpc-workflows'
Submodule 'phys/noahmp' (GitHub - NCAR/noahmp: Noah-MP Community Repository) registered for path 'phys/noahmp'
Cloning into '/home/workhorse/WRFHYDRO_COUPLED_Intel/WRF/.ci/hpc-workflows'...
Cloning into '/home/workhorse/WRFHYDRO_COUPLED_Intel/WRF/phys/noahmp'...
Submodule path '.ci/hpc-workflows': checked out 'dfc8e6d823b80497ea41bab94e1fdf3f4594ad18'
Submodule path 'phys/noahmp': checked out '848f54ad3d28c4303151fe5ad83724e232694422'
workhorse@workhorse-MS-7D91:~/WRFHYDRO_COUPLED_Intel/WRF$

#If statment for changing folder name
if [ -d ""${WRF_FOLDER}"/WRF" ]; then
mv -f "${WRF_FOLDER}"/WRF "${WRF_FOLDER}"/WRFV${WRF_VERSION}
fi

cd "${WRF_FOLDER}"/WRFV${WRF_VERSION}

workhorse@workhorse-MS-7D91:~/WRFHYDRO_COUPLED_Intel/WRFV4.6.1$
export ZLIB_ROOT=$DIR/grib2
export JASPER_DIR=$DIR/grib2
export HDF5_ROOT=$DIR/grib2
export PNETCDF_DIR=$DIR/grib2
workhorse@workhorse-MS-7D91:~/WRFHYDRO_COUPLED_Intel/WRFV4.6.1$ cp -rf "${WRF_FOLDER}"/Hydro-Basecode/wrf_hydro_nwm_public/src/* "${WRF_FOLDER}"/WRFV${WRF_VERSION}/hydro
workhorse@workhorse-MS-7D91:~/WRFHYDRO_COUPLED_Intel/WRFV4.6.1$ cp -rf "${WRF_FOLDER}"/Hydro-Basecode/wrf_hydro_nwm_public/build/* "${WRF_FOLDER}"/WRFV${WRF_VERSION}/hydro
workhorse@workhorse-MS-7D91:~/WRFHYDRO_COUPLED_Intel/WRFV4.6.1$ cp -rf "${WRF_FOLDER}"/Hydro-Basecode/wrf_hydro_nwm_public/build/src/* "${WRF_FOLDER}"/WRFV${WRF_VERSION}/hydro
workhorse@workhorse-MS-7D91:~/WRFHYDRO_COUPLED_Intel/WRFV4.6.1$
./configure_new -x -p "oneAPI LLVM" -- -DCMAKE_Fortran_COMPILER=ifx -DMPI_Fortran_COMPILER=mpiifx -DMPI_C_COMPILER=mpiicx -DWRF_CORE=ARW -DWRF_NESTING=BASIC -DWRF_CASE=EM_REAL -DUSE_MPI=ON -DENABLE_HYDRO=ON
Using default build directory : _build
Using default install directory : /home/workhorse/WRFHYDRO_COUPLED_Intel/WRFV4.6.1/install
Using preselected config oneAPI LLVM
Linux ifx / icx / mpif90 / mpicc INTEL (ifx/icx) : oneAPI LLVM
-- The C compiler identification is IntelLLVM 2025.0.4
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/intel/oneapi/compiler/2025.0/bin/icx - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- The CXX compiler identification is IntelLLVM 2025.0.4
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/intel/oneapi/compiler/2025.0/bin/icpx - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The Fortran compiler identification is IntelLLVM 2025.0.4
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: /opt/intel/oneapi/compiler/2025.0/bin/ifx - skipped
-- Retrieving git information...
-- git SHA : v4.6.1-0-gd66e442fccc04111067e29274c9f9eaccc3cef28-dirty
-- git diff : 62 files changed, 6300 insertions(+), 2951 deletions(-)
-- Setting project version to 4.6.1
-- Set default build type to Release
-- netCDF large file support not suppressed, if available it will be used
-- Found MPI_C: /opt/intel/oneapi/mpi/2021.14/lib/libmpi.so (found version "3.1")
-- Found MPI_Fortran: /opt/intel/oneapi/mpi/2021.14/lib/libmpifort.so (found version "3.1")
-- Found MPI: TRUE (found version "3.1") found components: Fortran C
-- Checking if MPI requires IPO
-- Found NETCDF_PROGRAM : /home/workhorse/WRFHYDRO_COUPLED_Intel/Libs/NETCDF/bin/nc-config
-- Found netCDF: /home/workhorse/WRFHYDRO_COUPLED_Intel/Libs/NETCDF/include (found version "4.9.2")
-- Found NETCDF-FORTRAN_PROGRAM : /home/workhorse/WRFHYDRO_COUPLED_Intel/Libs/NETCDF/bin/nf-config
-- Found netCDF-Fortran: /home/workhorse/WRFHYDRO_COUPLED_Intel/Libs/NETCDF/include (found version "4.6.1")
-- Found PNETCDF_PROGRAM : /home/workhorse/WRFHYDRO_COUPLED_Intel/Libs/grib2/bin/pnetcdf-config
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1")
-- Found ZLIB: /home/workhorse/WRFHYDRO_COUPLED_Intel/Libs/grib2/lib/libz.so (found version "1.3.1")
-- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found version "8.5.0")
-- WRF_CONFIG : /home/workhorse/WRFHYDRO_COUPLED_Intel/WRFV4.6.1/_build/wrf_config.cmake
-- CMAKE_BUILD_TYPE : Release
-- WRF_CORE : ARW
-- WRF_NESTING : BASIC
-- WRF_CASE : EM_REAL
-- USE_DOUBLE : OFF
-- USE_MPI : ON
-- USE_OPENMP : OFF
-- USE_IPO : OFF
-- ENABLE_CHEM : OFF
-- ENABLE_CLM :
-- ENABLE_CMAQ : OFF
-- ENABLE_DFI_RADAR : OFF
-- ENABLE_HYDRO : ON
-- ENABLE_KPP : OFF
-- ENABLE_MARS : OFF
-- ENABLE_TERRAIN : OFF
-- ENABLE_TITAN : OFF
-- ENABLE_VENUS : OFF
-- USE_ALLOCATABLES : ON
-- wrfmodel : ON
-- GRIB1 : ON
-- INTIO : ON
-- KEEP_INT_AROUND : ON
-- LIMIT_ARGS : ON
-- FORCE_NETCDF_CLASSIC : OFF
-- BUILD_RRTMG_FAST : OFF
-- BUILD_RRTMK : OFF
-- BUILD_SBM_FAST : ON
-- SHOW_ALL_VARS_USED : OFF
-- WRFIO_NCD_NO_LARGE_FILE_SUPPORT : OFF
-- Performing Test Fortran_2003_IEEE
-- Performing Test Fortran_2003_IEEE - Success
-- Performing Test Fortran_2003_ISO_C
-- Performing Test Fortran_2003_ISO_C - Success
-- Performing Test Fortran_2003_FLUSH
-- Performing Test Fortran_2003_FLUSH - Success
-- Performing Test Fortran_2003_GAMMA
-- Performing Test Fortran_2003_GAMMA - Success
-- Performing Test FSEEKO64
-- Performing Test FSEEKO64 - Success
-- Adding [io_netcdfpar] to configuration
-- Adding [io_pnetcdf] to configuration
-- Setting gen_comms to RSL_LITE
-- Setting module_dm to RSL_LITE
-- Configuring done (2.7s)
-- Generating done (0.1s)
-- Build files have been written to: /home/workhorse/WRFHYDRO_COUPLED_Intel/WRFV4.6.1/_build
workhorse@workhorse-MS-7D91:~/WRFHYDRO_COUPLED_Intel/WRFV4.6.1$ ./compile_new -j 1
Using default build directory : /home/workhorse/WRFHYDRO_COUPLED_Intel/WRFV4.6.1/_build
[ 0%] Building Fortran object hydro/MPP/CMakeFiles/hydro_mpp.dir/CPL_WRF.F90.o
[ 0%] Building Fortran object hydro/MPP/CMakeFiles/hydro_mpp.dir/hashtable.F90.o
[ 0%] Building Fortran object hydro/MPP/CMakeFiles/hydro_mpp.dir/mpp_land.F90.o
[ 0%] Building Fortran object hydro/MPP/CMakeFiles/hydro_mpp.dir/module_mpp_GWBUCKET.F90.o
[ 0%] Building Fortran object hydro/MPP/CMakeFiles/hydro_mpp.dir/module_mpp_ReachLS.F90.o
[ 0%] Linking Fortran static library libhydro_mpp.a
[ 0%] Built target hydro_mpp
[ 0%] Building Fortran object hydro/utils/CMakeFiles/hydro_utils.dir/module_hydro_stop.F90.o
/home/workhorse/WRFHYDRO_COUPLED_Intel/WRFV4.6.1/hydro/utils/module_hydro_stop.F90(10): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MPI]
use module_mpp_land
------------^
compilation aborted for /home/workhorse/WRFHYDRO_COUPLED_Intel/WRFV4.6.1/hydro/utils/module_hydro_stop.F90 (code 1)
make[2]: *** [hydro/utils/CMakeFiles/hydro_utils.dir/build.make:88: hydro/utils/CMakeFiles/hydro_utils.dir/module_hydro_stop.F90.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2014: hydro/utils/CMakeFiles/hydro_utils.dir/all] Error 2
make: *** [Makefile:136: all] Error 2


I have tried using stock hydro, compiled hydro from the github and using configure new with the different options listed all above and nothing works. I'm stuck. Any help you can provide would be appreciated!
 
Here's a log file with the errors, i think the hydro module compiled outside of wrf is naming the module files differently then the WRF is looking for

nextcloud upload: compile_new_debug_wrfcoupled.log
 
I took a look at this and was able to reproduce it. I think it comes down to the fact that the way ifx handles compiled module files. They are unlike pseudo-header files where an interface need only be defined and any transitive usage of modules within that module are ignored. Instead, when one module imports another, that imported module's module usage also needs to be resolved. Very infuriating stuff making resolving the dependency chain all the more tedious.

I've managed to get it to compile with modifications to the hydro/ cmake files and will put a patch in for v4.7.0 that we are working towards. Once in a branch I will post back here so you may also test it out
 
  • Like
Reactions: Dev
I took a look at this and was able to reproduce it. I think it comes down to the fact that the way ifx handles compiled module files. They are unlike pseudo-header files where an interface need only be defined and any transitive usage of modules within that module are ignored. Instead, when one module imports another, that imported module's module usage also needs to be resolved. Very infuriating stuff making resolving the dependency chain all the more tedious.

I've managed to get it to compile with modifications to the hydro/ cmake files and will put a patch in for v4.7.0 that we are working towards. Once in a branch I will post back here so you may also test it out
should I open an issue on the github?
 
Bash:
workhorse@workhorse-MS-7D91:~/WRFHYDRO_COUPLED/WRFV4.6.1$ ./compile_new -j1
Using default build directory : /home/workhorse/WRFHYDRO_COUPLED/WRFV4.6.1/_build
[  0%] Built target md_calls
[  0%] Built target io_int
[  0%] Built target io_grib1
[  3%] Built target MEL_grib1
[  4%] Built target grib1_util
[  8%] Built target WGRIB
[  9%] Built target io_grib_share
[ 28%] Built target fftpack5
[ 30%] Built target esmf_time_f90
[ 30%] Building io_netcdf_c_preproc_wrf_io
[ 30%] Built target io_netcdf_c_preproc_wrf_io
[ 30%] Built target io_netcdf_m4_preproc_wrf_io
[ 31%] Built target io_netcdf
[ 31%] Building io_netcdfpar_c_preproc_wrf_io
[ 31%] Built target io_netcdfpar_c_preproc_wrf_io
[ 31%] Built target io_netcdfpar_m4_preproc_wrf_io
[ 32%] Built target io_netcdfpar
[ 32%] Building io_pnetcdf_c_preproc_wrf_io
[ 33%] Built target io_pnetcdf_c_preproc_wrf_io
[ 33%] Built target io_pnetcdf_m4_preproc_wrf_io
[ 33%] Built target io_pnetcdf
[ 35%] Built target RSL_LITE
[ 37%] Built target registry
[ 37%] Built target registry_code
[ 37%] Building module_ra_rrtmg_preproc
[ 37%] Built target module_ra_rrtmg_preproc
[ 37%] Building nl_set_0
[ 37%] Built target nl_set_0
[ 37%] Building nl_get_0
[ 38%] Built target nl_get_0
[ 38%] Building nl_set_1
[ 38%] Built target nl_set_1
[ 38%] Building nl_get_1
[ 38%] Built target nl_get_1
[ 39%] Building nl_set_2
[ 39%] Built target nl_set_2
[ 39%] Building nl_get_2
[ 39%] Built target nl_get_2
[ 39%] Building nl_set_3
[ 39%] Built target nl_set_3
[ 39%] Building nl_get_3
[ 39%] Built target nl_get_3
[ 39%] Building nl_set_4
[ 39%] Built target nl_set_4
[ 39%] Building nl_get_4
[ 39%] Built target nl_get_4
[ 39%] Building nl_set_5
[ 39%] Built target nl_set_5
[ 40%] Building nl_get_5
[ 40%] Built target nl_get_5
[ 40%] Building nl_set_6
[ 41%] Built target nl_set_6
[ 41%] Building nl_get_6
[ 41%] Built target nl_get_6
[ 41%] Building nl_set_7
[ 41%] Built target nl_set_7
[ 41%] Building nl_get_7
[ 41%] Built target nl_get_7
[ 84%] Built target WRF_Core
[ 85%] Built target diffwrf_int
[ 86%] Built target diffwrf_nc
[ 86%] Built target diffwrf_ncpar
[ 86%] Built target hydro_mpp
[ 87%] Built target hydro_utils
[ 87%] Built target hydro_routing_reservoirs
[ 88%] Built target hydro_routing_overland
[ 88%] Built target hydro_routing_subsurface
[ 88%] Built target hydro_data_rec
[ 89%] Built target hydro_netcdf_layer
[ 89%] Built target hydro_orchestrator
[ 90%] Built target hydro_nudging
[ 90%] Built target fortglob
[ 91%] Built target hydro_debug_utils
[ 91%] Built target hydro_routing_reservoirs_levelpool
[ 92%] Built target hydro_routing_reservoirs_hybrid
[ 93%] Built target hydro_routing_reservoirs_rfc
[ 93%] Built target hydro_routing_diversions
[ 95%] Built target hydro_routing
[ 95%] Built target hydro_driver
[ 95%] Built target hydro_noahmp_cpl
[ 96%] Built target crocus_surfex
[ 96%] Built target snowcro
[ 97%] Built target noahmp_phys
[ 97%] Built target noahmp_util
[ 97%] Built target noahmp_data
[ 98%] Linking Fortran executable wrfhydro.exe
[ 98%] Built target wrfhydro.exe
[ 98%] Built target fortran_ctest_should_fail
[ 98%] Built target fortran_ctest_should_not_fail
[ 98%] Linking Fortran executable wrf
/usr/bin/ld: ../libWRF_Core.a(module_first_rk_step_part1.F.o): in function `__module_first_rk_step_part1_MOD_first_rk_step_part1':
module_first_rk_step_part1.F:(.text+0x437a): undefined reference to `wrf_drv_hydro_'
collect2: error: ld returned 1 exit status
make[2]: *** [main/CMakeFiles/wrf.dir/build.make:131: main/wrf] Error 1
make[1]: *** [CMakeFiles/Makefile2:3530: main/CMakeFiles/wrf.dir/all] Error 2
make: *** [Makefile:136: all] Error 2


This error also occurs on GNU compilers @islas
 
Bash:
workhorse@workhorse-MS-7D91:~/WRFHYDRO_COUPLED/WRFV4.6.1$ ./compile_new -j1
Using default build directory : /home/workhorse/WRFHYDRO_COUPLED/WRFV4.6.1/_build
[  0%] Built target md_calls
[  0%] Built target io_int
[  0%] Built target io_grib1
[  3%] Built target MEL_grib1
[  4%] Built target grib1_util
[  8%] Built target WGRIB
[  9%] Built target io_grib_share
[ 28%] Built target fftpack5
[ 30%] Built target esmf_time_f90
[ 30%] Building io_netcdf_c_preproc_wrf_io
[ 30%] Built target io_netcdf_c_preproc_wrf_io
[ 30%] Built target io_netcdf_m4_preproc_wrf_io
[ 31%] Built target io_netcdf
[ 31%] Building io_netcdfpar_c_preproc_wrf_io
[ 31%] Built target io_netcdfpar_c_preproc_wrf_io
[ 31%] Built target io_netcdfpar_m4_preproc_wrf_io
[ 32%] Built target io_netcdfpar
[ 32%] Building io_pnetcdf_c_preproc_wrf_io
[ 33%] Built target io_pnetcdf_c_preproc_wrf_io
[ 33%] Built target io_pnetcdf_m4_preproc_wrf_io
[ 33%] Built target io_pnetcdf
[ 35%] Built target RSL_LITE
[ 37%] Built target registry
[ 37%] Built target registry_code
[ 37%] Building module_ra_rrtmg_preproc
[ 37%] Built target module_ra_rrtmg_preproc
[ 37%] Building nl_set_0
[ 37%] Built target nl_set_0
[ 37%] Building nl_get_0
[ 38%] Built target nl_get_0
[ 38%] Building nl_set_1
[ 38%] Built target nl_set_1
[ 38%] Building nl_get_1
[ 38%] Built target nl_get_1
[ 39%] Building nl_set_2
[ 39%] Built target nl_set_2
[ 39%] Building nl_get_2
[ 39%] Built target nl_get_2
[ 39%] Building nl_set_3
[ 39%] Built target nl_set_3
[ 39%] Building nl_get_3
[ 39%] Built target nl_get_3
[ 39%] Building nl_set_4
[ 39%] Built target nl_set_4
[ 39%] Building nl_get_4
[ 39%] Built target nl_get_4
[ 39%] Building nl_set_5
[ 39%] Built target nl_set_5
[ 40%] Building nl_get_5
[ 40%] Built target nl_get_5
[ 40%] Building nl_set_6
[ 41%] Built target nl_set_6
[ 41%] Building nl_get_6
[ 41%] Built target nl_get_6
[ 41%] Building nl_set_7
[ 41%] Built target nl_set_7
[ 41%] Building nl_get_7
[ 41%] Built target nl_get_7
[ 84%] Built target WRF_Core
[ 85%] Built target diffwrf_int
[ 86%] Built target diffwrf_nc
[ 86%] Built target diffwrf_ncpar
[ 86%] Built target hydro_mpp
[ 87%] Built target hydro_utils
[ 87%] Built target hydro_routing_reservoirs
[ 88%] Built target hydro_routing_overland
[ 88%] Built target hydro_routing_subsurface
[ 88%] Built target hydro_data_rec
[ 89%] Built target hydro_netcdf_layer
[ 89%] Built target hydro_orchestrator
[ 90%] Built target hydro_nudging
[ 90%] Built target fortglob
[ 91%] Built target hydro_debug_utils
[ 91%] Built target hydro_routing_reservoirs_levelpool
[ 92%] Built target hydro_routing_reservoirs_hybrid
[ 93%] Built target hydro_routing_reservoirs_rfc
[ 93%] Built target hydro_routing_diversions
[ 95%] Built target hydro_routing
[ 95%] Built target hydro_driver
[ 95%] Built target hydro_noahmp_cpl
[ 96%] Built target crocus_surfex
[ 96%] Built target snowcro
[ 97%] Built target noahmp_phys
[ 97%] Built target noahmp_util
[ 97%] Built target noahmp_data
[ 98%] Linking Fortran executable wrfhydro.exe
[ 98%] Built target wrfhydro.exe
[ 98%] Built target fortran_ctest_should_fail
[ 98%] Built target fortran_ctest_should_not_fail
[ 98%] Linking Fortran executable wrf
/usr/bin/ld: ../libWRF_Core.a(module_first_rk_step_part1.F.o): in function `__module_first_rk_step_part1_MOD_first_rk_step_part1':
module_first_rk_step_part1.F:(.text+0x437a): undefined reference to `wrf_drv_hydro_'
collect2: error: ld returned 1 exit status
make[2]: *** [main/CMakeFiles/wrf.dir/build.make:131: main/wrf] Error 1
make[1]: *** [CMakeFiles/Makefile2:3530: main/CMakeFiles/wrf.dir/all] Error 2
make: *** [Makefile:136: all] Error 2


This error also occurs on GNU compilers @islas
Code:
[ 88%] Built target hydro_routing_subsurface
[
[ 95%] Built target hydro_routing
[ 95%] Building Fortran object hydro/src/HYDRO_drv/CMakeFiles/hydro_driver.dir/module_HYDRO_drv.F90.o
[ 95%] Linking Fortran static library ../../lib/libhydro_driver.a
[ 95%] Built target hydro_driver
[ 95%] Building Fortran object hydro/src/CPL/NoahMP_cpl/CMakeFiles/hydro_noahmp_cpl.dir/module_hrldas_HYDRO.F.o
[ 95%] Building Fortran object hydro/src/CPL/NoahMP_cpl/CMakeFiles/hydro_noahmp_cpl.dir/hrldas_drv_HYDRO.F.o
[ 95%] Linking Fortran static library ../../../lib/libhydro_noahmp_cpl.a
[ 95%] Built target hydro_noahmp_cpl
[ 95%] Building Fortran object hydro/src/Land_models/NoahMP/phys/surfex/CMakeFiles/crocus_surfex.dir/modd_csts.F.o
[ 95%] Building Fortran object hydro/src/Land_models/NoahMP/phys/surfex/CMakeFiles/crocus_surfex.dir/ini_csts.F.o
[ 96%] Building Fortran object hydro/src/Land_models/NoahMP/phys/surfex/CMakeFiles/crocus_surfex.dir/modd_snow_metamo.F.o
[ 96%] Building Fortran object hydro/src/Land_models/NoahMP/phys/surfex/CMakeFiles/crocus_surfex.dir/modd_snow_par.F.o
[ 96%] Building Fortran object hydro/src/Land_models/NoahMP/phys/surfex/CMakeFiles/crocus_surfex.dir/modd_surf_atm.F.o
[ 96%] Building Fortran object hydro/src/Land_models/NoahMP/phys/surfex/CMakeFiles/crocus_surfex.dir/mode_snow3l.F.o
[ 96%] Building Fortran object hydro/src/Land_models/NoahMP/phys/surfex/CMakeFiles/crocus_surfex.dir/mode_thermos.F.o
[ 96%] Building Fortran object hydro/src/Land_models/NoahMP/phys/surfex/CMakeFiles/crocus_surfex.dir/mode_surf_coefs.F.o
[ 96%] Building Fortran object hydro/src/Land_models/NoahMP/phys/surfex/CMakeFiles/crocus_surfex.dir/tridiag_ground_snowcro.F.o
[ 96%] Linking Fortran static library ../../../../../lib/libcrocus_surfex.a
[ 96%] Built target crocus_surfex
[ 96%] Building Fortran object hydro/src/Land_models/NoahMP/phys/surfex/CMakeFiles/snowcro.dir/module_snowcro.F.o
[ 96%] Linking Fortran static library ../../../../../lib/libsnowcro.a
[ 96%] Built target snowcro
[ 96%] Building Fortran object hydro/src/Land_models/NoahMP/phys/CMakeFiles/noahmp_phys.dir/module_sf_noahmp_glacier.F.o
[ 96%] Building Fortran object hydro/src/Land_models/NoahMP/phys/CMakeFiles/noahmp_phys.dir/module_sf_noahmplsm.F.o
[ 97%] Building Fortran object hydro/src/Land_models/NoahMP/phys/CMakeFiles/noahmp_phys.dir/module_sf_noahmp_groundwater.F.o
[ 97%] Building Fortran object hydro/src/Land_models/NoahMP/phys/CMakeFiles/noahmp_phys.dir/module_sf_noahmpdrv.F.o
[ 97%] Linking Fortran static library ../../../../lib/libnoahmp_phys.a
[ 97%] Built target noahmp_phys
[ 97%] Building Fortran object hydro/src/Land_models/NoahMP/Utility_routines/CMakeFiles/noahmp_util.dir/kwm_string_utilities.F.o
[ 97%] Building Fortran object hydro/src/Land_models/NoahMP/Utility_routines/CMakeFiles/noahmp_util.dir/module_date_utilities.F.o
[ 97%] Building Fortran object hydro/src/Land_models/NoahMP/Utility_routines/CMakeFiles/noahmp_util.dir/module_model_constants.F.o
[ 97%] Building Fortran object hydro/src/Land_models/NoahMP/Utility_routines/CMakeFiles/noahmp_util.dir/module_wrf_utilities.F.o
[ 97%] Linking Fortran static library ../../../../lib/libnoahmp_util.a
[ 97%] Built target noahmp_util
[ 97%] Building Fortran object hydro/src/Land_models/NoahMP/data_structures/CMakeFiles/noahmp_data.dir/forcing.f90.o
[ 97%] Building Fortran object hydro/src/Land_models/NoahMP/data_structures/CMakeFiles/noahmp_data.dir/geometry.f90.o
[ 97%] Building Fortran object hydro/src/Land_models/NoahMP/data_structures/CMakeFiles/noahmp_data.dir/parameters.f90.o
[ 97%] Building Fortran object hydro/src/Land_models/NoahMP/data_structures/CMakeFiles/noahmp_data.dir/state.f90.o
[ 97%] Linking Fortran static library ../../../../lib/libnoahmp_data.a
[ 97%] Built target noahmp_data
[ 97%] Building Fortran object hydro/src/CMakeFiles/wrfhydro.exe.dir/Land_models/NoahMP/IO_code/module_hrldas_netcdf_io.F.o
[ 97%] Building Fortran object hydro/src/CMakeFiles/wrfhydro.exe.dir/Land_models/NoahMP/IO_code/module_NoahMP_hrldas_driver.F.o
[ 97%] Building Fortran object hydro/src/CMakeFiles/wrfhydro.exe.dir/Land_models/NoahMP/IO_code/main_hrldas_driver.F.o
[ 98%] Linking Fortran executable wrfhydro.exe
[ 98%] Built target wrfhydro.exe
[ 98%] Building Fortran object hydro/tests/ctests/CMakeFiles/fortran_ctest_should_fail.dir/should_fail.f90.o
[ 98%] Linking Fortran executable fortran_ctest_should_fail
[ 98%] Built target fortran_ctest_should_fail
[ 98%] Building Fortran object hydro/tests/ctests/CMakeFiles/fortran_ctest_should_not_fail.dir/should_not_fail.f90.o
[ 98%] Linking Fortran executable fortran_ctest_should_not_fail
[ 98%] Built target fortran_ctest_should_not_fail
[ 98%] Building Fortran object main/CMakeFiles/wrf.dir/module_wrf_top.F.o
[ 98%] Building Fortran object main/CMakeFiles/wrf.dir/wrf.F.o
[ 98%] Linking Fortran executable wrf
/usr/bin/ld: ../libWRF_Core.a(module_first_rk_step_part1.F.o): in function `__module_first_rk_step_part1_MOD_first_rk_step_part1':
module_first_rk_step_part1.F:(.text+0x437a): undefined reference to `wrf_drv_hydro_'
collect2: error: ld returned 1 exit status
make[2]: *** [main/CMakeFiles/wrf.dir/build.make:131: main/wrf] Error 1
make[1]: *** [CMakeFiles/Makefile2:3530: main/CMakeFiles/wrf.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
 
Interesting, I've not had these issues with gfortran, but it might be a difference in compiler version. What version of gfortran / gcc are you using?
 
Here's a few log files @islas

This one is wrf hydro coupled when jasper is called on, it fails about 34% in

The other one is without jasper turned on and makes it all the way to 99%.

Both were used using GNU 13.

You'll need vscode but not text editor to read this because I used script to make the log file.

Hope it helps
 

Attachments

  • wrfhydro_1.log
    3.5 MB · Views: 1
  • wrfhydro_nojasper.log
    6.2 MB · Views: 1
Top