piclas-framework / piclas

PICLas is a parallel, three-dimensional PIC-DSMC solver developed cooperatively by the Institute of Space Systems, Institute of Aerodynamics and Gas Dynamics at the University of Stuttgart and the spin-off boltzplatz. PICLas is a flexible particle-based plasma simulation suite.
https://piclas.readthedocs.io
GNU General Public License v3.0
71 stars 17 forks source link

Installation fails due to missing file #1

Closed fsimonis closed 4 years ago

fsimonis commented 4 years ago

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
scopplestone commented 4 years ago

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.

fsimonis commented 4 years ago

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.

piclas-framework commented 4 years ago

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.

scopplestone commented 4 years ago

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.