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

WRF version 4 compilation error

Dear all

I am re-compiling WRF version 4 with guidline given in Compiling WRF
I have set-up the following env variables

export DIR=/home/oem/BUILD_WRF/LIBRARIES
export CC=gcc
export CXX=g++
export FC=gfortran
export FCFLAGS=-m64
export F77=gfortran
export FFLAGS=-m64
export JASPERLIB=$DIR/grib2/lib
export JASPERINC=$DIR/grib2/include
export LDFLAGS=-L$DIR/grib2/lib
export CPPFLAGS=-I$DIR/grib2/include
export PATH=$DIR/netcdf/bin:$PATH
export NETCDF=$DIR/netcdf
export LIBS="-lnetcdf -lz"


export PATH=$DIR/mpich/bin:$PATH
export LD_LIBRARY_PATH=$DIR/grib2/lib:$LD_LIBRARY_PATH
export HDF=//home/oem/miniconda3/envs/pcf/bin/:$HDF

I have attached configure and log file. Executable are not generated.
Kindly help.
 

Attachments

  • configure_wrf.txt
    20.2 KB · Views: 3
  • log_compile.txt
    670.3 KB · Views: 5
Hi,
Can you try to run this again, but with only a single processor this time (the default is 2). First, clean the code (./clean -a), then reconfigure, and when you compile, use the "-j 1" command, like:

./compile em_real - j 1 >& log_compile.txt

This likely won't resolve the problem, but I'd like to see the results after that. I'm also curious if the latest version of WRF (V4.6) would compile. Can you give that a try and let me know if that fails too. If it does, please send that compile log, as well. Thanks!
 
As suggested by you I tried but it is not at all running. Attached the log file.
 

Attachments

  • log_compile.txt
    729 bytes · Views: 3
I have sorted previous problem by modifying HDF library which has been installed in conda environment. I deactivate conda environment and reinstall hdf lib and modify env variables
export DIR=/home/oem/BUILD_WRF/LIBRARIES
export CC=gcc
export CXX=g++
export FC=gfortran
export FCFLAGS=-m64
export F77=gfortran
export FFLAGS=-m64
export JASPERLIB=$DIR/grib2/lib
export JASPERINC=$DIR/grib2/include
export LDFLAGS="-L$DIR/grib2/lib -L/lib/x86_64-linux-gnu"
export CPPFLAGS="-I$DIR/grib2/include -I/usr/include/hdf5/serial"

export PATH=$DIR/netcdf/bin:$DIR/mpich/bin:$PATH
export NETCDF=$DIR/netcdf
export PATH=$NETCDF/bin:$PATH
export LD_LIBRARY_PATH=$NETCDF/lib:$LD_LIBRARY_PATH


export LIBS="-lnetcdf -lnetcdf_c++4 -lhdf5_serial -lhdf5_serial_hl -lz"
export LD_LIBRARY_PATH=$DIR/grib2/lib:/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/hdf5/serial:$LD_LIBRARY_PATH
export HDF5=/usr/lib/x86_64-linux-gnu/hdf5/serial


But still I am facing some issues which I unable to resolve. Kindly help me to resolve it.
I have attached configure and log file below for your suggestion.
 

Attachments

  • log_compile3.txt
    159.3 KB · Views: 4
  • config_wrf.txt
    20.2 KB · Views: 1
Kindly suggest
Please be advised that we do not work on weekends or holidays, and it can sometimes take several business days for us to be able to respond, as we also have other obligations and deadlines we must meet, in addition to the forum questions.


But still I am facing some issues which I unable to resolve. Kindly help me to resolve it.
I have attached configure and log file below for your suggestion.
This new configure log is nearly identical to the original one you sent, showing the same problem, using the same older version of WRF (V4.0), and still using 2 processors to compile the code. Please see my previous post and try compiling WRF Version 4.6, and only using a single processor to compile. Thanks.
 
As suggested, WRF version 4.6 has been tried to compile but not compiled.
configure and log file has been attached for your kind suggestion.
 

Attachments

  • log_compile.txt
    667.4 KB · Views: 3
  • config_wrf.txt
    21.6 KB · Views: 2
@Jayanti pal I think you may have downloaded the GitHub-generated packages ("Source code (zip)" or "Source code (tar.gz)"). These do not contain the NoahMP submodule nor the git configuration information so the source never gets downloaded.

Please use the "v4.6.0.zip" or "v4.6.0.tar.gz" files listed in the download section of the tag.
 
Top