microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
23.38k stars 6.46k forks source link

[suitesparse] Build error on x64-windows #39201

Open ghost opened 5 months ago

ghost commented 5 months ago

Package: suitesparse:x64-windows@5.8.0#2

Host Environment

To Reproduce

vcpkg install suitesparse:x64-windows

Failure logs


-- Using cached DrTimothyAldenDavis-SuiteSparse-71e330ca2bc0a2f12f416c461d23dbca21db4d8f.tar.gz.
-- Cleaning sources at C:/D Drive/Academics/Study/Intern/Dbot Internship 2023-24/Dbot360Video/HuggingFace/RamadesDPT/openSFM/OpenSfM/vcpkg/buildtrees/suitesparse/src/ca21db4d8f-31bbc10efb.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/D Drive/Academics/Study/Intern/Dbot Internship 2023-24/Dbot360Video/HuggingFace/RamadesDPT/openSFM/OpenSfM/vcpkg/downloads/DrTimothyAldenDavis-SuiteSparse-71e330ca2bc0a2f12f416c461d23dbca21db4d8f.tar.gz
-- Using source at C:/D Drive/Academics/Study/Intern/Dbot Internship 2023-24/Dbot360Video/HuggingFace/RamadesDPT/openSFM/OpenSfM/vcpkg/buildtrees/suitesparse/src/ca21db4d8f-31bbc10efb.clean
-- Using cached jlblancoc-suitesparse-metis-for-windows-c11e8dd7a2ef7d0d93af4c16f75374dd8ca029e2.tar.gz.
-- Cleaning sources at C:/D Drive/Academics/Study/Intern/Dbot Internship 2023-24/Dbot360Video/HuggingFace/RamadesDPT/openSFM/OpenSfM/vcpkg/buildtrees/suitesparse/src/dd8ca029e2-bdd475c274.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/D Drive/Academics/Study/Intern/Dbot Internship 2023-24/Dbot360Video/HuggingFace/RamadesDPT/openSFM/OpenSfM/vcpkg/downloads/jlblancoc-suitesparse-metis-for-windows-c11e8dd7a2ef7d0d93af4c16f75374dd8ca029e2.tar.gz
-- Applying patch build_fixes.patch
-- Using source at C:/D Drive/Academics/Study/Intern/Dbot Internship 2023-24/Dbot360Video/HuggingFace/RamadesDPT/openSFM/OpenSfM/vcpkg/buildtrees/suitesparse/src/dd8ca029e2-bdd475c274.clean
-- Overwriting SuiteSparseWin source files with SuiteSparse source files...
-- Overwriting SuiteSparseWin source files with SuiteSparse source files... done
-- Removing integrated lapack and metis lib...
-- Removing integrated lapack and metis lib... done
-- Found external ninja('1.11.0').
-- Configuring x64-windows
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
    Command failed: "C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" -v
    Working Directory: C:/D Drive/Academics/Study/Intern/Dbot Internship 2023-24/Dbot360Video/HuggingFace/RamadesDPT/openSFM/OpenSfM/vcpkg/buildtrees/suitesparse/x64-windows-rel/vcpkg-parallel-configure
    Error code: 1
    See logs for more information:
      C:\D Drive\Academics\Study\Intern\Dbot Internship 2023-24\Dbot360Video\HuggingFace\RamadesDPT\openSFM\OpenSfM\vcpkg\buildtrees\suitesparse\config-x64-windows-dbg-CMakeCache.txt.log
      C:\D Drive\Academics\Study\Intern\Dbot Internship 2023-24\Dbot360Video\HuggingFace\RamadesDPT\openSFM\OpenSfM\vcpkg\buildtrees\suitesparse\config-x64-windows-rel-CMakeCache.txt.log
      C:\D Drive\Academics\Study\Intern\Dbot Internship 2023-24\Dbot360Video\HuggingFace\RamadesDPT\openSFM\OpenSfM\vcpkg\buildtrees\suitesparse\config-x64-windows-out.log

Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:261 (vcpkg_execute_required_process)
  ports/suitesparse/portfile.cmake:32 (vcpkg_cmake_configure)
  scripts/ports.cmake:175 (include)
dg0yt commented 5 months ago

C:\D Drive\Academics\Study\Intern\Dbot Internship 2023-24

Relevant or not: Do not use ` in filepaths. And do not use+,*,?,;`, or non-ASCII.

ghost commented 5 months ago

@dg0yt same issue by changing the filepaths Package: suitesparse:x64-windows@5.8.0#2

Host Environment

To Reproduce

vcpkg install opencv4 ceres ceres[suitesparse] lapack suitesparse

Failure logs


-- Using cached DrTimothyAldenDavis-SuiteSparse-71e330ca2bc0a2f12f416c461d23dbca21db4d8f.tar.gz.
-- Cleaning sources at C:/D Drive/Academics/Study/Intern/DbotInternship2023-24/Dbot360Video/HuggingFace/RamadesDPT/openSFM/OpenSfM/vcpkg/buildtrees/suitesparse/src/ca21db4d8f-31bbc10efb.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/D Drive/Academics/Study/Intern/DbotInternship2023-24/Dbot360Video/HuggingFace/RamadesDPT/openSFM/OpenSfM/vcpkg/downloads/DrTimothyAldenDavis-SuiteSparse-71e330ca2bc0a2f12f416c461d23dbca21db4d8f.tar.gz
-- Using source at C:/D Drive/Academics/Study/Intern/DbotInternship2023-24/Dbot360Video/HuggingFace/RamadesDPT/openSFM/OpenSfM/vcpkg/buildtrees/suitesparse/src/ca21db4d8f-31bbc10efb.clean
-- Using cached jlblancoc-suitesparse-metis-for-windows-c11e8dd7a2ef7d0d93af4c16f75374dd8ca029e2.tar.gz.
-- Cleaning sources at C:/D Drive/Academics/Study/Intern/DbotInternship2023-24/Dbot360Video/HuggingFace/RamadesDPT/openSFM/OpenSfM/vcpkg/buildtrees/suitesparse/src/dd8ca029e2-bdd475c274.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/D Drive/Academics/Study/Intern/DbotInternship2023-24/Dbot360Video/HuggingFace/RamadesDPT/openSFM/OpenSfM/vcpkg/downloads/jlblancoc-suitesparse-metis-for-windows-c11e8dd7a2ef7d0d93af4c16f75374dd8ca029e2.tar.gz
-- Applying patch build_fixes.patch
-- Using source at C:/D Drive/Academics/Study/Intern/DbotInternship2023-24/Dbot360Video/HuggingFace/RamadesDPT/openSFM/OpenSfM/vcpkg/buildtrees/suitesparse/src/dd8ca029e2-bdd475c274.clean
-- Overwriting SuiteSparseWin source files with SuiteSparse source files...
-- Overwriting SuiteSparseWin source files with SuiteSparse source files... done
-- Removing integrated lapack and metis lib...
-- Removing integrated lapack and metis lib... done
-- Found external ninja('1.11.0').
-- Configuring x64-windows
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
    Command failed: "C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" -v
    Working Directory: C:/D Drive/Academics/Study/Intern/DbotInternship2023-24/Dbot360Video/HuggingFace/RamadesDPT/openSFM/OpenSfM/vcpkg/buildtrees/suitesparse/x64-windows-rel/vcpkg-parallel-configure
    Error code: 1
    See logs for more information:
      C:\D Drive\Academics\Study\Intern\DbotInternship2023-24\Dbot360Video\HuggingFace\RamadesDPT\openSFM\OpenSfM\vcpkg\buildtrees\suitesparse\config-x64-windows-dbg-CMakeCache.txt.log
      C:\D Drive\Academics\Study\Intern\DbotInternship2023-24\Dbot360Video\HuggingFace\RamadesDPT\openSFM\OpenSfM\vcpkg\buildtrees\suitesparse\config-x64-windows-rel-CMakeCache.txt.log
      C:\D Drive\Academics\Study\Intern\DbotInternship2023-24\Dbot360Video\HuggingFace\RamadesDPT\openSFM\OpenSfM\vcpkg\buildtrees\suitesparse\config-x64-windows-out.log

Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:261 (vcpkg_execute_required_process)
  ports/suitesparse/portfile.cmake:32 (vcpkg_cmake_configure)
  scripts/ports.cmake:175 (include)
