Dear all,
I am trying to compile WRF 4.3.3 on Ubuntu 21.10 with no success. For compilation I am using the following libraries
netcdf version 4.7.4 (Came with distribution)
gcc/gfortran 11.2 (comes with OS)
jasper lib downloaded from Xenial sources
The directories for netcdf and netcdff are in /usr/lib/x86_64-linux-gnu/
The mpich library is in : /usr/lib/x86_64-linux-gnu/
The HDF5 ibrary is in : /usr/lib/x86_64-linux-gnu/hdf5/mpich
During compilation I am getting the following error when wrf.exe is being compiled which than propagates down the compilation
The "undefined reference to" error repeats for different nf_ variables and results in a failure. Here are the details of the NetCDF version
This netCDF 4.7.4 has been built with the following features:
--cc -> /usr/bin/cc
--cflags -> -I/usr/include -I/usr/include/hdf5/serial
--libs -> -L/usr/lib/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu/hdf5/serial -lnetcdf
--static -> -lhdf5_hl -lhdf5 -lpthread -lsz -lz -ldl -lm -lcurl
--has-c++ -> no
--cxx ->
--has-c++4 -> no
--cxx4 ->
--has-fortran -> yes
--fc -> gfortran
--fflags -> -I/usr/include -I/usr/include
--flibs -> -L/usr/lib/x86_64-linux-gnu -lnetcdff
--has-f90 ->
--has-f03 -> yes
--has-dap -> yes
--has-dap2 -> yes
--has-dap4 -> yes
--has-nc2 -> yes
--has-nc4 -> yes
--has-hdf5 -> yes
--has-hdf4 -> no
--has-logging -> no
--has-pnetcdf -> no
--has-szlib -> no
--has-cdf5 -> yes
--has-parallel4 -> no
--has-parallel -> no
--prefix -> /usr
--includedir -> /usr/include
--libdir -> /usr/lib/x86_64-linux-gnu
--version -> netCDF 4.7.4
I am attaching the compile log, configure.wrf and details on the
I am trying to compile WRF 4.3.3 on Ubuntu 21.10 with no success. For compilation I am using the following libraries
netcdf version 4.7.4 (Came with distribution)
gcc/gfortran 11.2 (comes with OS)
jasper lib downloaded from Xenial sources
The directories for netcdf and netcdff are in /usr/lib/x86_64-linux-gnu/
The mpich library is in : /usr/lib/x86_64-linux-gnu/
The HDF5 ibrary is in : /usr/lib/x86_64-linux-gnu/hdf5/mpich
During compilation I am getting the following error when wrf.exe is being compiled which than propagates down the compilation
Code:
time mpif90 -o wrf.exe -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 -fallow-argument-mismatch -fallow-invalid-boz wrf.o ../main/module_wrf_top.o libwrflib.a /home/joseph/WRF/external/fftpack/fftpack5/libfftpack.a /home/joseph/WRF/external/io_grib1/libio_grib1.a /home/joseph/WRF/external/io_grib_share/libio_grib_share.a /home/joseph/WRF/external/io_int/libwrfio_int.a -L/home/joseph/WRF/external/esmf_time_f90 -lesmf_time /home/joseph/WRF/external/RSL_LITE/librsl_lite.a /home/joseph/WRF/frame/module_internal_header_util.o /home/joseph/WRF/frame/pack_utils.o -L/home/joseph/WRF/external/io_netcdf -lwrfio_nf -L/usr/lib -lnetcdff -lnetcdf -L/home/joseph/WRF/external/io_grib2 -lio_grib2 -L/usr/lib/x86_64-linux-gnu -ljasper -L/usr/lib/x86_64-linux-gnu/hdf5/mpich/lib -lhdf5hl_fortran -lhdf5_hl -lhdf5_fortran -lhdf5 -lm -lz
/usr/bin/ld: /tmp/cc9PtMZs.ltrans21.ltrans.o: in function `__module_wps_io_arw_MOD_read_wps':
<artificial>:(.text+0x1eae6b0): undefined reference to `__module_optional_input_MOD_flag_st000010'
/usr/bin/ld: <artificial>:(.text+0x1eae6bd): undefined reference to `__module_optional_input_MOD_flag_st010040''
The "undefined reference to" error repeats for different nf_ variables and results in a failure. Here are the details of the NetCDF version
This netCDF 4.7.4 has been built with the following features:
--cc -> /usr/bin/cc
--cflags -> -I/usr/include -I/usr/include/hdf5/serial
--libs -> -L/usr/lib/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu/hdf5/serial -lnetcdf
--static -> -lhdf5_hl -lhdf5 -lpthread -lsz -lz -ldl -lm -lcurl
--has-c++ -> no
--cxx ->
--has-c++4 -> no
--cxx4 ->
--has-fortran -> yes
--fc -> gfortran
--fflags -> -I/usr/include -I/usr/include
--flibs -> -L/usr/lib/x86_64-linux-gnu -lnetcdff
--has-f90 ->
--has-f03 -> yes
--has-dap -> yes
--has-dap2 -> yes
--has-dap4 -> yes
--has-nc2 -> yes
--has-nc4 -> yes
--has-hdf5 -> yes
--has-hdf4 -> no
--has-logging -> no
--has-pnetcdf -> no
--has-szlib -> no
--has-cdf5 -> yes
--has-parallel4 -> no
--has-parallel -> no
--prefix -> /usr
--includedir -> /usr/include
--libdir -> /usr/lib/x86_64-linux-gnu
--version -> netCDF 4.7.4
I am attaching the compile log, configure.wrf and details on the