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

Missing references of netcdf-fortran ...

miroilias

New member
Hello,

on my Ubuntu I have all netcdf packages installed, nc-config confirms it has gfortran installed, but still missing references of netcdf-fortran origin.

Maybe some wrong links generated by configure ?


Code:
.
.
time mpif90  -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4      -c  -I/usr/include -I../ioapi_share diffwrf.f
0.08user 0.00system 0:00.09elapsed 98%CPU (0avgtext+0avgdata 36080maxresident)k
0inputs+344outputs (0major+6422minor)pagefaults 0swaps
diffwrf io_netcdf is being built now.
/usr/bin/ld: wrf_io.o: in function `__ext_ncd_support_routines_MOD_netcdf_err.part.0':
wrf_io.f:(.text+0x46): undefined reference to `nf_strerror_'
/usr/bin/ld: wrf_io.o: in function `__ext_ncd_support_routines_MOD_gettimeindex':
wrf_io.f:(.text+0x504d): undefined reference to `nf_put_vara_text_'
/usr/bin/ld: wrf_io.o: in function `ext_ncd_get_var_td_char_':
wrf_io.f:(.text+0xc40b): undefined reference to `nf_inq_varid_'
/usr/bin/ld: wrf_io.f:(.text+0xc45c): undefined reference to `nf_inq_var_'
/usr/bin/ld: wrf_io.f:(.text+0xca4a): undefined reference to `nf_inq_dimlen_'
/usr/bin/ld: wrf_io.f:(.text+0xcb16): undefined reference to `nf_get_vara_text_'
/usr/bin/ld: wrf_io.o: in function `ext_ncd_get_var_td_logical_':
wrf_io.f:(.text+0xd607): undefined reference to `nf_inq_varid_'
/usr/bin/ld: wrf_io.f:(.text+0xd657): undefined reference to `nf_inq_var_'
/usr/bin/ld: wrf_io.f:(.text+0xdd3d): undefined reference to `nf_inq_dimlen_'
/usr/bin/ld: wrf_io.f:(.text+0xde18): undefined reference to `nf_get_vara_int_'
/usr/bin/ld: wrf_io.o: in function `ext_ncd_get_var_td_double_':
wrf_io.f:(.text+0xec07): undefined reference to `nf_inq_varid_'
/usr/bin/ld: wrf_io.f:(.text+0xec57): undefined reference to `nf_inq_var_'
/usr/bin/ld: wrf_io.f:(.text+0xf33d): undefined reference to `nf_inq_dimlen_'
/usr/bin/ld: wrf_io.f:(.text+0xf415): undefined reference to `nf_get_vara_double_'
/usr/bin/ld: wrf_io.o: in function `ext_ncd_get_var_td_integer_':
wrf_io.f:(.text+0x10127): undefined reference to `nf_inq_varid_'
.
.
 

mgduda

Administrator
Staff member
I've moved this topic to the WRF compilation section of the forum, since it looks like the question concerns WRF rather than MPAS-Atmosphere.
 

kwerner

Administrator
Staff member
Hi,
If you haven't done so already, please follow the instructions in our compilation tutorial to ensure all necessary libraries are installed correctly. If you are using separate netcdf-c and netcdf-fortran libraries, take a look at this FAQ that discusses the procedure for installing.
 
Top