Bug#1000332: libopenblas64-openmp-dev: CMAKE cannot find OpenBLAS's files

Juan Jose Garcia Ripoll juanjose.garciaripoll at gmail.com
Sun Nov 21 18:02:58 GMT 2021


Package: libopenblas64-openmp-dev
Version: 0.3.13+ds-3
Severity: normal
X-Debbugs-Cc: juanjose.garciaripoll at gmail.com

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?

I try to use OpenBLAS in various open software developments which are based on cmake builds

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

The CMAKE files from OpenBLAS are installed in deep locations that cmake 3.18 does not
explore. This means that OpenBLAS cannot be used from CMAKE projects. A sample project

cmake_minimum_required(VERSION 3.14)
project(test)
find_package(OpenBLAS REQUIRED)
add_library(test "foo.c")
target_link_libraries(test PUBLIC OpenBLAS::BLAS)

will fail at configuration time (cmake -B ./build -S . -G "Unix Makefiles" --debug-find)

   * What was the outcome of this action?

CMAKE fails to find OpenBLASConfig.cmake If invoked with --debug find, cmake will
show that it searchers for the cmake files in shallower locations

    /usr/lib/x86_64-linux-gnu/openblas-pthread/OpenBLASConfig.cmake
    /usr/lib/x86_64-linux-gnu/openblas-pthread/openblas-config.cmake
    /usr/lib/x86_64-linux-gnu/openblas64-openmp/OpenBLASConfig.cmake
    /usr/lib/x86_64-linux-gnu/openblas64-openmp/openblas-config.cmake
    /usr/lib/x86_64-linux-gnu/openblas-pthread/cmake/OpenBLASConfig.cmake
    /usr/lib/x86_64-linux-gnu/openblas-pthread/cmake/openblas-config.cmake
    /usr/lib/x86_64-linux-gnu/openblas64-openmp/cmake/OpenBLASConfig.cmake
    /usr/lib/x86_64-linux-gnu/openblas64-openmp/cmake/openblas-config.cmake

   * What outcome did you expect instead?

The OpenBLAS files should have been located in those directories for them to be located.
Alternatively, Debian Bullseye should have shipped with a more recent version of CMAKE
that searchers for OpenBLASConfig.cmake in deeper locations.

*** End of the template - remove these template lines ***


-- System Information:
Debian Release: 11.1
  APT prefers oldstable-updates
  APT policy: (500, 'oldstable-updates'), (500, 'stable'), (500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.60.1-microsoft-standard-WSL2 (SMP w/32 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: unable to detect

Versions of packages libopenblas64-openmp-dev depends on:
ii  libopenblas64-0-openmp  0.3.13+ds-3

libopenblas64-openmp-dev recommends no packages.

libopenblas64-openmp-dev suggests no packages.

-- no debconf information



More information about the debian-science-maintainers mailing list