ethereum-mining / ethminer

Ethereum miner with OpenCL, CUDA and stratum support
GNU General Public License v3.0
5.98k stars 2.29k forks source link

error: downloading 'https://dl.bintray.com/boostorg/release/1.66.0/source/boost_1_66_0.7z' failed #2290

Open arthw opened 3 years ago

arthw commented 3 years ago

When build, there is error to prepare hunter:

error: downloading 'https://dl.bintray.com/boostorg/release/1.66.0/source/boost_1_66_0.7z' failed

To Reproduce Steps to reproduce the behavior:

  1. Go to build
  2. run: cmake .. -DETHASHCL=OFF -DBINKERN=OFF -DUSE_SYS_OPENCL=OFF -DETHASHCUDA=ON

ethminer still use ruslo/hunter which is using old download link of boost. The download link of boost is out of work now. It's the root cause.

Since the ruslo/hunter is not maintained. It's recommended to use https://github.com/cpp-pm/hunter. The link of boost in cpp-pm/hunter is updated with available link.

kapoor7997 commented 3 years ago

As ruslo/hunter is obsolete we replace this with cpp-pm/hunter HunterGate( URL "https://github.com/cpp-pm/hunter/archive/v0.23.300.tar.gz" SHA1 "1151d539465d9cdbc880ee30f794864aec11c448" LOCAL )

Please find below mentioned piece of CMakeList.txt. But after this change we ended up with below mentioned error:

CMake Error at src/jsonrpccpp/CMakeLists.txt:144 (add_library): Target "client" links to target "intsizeof::intsizeof" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing?

-- Generating done CMake Generate step failed. Build files cannot be regenerated correctly. CMakeFiles/libjson-rpc-cpp-Release.dir/build.make:94: recipe for target 'libjson-rpc-cpp-Release-prefix/src/libjson-rpc-cpp-Release-stamp/libjson-rpc-cpp-Release-configure' failed make[2]: [libjson-rpc-cpp-Release-prefix/src/libjson-rpc-cpp-Release-stamp/libjson-rpc-cpp-Release-configure] Error 1 make[2]: Leaving directory '/home/s2600bottom/.hunter/_Base/1151d53/53fea1f/4646e4e/Build/libjson-rpc-cpp/Build' CMakeFiles/Makefile2:85: recipe for target 'CMakeFiles/libjson-rpc-cpp-Release.dir/all' failed make[1]: [CMakeFiles/libjson-rpc-cpp-Release.dir/all] Error 2 make[1]: Leaving directory '/home/s2600bottom/.hunter/_Base/1151d53/53fea1f/4646e4e/Build/libjson-rpc-cpp/Build' Makefile:93: recipe for target 'all' failed make: *** [all] Error 2

