piclas-framework/piclas

Installation fails due to missing file

fsimonis opened this issue · 4 comments

After successfully configuring and building piclas with default settings using CMake 3.17.0, the installation fails due to a missing library:

-- Install configuration: "RelWithDebInfo"
CMake Error at cmake_install.cmake:41 (file):
  file INSTALL cannot find
  "/.../.../bin/libpiclasshared":
  No such file or directory.

The resulting bin and ls contain the following files:

> ls bin 
configuration.cmake  h5piclas2vtk  piclas  superB  userblock.o  userblock.txt
> ls lib
libpiclasf90.a  libpiclas.so  libstacksizelib.a  libsuperBlib.a  libuserblocklib.a  libvisulib.a

I cannot reproduce then error when using cmake/3.17.0.
What versions of HDF5 and MPI are you using?
I have just tried an older and a newer configuration with gcc/7.4.0 + openmpi/2.1.6 + hdf5/1.8.18 as well as gcc/9.2.0 + openmpi/4.0.2 + hdf5/1.10.5 and both configurations work.

I attempted to install it via a minimal spack package. You can find it on my fork. To reproduce with spack run spack install piclas.

This is the full build log of spack.
As you can see, the build stage works fine. It's just the install stage that fails.

From your log output I assume that the compilation is successful, however, the "make install" fails. We will try and fix this quickly and hopefully it will also solve the problems related to the spack installation.

This issue has been fixed in the current release v1.6.3.

Edit: For older cmake versions (<3.14), use the updated release found under v1.6.4.