-
Notifications
You must be signed in to change notification settings - Fork 259
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
Errors relate to HDF5 during 'make check' process: hdf5open.c:873:6: error: use of undeclared identifier 'H5FD_ros3_fapl_t' #2880
Comments
It looks like something is not linking properly; do you have the config.log file generated when you ran |
Hi Ward, Thanks very much for the helps, I appended the whole file of 'config.log' generated during config process. |
It looks like the instruction to link against
|
Thanks very much for the reply. |
Hi Ward, I tried to run
I'm not sure which one should I run the |
And also I retried the |
You'll want to run |
Thanks very much for the reply. I rechecked the directories and this is the directory where I install/ compiled netcdf : On the other hands, I checked the directory where I downloaded netcdf: So as a conclusion, did I made some mistakes or the |
This is very peculiar; your build system is finding |
Sorry for being late, we found out someone accidentally deleted the files inside the |
Just some updates on the compilation of netcdf. I have reinstalled all the related files(zlib, hdf5), successfully installed both of them. But, still could not pass the 'make check' process of netcdf-c, and I also used ifort and icx for the compiler this time. So next I decided to change the compiler to gcc and gfortran. And finally, successfully installed netcdf. |
The machine I am using:
Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy
Version of netCDF:
netcdf-c-4.9.2
Version of HDF5:
hdf5-1.14.3
Version of zlib:
zlib-1.3.1
Information about compiler:
~$ ifort --version ifort: remark #10448: Intel(R) Fortran Compiler Classic (ifort) is now deprecated and will be discontinued late 2024. Intel recommends that customers transition now to using the LLVM-based Intel(R) Fortran Compiler (ifx) for continued Windows* and Linux* support, new language support, new language features, and optimizations. Use '-diag-disable=10448' to disable this message. ifort (IFORT) 2021.11.1 20231117 Copyright (C) 1985-2023 Intel Corporation. All rights reserved.
icx --version Intel(R) oneAPI DPC++/C++ Compiler 2024.0.2 (2024.0.2.20231213) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /opt/intel/oneapi/compiler/2024.0/bin/compiler Configuration file: /opt/intel/oneapi/compiler/2024.0/bin/compiler/../icx.cfg
The issue I am facing is during the 'make check' process of the netcdf. Before that, all the process of installing compiler, building hdf5, zlib, and the config process of netcdf had successfully done without any errors.
To me it seems like these errors is relate to hdf5, but I am not sure. I would like to know if anyone can give me any types of advice or suggestions on how I can resolve these errors. Thanks in advance.
The following is the error message of the 'make check' process.
libtool: compile: icx -DHAVE_CONFIG_H -I. -I.. -I../include -I../include -I../oc2 -I../libnczarr -I/include -I/include -fno-strict-aliasing -MT libnchdf5_la-hdf5create.lo -MD -MP -MF .deps/libnchdf5_la-hdf5create.Tpo -c hdf5create.c -o libnchdf5_la-hdf5create.o >/dev/null 2>&1 mv -f .deps/libnchdf5_la-hdf5create.Tpo .deps/libnchdf5_la-hdf5create.Plo /bin/bash ../libtool --tag=CC --mode=compile icx -DHAVE_CONFIG_H -I. -I.. -I../include -I../include -I../oc2 -I../libnczarr -I/include -I/include -fno-strict-aliasing -MT libnchdf5_la-hdf5open.lo -MD -MP -MF .deps/libnchdf5_la-hdf5open.Tpo -c -o libnchdf5_la-hdf5open.lo
test -f 'hdf5open.c' || echo './'hdf5open.c libtool: compile: icx -DHAVE_CONFIG_H -I. -I.. -I../include -I../include -I../oc2 -I../libnczarr -I/include -I/include -fno-strict-aliasing -MT libnchdf5_la-hdf5open.lo -MD -MP -MF .deps/libnchdf5_la-hdf5open.Tpo -c hdf5open.c -fPIC -DPIC -o .libs/libnchdf5_la-hdf5open.o
hdf5open.c:873:6: error: use of undeclared identifier 'H5FD_ros3_fapl_t' 873 | H5FD_ros3_fapl_t fa; | ^ hdf5open.c:879:13: error: use of undeclared identifier 'fa' 879 | fa.version = H5FD_CURR_ROS3_FAPL_T_VERSION; | ^ hdf5open.c:879:26: error: use of undeclared identifier 'H5FD_CURR_ROS3_FAPL_T_VERSION' 879 | fa.version = H5FD_CURR_ROS3_FAPL_T_VERSION; | ^ hdf5open.c:880:6: error: use of undeclared identifier 'fa' 880 | fa.authenticate = (hbool_t)0; | ^ hdf5open.c:881:6: error: use of undeclared identifier 'fa' 881 | fa.aws_region[0] = '\0'; | ^ hdf5open.c:882:6: error: use of undeclared identifier 'fa' 882 | fa.secret_id[0] = '\0'; | ^ hdf5open.c:883:6: error: use of undeclared identifier 'fa' 883 | fa.secret_key[0] = '\0'; | ^ hdf5open.c:903:7: error: use of undeclared identifier 'fa' 903 | fa.authenticate = (hbool_t)0; | ^ hdf5open.c:905:7: error: use of undeclared identifier 'fa' 905 | fa.authenticate = (hbool_t)1; | ^ hdf5open.c:909:15: error: use of undeclared identifier 'fa' 909 | strlcat(fa.aws_region,awsregion0,H5FD_ROS3_MAX_REGION_LEN); | ^ hdf5open.c:909:40: error: use of undeclared identifier 'H5FD_ROS3_MAX_REGION_LEN' 909 | strlcat(fa.aws_region,awsregion0,H5FD_ROS3_MAX_REGION_LEN); | ^ hdf5open.c:910:15: error: use of undeclared identifier 'fa' 910 | strlcat(fa.secret_id, awsaccessid0, H5FD_ROS3_MAX_SECRET_ID_LEN); | ^ hdf5open.c:910:43: error: use of undeclared identifier 'H5FD_ROS3_MAX_SECRET_ID_LEN' 910 | strlcat(fa.secret_id, awsaccessid0, H5FD_ROS3_MAX_SECRET_ID_LEN); | ^ hdf5open.c:911:29: error: use of undeclared identifier 'fa' 911 | strlcat(fa.secret_key, awssecretkey0, H5FD_ROS3_MAX_SECRET_KEY_LEN); | ^ hdf5open.c:911:59: error: use of undeclared identifier 'H5FD_ROS3_MAX_SECRET_KEY_LEN' 911 | strlcat(fa.secret_key, awssecretkey0, H5FD_ROS3_MAX_SECRET_KEY_LEN); | ^ hdf5open.c:914:20: error: call to undeclared function 'H5Pset_fapl_ros3'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 914 | if(H5Pset_fapl_ros3(fapl_id, &fa) < 0) | ^ hdf5open.c:914:47: error: use of undeclared identifier 'fa' 914 | if(H5Pset_fapl_ros3(fapl_id, &fa) < 0) | ^ 17 errors generated. make[1]: *** [Makefile:663: libnchdf5_la-hdf5open.lo] Error 1 make[1]: Leaving directory '/home/jin/Downloads/netcdf-c-4.9.2/libhdf5' make: *** [Makefile:769: check-recursive] Error 1
The text was updated successfully, but these errors were encountered: