scalapack cmake target points to incorrect directory

Bug #1917534 reported by Steven Hahn
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
scalapack (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I added "find_package(scalapack REQUIRED)" to the CMakeLists.txt of a project I'm working on. Instead of the scalapack target I was expecting, I got the following error:

CMake Error at /usr/lib/cmake/scalapack-2.1.0.openmpi/scalapack-targets.cmake:79 (message):
 The imported target "scalapack" references the file
   "/usr/lib/libscalapack-openmpi.so.2.1.0"
 but this file does not exist. Possible reasons include:
 * The file was deleted, renamed, or moved to another location.
 * An install or uninstall procedure did not complete successfully.
 * The installation package was faulty and contained
   "/usr/lib/cmake/scalapack-2.1.0.openmpi/scalapack-targets.cmake"
 but not all the files it references.
Call Stack (most recent call first):
 /usr/lib/cmake/scalapack-2.1.0.openmpi/scalapack-config.cmake:2 (include)
 test/CMakeLists.txt:23 (find_package)

I worked around this by replacing "lib" with "lib/x86_64-linux-gnu" in /usr/lib/cmake/scalapack-2.1.0.openmpi/scalapack-targets-none.cmake

$ lsb_release -rd
Description: Ubuntu 20.04.2 LTS
Release: 20.04

$ apt-cache policy libscalapack-openmpi2.1
libscalapack-openmpi2.1:
  Installed: 2.1.0-2build1
  Candidate: 2.1.0-2build1
  Version table:
 *** 2.1.0-2build1 500
        500 http://repoman.ornl.gov/ubuntu focal/universe amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Steven (hahnse) wrote :

The scalapack cmake target also points to /usr/lib/x86_64-linux-gnu/liblapack.so, which is provided by the liblapack-dev package. One either needs to add this package to the list of dependencies or link against /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3 provided by liblapack3.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in scalapack (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.