Mofem installation help

48 views
Skip to first unread message
Assigned to lik...@wp.pl by me

Preslav Aleksandrov

unread,
Oct 2, 2021, 2:25:50 PM10/2/21
to MoFEM Q&A

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 toH5Eget_auto2’
/usr/bin/ld: HDF5Common.cpp:(.text+0x64): undefined reference to H5Eset_auto2' /usr/bin/ld: HDF5Common.cpp:(.text+0x95): undefined reference toH5Sselect_hyperslab’
/usr/bin/ld: HDF5Common.cpp:(.text+0xb6): undefined reference to H5Sselect_hyperslab' /usr/bin/ld: HDF5Common.cpp:(.text+0xd3): undefined reference toH5Eset_auto2’
/usr/bin/ld: HDF5Common.cpp:(.text+0xdb): undefined reference to `H5Sclose’

How should I go about solving it?

Message has been deleted

Lukasz Kaczmraczyk

unread,
Oct 3, 2021, 4:49:22 AM10/3/21
to MoFEM Q&A

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.

Preslav Aleksandrov

unread,
Oct 4, 2021, 5:45:33 AM10/4/21
to MoFEM Q&A
hdf5 version is:
```
pkx7u2t hd...@1.10.7~cxx~debug~fortran~hl~java+mpi+pic+shared~szip~threadsafe
```
Here is the log file.
spack-build-out.txt

Preslav Aleksandrov

unread,
Oct 4, 2021, 6:11:42 AM10/4/21
to MoFEM Q&A
spack-build-out.txt

Preslav Aleksandrov

unread,
Oct 4, 2021, 6:17:50 AM10/4/21
to MoFEM Q&A
CMakeCache.txt

Lukasz Kaczmraczyk

unread,
Oct 4, 2021, 8:24:17 AM10/4/21
to MoFEM Q&A
Reply all
Reply to author
Forward
0 new messages