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
What version of gcc are you using.Hi william my ubuntu is 24.0 LTS, do you mean upgrading GCC?
I change my gcc to 9.5.0 ( above my gcc was 13.2.0)What version of gcc are you using.
Type
gcc --versiom
I tried WRF4.5 with gcc 9.5.0, complied got build error after almost 20mins. Please help![]()
How to Fix: Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)
The recent releases of Ubuntu 22, Ubuntu 23, Ubuntu 24, and newer by Canonical have introduced several significant changes to their base operating system, including notable updates to the GNU Compiler Collection (GCC). Specifically, these versions have been upgraded to GCC 11 and GCC 12...forum.mmm.ucar.edu
My Environment looks like this ,![]()
How to Fix: Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)
The recent releases of Ubuntu 22, Ubuntu 23, Ubuntu 24, and newer by Canonical have introduced several significant changes to their base operating system, including notable updates to the GNU Compiler Collection (GCC). Specifically, these versions have been upgraded to GCC 11 and GCC 12...forum.mmm.ucar.edu
gfortran -dumpfullversion@Dipson11
type these commands and then paste the terminal output here.
Bash:gfortran -dumpfullversion gcc -dumpfullversion g++ -dumpfullversion
most likely it's due to the fact that you have gfortran as version 13 and gcc as version 9.0gfortran -dumpfullversion
gcc -dumpfullversion
g++ -dumpfullversion
13.2.0
9.5.0
9.5.0
That line means that netcdf didn't install properly. Related to the issue aboveusr/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'
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?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
with 4.5.2 wrf you can use wps 4.5Hey , 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?