wrf-model / WRF

The official repository for the Weather Research and Forecasting (WRF) model
Other
1.24k stars 677 forks source link

Compilation error when building `diffwrf` #2017

Closed jshn9515 closed 7 months ago

jshn9515 commented 7 months ago

Hi, I tried to install WRF 4.5.2 on CentOS 7.9 with these commands:

./configure (I use GNU + dmpar)
./compile em_real >& log.compile

The compilation was successful, but when I checked the logs, I found following errors:

diffwrf io_netcdf is being built now. 
/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: wrf_io.o: in function `__ext_ncd_support_routines_MOD_netcdf_err.part.0':
wrf_io.f:(.text+0x3c): undefined reference to `nf_strerror_'
/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: wrf_io.o: in function `__ext_ncd_support_routines_MOD_gettimeindex':
wrf_io.f:(.text+0x544a): undefined reference to `nf_put_vara_text_'
/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: wrf_io.o: in function `ext_ncd_get_var_td_char_':
wrf_io.f:(.text+0xcb2d): undefined reference to `nf_inq_varid_'
/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: wrf_io.f:(.text+0xcb7c): undefined reference to `nf_inq_var_'
/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: wrf_io.f:(.text+0xd13e): undefined reference to `nf_inq_dimlen_'
/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: wrf_io.f:(.text+0xd20d): undefined reference to `nf_get_vara_text_'
/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: wrf_io.o: in function `ext_ncd_get_var_td_logical_':
wrf_io.f:(.text+0xdd3d): undefined reference to `nf_inq_varid_'
... (and so on)

However, all tests on the link passed, and the executables were successfully built eventually. I wonder what diffwrf is doing, and does it have any impact on my usage of WRF?

weiwangncar commented 7 months ago

@jshn9515 Please post this on the Forum: https://forum.mmm.ucar.edu/. Thanks.