microsoft / vcpkg

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

[cudnn] build failure #39516

Open HaapsaluYT opened 1 week ago

HaapsaluYT commented 1 week ago

Operating system

Windows 10, x64

Compiler

No response

Steps to reproduce the behavior

Following instructions as per the page.

Failure logs


Windows PowerShell transcript start Start time: 20240625145429 Username: THEMCKINNALIZER\haaps RunAs User: THEMCKINNALIZER\haaps Configuration Name: Machine: THEMCKINNALIZER (Microsoft Windows NT 10.0.22631.0) Host Application: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe Process ID: 8916 PSVersion: 5.1.22621.3672 PSEdition: Desktop PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.22621.3672 BuildVersion: 10.0.22621.3672 CLRVersion: 4.0.30319.42000 WSManStackVersion: 3.0 PSRemotingProtocolVersion: 2.3 SerializationVersion: 1.1.0.1


Transcript started, output file is C:\Users\haaps\darknet/build.log Build script version 4.0.1, utils module version 1.2.3 Working directory: C:\Users\haaps\darknet, log file: C:\Users\haaps\darknet/build.log, build.ps1 is in submodule: False PowerShell version:

Major Minor Build Revision


5 1 22621 3672 Running on Windows Powershell, please consider update and running on newer Powershell versions vcpkg bootstrap script: bootstrap-vcpkg.bat vcpkg will be cloned in shallow mode since baseline is not needed Unknown architecture. Trying x64 CUDA is enabled CUDNN is enabled OPENCV is enabled OPENCV with CUDA extension is not enabled, you can enable it passing -EnableOPENCV_CUDA VCPKG is enabled VCPKG will be updated to latest version if found VisualStudio integration is enabled, please pass -DoNotSetupVS to the script to disable Yolo C# wrapper integration is disabled, please pass -EnableCSharpWrapper to the script to enable. You must be on Windows! Ninja is enabled, please pass -DoNotUseNinja to the script to disable ForceCPP build mode is disabled, please pass -ForceCPP to the script to enable Using git from C:\Program Files\Git\cmd\git.exe This tool has been cloned with git and supports self-updating mechanism This tool will self-update sources, please pass -DoNotUpdateTOOL to the script to disable PS>TerminatingError(Test-Path): "Cannot bind argument to parameter 'Path' because it is an empty string." Test-Path : Cannot bind argument to parameter 'Path' because it is an empty string. At C:\Users\haaps\darknet\build.ps1:598 char:19

Using CMake from C:\Program Files\CMake\bin\cmake.exe Downloading a portable version of Ninja ./ninja.exe Using Ninja from C:\Users\haaps\darknet\ninja\ninja.exe Ninja version Found VS in C:\Program Files\Microsoft Visual Studio\2022\Community Visual Studio Command Prompt variables set Setting up environment to use CMake generator: Ninja Added missing env variable CUDA_TOOLKIT_ROOT_DIR Added missing env variable CUDACXX Found vcpkg in VCPKG_ROOT: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\vcpkg Removing folder C:\Users\haaps\darknet/build_release Configuring release CMake project CMake args: -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=C:\Users\haaps\darknet -DENABLE_VCPKG_INTEGRATION:BOOL=ON -DX_VCPKG_APPLOCAL_DEPS_INSTALL=ON -DVCPKG_BUILD_OPENCV_WITH_CUDA:BOOL=OFF -DENABLE_DEPLOY_CUSTOM_CMAKE_MODULES:BOOL=ON -DVCPKG_INSTALL_OPTIONS=--clean-buildtrees-after-build -S .. Config failed! Exited with error code 1. Press any key to continue...

Additional context

No response

HaapsaluYT commented 1 week ago

a little more context on failure Screenshot 2024-06-25 145843 Screenshot 2024-06-25 145850

JonLiu1993 commented 1 week ago

@HaapsaluYT, Thanks for posting this issue, Could you please provide detailed steps to reproduce the error?

HaapsaluYT commented 1 week ago

Open Powershell Run these commands. Set-ExecutionPolicy unrestricted -Scope CurrentUser -Force git clone https://github.com/AlexeyAB/darknet cd darknet .\build.ps1 -UseVCPKG -EnableOPENCV -EnableCUDA -EnableCUDNN Error occurs upon running the last command.

StarGate-One commented 1 week ago

CUDNN 9.2 Download

error

JonLiu1993 commented 1 week ago

Please download cuda according to the prompts in the log and try again. Remember to restart the computer after downloading and installing.

HaapsaluYT commented 1 week ago

I extracted CUDNN to the wrong folder - I will redo setup and update once that’s done

HaapsaluYT commented 1 week ago

Screenshot 2024-06-28 194730

I have already installed Ninja, but I'm not sure if I did it in the wrong place

JonLiu1993 commented 6 days ago

I extracted CUDNN to the wrong folder - I will redo setup and update once that’s done

To install cudnn, just follow the default steps. Please provide the error log mentioned in your picture.

HaapsaluYT commented 3 days ago

vcpkg install log vcpkg-manifest-install.log