William.Hatheway
Active member
Environment:
Command:
Output:
When typing ./configure_new and entering the prompts it configures correctly
I'm probably making a simple mistake with cmake commands but I am uncertain what I am doing wrong.
Any advice would be helpful. Thank you
Code:
export WRF_FOLDER=$HOME/WRF_Intel
export DIR="${WRF_FOLDER}"/Libs
export ZLIB_ROOT=$DIR/grib2
export ZLIBLIB=$DIR/grib2/lib
export ZLIBINC=$DIR/grib2/include
export PNG_ROOT=$DIR/grib2
export JASPERLIB=$DIR/grib2/lib
export JASPERINC=$DIR/grib2/include
export JASPER_DIR=$DIR/grib2
export Jasper_ROOT=$DIR/grib2/lib
export HDF5=$DIR/grib2
export LD_LIBRARY_PATH=$DIR/grib2/lib:$LD_LIBRARY_PATH
export PATH=$HDF5/bin:$PATH
export PHDF5=$DIR/grib2
export HDF5_ROOT=$DIR/grib2
export PHDF5_ROOT=$DIR/grib2
export PNETCDF=$DIR/grib2
export PNETCDF_DIR=$DIR/grib2
export PATH=$DIR/NETCDF/bin:$PATH
export NETCDF=$DIR/NETCDF
export NETCDF_INC=$DIR/NETCDF/include
export NETCDF_LIB=$DIR/NETCDF/lib
export WRF_ROOT="${WRF_FOLDER}"/WRFV${WRF_VERSION}/install"
Command:
Bash:
./configure_new -x -p "Intel oneAPI compilers" -- -DCMAKE_Fortran_COMPILER=ifx -DMPI_Fortran_COMPILER=mpiifx -DMPI_C_COMPILER=mpiicx -DWRF_ROOT=${WRF_ROOT} -DUSE_MPI=ON -DUSE_PNG=${PNG_ROOT} -DUSE_HDF5=${HDF5_ROOT} -DUSE_JASPER=${Jasper_ROOT}
Output:
Code:
Cloning into 'WPS'...
remote: Enumerating objects: 8294, done.
remote: Counting objects: 100% (528/528), done.
remote: Compressing objects: 100% (176/176), done.
remote: Total 8294 (delta 393), reused 353 (delta 352), pack-reused 7766 (from 4)
Receiving objects: 100% (8294/8294), 6.55 MiB | 6.09 MiB/s, done.
Resolving deltas: 100% (5362/5362), done.
Using default build directory : _build
Using default install directory : /home/workhorse/WRF_Intel/WPSV4.6.0/install
Using preselected config Intel oneAPI compilers
Linux ifx / icx / mpif90 / mpicc Intel oneAPI compilers
-- The C compiler identification is IntelLLVM 2025.1.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/intel/oneapi/compiler/2025.1/bin/icx - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- The CXX compiler identification is IntelLLVM 2025.1.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/intel/oneapi/compiler/2025.1/bin/icpx - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The Fortran compiler identification is IntelLLVM 2025.1.1
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: /opt/intel/oneapi/compiler/2025.1/bin/ifx - skipped
-- Setting project version to 4.6.0
-- Found MPI_C: /opt/intel/oneapi/mpi/2021.15/lib/libmpi.so (found version "3.1")
-- Found MPI_Fortran: /opt/intel/oneapi/mpi/2021.15/lib/libmpifort.so (found version "3.1")
-- Found MPI: TRUE (found version "3.1") found components: Fortran C
-- 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 ZLIB: /home/workhorse/WRF_Intel/Libs/grib2/lib/libz.so (found version "1.3.1")
-- Found WRF : /home/workhorse/WRF_Intel/WRFV4.7.0/install/lib/cmake/WRF/WRFConfig.cmake (found version "4.7.0")
-- Found PNG: /home/workhorse/WRF_Intel/Libs/grib2/lib/libpng.so (found version "1.6.39")
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1")
-- Found Jasper: /home/workhorse/WRF_Intel/Libs/grib2/lib/libjasper.a (found suitable version "1.900.1", required range is "1.900.1...1.900.29")
CMake Error at CMakeLists.txt:137 (if):
if given arguments:
"AND" "1"
Unknown arguments specified
-- Configuring incomplete, errors occurred!
When typing ./configure_new and entering the prompts it configures correctly
Bash:
workhorse@workhorse-MS-7D91:~/WRF_Intel/WPSV4.6.0$ ./configure_new
Using default build directory : _build
Using default install directory : /home/workhorse/WRF_Intel/WPSV4.6.0/install
0 Linux gfortran / gcc / mpif90 / mpicc gfortran
1 Linux ifx / icx / mpif90 / mpicc Intel oneAPI compilers
!! - Compiler not found, some configurations will not work and will be hidden
Select configuration [0-1] Default [0] (note !!) : 1
[DM] Use MPI? Default [N] [y/N] : y
[GRIB2] Build GRIB2 libraries (zlib, libpng, JasPer) from source in external/? Default [N] [y/N] : n
[WRF] Attempt to find compiled WRF model (needed for geogrid and metgrid)? Default [Y] [Y/n] : y
-- Setting project version to 4.6.0
-- Found MPI_C: /opt/intel/oneapi/mpi/2021.15/lib/libmpi.so (found version "3.1")
-- Found MPI_Fortran: /opt/intel/oneapi/mpi/2021.15/lib/libmpifort.so (found version "3.1")
-- Found MPI: TRUE (found version "3.1") found components: Fortran C
-- 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 ZLIB: /home/workhorse/WRF_Intel/Libs/grib2/lib/libz.so (found version "1.3.1")
-- Found WRF : /home/workhorse/WRF_Intel/WRFV4.7.0/install/lib/cmake/WRF/WRFConfig.cmake (found version "4.7.0")
-- Found PNG: /home/workhorse/WRF_Intel/Libs/grib2/lib/libpng.so (found version "1.6.39")
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1")
-- Found Jasper: /home/workhorse/WRF_Intel/Libs/grib2/lib/libjasper.a (found suitable version "1.900.1", required range is "1.900.1...1.900.29")
-- Adding configuration specific definitions : -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32
-- Configuring done (0.9s)
-- Generating done (0.0s)
-- Build files have been written to: /home/workhorse/WRF_Intel/WPSV4.6.0/_build
I'm probably making a simple mistake with cmake commands but I am uncertain what I am doing wrong.
Any advice would be helpful. Thank you