scalapack icon indicating copy to clipboard operation
scalapack copied to clipboard

Turning on BUILD_SHARED_LIBS in cmake does not build shared object

Open LukasvdWiel opened this issue 8 months ago • 1 comments

Hello!

I try to build Scalapack 2.2.2, corrected the version number from 2.2.1 to 2.2.2, and to get a shared library by turning BUILD_SHARED_LIBS on. All this with GCC 11.5

However, building it does not create the shared object.

It does make the symbolic links CMAKE_INSTALL_PREFIX/lib/libscalapack.so.2.2 and CMAKE_INSTALL_PREFIX/lib/libscalapack.so

but not the real library

CMAKE_INSTALL_PREFIX/lib/libscalapack.so.2.2.2.so

-- Install configuration: ""
CMake Error at cmake_install.cmake:57 (file):
  file INSTALL cannot find
  "/trinity/opt/apps/libraries/Scalapack/scalapack-2.2.2/install/lib/libscalapack.so.2.2.2":
  No such file or directory.

Is this a known problem? I am doing something obviously wrong?

Thanks a lot

LukasvdWiel avatar Jun 10 '25 16:06 LukasvdWiel

That is odd, I don't see anything that would interfere. Can you double check against main branch as well, just in case?

LecrisUT avatar Jul 31 '25 17:07 LecrisUT