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

Error in compiling WRF_PLUS with ./configure_new

William.Hatheway

Active member
I have been trying to solve a bug with WRF Plus installation for the ./configure_new script.

I have set WRF_ROOT from my build of 4.6.1 and I was successful in installing WPS using ./configure_new

My commands are these that I used for WRF PLUS

Code:
[workhorse@localhost WRFPLUS]$ ./configure_new
Using default build directory : _build
Using default install directory : /home/workhorse/WRF_Intel/WRFPLUS/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] : 4
[DM] Use MPI?    Default [Y] [Y/n] : y
[SM] Use OpenMP? Default [N] [y/N] : n
Configure additional options? Default [N] [y/N] : n
-- 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
-- All non-ARW Cores requires using pointers in grid state struct
-- netCDF large file support not suppressed, if available it will be used
-- DA and PLUS Core builds require double precision
-- BUILD_SBM_FAST does not support double, turning off
-- 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/WRF_Intel/Libs/NETCDF/bin/nc-config
-- Found netCDF: /home/workhorse/WRF_Intel/Libs/NETCDF/include (found version "4.9.3")
-- Found NETCDF-FORTRAN_PROGRAM : /home/workhorse/WRF_Intel/Libs/NETCDF/bin/nf-config
-- Found netCDF-Fortran: /home/workhorse/WRF_Intel/Libs/NETCDF/include (found version "4.6.1")
-- Found PNETCDF_PROGRAM : /home/workhorse/WRF_Intel/Libs/grib2/bin/pnetcdf-config
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.7.3")
-- Found ZLIB: /home/workhorse/WRF_Intel/Libs/grib2/lib/libz.so (found version "1.3.1") 
-- Found CURL: /usr/lib64/libcurl.so (found version "7.76.1") 
-- WRF_CONFIG           : /home/workhorse/WRF_Intel/WRFPLUS/_build/wrf_config.cmake
-- CMAKE_BUILD_TYPE     : Release
-- WRF_CORE             : PLUS
-- WRF_NESTING          : NONE
-- WRF_CASE             : NONE
-- USE_DOUBLE           : ON
-- USE_MPI              : ON
-- USE_OPENMP           : OFF
-- USE_IPO              : OFF
-- ENABLE_CHEM          : OFF
-- ENABLE_CLM           :
-- ENABLE_CMAQ          : OFF
-- ENABLE_DFI_RADAR     : OFF
-- ENABLE_HYDRO         : OFF
-- ENABLE_KPP           : OFF
-- ENABLE_MARS          : OFF
-- ENABLE_TERRAIN       : OFF
-- ENABLE_TITAN         : OFF
-- ENABLE_VENUS         : OFF
-- USE_ALLOCATABLES     : OFF
-- 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       : OFF
-- 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
-- DA or PLUS build, WRF_CASE selection ignored
-- Configuring done (3.5s)
-- Generating done (0.1s)
-- Build files have been written to: /home/workhorse/WRF_Intel/WRFPLUS/_build
[workhorse@localhost WRFPLUS]$ ./compile_new -j 4
Using default build directory : /home/workhorse/WRF_Intel/WRFPLUS/_build

I have attached a log file of the compile output as well as a configure output. I used the script command in cmd to make this log file.
 

Attachments

  • WRFPLUS_SCRIPT.log
    89.6 KB · Views: 1
Code:
[ 61%] Building Fortran object CMakeFiles/WRF_Core.dir/phys/module_cu_mskf.F.o
[ 61%] Building Fortran object CMakeFiles/WRF_Core.dir/phys/module_cu_nsas.F.o
[ 62%] Building Fortran object CMakeFiles/WRF_Core.dir/phys/ccpp_kind_types.F.o
[ 62%] Building Fortran object CMakeFiles/WRF_Core.dir/phys/physics_mmm/cu_ntiedtke.F90.o
[ 62%] Building Fortran object CMakeFiles/WRF_Core.dir/phys/module_cu_ntiedtke.F.o
[ 62%] Building Fortran object CMakeFiles/WRF_Core.dir/phys/module_gfs_funcphys.F.o
[ 63%] Building Fortran object CMakeFiles/WRF_Core.dir/phys/module_cu_osas.F.o
[ 63%] Building Fortran object CMakeFiles/WRF_Core.dir/phys/module_cu_sas.F.o
[ 63%] Building Fortran object CMakeFiles/WRF_Core.dir/phys/module_cu_scalesas.F.o
[ 63%] Building Fortran object CMakeFiles/WRF_Core.dir/phys/module_cu_tiedtke.F.o
[ 63%] Building Fortran object CMakeFiles/WRF_Core.dir/phys/module_cumulus_driver.F.o
/home/workhorse/WRF_Intel/WRFPLUS/phys/module_cumulus_driver.F(192): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [MODULE_CU_DU]
   USE module_cu_du     , ONLY : DUCU   
