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

WRFv4.7.1 Compile error (possibly) at MYNN-EDMF reference

smasters

New member
I am compiling the new WRF v 4.7.1. The compile is failing and I note fatal errors when it gets to the MYNN-EDMF submodule. It seems to be trying to use git, even though I downloaded the tar.gz file. The compile log is attached and the failure is around line 3105. The directory phys/MYNN-EDMF exists and has files and directories. I don't have git configured on this system using git for the compile is probably not a viable option. I didn't have this issue with my previous WRF compile (3.6.1), though it seems that the MYNN-EDMF directory is new.

The (possibly?) offending part of the compile is... (complete compile log attached).

make[2]: Entering directory `/home/stevem/sw/WRF-4.7/WRFV4.7.1/phys'
No action required for NoahMP submodule
Pulling in MYNN-EDMF submodule
fatal: Not a git repository (or any of the parent directories): .git
make[2]: Leaving directory `/home/stevem/sw/WRF-4.7/WRFV4.7.1/phys'
make[2]: Entering directory `/home/stevem/sw/WRF-4.7/WRFV4.7.1/phys'
(cd .. && ./tools/manage_externals/checkout_externals --externals ./arch/Externals.cfg)
Processing externals description file : ./arch/Externals.cfg (/home/stevem/sw/WRF-4.7...
 

Attachments

  • compile.log
    887.7 KB · Views: 3
Looking at the logfile, I think the actual error is arising from netCDF linking (first major compilation error):
Code:
diffwrf io_netcdf is being built now. 
/home/stevem/sw/wrflibs/netcdf/lib/libnetcdf.a(libnetcdf3_la-putget.o): In function `NC3_get_vara':
/home/stevem/sw/wrflibs/netcdf-4.1.3/libsrc/./putget.c:5197: undefined reference to `__builtin_alloca'
/home/stevem/sw/wrflibs/netcdf-4.1.3/libsrc/./putget.c:5198: undefined reference to `__builtin_alloca'
/home/stevem/sw/wrflibs/netcdf/lib/libnetcdf.a(libnetcdf3_la-putget.o): In function `NC3_put_vara':
/home/stevem/sw/wrflibs/netcdf-4.1.3/libsrc/./putget.c:5327: undefined reference to `__builtin_alloca'
/home/stevem/sw/wrflibs/netcdf-4.1.3/libsrc/./putget.c:5328: undefined reference to `__builtin_alloca'
real  0m0.235s
user  0m0.180s
sys 0m0.055s
make[2]: [diffwrf] Error 2 (ignored)

Though I'm not entirely sure what the exact issue is, and I can't find the equivalent set of symbols in my own installs of netCDF.
 
Solved...You were correct, the problem was with netCDF...Originally, I was pointing to an older build of netCDF. When I pointed to a version I built a few months ago, I got my WRF executables. Thanks for your help!

I still see the git errors in the compile log but, since the MYNN-EDMF files are already there from the tar.gz archive, the compilation completed successfully.
 
Top