microsoft / vcpkg

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

opencv4[cuda,]:x64-windows build failure: Unsupported gpu architecture 'compute_30' #12966

Closed aeleute closed 4 years ago

aeleute commented 4 years ago

Host Environment

To Reproduce Steps to reproduce the behavior:

Call Stack (most recent call first): scripts/cmake/vcpkg_build_cmake.cmake:91 (vcpkg_execute_build_process) scripts/cmake/vcpkg_install_cmake.cmake:24 (vcpkg_build_cmake) ports/opencv4/portfile.cmake:371 (vcpkg_install_cmake) scripts/ports.cmake:79 (include)

Error: Building package opencv4:x64-windows failed with: BUILD_FAILED Please ensure you're using the latest portfiles with .\vcpkg update, then submit an issue at https://github.com/Microsoft/vcpkg/issues including: Package: opencv4:x64-windows Vcpkg version: 2020.06.15-nohash

Additionally, attach any relevant sections from the log files above.


**To Reproduce**
Steps to reproduce the behavior:
> `./vcpkg install xxxx`

**Failure logs** 
-Cut and past the appropriate build messages from the console output.
-Please attach any additional failure logs mentioned in the console output.

**Additional context**
Add any other context about the problem here, such as what you have already tried to resolve the issue.

[install-x64-windows-dbg-out.log](https://github.com/microsoft/vcpkg/files/5087092/install-x64-windows-dbg-out.log)
[patch-x64-windows-0-err.log](https://github.com/microsoft/vcpkg/files/5087093/patch-x64-windows-0-err.log)
[patch-x64-windows-1-err.log](https://github.com/microsoft/vcpkg/files/5087094/patch-x64-windows-1-err.log)
[patch-x64-windows-2-err.log](https://github.com/microsoft/vcpkg/files/5087095/patch-x64-windows-2-err.log)
[patch-x64-windows-3-err.log](https://github.com/microsoft/vcpkg/files/5087097/patch-x64-windows-3-err.log)
[patch-x64-windows-4-err.log](https://github.com/microsoft/vcpkg/files/5087099/patch-x64-windows-4-err.log)
[stdout-x64-windows.log](https://github.com/microsoft/vcpkg/files/5087102/stdout-x64-windows.log)
[config-x64-windows-out.log](https://github.com/microsoft/vcpkg/files/5087103/config-x64-windows-out.log)
JackBoosY commented 4 years ago
nvcc fatal   : Unsupported gpu architecture 'compute_30'

~Could you update your cmake to 3.18.2 and try again?~ I think you need to report this to the upstream.

See https://stackoverflow.com/questions/28691787/unsupported-gpu-architecture-compute-30-while-installing-gpu-tools-for-r

Thanks.

PhoebeHui commented 4 years ago

Duplicated to https://github.com/microsoft/vcpkg/issues/12620