-------^
/home/workhorse/WRF_Intel/WRFPLUS/phys/module_cumulus_driver.F(1595): error #6632: Keyword arguments are invalid without an explicit interface.   [DT]
                DT=dt ,KTAU=itimestep ,DX=dx                    &    !
----------------^
/home/workhorse/WRF_Intel/WRFPLUS/phys/module_cumulus_driver.F(1595): error #6632: Keyword arguments are invalid without an explicit interface.   [KTAU]
                DT=dt ,KTAU=itimestep ,DX=dx                    &    !
-----------------------^
/home/workhorse/WRF_Intel/WRFPLUS/phys/module_cumulus_driver.F(1595): error #6632: Keyword arguments are invalid without an explicit interface.   [DX]
                DT=dt ,KTAU=itimestep ,DX=dx                    &    !
---------------------------------------^
/home/workhorse/WRF_Intel/WRFPLUS/phys/module_cumulus_driver.F(1596): error #6632: Keyword arguments are invalid without an explicit interface.   [RHO]
               ,RHO=rho                                         &    !
----------------^
/home/workhorse/WRF_Intel/WRFPLUS/phys/module_cumulus_driver.F(1597): error #6632: Keyword arguments are invalid without an explicit interface.   [U]
               ,U=u ,V=v ,TH=th ,T=t ,W=w                       &    !
----------------^
/home/workhorse/WRF_Intel/WRFPLUS/phys/module_cumulus_driver.F(1597): error #6632: Keyword arguments are invalid without an explicit interface.   [V]
               ,U=u ,V=v ,TH=th ,T=t ,W=w                       &    !
---------------------^
/home/workhorse/WRF_Intel/WRFPLUS/phys/module_cumulus_driver.F(1597): error #6632: Keyword arguments are invalid without an explicit interface.   [TH]
               ,U=u ,V=v ,TH=th ,T=t ,W=w                       &    !
--------------------------^
/home/workhorse/WRF_Intel/WRFPLUS/phys/module_cumulus_driver.F(1597): error #6632: Keyword arguments are invalid without an explicit interface.   [T]
               ,U=u ,V=v ,TH=th ,T=t ,W=w                       &    !
---------------------------------^
/home/workhorse/WRF_Intel/WRFPLUS/phys/module_cumulus_driver.F(1597): error #6632: Keyword arguments are invalid without an explicit interface.   [W]
               ,U=u ,V=v ,TH=th ,T=t ,W=w                       &    !
--------------------------------------^
/home/workhorse/WRF_Intel/WRFPLUS/phys/module_cumulus_driver.F(1598): error #6632: Keyword arguments are invalid without an explicit interface.   [PCPS]
               ,PCPS=p ,PI=pi                                   &    !
----------------^
/home/workhorse/WRF_Intel/WRFPLUS/phys/module_cumulus_driver.F(1598): error #6632: Keyword arguments are invalid without an explicit interface.   [PI]
               ,PCPS=p ,PI=pi                                   &    !
------------------------^
/home/workhorse/WRF_Intel/WRFPLUS/phys/module_cumulus_driver.F(1599): error #6632: Keyword arguments are invalid without an explicit interface.   [XLV]
               ,XLV=xlv0                                        &    !  or XLV=xlv1
----------------^
/home/workhorse/WRF_Intel/WRFPLUS/phys/module_cumulus_driver.F(1600): error #6632: Keyword arguments are invalid without an explicit interface.   [RAINCV]
               ,RAINCV=raincv, NCA=nca, PRATEC=tmppratec        &
----------------^
/home/workhorse/WRF_Intel/WRFPLUS/phys/module_cumulus_driver.F(1600): error #6632: Keyword arguments are invalid without an explicit interface.   [NCA]
               ,RAINCV=raincv, NCA=nca, PRATEC=tmppratec        &
-------------------------------^
/home/workhorse/WRF_Intel/WRFPLUS/phys/module_cumulus_driver.F(1600): error #6632: Keyword arguments are invalid without an explicit interface.   [PRATEC]
               ,RAINCV=raincv, NCA=nca, PRATEC=tmppratec        &
----------------------------------------^
/home/workhorse/WRF_Intel/WRFPLUS/phys/module_cumulus_driver.F(1601): error #6632: Keyword arguments are invalid without an explicit interface.   [DZ8W]
               ,DZ8W=dz8w, Z= z                                 &    !
----------------^
/home/workhorse/WRF_Intel/WRFPLUS/phys/module_cumulus_driver.F(1601): error #6632: Keyword arguments are invalid without an explicit interface.   [Z]
               ,DZ8W=dz8w, Z= z                                 &    !
---------------------------^
/home/workhorse/WRF_Intel/WRFPLUS/phys/module_cumulus_driver.F(1602): error #6632: Keyword arguments are invalid without an explicit interface.   [W0AVG]
               ,W0AVG=w0avg                                     &    !
