Comment
Author: Admin | 2025-04-28
Hello,I am trying to compile ethminer from source. I am running Windows 10, Visual Studio 2017, Cmake 3.19.5, strawberry perl 5.32.1.1 and cuda_11.2.r11.2. My GPU is a 1070 gtx.First, I cloned ethminer from this repo, ran git submodule update --init --recursive and then configured the compiling script as follows:@echo offsetlocalrem add MSVC in PATHrem call "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\Common7\Tools\VsMSBuildCmd.bat"call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsMSBuildCmd.bat"rem add Perl in PATH; it's needed for OpenSSL buildrem set "PERL_PATH=C:\Perl\perl\bin"set "PERL_PATH=C:\Strawberry\perl\bin"set "PATH=%PERL_PATH%;%PATH%"rem switch to ethminer's source foldercd "%~dp0\ethminer"if not exist "build" mkdir "build"rem For CUDA 9.x pass also `-T v140`cmake -G "Visual Studio 15 2017 Win64" -H. -Bbuild -DETHASHCL=OFF -DETHASHCUDA=ON -DAPICORE=ON -DBINKERN=OFF ..cmake --build . --config Release --target packageendlocalpauseAfter launching the script (takes a while the first time to configure, afterwards compilation takes no longer than few seconds before it fails) I get the following error: D:\ethminer\ethminer\libdevcore\Release\devcore.lib hwmon.vcxproj -> D:\ethminer\ethminer\libhwmon\Release\hwmon.libBuilding NVCC (Device) object libethash-cuda/CMakeFiles/ethash-cuda.dir/Release/ethash-cuda_generated_ethash_cuda_miner_kernel.cu.objCUSTOMBUILD : nvcc warning : The 'compute_35', 'compute_37', 'compute_50', 'sm_35', 'sm_37' and 'sm_50' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning). [D:\ethminer\ethminer\libethash-cuda\ethash-cuda.vcxproj] CMake Error at ethash-cuda_generated_ethash_cuda_miner_kernel.cu.obj.Release.cmake:220 (message): Error generating D:/ethminer/ethminer/libethash-cuda/CMakeFiles/ethash-cuda.dir//Release/ethash-cuda_generated_ethash_cuda_miner_kernel.cu.objC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: "cmd.exe" exited with code 1. [D:\ethminer\ethminer\libethash-cuda\ethash-cuda.vcxproj]">[...]-- Configuring done-- Generating done-- Build files have been written to: D:/ethminer/ethminer/buildMicrosoft (R) Build Engine version 15.9.20+g88f5fadfbe for .NET FrameworkCopyright (C) Microsoft Corporation. All rights reserved. devcore.vcxproj -> D:\ethminer\ethminer\libdevcore\Release\devcore.lib hwmon.vcxproj -> D:\ethminer\ethminer\libhwmon\Release\hwmon.libBuilding NVCC (Device) object libethash-cuda/CMakeFiles/ethash-cuda.dir/Release/ethash-cuda_generated_ethash_cuda_miner_kernel.cu.objCUSTOMBUILD : nvcc warning : The 'compute_35', 'compute_37', 'compute_50', 'sm_35', 'sm_37' and 'sm_50' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning). [D:\ethminer\ethminer\libethash-cuda\ethash-cuda.vcxproj] CMake Error at ethash-cuda_generated_ethash_cuda_miner_kernel.cu.obj.Release.cmake:220 (message): Error generating D:/ethminer/ethminer/libethash-cuda/CMakeFiles/ethash-cuda.dir//Release/ethash-cuda_generated_ethash_cuda_miner_kernel.cu.objC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: "cmd.exe" exited with code 1. [D:\ethminer\ethminer\libethash-cuda\ethash-cuda.vcxproj]sidenote: In the compiling tutorial it indicates Make sure you install MSVC 2015 toolkit (v140).. I have tried using v141 (higher) and v140 together but no luck. If I disable v141 then the compilation fails with this error nvcc fatal : nvcc cannot find a supported version of Microsoft Visual Studio. Only the versions between 2017 and 20 19 (inclusive) are supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at yo ur own risk.Anybody knows how I can fix this? Is it related to the spaces in the CUDA path installation?Thank you very much in advance for your help. If there is any other information I can supply let me know.Esteban
Add Comment