[MacPorts] #64379: lapack @3.10.0: cmake files in wrong location

MacPorts noreply at macports.org
Fri Mar 15 16:04:51 UTC 2024


#64379: lapack @3.10.0: cmake files in wrong location
------------------------+----------------------
  Reporter:  lepus2589  |      Owner:  (none)
      Type:  defect     |     Status:  reopened
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.7.1
Resolution:             |   Keywords:  haspatch
      Port:  lapack     |
------------------------+----------------------

Comment (by kencu):

 Ok, well I know we don't care about or mix in homebrew here, but  just as
 a point test, out-of-the-box homebrew does no better with that
 CMakeLists.txt files:

 {{{
 % cmake .
 -- The C compiler identification is AppleClang 15.0.0.15000309
 -- Detecting C compiler ABI info
 -- Detecting C compiler ABI info - done
 -- Check for working C compiler:
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
 - skipped
 -- Detecting C compile features
 -- Detecting C compile features - done
 CMake Error at CMakeLists.txt:5 (find_package):
   Could not find a package configuration file provided by "lapacke" with
 any
   of the following names:

     lapackeConfig.cmake
     lapacke-config.cmake

   Add the installation prefix of "lapacke" to CMAKE_PREFIX_PATH or set
   "lapacke_DIR" to a directory containing one of the above files.  If
   "lapacke" provides a separate development package or SDK, be sure it has
   been installed.


 -- Configuring incomplete, errors occurred!

 % brew ls -v lapack
 /opt/homebrew/Cellar/lapack/3.12.0/INSTALL_RECEIPT.json
 /opt/homebrew/Cellar/lapack/3.12.0/LICENSE
 /opt/homebrew/Cellar/lapack/3.12.0/.brew/lapack.rb
 /opt/homebrew/Cellar/lapack/3.12.0/include/lapacke_utils.h
 /opt/homebrew/Cellar/lapack/3.12.0/include/lapacke.h
 /opt/homebrew/Cellar/lapack/3.12.0/include/lapacke_config.h
 /opt/homebrew/Cellar/lapack/3.12.0/include/lapack.h
 /opt/homebrew/Cellar/lapack/3.12.0/include/lapacke_mangling.h
 /opt/homebrew/Cellar/lapack/3.12.0/README.md
 /opt/homebrew/Cellar/lapack/3.12.0/lib/liblapacke.3.dylib
 /opt/homebrew/Cellar/lapack/3.12.0/lib/liblapack.dylib
 /opt/homebrew/Cellar/lapack/3.12.0/lib/pkgconfig/blas.pc
 /opt/homebrew/Cellar/lapack/3.12.0/lib/pkgconfig/lapacke.pc
 /opt/homebrew/Cellar/lapack/3.12.0/lib/pkgconfig/lapack.pc
 /opt/homebrew/Cellar/lapack/3.12.0/lib/cmake/lapack-3.12.0/lapack-targets-
 release.cmake
 /opt/homebrew/Cellar/lapack/3.12.0/lib/cmake/lapack-3.12.0/lapack-
 config.cmake
 /opt/homebrew/Cellar/lapack/3.12.0/lib/cmake/lapack-3.12.0/lapack-config-
 version.cmake
 /opt/homebrew/Cellar/lapack/3.12.0/lib/cmake/lapack-3.12.0/lapack-
 targets.cmake
 /opt/homebrew/Cellar/lapack/3.12.0/lib/cmake/lapacke-3.12.0/lapacke-
 config-version.cmake
 /opt/homebrew/Cellar/lapack/3.12.0/lib/cmake/lapacke-3.12.0/lapacke-
 config.cmake
 /opt/homebrew/Cellar/lapack/3.12.0/lib/cmake/lapacke-3.12.0/lapacke-
 targets.cmake
 /opt/homebrew/Cellar/lapack/3.12.0/lib/cmake/lapacke-3.12.0/lapacke-
 targets-release.cmake
 /opt/homebrew/Cellar/lapack/3.12.0/lib/libblas.3.dylib
 /opt/homebrew/Cellar/lapack/3.12.0/lib/liblapacke.3.12.0.dylib
 /opt/homebrew/Cellar/lapack/3.12.0/lib/liblapack.3.12.0.dylib
 /opt/homebrew/Cellar/lapack/3.12.0/lib/liblapack.3.dylib
 /opt/homebrew/Cellar/lapack/3.12.0/lib/libblas.dylib
 /opt/homebrew/Cellar/lapack/3.12.0/lib/libblas.3.12.0.dylib
 /opt/homebrew/Cellar/lapack/3.12.0/lib/liblapacke.dylib

 }}}

 and no combination of setting the CMAKE_PREFIX_PATH or LAPACK_DIR makes
 any difference:

 {{{
 % cmake
 -DLAPACK_DIR=/opt/homebrew/Cellar/lapack/3.12.0/lib/cmake/lapack-3.12.0/
 .
 CMake Error at CMakeLists.txt:5 (find_package):
   Could not find a package configuration file provided by "lapacke" with
 any
   of the following names:

     lapackeConfig.cmake
     lapacke-config.cmake

   Add the installation prefix of "lapacke" to CMAKE_PREFIX_PATH or set
   "lapacke_DIR" to a directory containing one of the above files.  If
   "lapacke" provides a separate development package or SDK, be sure it has
   been installed.


 -- Configuring incomplete, errors occurred!
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/64379#comment:13>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list