After, figuring out the issue with gcc I ran:
spack dev-build \
--source-path $HOME/mofem_install/mofem-cephas \
--keep-prefix \
--test root \
mofem-cephas@develop~copy_user_modules ^petsc+X
This gave the following error:
HDF5Common.cpp:(.text+0x2f): undefined reference to H5Screate_simple'
/usr/bin/ld: HDF5Common.cpp:(.text+0x55): undefined reference to
H5Eget_auto2’
/usr/bin/ld: HDF5Common.cpp:(.text+0x64): undefined reference to H5Eset_auto2'
/usr/bin/ld: HDF5Common.cpp:(.text+0x95): undefined reference to
H5Sselect_hyperslab’
/usr/bin/ld: HDF5Common.cpp:(.text+0xb6): undefined reference to H5Sselect_hyperslab'
/usr/bin/ld: HDF5Common.cpp:(.text+0xd3): undefined reference to
H5Eset_auto2’
/usr/bin/ld: HDF5Common.cpp:(.text+0xdb): undefined reference to `H5Sclose’
How should I go about solving it?
Hey,
What system is this?
Can you show more errors, this is while compiling dependent MoFEM lib, or during linking of MoFEM executable?
When you compile from source, and you have a specific compiler, e.g.
spack dev-build \
--source-path $HOME/mofem_install/mofem-cephas \
--keep-prefix \
--test root \
mofem-cephas@develop%gccAT9.3.0~copy_user_modules ^petsc+X
Also, can you check
spack find -lv hdf5
that will show you what hdf5 you have installed. What is installed?
You can also load hdf5, and try install,
spack load hdf5
spack dev-build \
--source-path $HOME/mofem_install/mofem-cephas \
--keep-prefix \
--test root \
mofem-cephas@develop%gccAT9.3.0~copy_user_modules ^petsc+X 2>&1 | tee log
However, it looks that you have more than one hdf5 installed in your system. Your libraries should be compiled with spack with the right HDF5.
Please, send the full log file.
L.