----------------^
/home/workhorse/WRF_Intel/WRFPLUS/phys/module_cumulus_driver.F(1603): error #6632: Keyword arguments are invalid without an explicit interface.   [CP]
               ,CP=cp ,RV=R_v, RD=R_d, G=g                      &    !  RD, RV
----------------^
/home/workhorse/WRF_Intel/WRFPLUS/phys/module_cumulus_driver.F(1603): error #6632: Keyword arguments are invalid without an explicit interface.   [RV]
               ,CP=cp ,RV=R_v, RD=R_d, G=g                      &    !  RD, RV
-----------------------^
/home/workhorse/WRF_Intel/WRFPLUS/phys/module_cumulus_driver.F(1603): error #6632: Keyword arguments are invalid without an explicit interface.   [RD]
               ,CP=cp ,RV=R_v, RD=R_d, G=g                      &    !  RD, RV
-------------------------------^
/home/workhorse/WRF_Intel/WRFPLUS/phys/module_cumulus_driver.F(1603): error #6632: Keyword arguments are invalid without an explicit interface.   [G]
               ,CP=cp ,RV=R_v, RD=R_d, G=g                      &    !  RD, RV
---------------------------------------^
/home/workhorse/WRF_Intel/WRFPLUS/phys/module_cumulus_driver.F(1604): error #6632: Keyword arguments are invalid without an explicit interface.   [EP2]
               ,EP2=ep_2                                        &    !  only EP2 needed
----------------^
/home/workhorse/WRF_Intel/WRFPLUS/phys/module_cumulus_driver.F(1605): error #6632: Keyword arguments are invalid without an explicit interface.   [SVP1]
               ,SVP1=svp1 ,SVP2=svp2 ,SVP3=svp3 ,SVPT0=svpt0    &    !
----------------^
/home/workhorse/WRF_Intel/WRFPLUS/phys/module_cumulus_driver.F(1605): error #6632: Keyword arguments are invalid without an explicit interface.   [SVP2]
               ,SVP1=svp1 ,SVP2=svp2 ,SVP3=svp3 ,SVPT0=svpt0    &    !
---------------------------^
/home/workhorse/WRF_Intel/WRFPLUS/phys/module_cumulus_driver.F(1605): error #6632: Keyword arguments are invalid without an explicit interface.   [SVP3]
               ,SVP1=svp1 ,SVP2=svp2 ,SVP3=svp3 ,SVPT0=svpt0    &    !
--------------------------------------^
/home/workhorse/WRF_Intel/WRFPLUS/phys/module_cumulus_driver.F(1605): error #6632: Keyword arguments are invalid without an explicit interface.   [SVPT0]
               ,SVP1=svp1 ,SVP2=svp2 ,SVP3=svp3 ,SVPT0=svpt0    &    !
-------------------------------------------------^
/home/workhorse/WRF_Intel/WRFPLUS/phys/module_cumulus_driver.F(1606): error #6632: Keyword arguments are invalid without an explicit interface.   [STEPCU]
               ,STEPCU=stepcu                                   &    !
----------------^
/home/workhorse/WRF_Intel/WRFPLUS/phys/module_cumulus_driver.F(1607): error #6632: Keyword arguments are invalid without an explicit interface.   [CU_ACT_FLAG]
               ,CU_ACT_FLAG=cu_act_flag                         &    !
----------------^
/tmp/ifx0931798021TTMA6K/ifxBt04Pz.i(1913): catastrophic error: Too many errors, exiting
compilation aborted for /home/workhorse/WRF_Intel/WRFPLUS/phys/module_cumulus_driver.F (code 1)
make[2]: *** [CMakeFiles/WRF_Core.dir/build.make:1557: CMakeFiles/WRF_Core.dir/phys/module_cumulus_driver.F.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:539: CMakeFiles/WRF_Core.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Little more information from the log file when run in serial ./compile_new
 
This commit ( CMake WRFPLUS (#2089) · wrf-model/WRF@695f455 ) adds the WRFPLUS build capabilities. It has not been added to a release yes, but is to be included in v4.7.0

Note that if you are trying to build WRFPLUS to use in 4DVAR DA, that is still in the works. There is a PR for only DA, but due to the nature of how 4DVAR DA builds, it will be less straightforward how to implement.
 
This commit ( CMake WRFPLUS (#2089) · wrf-model/WRF@695f455 ) adds the WRFPLUS build capabilities. It has not been added to a release yes, but is to be included in v4.7.0

Note that if you are trying to build WRFPLUS to use in 4DVAR DA, that is still in the works. There is a PR for only DA, but due to the nature of how 4DVAR DA builds, it will be less straightforward how to implement.
Okay thanks for clarifying. I thought I did something wrong
 
Top