[hunter FATAL ERROR ] Build step failed (dir: /home/s2600bottom/.hunter/_Base/1151d53/53fea1f/4646e4e/Build/libjson-rpc-cpp [hunter FATAL ERROR ] [Directory:/home/s2600bottom/.hunter/_Base/Download/Hunter/0.23.300/1151d53/Unpacked/cmake/projects/libjson-rpc-cpp]

------------------------------ ERROR ----------------------------- https://hunter.readthedocs.io/en/latest/reference/errors/error.external.build.failed.html

CMake Error at /home/s2600bottom/.hunter/_Base/Download/Hunter/0.23.300/1151d53/Unpacked/cmake/modules/hunter_error_page.cmake:12 (message): Call Stack (most recent call first): /home/s2600bottom/.hunter/_Base/Download/Hunter/0.23.300/1151d53/Unpacked/cmake/modules/hunter_fatal_error.cmake:20 (hunter_error_page) /home/s2600bottom/.hunter/_Base/Download/Hunter/0.23.300/1151d53/Unpacked/cmake/modules/hunter_download.cmake:623 (hunter_fatal_error) /home/s2600bottom/.hunter/_Base/Download/Hunter/0.23.300/1151d53/Unpacked/cmake/projects/libjson-rpc-cpp/hunter.cmake:61 (hunter_download) /home/s2600bottom/.hunter/_Base/Download/Hunter/0.23.300/1151d53/Unpacked/cmake/modules/hunter_add_package.cmake:62 (include) CMakeLists.txt:68 (hunter_add_package)

-- Configuring incomplete, errors occurred! See also "/opt/pkg/hostSide/ethminer-fpga/CMakeFiles/CMakeOutput.log".

Anobody has similar issue??? Any Fixes!!!!!!!!!!!!!!!

zt-chen commented 3 years ago

Try this change: https://github.com/ethereum-mining/ethminer/pull/2288/commits/47348022be371df97ed1d8535bcb3969a085f60a

RezaAhmadi0117 commented 3 years ago

its work for me: 1 - after make build directory use cmake .. to make .hunter folder in home directory 2 - download boost_1_66_0.7z from this link and put it on .hunter folder (check cmake logs to find location for verify boost files, in my case : ~/.hunter/_Base/Download/Boost/1.66.0/075d0b4 ) 3 - after copy .7z file clear all file in build directory and try cmake .. again

zarmstrong commented 3 years ago

Try this change: 4734802

^^ This is the only change needed to get past this step

roidecologne commented 3 years ago

The solution works perfectly. Please merge

doctord919 commented 3 years ago

1. git clone https://github.com/ethereum-mining/ethminer.git cd ethminer git submodule update --init --recursive 2. edit ethminer/cmake/Hunter/config.cmake -hunter_config(Boost VERSION 1.66.0) +hunter_config(Boost VERSION 1.67.0) or may stay 1.66.0 or may 1.xx.0 3. create e.bat @echo off setlocal call "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\Common7\Tools\VsMSBuildCmd.bat" set "PERL_PATH=C:\Perl\perl\bin" set "PATH=%PERL_PATH%;%PATH%" if not exist "build\" mkdir "build\" cmake -G "Visual Studio 16 2019" -H. -Bbuild -DETHASHCL=ON -DETHASHCUDA=ON -DAPICORE=ON -DHUNTER_ENABLED=ON -DBINKERN=OFF .. cmake --build . --config Release --target package endlocal pause run and get [hunter FATAL ERROR ] Version not found: 1.67.0. Please check 'hunter_config' command. [hunter FATAL ERROR ] [Directory:C:/.hunter/_Base/Download/Hunter/0.23.112/4b894e1/Unpacked/cmake/projects/Boost] 4. edit C:.hunter_Base\Download\Hunter\0.23.112\4b894e1\Unpacked\cmake\projects\Boost\hunter.cmake add next -set(_hunter_boost_base_url "https://dl.bintray.com/boostorg/release") +set(_hunter_boost_base_url "https://boostorg.jfrog.io/artifactory/main/release") +hunter_add_version( PACKAGE_NAME Boost VERSION "1.67.0" URL "${_hunter_boost_base_url}/1.67.0/source/boost_1_67_0.7z" SHA1 64c278c23defe155e630a307ae2c0615348b14b3 )

How get SHA1 for boost_1.67.0: a) boost download from https://www.boost.org/users/history/ b) in powershell cd ...where_download_boost (Get-FileHash boost_1_67_0.7z -Algorithm SHA1).Hash.ToLower() 5. run e.bat again

free-soellingeraj commented 3 years ago

Worked for me

carlosmmelo commented 3 years ago

and why this hasnt being merged?

lodotek commented 3 years ago

I guess this repo needs some more maintainers 🤔

dchmelik commented 3 years ago

I have this problem also. Is it merged yet?

tamurajunichi commented 3 years ago

Why hasn't it merged yet?

sigkill commented 3 years ago

same!

amrtarek-dev commented 2 years ago

I have solved it here #2413 by updating the hunter to the working version All tests are passed, it just needs a review to merge