Skip to content

[intel-mkl][suitesparse] colmap cannot find debug/lib/intel64/libmkl_intel_lp64.a #30580

@lrineau

Description

@lrineau

Package: colmap[core]:x64-linux -> 2023-03-12#1

But the issue might be in:

  • suitesparse:x64-linux 5.8.0#2, or
  • intel-mkl:x64-linux 2023.0.0

colmap requires suitesparse, and suitesparse might accidentally be depend on intel-mkl, without actually requiring it: suitesparse source code requires LAPACK, and FindLAPACK.cmake can take intel-mkl for the LAPACK implementation, instead of clapack.

Host Environment

  • Host: x64-linux
  • Compiler: GNU 12.2.1
  • vcpkg-tool version: 2023-01-24-8a88d63f241d391772fbde69af9cab96c3c64c75
    vcpkg-scripts version: 785a233 2023-03-27 (4 days ago)

To Reproduce

I am not sure how to reproduce it. It depends on the list of already installed packags. At least intel-mkl has to be installed, and then:

vcpkg install colmap

The package suitesparse

Failure logs

-- Using cached colmap-colmap-30da037ce19bdceb6d239c45342fadb221bdabb2.tar.gz.
-- Cleaning sources at /home/lrineau/Git/vcpkg/buildtrees/colmap/src/b221bdabb2-e3968635af.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /home/lrineau/Git/vcpkg/downloads/colmap-colmap-30da037ce19bdceb6d239c45342fadb221bdabb2.tar.gz
-- Applying patch fix-dependencies.patch
-- Using source at /home/lrineau/Git/vcpkg/buildtrees/colmap/src/b221bdabb2-e3968635af.clean
-- Found external ninja('1.10.2').
-- Configuring x64-linux-dbg
-- Configuring x64-linux-rel
-- Building x64-linux-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: /usr/local/packages/cmake-3.26/bin/cmake --build . --config Debug --target install -- -v -j17
    Working Directory: /home/lrineau/Git/vcpkg/buildtrees/colmap/x64-linux-dbg
    See logs for more information:
      /home/lrineau/Git/vcpkg/buildtrees/colmap/install-x64-linux-dbg-err.log

Call Stack (most recent call first):
  installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  ports/colmap/portfile.cmake:60 (vcpkg_cmake_install)
  scripts/ports.cmake:147 (include)



/home/lrineau/Git/vcpkg/buildtrees/colmap/install-x64-linux-dbg-err.log
ninja: error: '/home/lrineau/Git/vcpkg/installed/x64-linux/debug/lib/intel64/libmkl_intel_lp64.a', needed by 'src/exe/colmap', missing and no known rule to make it

Additional context

installed/x64-linux/debug/lib/intel64/libmkl_intel_lp64.a does not exist, even if the package intel-mkl is installed. That is the result of the macro vcpkg_cmake_config_fixup in the portfile of suitesparse:

vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/suitesparse)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions