ethereum / retesteth

testeth via RPC. Test run, generation by t8ntool protocol
http://retesteth.ethdevops.io/
GNU General Public License v3.0
113 stars 75 forks source link

CMake build command failing on downloading boost #134

Closed afmsavage closed 3 years ago

afmsavage commented 3 years ago

Hey there, not much use on troubleshooting this as CPP and Cmake are comlpetely foreign to me, but when trying to build retesteth, it is failing on what appears to be downloading the Boost package.

Tried on both my laptop and a Docker container just to make sure. Same error on both.

Machine - MacOSX and Ubuntu 20.04 CMake ver: 3.20.3 on mac and 3.16.3 on Ubuntu

-- Configuring done
-- Generating done
-- Build files have been written to: /root/.hunter/_Base/c4cfcc0/96f6fc4/2e151bc/Build/Boost/Build
Scanning dependencies of target Boost
[ 12%] Creating directories for 'Boost'
[ 25%] Performing download step (download, verify and extract) for 'Boost'
-- Downloading...
   dst='/root/.hunter/_Base/Download/Boost/1.65.1/4a5b0c3/boost_1_65_1.tar.bz2'
   timeout='none'
-- Using src='https://dl.bintray.com/boostorg/release/1.65.1/source/boost_1_65_1.tar.bz2'
-- Retrying...
-- Using src='https://dl.bintray.com/boostorg/release/1.65.1/source/boost_1_65_1.tar.bz2'
-- Retry after 5 seconds (attempt #2) ...
-- Using src='https://dl.bintray.com/boostorg/release/1.65.1/source/boost_1_65_1.tar.bz2'
-- Retry after 5 seconds (attempt #3) ...
-- Using src='https://dl.bintray.com/boostorg/release/1.65.1/source/boost_1_65_1.tar.bz2'
-- Retry after 15 seconds (attempt #4) ...
-- Using src='https://dl.bintray.com/boostorg/release/1.65.1/source/boost_1_65_1.tar.bz2'
-- Retry after 60 seconds (attempt #5) ...
-- Using src='https://dl.bintray.com/boostorg/release/1.65.1/source/boost_1_65_1.tar.bz2'
CMake Error at Build/Boost-prefix/src/Boost-stamp/download-Boost.cmake:159 (message):
  Each download failed!

    error: downloading 'https://dl.bintray.com/boostorg/release/1.65.1/source/boost_1_65_1.tar.bz2' failed
         status_code: 22
         status_string: "HTTP response code said error"
         log:
         --- LOG BEGIN ---
           Trying 34.214.237.80:443...

Repeats that download error a few times and this is the bottom of the log

[hunter ** FATAL ERROR **] Build step failed (dir: /root/.hunter/_Base/c4cfcc0/96f6fc4/2e151bc/Build/Boost
[hunter ** FATAL ERROR **] [Directory:/root/.hunter/_Base/Download/Hunter/0.23.44/c4cfcc0/Unpacked/cmake/projects/Boost]

------------------------------ WIKI -------------------------------
    https://github.com/ruslo/hunter/wiki/error.external.build.failed
-------------------------------------------------------------------

CMake Error at /root/.hunter/_Base/Download/Hunter/0.23.44/c4cfcc0/Unpacked/cmake/modules/hunter_wiki.cmake:12 (message):
Call Stack (most recent call first):
  /root/.hunter/_Base/Download/Hunter/0.23.44/c4cfcc0/Unpacked/cmake/modules/hunter_fatal_error.cmake:20 (hunter_wiki)
  /root/.hunter/_Base/Download/Hunter/0.23.44/c4cfcc0/Unpacked/cmake/modules/hunter_download.cmake:614 (hunter_fatal_error)
  /root/.hunter/_Base/Download/Hunter/0.23.44/c4cfcc0/Unpacked/cmake/projects/Boost/hunter.cmake:370 (hunter_download)
  /root/.hunter/_Base/Download/Hunter/0.23.44/c4cfcc0/Unpacked/cmake/modules/hunter_add_package.cmake:62 (include)
  CMakeLists.txt:22 (hunter_add_package)

-- Configuring incomplete, errors occurred!
See also "/root/Ethereum/retesteth/build/CMakeFiles/CMakeOutput.log".
root@81168d9ade21:~/Ethereum/retesteth/build# cmake --version
cmake version 3.16.3

CMake suite maintained and supported by Kitware (kitware.com/cmake).
root@81168d9ade21:~/Ethereum/retesteth/build# exit
exit
qbzzt commented 3 years ago

Try to have a directory with only Dockerfile and dretesteth.sh in it and do the build there. It fixed it for me (and I updated the tutorial)

winsvega commented 3 years ago

We fixed this by pointing out hunter to our local server

Make sure your docker is cleaned as much as possible

Remove everything from docker:

docker rmi retesteth:latest
docker image prune -a -f
docker container prune -f