Closed PengZhang1995 closed 8 months ago
PS:
ii hdf5-helpers 1.10.4+repack-11ubuntu1 amd64 Hierarchical Data Format 5 (HDF5) - Helper tools
ii libhdf5-103:amd64 1.10.4+repack-11ubuntu1 amd64 Hierarchical Data Format 5 (HDF5) - runtime files - serial version
ii libhdf5-cpp-103:amd64 1.10.4+repack-11ubuntu1 amd64 Hierarchical Data Format 5 (HDF5) - C++ libraries
ii libhdf5-dev 1.10.4+repack-11ubuntu1 amd64 Hierarchical Data Format 5 (HDF5) - development files - serial version
How are you installing rhdf5? Is it via BiocManager::install()
or sudo apt-get install
?
Thank you for your reply!!!
BiocManager::install("rhdf5")
'getOption("repos")' replaces Bioconductor standard repositories, see 'help("repositories", package = "BiocManager")' for details.
Replacement repositories:
CRAN: https://mirrors.tuna.tsinghua.edu.cn/CRAN/
Bioconductor version 3.17 (BiocManager 1.30.20), R 4.3.0 (2023-04-21)
Installing package(s) 'rhdf5'
trying URL 'https://mirrors.tuna.tsinghua.edu.cn/bioconductor/packages/3.17/bioc/src/contrib/rhdf5_2.43.5.tar.gz'
Content type 'application/octet-stream' length 1249815 bytes (1.2 MB)
==================================================
downloaded 1.2 MB
* installing *source* package ‘rhdf5’ ...
** using staged installation
configure: WARNING: unrecognized options: --with-hdf5
configure: creating ./config.status
config.status: creating src/external_filters.h
configure: WARNING: unrecognized options: --with-hdf5
** libs
using C compiler: ‘gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0’
using C++ compiler: ‘g++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0’
gcc -I"/usr/share/R/include" -DNDEBUG -I'/home/zhangp/R/x86_64-pc-linux-gnu-library/4.3/Rhdf5lib/include' -fpic -g -O2 -fdebug-prefix-map=/build/r-base-dIDxrQ/r-base-4.3.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c H5.c -o H5.o
gcc -I"/usr/share/R/include" -DNDEBUG -I'/home/zhangp/R/x86_64-pc-linux-gnu-library/4.3/Rhdf5lib/include' -fpic -g -O2 -fdebug-prefix-map=/build/r-base-dIDxrQ/r-base-4.3.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c H5A.c -o H5A.o
gcc -I"/usr/share/R/include" -DNDEBUG -I'/home/zhangp/R/x86_64-pc-linux-gnu-library/4.3/Rhdf5lib/include' -fpic -g -O2 -fdebug-prefix-map=/build/r-base-dIDxrQ/r-base-4.3.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c H5D.c -o H5D.o
gcc -I"/usr/share/R/include" -DNDEBUG -I'/home/zhangp/R/x86_64-pc-linux-gnu-library/4.3/Rhdf5lib/include' -fpic -g -O2 -fdebug-prefix-map=/build/r-base-dIDxrQ/r-base-4.3.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c H5E.c -o H5E.o
gcc -I"/usr/share/R/include" -DNDEBUG -I'/home/zhangp/R/x86_64-pc-linux-gnu-library/4.3/Rhdf5lib/include' -fpic -g -O2 -fdebug-prefix-map=/build/r-base-dIDxrQ/r-base-4.3.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c H5F.c -o H5F.o
gcc -I"/usr/share/R/include" -DNDEBUG -I'/home/zhangp/R/x86_64-pc-linux-gnu-library/4.3/Rhdf5lib/include' -fpic -g -O2 -fdebug-prefix-map=/build/r-base-dIDxrQ/r-base-4.3.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c H5G.c -o H5G.o
gcc -I"/usr/share/R/include" -DNDEBUG -I'/home/zhangp/R/x86_64-pc-linux-gnu-library/4.3/Rhdf5lib/include' -fpic -g -O2 -fdebug-prefix-map=/build/r-base-dIDxrQ/r-base-4.3.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c H5I.c -o H5I.o
gcc -I"/usr/share/R/include" -DNDEBUG -I'/home/zhangp/R/x86_64-pc-linux-gnu-library/4.3/Rhdf5lib/include' -fpic -g -O2 -fdebug-prefix-map=/build/r-base-dIDxrQ/r-base-4.3.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c H5L.c -o H5L.o
gcc -I"/usr/share/R/include" -DNDEBUG -I'/home/zhangp/R/x86_64-pc-linux-gnu-library/4.3/Rhdf5lib/include' -fpic -g -O2 -fdebug-prefix-map=/build/r-base-dIDxrQ/r-base-4.3.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c H5O.c -o H5O.o
gcc -I"/usr/share/R/include" -DNDEBUG -I'/home/zhangp/R/x86_64-pc-linux-gnu-library/4.3/Rhdf5lib/include' -fpic -g -O2 -fdebug-prefix-map=/build/r-base-dIDxrQ/r-base-4.3.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c H5P.c -o H5P.o
gcc -I"/usr/share/R/include" -DNDEBUG -I'/home/zhangp/R/x86_64-pc-linux-gnu-library/4.3/Rhdf5lib/include' -fpic -g -O2 -fdebug-prefix-map=/build/r-base-dIDxrQ/r-base-4.3.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c H5R.c -o H5R.o
H5R.c: In function ‘_H5Rdereference’:
H5R.c:90:51: error: incompatible type for argument 3 of ‘H5Rdereference1’
90 | hid_t obj = H5Rdereference(obj_id, H5P_DEFAULT, ref_type, ref);
| ^~~~~~~~
| |
| H5R_type_t {aka enum H5R_type_t}
In file included from /usr/share/R/include/hdf5.h:36,
from myhdf5.h:11,
from H5R.h:8,
from H5R.c:1:
/usr/share/R/include/H5Rpublic.h:95:77: note: expected ‘const void *’ but argument is of type ‘H5R_type_t’ {aka ‘enum H5R_type_t’}
95 | H5_DLL hid_t H5Rdereference1(hid_t obj_id, H5R_type_t ref_type, const void *ref);
| ~~~~~~~~~~~~^~~
In file included from /usr/share/R/include/H5public.h:32,
from /usr/share/R/include/hdf5.h:22,
from myhdf5.h:11,
from H5R.h:8,
from H5R.c:1:
/usr/share/R/include/H5version.h:685:26: error: too many arguments to function ‘H5Rdereference1’
685 | #define H5Rdereference H5Rdereference1
| ^~~~~~~~~~~~~~~
H5R.c:90:15: note: in expansion of macro ‘H5Rdereference’
90 | hid_t obj = H5Rdereference(obj_id, H5P_DEFAULT, ref_type, ref);
| ^~~~~~~~~~~~~~
In file included from /usr/share/R/include/hdf5.h:36,
from myhdf5.h:11,
from H5R.h:8,
from H5R.c:1:
/usr/share/R/include/H5Rpublic.h:95:14: note: declared here
95 | H5_DLL hid_t H5Rdereference1(hid_t obj_id, H5R_type_t ref_type, const void *ref);
| ^~~~~~~~~~~~~~~
make: *** [/usr/lib/R/etc/Makeconf:191: H5R.o] Error 1
ERROR: compilation failed for package ‘rhdf5’
* removing ‘/home/zhangp/R/x86_64-pc-linux-gnu-library/4.3/rhdf5’
BTW,I have tried devtools::install_github('grimbough/rhdf5'),However, the issue has not been solved.
The issue has been resolved. Thank you for your response.
sudo cp -r /path/to/Rhdf5lib/include/* /usr/share/R/include/
I really enjoy using your package as it provides great help and support for my research
I'm glad you found a solution, but you really shouldn't have to move files around. I don't think I've seen hdf5.h
in /usr/share/R/include/
before, but that's what's causing the issue.
When I was installing rhdf5 in the Ubantu system, I encountered an error.