microsoft / vcpkg

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

[libtorch] build failure #39448

Open hylreg opened 3 months ago

hylreg commented 3 months ago

Operating system

windows

Compiler

MSVC

Steps to reproduce the behavior

vcpkg install libtorch

Failure logs

PS C:\Users\Admin> vcpkg install libtorch Computing installation plan... The following packages will be built and installed: libtorch[core,cuda,fftw3,opencv,xnnpack,zstd]:x64-windows@2.1.2#2

Call Stack (most recent call first): installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:269 (vcpkg_execute_required_process) ports/magma/portfile.cmake:26 (vcpkg_cmake_configure) scripts/ports.cmake:191 (include)

error: building magma:x64-windows failed with: BUILD_FAILED Elapsed time to handle magma:x64-windows: 9.7 s Please ensure you're using the latest port files with git pull and vcpkg update. Then check for known issues at: https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+magma You can submit a new issue at: https://github.com/microsoft/vcpkg/issues/new?title=[magma]+Build+error+on+x64-windows&body=Copy+issue+body+from+D%3A%2FLibraries%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md

PS C:\Users\Admin>

Additional context

I am using vs2022

JonLiu1993 commented 3 months ago

@hylreg, Please provide error log:

D:\Libraries\vcpkg\buildtrees\magma\config-x64-windows-out.log
hylreg commented 3 months ago

,请提供错误日志:

D:\Libraries\vcpkg\buildtrees\magma\config-x64-windows-out.log

config-x64-windows-out.log

JonLiu1993 commented 3 months ago

Update your CUDA version to 12.5 and try agagin.

CMake Error at D:/Libraries/vcpkg/downloads/tools/cmake-3.29.2-windows/cmake-3.29.2-windows-i386/share/cmake-3.29/Modules/CMakeDetermineCompilerId.cmake:814 (message):
  Compiling the CUDA compiler identification source file
  "CMakeCUDACompilerId.cu" failed.
github-actions[bot] commented 2 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.