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

Problems building executables, look for errors in the build log

Dipson11

Member
Hello, I am facing problem while compiling WRF-4.5.1. My GNU version is (Ubuntu 13.2.0-23ubuntu4). I have attached the compile file
 

Attachments

  • compile.log
    717.8 KB · Views: 6
  • config.log
    866.4 KB · Views: 2
i would try upgrading to a newer version of ubuntu. The standard libraries that come with ubuntu 13 are older than most GCC files, I would recommend ubuntu 20 or 22
 
I change my gcc to 9.5.0 ( above my gcc was 13.2.0)
Gfortran --version
Gfortran (ubuntu 13.2.0)
Netcdf-c-4.7.2
Netcdf-fortran-4.5.2

And now can configuring my library again to install wrf 4.5.

I tried compiling with gcc 13.2.0 but it didnt work. I got to know from thread that gcc lower than 10 works better so I changed gcc to 9.5.0 and trying again. Am I doing something wrong , because I am beginner and really stressed out . I ve been trying to compile since two days already.

Could you recommend be some specific gcc versions, I just want wrf later than 4.3
 
What version of gcc are you using.

Type

gcc --versiom
I change my gcc to 9.5.0 ( above my gcc was 13.2.0)
Gfortran --version
Gfortran (ubuntu 13.2.0)
Netcdf-c-4.7.2
Netcdf-fortran-4.5.2

And now can configuring my library again to install wrf 4.5.

I tried compiling with gcc 13.2.0 but it didnt work. I got to know from thread that gcc lower than 10 works better so I changed gcc to 9.5.0 and trying again. Am I doing something wrong , because I am beginner and really stressed out . I ve been trying to compile since two days already.

Could you recommend be some specific gcc versions, I just want wrf later than 4.3
 
I tried WRF4.5 with gcc 9.5.0, complied got build error after almost 20mins. Please help
 

Attachments

  • compile.log
    802.7 KB · Views: 2
My Environment looks like this ,
export DIR=/home/dipson/Build_WRF/LIBRARIES

export CPPFLAGS=-I/usr/include/hdf5/serial
export LDFLAGS=-L/usr/lib/x86_64-linux-gnu/hdf5/serial
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/hdf5/serial:$LD_LIBRARY_PATH
export PATH=$DIR/netcdf/bin:$PATH
export PATH=$DIR/mpich/bin:$PATH
export NETCDF=$DIR/netcdf
export CC="gcc"
export CXX="g++"
export FC="gfortran"
export FCFLAGS="-m64"
export F77="gfortran"
export FFLAGS="-m64"
export LDFLAGS="-L$DIR/grib2/lib"
export CPPFLAGS="-I$DIR/grib2/include"
export LD_LIBRARY_PATH=$NETCDF/lib:$LD_LIBRARY_PATH
export JASPERLIB=/home/dipson/Build_WRF/LIBRARIES/jasper/lib
export JASPERINC=/home/dipson/Build_WRF/LIBRARIES/jasper/include
 
It has this line in compile file,
usr/bin/ld: /home/dipson/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(nf_nc4.o): in function `nf_def_var_szip_':
nf_nc4.f90:(.text+0x5f6d): undefined reference to `nc_def_var_szip'

could it be something related to this?
 
gfortran -dumpfullversion

gcc -dumpfullversion

g++ -dumpfullversion
13.2.0
9.5.0
9.5.0
most likely it's due to the fact that you have gfortran as version 13 and gcc as version 9.0

usr/bin/ld: /home/dipson/Build_WRF/LIBRARIES/netcdf/lib/libnetcdff.a(nf_nc4.o): in function `nf_def_var_szip_':
nf_nc4.f90.text+0x5f6d): undefined reference to `nc_def_var_szip'
That line means that netcdf didn't install properly. Related to the issue above
 
most likely it's due to the fact that you have gfortran as version 13 and gcc as version 9.0


That line means that netcdf didn't install properly. Related to the issue above
Hey , WIlliam, thank you so much.it worked. I changed my gfrotran to 9.5.0 as well and cofigured my libraries again to compile WRF 4.5.2. Now, I am looking for WPS, In the ncar website the latest I could get is only WPS v.4 , which version of WPS do I need?
 
Hey , WIlliam, thank you so much.it worked. I changed my gfrotran to 9.5.0 as well and cofigured my libraries again to compile WRF 4.5.2. Now, I am looking for WPS, In the ncar website the latest I could get is only WPS v.4 , which version of WPS do I need?
with 4.5.2 wrf you can use wps 4.5
 
Top