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

Can't install from AUR #2378

Open
ahmedselim2017 opened this issue Nov 6, 2021 · 2 comments
Open

Can't install from AUR #2378

ahmedselim2017 opened this issue Nov 6, 2021 · 2 comments

Comments

@ahmedselim2017
Copy link

Describe the bug
When I tried to install using aur/ethminer the installation fails.
To Reproduce
Steps to reproduce the behavior:

  1. Search AUR for autr/ethminer
  2. Try to install using an AUR Helper
  3. See the error

Expected behavior
It should have been installed without an error.

Screenshots (Optional)
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • Operating System: Arch Linux 5.14.15-arch1-1
  • Hardware GTX 3060 Mobile

Additional context
Also the docs site (http://docs.hunter.sh/en/latest/reference/errors/error.external.build.failed.html) that mentioned inside the cmake output isn't loader either.
cmake output:

Submodule path 'cmake/cable': checked out '3e54f9751f50a3b6265c22402dcd5ae85ef701d4'
-- [cable ] Cable 0.2.14 initialized
-- The C compiler identification is GNU 11.1.0
-- The CXX compiler identification is GNU 11.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- [cable ] Build type: Release
-- [hunter] Calculating Toolchain-SHA1
-- [hunter] Calculating Config-SHA1
-- [hunter] HUNTER_ROOT: /home/ahmedselimuzum/.hunter
-- [hunter] [ Hunter-ID: 4b894e1 | Toolchain-ID: 71d0fdd | Config-ID: cb395ce ]
-- [hunter] BOOST_ROOT: /home/ahmedselimuzum/.hunter/_Base/4b894e1/71d0fdd/cb395ce/Install (ver.: 1.66.0)
-- [hunter] Building Boost
loading initial cache file /home/ahmedselimuzum/.hunter/_Base/4b894e1/71d0fdd/cb395ce/cache.cmake
loading initial cache file /home/ahmedselimuzum/.hunter/_Base/4b894e1/71d0fdd/cb395ce/Build/Boost/args.cmake
-- The C compiler identification is GNU 11.1.0
-- The CXX compiler identification is GNU 11.1.0
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ahmedselimuzum/.hunter/_Base/4b894e1/71d0fdd/cb395ce/Build/Boost/Build
[ 12%] Creating directories for 'Boost'
[ 25%] Performing download step (download, verify and extract) for 'Boost'
-- verifying file...
       file='/home/ahmedselimuzum/.hunter/_Base/Download/Boost/1.66.0/075d0b4/boost_1_66_0.7z'
-- SHA1 hash of
    /home/ahmedselimuzum/.hunter/_Base/Download/Boost/1.66.0/075d0b4/boost_1_66_0.7z
  does not match expected value
    expected: '075d0b43980614054b1f1bafd189f863bba6600e'
      actual: 'da39a3ee5e6b4b0d3255bfef95601890afd80709'
-- File already exists but hash mismatch. Removing...
-- Downloading...
   dst='/home/ahmedselimuzum/.hunter/_Base/Download/Boost/1.66.0/075d0b4/boost_1_66_0.7z'
   timeout='none'
   inactivity timeout='none'
-- Using src='https://dl.bintray.com/boostorg/release/1.66.0/source/boost_1_66_0.7z'
CMake Error at Build/Boost-prefix/src/Boost-stamp/download-Boost.cmake:170 (message):
  Each download failed!

    error: downloading 'https://dl.bintray.com/boostorg/release/1.66.0/source/boost_1_66_0.7z' failed
          status_code: 22
          status_string: "HTTP response code said error"
          log:
          --- LOG BEGIN ---
            Trying 34.212.193.227:443...

  Connected to dl.bintray.com (34.212.193.227) port 443 (#0)

  ALPN, offering h2

  ALPN, offering http/1.1

  successfully set certificate verify locations:

   CAfile: /etc/ssl/certs/ca-certificates.crt
   CApath: none

  [5 bytes data]

  TLSv1.3 (OUT), TLS handshake, Client hello (1):

  [512 bytes data]

  [5 bytes data]

  TLSv1.3 (IN), TLS handshake, Server hello (2):

  [102 bytes data]

  NPN, negotiated HTTP1.1

  [5 bytes data]

  TLSv1.2 (IN), TLS handshake, Certificate (11):

  [4011 bytes data]

  [5 bytes data]

  TLSv1.2 (IN), TLS handshake, Server key exchange (12):

  [333 bytes data]

  [5 bytes data]

  TLSv1.2 (IN), TLS handshake, Server finished (14):

  [4 bytes data]

  [5 bytes data]

  TLSv1.2 (OUT), TLS handshake, Client key exchange (16):

  [70 bytes data]

  [5 bytes data]

  TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):

  [1 bytes data]

  [5 bytes data]

  TLSv1.2 (OUT), TLS handshake, Next protocol (67):

  [36 bytes data]

  [5 bytes data]

  TLSv1.2 (OUT), TLS handshake, Finished (20):

  [16 bytes data]

  [5 bytes data]

  [5 bytes data]

  TLSv1.2 (IN), TLS handshake, Finished (20):

  [16 bytes data]

  SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256

  ALPN, server did not agree to a protocol

  Server certificate:

   subject: CN=*.bintray.com
   start date: Oct 25 00:00:00 2021 GMT
   expire date: Nov 25 23:59:59 2022 GMT
   subjectAltName: host "dl.bintray.com" matched cert's "*.bintray.com"
   issuer: C=US; O=DigiCert Inc; CN=GeoTrust TLS DV RSA Mixed SHA256 2020 CA-1
   SSL certificate verify ok.

  [5 bytes data]

  GET /boostorg/release/1.66.0/source/boost_1_66_0.7z HTTP/1.1

  Host: dl.bintray.com

  User-Agent: curl/7.79.1

  Accept: */*



  [5 bytes data]

  Mark bundle as not supporting multiuse

  HTTP/1.1 403 Forbidden

  Server: nginx

  Date: Sat, 06 Nov 2021 11:58:21 GMT

  Content-Type: text/plain

  Content-Length: 10

  Connection: keep-alive

  ETag: "578ccc8e-a"

  The requested URL returned error: 403

  Closing connection 0

  [5 bytes data]

  TLSv1.2 (OUT), TLS alert, close notify (256):

  [2 bytes data]



          --- LOG END ---




make[2]: *** [CMakeFiles/Boost.dir/build.make:99: Boost-prefix/src/Boost-stamp/Boost-download] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/Boost.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

[hunter ** FATAL ERROR **] Build step failed (dir: /home/ahmedselimuzum/.hunter/_Base/4b894e1/71d0fdd/cb395ce/Build/Boost
[hunter ** FATAL ERROR **] [Directory:/home/ahmedselimuzum/.hunter/_Base/Download/Hunter/0.23.112/4b894e1/Unpacked/cmake/projects/Boost]

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

CMake Error at /home/ahmedselimuzum/.hunter/_Base/Download/Hunter/0.23.112/4b894e1/Unpacked/cmake/modules/hunter_error_page.cmake:12 (message):
Call Stack (most recent call first):
  /home/ahmedselimuzum/.hunter/_Base/Download/Hunter/0.23.112/4b894e1/Unpacked/cmake/modules/hunter_fatal_error.cmake:20 (hunter_error_page)
  /home/ahmedselimuzum/.hunter/_Base/Download/Hunter/0.23.112/4b894e1/Unpacked/cmake/modules/hunter_download.cmake:614 (hunter_fatal_error)
  /home/ahmedselimuzum/.hunter/_Base/Download/Hunter/0.23.112/4b894e1/Unpacked/cmake/projects/Boost/hunter.cmake:381 (hunter_download)
  /home/ahmedselimuzum/.hunter/_Base/Download/Hunter/0.23.112/4b894e1/Unpacked/cmake/modules/hunter_add_package.cmake:62 (include)
  CMakeLists.txt:60 (hunter_add_package)
@Megaguy32
Copy link

Megaguy32 commented Nov 11, 2021

Same here.
Not able to fix the issue, but provide extra, hopefully relevant info.

There's a workaround - https://aur.archlinux.org/packages/ethminer/#comment-808393
manually downloading the boost libraries into a directory.

I tried looking at the AUR PKGBUILD, not really a mistake to correct in there, seems the problem lies in the cmakefile (idk if correct term, not familiar with hunter or cmake).
There is a native boost dev package to install in Arch Linux too, but it doesn't seem the hunter program is integrating with it.

@amr-abdelghafar
Copy link
Contributor

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

3 participants