dg0yt commented 5 months ago

C:\D Drive...

Again: Do not use ... And if it doesn't help,

See logs for more information

ghost commented 5 months ago

@dg0yt same issue rises by changing the path

Package: suitesparse:x64-windows@5.8.0#2

Host Environment

To Reproduce

vcpkg install opencv4 ceres ceres[suitesparse] lapack suitesparse

Failure logs


-- Using cached DrTimothyAldenDavis-SuiteSparse-71e330ca2bc0a2f12f416c461d23dbca21db4d8f.tar.gz.
-- Cleaning sources at C:/D_Drive/Academics/Study/Intern/DbotInternship2023-24/Dbot360Video/HuggingFace/RamadesDPT/openSFM/OpenSfM/vcpkg/buildtrees/suitesparse/src/ca21db4d8f-31bbc10efb.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/D_Drive/Academics/Study/Intern/DbotInternship2023-24/Dbot360Video/HuggingFace/RamadesDPT/openSFM/OpenSfM/vcpkg/downloads/DrTimothyAldenDavis-SuiteSparse-71e330ca2bc0a2f12f416c461d23dbca21db4d8f.tar.gz
-- Using source at C:/D_Drive/Academics/Study/Intern/DbotInternship2023-24/Dbot360Video/HuggingFace/RamadesDPT/openSFM/OpenSfM/vcpkg/buildtrees/suitesparse/src/ca21db4d8f-31bbc10efb.clean
-- Using cached jlblancoc-suitesparse-metis-for-windows-c11e8dd7a2ef7d0d93af4c16f75374dd8ca029e2.tar.gz.
-- Cleaning sources at C:/D_Drive/Academics/Study/Intern/DbotInternship2023-24/Dbot360Video/HuggingFace/RamadesDPT/openSFM/OpenSfM/vcpkg/buildtrees/suitesparse/src/dd8ca029e2-bdd475c274.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/D_Drive/Academics/Study/Intern/DbotInternship2023-24/Dbot360Video/HuggingFace/RamadesDPT/openSFM/OpenSfM/vcpkg/downloads/jlblancoc-suitesparse-metis-for-windows-c11e8dd7a2ef7d0d93af4c16f75374dd8ca029e2.tar.gz
-- Applying patch build_fixes.patch
-- Using source at C:/D_Drive/Academics/Study/Intern/DbotInternship2023-24/Dbot360Video/HuggingFace/RamadesDPT/openSFM/OpenSfM/vcpkg/buildtrees/suitesparse/src/dd8ca029e2-bdd475c274.clean
-- Overwriting SuiteSparseWin source files with SuiteSparse source files...
-- Overwriting SuiteSparseWin source files with SuiteSparse source files... done
-- Removing integrated lapack and metis lib...
-- Removing integrated lapack and metis lib... done
-- Found external ninja('1.11.0').
-- Configuring x64-windows
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
    Command failed: "C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" -v
    Working Directory: C:/D_Drive/Academics/Study/Intern/DbotInternship2023-24/Dbot360Video/HuggingFace/RamadesDPT/openSFM/OpenSfM/vcpkg/buildtrees/suitesparse/x64-windows-rel/vcpkg-parallel-configure
    Error code: 1
    See logs for more information:
      C:\D_Drive\Academics\Study\Intern\DbotInternship2023-24\Dbot360Video\HuggingFace\RamadesDPT\openSFM\OpenSfM\vcpkg\buildtrees\suitesparse\config-x64-windows-dbg-CMakeCache.txt.log
      C:\D_Drive\Academics\Study\Intern\DbotInternship2023-24\Dbot360Video\HuggingFace\RamadesDPT\openSFM\OpenSfM\vcpkg\buildtrees\suitesparse\config-x64-windows-rel-CMakeCache.txt.log
      C:\D_Drive\Academics\Study\Intern\DbotInternship2023-24\Dbot360Video\HuggingFace\RamadesDPT\openSFM\OpenSfM\vcpkg\buildtrees\suitesparse\config-x64-windows-out.log

Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:261 (vcpkg_execute_required_process)
  ports/suitesparse/portfile.cmake:32 (vcpkg_cmake_configure)
  scripts/ports.cmake:175 (include)
dg0yt commented 5 months ago

And if it doesn't help,

See logs for more information

MonicaLiu0311 commented 5 months ago
    See logs for more information:
      C:\D_Drive\Academics\Study\Intern\DbotInternship2023-24\Dbot360Video\HuggingFace\RamadesDPT\openSFM\OpenSfM\vcpkg\buildtrees\suitesparse\config-x64-windows-dbg-CMakeCache.txt.log
      C:\D_Drive\Academics\Study\Intern\DbotInternship2023-24\Dbot360Video\HuggingFace\RamadesDPT\openSFM\OpenSfM\vcpkg\buildtrees\suitesparse\config-x64-windows-rel-CMakeCache.txt.log
      C:\D_Drive\Academics\Study\Intern\DbotInternship2023-24\Dbot360Video\HuggingFace\RamadesDPT\openSFM\OpenSfM\vcpkg\buildtrees\suitesparse\config-x64-windows-out.log

Please provide the log files for the prompt.

ghost commented 5 months ago

I have attach 3 log files below

config-x64-windows-out.log config-x64-windows-rel-CMakeCache.txt.log config-x64-windows-dbg-CMakeCache.txt.log

github-actions[bot] commented 4 months ago

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.

MonicaLiu0311 commented 4 months ago

Sorry I didn't repro your issue.

PS G:\vcpkg> ./vcpkg install suitesparse
Computing installation plan...
The following packages will be built and installed:
  * lapack:x64-windows@2023-06-10#2
    suitesparse:x64-windows@5.8.0#2
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-windows...
Compiler found: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe
Restored 0 package(s) from C:\Users\monica\AppData\Local\vcpkg\archives in 748 us. Use --debug to see more details.
Installing 1/2 lapack:x64-windows@2023-06-10#2...
Building lapack:x64-windows@2023-06-10#2...
-- Skipping post-build validation due to VCPKG_POLICY_EMPTY_PACKAGE
Stored binaries in 1 destinations in 75.8 ms.
Elapsed time to handle lapack:x64-windows: 13 s
lapack:x64-windows package ABI: ec9b59e735279162e287e4476816122e5a2a1ea9abe3be892560b34605192628
Installing 2/2 suitesparse:x64-windows@5.8.0#2...
Building suitesparse:x64-windows@5.8.0#2...
-- Using cached DrTimothyAldenDavis-SuiteSparse-71e330ca2bc0a2f12f416c461d23dbca21db4d8f.tar.gz.
-- Cleaning sources at G:/vcpkg/buildtrees/suitesparse/src/ca21db4d8f-31bbc10efb.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source G:/vcpkg/downloads/DrTimothyAldenDavis-SuiteSparse-71e330ca2bc0a2f12f416c461d23dbca21db4d8f.tar.gz
-- Using source at G:/vcpkg/buildtrees/suitesparse/src/ca21db4d8f-31bbc10efb.clean
-- Using cached jlblancoc-suitesparse-metis-for-windows-c11e8dd7a2ef7d0d93af4c16f75374dd8ca029e2.tar.gz.
-- Cleaning sources at G:/vcpkg/buildtrees/suitesparse/src/dd8ca029e2-bdd475c274.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source G:/vcpkg/downloads/jlblancoc-suitesparse-metis-for-windows-c11e8dd7a2ef7d0d93af4c16f75374dd8ca029e2.tar.gz
-- Applying patch build_fixes.patch
-- Using source at G:/vcpkg/buildtrees/suitesparse/src/dd8ca029e2-bdd475c274.clean
-- Overwriting SuiteSparseWin source files with SuiteSparse source files...
-- Overwriting SuiteSparseWin source files with SuiteSparse source files... done
-- Removing integrated lapack and metis lib...
-- Removing integrated lapack and metis lib... done
-- Found external ninja('1.11.0').
-- Configuring x64-windows
CMake Warning at installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:318 (message):
  The following variables are not used in CMakeLists.txt:

      BUILD_METIS
      METIS_SOURCE_DIR
      SUITESPARSE_INSTALL_PREFIX

  Please recheck them and remove the unnecessary options from the
  `vcpkg_cmake_configure` call.

  If these options should still be passed for whatever reason, please use the
  `MAYBE_UNUSED_VARIABLES` argument.
Call Stack (most recent call first):
  ports/suitesparse/portfile.cmake:32 (vcpkg_cmake_configure)
  scripts/ports.cmake:192 (include)

-- Building x64-windows-dbg
-- Building x64-windows-rel
-- Installing: G:/vcpkg/packages/suitesparse_x64-windows/share/suitesparse/copyright
-- Installing: G:/vcpkg/packages/suitesparse_x64-windows/share/suitesparse/copyright_suitesparse-metis-for-windows
-- Installing: G:/vcpkg/packages/suitesparse_x64-windows/share/cxsparse/vcpkg-cmake-wrapper.cmake
-- Performing post-build validation
Stored binaries in 1 destinations in 511 ms.
Elapsed time to handle suitesparse:x64-windows: 5.1 min
suitesparse:x64-windows package ABI: 3094fcffad1c4cb276b7a4636791a473aee05e88f8d8773632a5a9bf14522df9
Total install time: 5.3 min
suitesparse provides CMake targets:

  # this is heuristically generated, and may not be correct
  find_package(suitesparse CONFIG REQUIRED)
  # note: 8 additional targets are not displayed.
  target_link_libraries(main PRIVATE SuiteSparse::amd SuiteSparse::btf SuiteSparse::klu SuiteSparse::ldl)

Please update the VCPKG version and run the following command to try again:

git pull https://github.com/microsoft/vcpkg.git master
./vcpkg remove suitesparse lapack --recurse
./vcpkg install suitesparse
dg0yt commented 4 months ago

config-x64-windows-out.log

There is an error cascade which needs attention:

CMake Warning (dev) at CMakeLists.txt:8 (PROJECT):
  cmake_minimum_required() should be called prior to this top-level project()
  call.  Please see the cmake-commands(7) manual for usage documentation of
  both commands.
This warning is for project developers.  Use -Wno-dev to suppress it.
...
CMake Warning (dev) at C:/D_Drive/Academics/Study/Intern/DbotInternship2023-24/Dbot360Video/HuggingFace/RamadesDPT/openSFM/OpenSfM/vcpkg/installed/x64-windows/share/lapack/vcpkg-cmake-wrapper.cmake:9 (if):
  if given arguments:

    "ON"

  An argument named "ON" appears in a conditional statement.  Policy CMP0012
  is not set: if() recognizes numbers and boolean constants.  Run "cmake
  --help-policy CMP0012" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.
Call Stack (most recent call first):
  C:/D_Drive/Academics/Study/Intern/DbotInternship2023-24/Dbot360Video/HuggingFace/RamadesDPT/openSFM/OpenSfM/vcpkg/scripts/buildsystems/vcpkg.cmake:813 (include)
  CMakeLists.txt:140 (find_package)
...
CMake Error at C:/D_Drive/Academics/Study/Intern/DbotInternship2023-24/Dbot360Video/HuggingFace/RamadesDPT/openSFM/OpenSfM/vcpkg/installed/x64-windows/share/lapack/FindLAPACK.cmake:522 (message):
  A required library with LAPACK API not found.  Please specify library
  location.
Call Stack (most recent call first):
  C:/D_Drive/Academics/Study/Intern/DbotInternship2023-24/Dbot360Video/HuggingFace/RamadesDPT/openSFM/OpenSfM/vcpkg/installed/x64-windows/share/lapack/vcpkg-cmake-wrapper.cmake:19 (_find_package)
  C:/D_Drive/Academics/Study/Intern/DbotInternship2023-24/Dbot360Video/HuggingFace/RamadesDPT/openSFM/OpenSfM/vcpkg/scripts/buildsystems/vcpkg.cmake:813 (include)
  CMakeLists.txt:140 (find_package)

This particular error would be fixed by https://github.com/jlblancoc/suitesparse-metis-for-windows/commit/3ee1bfdc10fa35725a21404239dccff9101f14c6.