Skip to content
This repository has been archived by the owner on Apr 24, 2022. It is now read-only.

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

Open
arthw opened this issue May 8, 2021 · 13 comments

Comments

@arthw
Copy link

arthw commented May 8, 2021

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.

arthw added a commit to arthw/ethminer that referenced this issue May 8, 2021
This PR is used to fix the issue error: downloading 'https://dl.bintray.com/boostorg/release/1.66.0/source/boost_1_66_0.7z' failed ethereum-mining#2290
The original hunter is ruslo/hunter is not maintained. The link of boost included in it is unavailable now.

So, update the cpp_pm/hunter to fix the boost link issue.
@kapoor7997
Copy link

kapoor7997 commented May 8, 2021

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
Copy link

zt-chen commented May 14, 2021

Try this change: 4734802

@RezaAhmadi0117
Copy link

RezaAhmadi0117 commented May 14, 2021

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
Copy link

Try this change: 4734802

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

@roidecologne
Copy link

The solution works perfectly. Please merge

@doctord919
Copy link

doctord919 commented May 20, 2021

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
Copy link

Worked for me

@carlosmmelo
Copy link

and why this hasnt being merged?

knockshore pushed a commit to knockshore/ethminer that referenced this issue Jul 12, 2021
@lodotek
Copy link

lodotek commented Jul 26, 2021

I guess this repo needs some more maintainers 🤔

@dchmelik
Copy link

I have this problem also. Is it merged yet?

@tamurajunichi
Copy link

Why hasn't it merged yet?

@sigkill
Copy link

sigkill commented Nov 10, 2021

same!

@se-amrtarek
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests