Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

”make check“ Fails at ”nf03_test“ in NetCDF-Fortran Version 4.5.2 #2881

Open
loctar665 opened this issue Mar 7, 2024 · 0 comments
Open

Comments

@loctar665
Copy link

Hello,
I encountered an issue while running make check for NetCDF-Fortran version 4.5.2 on my system. The testing process halts at nf03_test, indicating a failure in this particular test suite. I have successfully compiled and installed NetCDF-C before this.

When I ran make check for NetCDF-Fortran, the following error occurred:

/bin/bash ../libtool  --tag=FC   --mode=link gfortran -I../fortran -I../nf_test -m64  -L/home/lxy/Build_WRF/LIBRARIES/grib2/lib -o tst_f90 tst_f90.o ../fortran/libnetcdff.la -ldl -lm -lnetcdf -lz
libtool: link: gfortran -I../fortran -I../nf_test -m64 -o tst_f90 tst_f90.o  -L/home/lxy/Build_WRF/LIBRARIES/grib2/lib ../fortran/.libs/libnetcdff.a -ldl -lm -lnetcdf -lz
../fortran/.libs/libnetcdff.a(nf_nc4.o): In function `nf_def_var_filter_':
nf_nc4.f90:(.text+0x5cd6): undefined reference to `nc_def_var_filter'
../fortran/.libs/libnetcdff.a(nf_nc4.o): In function `nf_inq_var_filter_':
nf_nc4.f90:(.text+0x5efb): undefined reference to `nc_inq_var_filter'
../fortran/.libs/libnetcdff.a(nf_lib.o): In function `nc_inq_varnparams':
nf_lib.c:(.text+0x507): undefined reference to `nc_inq_var_filter'
collect2: error: ld returned 1 exit status
Makefile:620: recipe for target 'tst_f90' failed
make[2]: *** [tst_f90] Error 1
make[2]: Leaving directory '/home/lxy/Build_WRF/LIBRARIES/netcdf-fortran-4.5.2/nf03_test'
Makefile:918: recipe for target 'check-am' failed
make[1]: *** [check-am] Error 2
make[1]: Leaving directory '/home/lxy/Build_WRF/LIBRARIES/netcdf-fortran-4.5.2/nf03_test'
Makefile:540: recipe for target 'check-recursive' failed
make: *** [check-recursive] Error 1

My configure options: ./configure --prefix=$DIR/netcdf --disable-dap --disable-netcdf-4 --disable-shared CFLAGS='-fPIC' CPPFLAGS='-fPIC'

My environment:
Ubuntu: 16.04.7 LTS (Xenial Xerus)
gfortran: 5.4.0
netcdf-c: 4.7.2
netcdf-fortran: 4.5.2
hdf5: 1.8.16

The relevant running log is attached.
configure.log
make.log
make_check.log
make_install.log

@loctar665 loctar665 changed the title **make check** Fails at **nf03_test"" in NetCDF-Fortran Version 4.5.2 ”make check“ Fails at ”nf03_test“ in NetCDF-Fortran Version 4.5.2 Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant