Public bug reported:

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

** Affects: scalapack (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1917534

Title:
  scalapack cmake target points to incorrect directory

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/scalapack/+bug/1917534/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to