-
Notifications
You must be signed in to change notification settings - Fork 99
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
Error: Symbol 'nc_noquantize' at (1) has no IMPLICIT type; did you mean 'nf_noquantize'? with netCDF 4.9.2 and netcdf-fortran-4.6.1 #427
Comments
This should be working, so it is a little unusual that it's not. Can you attach the |
Thank you for looking into this. |
I have the same problem compiling netcdf-fortran-4.6.1 with netcdf-c 4.9.2 on CentOS 7.9. |
Thank you; I'm still trying to sort out what is going on here, insofar as I've been unable to replicate the issue as of yet. From the config.log file you provided, @agahirpa, it looks like you're using Ubuntu 22.02 under WSL on a Windows host. Is this correct? @jshn9515 would you be able to provide your config.log file as well? |
@WardF that is correct: I am using Ubuntu 22.02 under WSL on a Window. |
Thank you for looking this. I think it is similar to #414. After setting netcdf.F90:47:2:
#include "netcdf_externals.f90"
1~~~~~~~~~~~~~~~~~~~~~
Fatal Error: netcdf_constants.f90: No such file or directory
compilation terminated.
make[1]: *** [Makefile:766: netcdf.lo] Error 1 The include statements are *.f90 but the actual files are *.F90. |
After completing the following steps, the compilation is successful, and all tests have passed:
|
Thanks @jshn9515 I am taking a look at making these changes, thanks! |
…o implicit type. See Unidata#427 for more information.
Thanks a lot! |
Well... I finally find out the reason I receive these errors is that I had built the NetCDF-C library with the |
By any chance you find a solution for this issue? I ran into the same problem. But in my case, even I build the NetCDF-C with netCDF-4, the make check in the NetCDF-F still complains |
I have no idea about that. Maybe you can open a new issue and describe that problem. |
Do you mind sharing your method for compiling the NetCDF 4.9.2 and NetCDF-fortran-4.6.1? Thanks |
I built them on CentOS 7.9 with GCC 11.2.1. ZDIR=/usr/local
H5DIR=/usr/local
NCDIR=/usr/local
CPPFLAGS='-I${H5DIR}/include -I${ZDIR}/include'
LDFLAGS='-L${H5DIR}/lib -L${ZDIR}/lib'
./configure --prefix=${NCDIR}
make -j 4
make check
make install And for NetCDF-Fortran: NCDIR=/usr/local
NFDIR=/usr/local
CC=/usr/local/cc
FC=/usr/local/fortran
CPPFLAGS=-I${NCDIR}/include
LDFLAGS=-L${NCDIR}/lib
./configure --prefix=${NFDIR}
make -j 4
make check
make install By the way, make sure all the dependencies have been installed correctly with all tests passed. |
I am trying to compile netcdf-fortran-4.6.1 with netcdf-c 4.9.2 and I get the following error on
ubuntu 22.02
.I used the following:
CPPFLAGS=-I//home/agahirpa/local/include LDFLAGS="-L/home/agahirpa/local/lib -Wl,-rpath,/home/agahirpa/local/lib -lnetcdf" ./configure --prefix=/home/agahirpa/local --disable-dependency-tracking
with the output from
nc-config --all
is below.The netcdf-c was compiled with:
I don't know what I did wrong.
The text was updated successfully, but these errors were encountered: