Skip to content

jfrog.io closed the download URIs for Boost libraries #770

Description

@twdragon

As jfrog.io extended URIs are now producing 409 Conflict error or redirected to the landing page, Hunter is not available anymore to download Boost sources from these URIs. Tests were performed from GARR eduroam network, so the issue will affect at least most of the European universities' networks.

Activating the link https://boostorg.jfrog.io/artifactory/main/release/1.86.0/source/boost_1_86_0.tar.gz
leads to a landing page:
img

It seem we need to implement a fallback to Sourceforge. To prove this possibility, I used this URI: https://altushost-swe.dl.sourceforge.net/project/boost/boost/1.86.0/boost_1_86_0.tar.gz

Test buildlog

-- [hunter] BOOST_ROOT: /home/twdragon/src/libp2p-cpp/build/hunter/_Base/3fb5849/abe67bf/251b1a7/Install (ver.: 1.86.0)
-- [hunter] Building Boost
loading initial cache file /home/twdragon/src/libp2p-cpp/build/hunter/_Base/3fb5849/abe67bf/251b1a7/cache.cmake
loading initial cache file /home/twdragon/src/libp2p-cpp/build/hunter/_Base/3fb5849/abe67bf/251b1a7/Build/Boost/args.cmake
-- The C compiler identification is Clang 15.0.0
-- The CXX compiler identification is Clang 15.0.0
-- Check for working C compiler: /util/llvm/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /util/llvm/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/twdragon/src/libp2p-cpp/build/hunter/_Base/3fb5849/abe67bf/251b1a7/Build/Boost/Build
[ 12%] Creating directories for 'Boost'
[ 25%] Performing download step (download, verify and extract) for 'Boost'
-- Downloading...
   dst='/home/twdragon/src/libp2p-cpp/build/hunter/_Base/Download/Boost/1.86.0/c248c60/boost_1_86_0.tar.gz'
   timeout='none'
   inactivity timeout='none'
-- Using src='https://boostorg.jfrog.io/artifactory/main/release/1.86.0/source/boost_1_86_0.tar.gz'
-- [download 100% complete]
-- [download 9% complete]
-- [download 22% complete]
-- [download 34% complete]
-- [download 46% complete]
-- [download 58% complete]
-- [download 70% complete]
-- [download 82% complete]
-- [download 94% complete]
-- [download 100% complete]
-- verifying file...
       file='/home/twdragon/src/libp2p-cpp/build/hunter/_Base/Download/Boost/1.86.0/c248c60/boost_1_86_0.tar.gz'
-- SHA1 hash of
    /home/twdragon/src/libp2p-cpp/build/hunter/_Base/Download/Boost/1.86.0/c248c60/boost_1_86_0.tar.gz
  does not match expected value
    expected: 'c248c60e2ce74c77cae3f678ede2f65491c4d815'
      actual: '7694f0b22c5217c4a12cd0fc1b4f74758b9d3fa3'
-- Hash mismatch, removing...
-- Using src='https://boostorg.jfrog.io/artifactory/main/release/1.86.0/source/boost_1_86_0.tar.gz'
-- [download 100% complete]
-- [download 9% complete]
-- [download 22% complete]
-- [download 34% complete]
-- [download 46% complete]
-- [download 58% complete]
-- [download 70% complete]
-- [download 82% complete]
-- [download 94% complete]
-- [download 100% complete]
-- verifying file...
       file='/home/twdragon/src/libp2p-cpp/build/hunter/_Base/Download/Boost/1.86.0/c248c60/boost_1_86_0.tar.gz'
-- SHA1 hash of
    /home/twdragon/src/libp2p-cpp/build/hunter/_Base/Download/Boost/1.86.0/c248c60/boost_1_86_0.tar.gz
  does not match expected value
    expected: 'c248c60e2ce74c77cae3f678ede2f65491c4d815'
      actual: '7694f0b22c5217c4a12cd0fc1b4f74758b9d3fa3'
-- Hash mismatch, removing...
-- Using src='https://boostorg.jfrog.io/artifactory/main/release/1.86.0/source/boost_1_86_0.tar.gz'
-- [download 100% complete]
-- [download 9% complete]
-- [download 22% complete]
-- [download 34% complete]
-- [download 46% complete]
-- [download 58% complete]
-- [download 70% complete]
-- [download 82% complete]
-- [download 94% complete]
-- [download 100% complete]
-- verifying file...
       file='/home/twdragon/src/libp2p-cpp/build/hunter/_Base/Download/Boost/1.86.0/c248c60/boost_1_86_0.tar.gz'
-- SHA1 hash of
    /home/twdragon/src/libp2p-cpp/build/hunter/_Base/Download/Boost/1.86.0/c248c60/boost_1_86_0.tar.gz
  does not match expected value
    expected: 'c248c60e2ce74c77cae3f678ede2f65491c4d815'
      actual: '7694f0b22c5217c4a12cd0fc1b4f74758b9d3fa3'
-- Hash mismatch, removing...
-- Using src='https://boostorg.jfrog.io/artifactory/main/release/1.86.0/source/boost_1_86_0.tar.gz'
-- [download 100% complete]
-- [download 9% complete]
-- [download 22% complete]
-- [download 34% complete]
-- [download 46% complete]
-- [download 58% complete]
-- [download 70% complete]
-- [download 82% complete]
-- [download 94% complete]
-- [download 100% complete]
-- verifying file...
       file='/home/twdragon/src/libp2p-cpp/build/hunter/_Base/Download/Boost/1.86.0/c248c60/boost_1_86_0.tar.gz'
-- SHA1 hash of
    /home/twdragon/src/libp2p-cpp/build/hunter/_Base/Download/Boost/1.86.0/c248c60/boost_1_86_0.tar.gz
  does not match expected value
    expected: 'c248c60e2ce74c77cae3f678ede2f65491c4d815'
      actual: '7694f0b22c5217c4a12cd0fc1b4f74758b9d3fa3'
-- Hash mismatch, removing...
-- Using src='https://boostorg.jfrog.io/artifactory/main/release/1.86.0/source/boost_1_86_0.tar.gz'
-- [download 100% complete]
-- [download 9% complete]
-- [download 22% complete]
-- [download 34% complete]
-- [download 46% complete]
-- [download 58% complete]
-- [download 70% complete]
-- [download 82% complete]
-- [download 94% complete]
-- [download 100% complete]
-- verifying file...
       file='/home/twdragon/src/libp2p-cpp/build/hunter/_Base/Download/Boost/1.86.0/c248c60/boost_1_86_0.tar.gz'
-- SHA1 hash of
    /home/twdragon/src/libp2p-cpp/build/hunter/_Base/Download/Boost/1.86.0/c248c60/boost_1_86_0.tar.gz
  does not match expected value
    expected: 'c248c60e2ce74c77cae3f678ede2f65491c4d815'
      actual: '7694f0b22c5217c4a12cd0fc1b4f74758b9d3fa3'
-- Hash mismatch, removing...
-- Using src='https://boostorg.jfrog.io/artifactory/main/release/1.86.0/source/boost_1_86_0.tar.gz'
-- [download 100% complete]
-- [download 9% complete]
-- [download 22% complete]
-- [download 34% complete]
-- [download 46% complete]
-- [download 58% complete]
-- [download 70% complete]
-- [download 82% complete]
-- [download 94% complete]
-- [download 100% complete]
-- verifying file...
       file='/home/twdragon/src/libp2p-cpp/build/hunter/_Base/Download/Boost/1.86.0/c248c60/boost_1_86_0.tar.gz'
-- SHA1 hash of
    /home/twdragon/src/libp2p-cpp/build/hunter/_Base/Download/Boost/1.86.0/c248c60/boost_1_86_0.tar.gz
  does not match expected value
    expected: 'c248c60e2ce74c77cae3f678ede2f65491c4d815'
      actual: '7694f0b22c5217c4a12cd0fc1b4f74758b9d3fa3'
-- Hash mismatch, removing...
CMake Error at Build/Boost-prefix/src/Boost-stamp/download-Boost.cmake:170 (message):
  Each download failed!

    
    


gmake[2]: *** [CMakeFiles/Boost.dir/build.make:103: Boost-prefix/src/Boost-stamp/Boost-download] Ошибка 1
gmake[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/Boost.dir/all] Ошибка 2
gmake: *** [Makefile:91: all] Ошибка 2

[hunter ** FATAL ERROR **] Build step failed (dir: /home/twdragon/src/libp2p-cpp/build/hunter/_Base/3fb5849/abe67bf/251b1a7/Build/Boost
[hunter ** FATAL ERROR **] [Directory:/home/twdragon/src/libp2p-cpp/build/hunter/_Base/Download/Hunter/0.25.3-qdrvm23/3fb5849/Unpacked/cmake/projects/Boost]

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

CMake Error at build/hunter/_Base/Download/Hunter/0.25.3-qdrvm23/3fb5849/Unpacked/cmake/modules/hunter_error_page.cmake:12 (message):
Call Stack (most recent call first):
  build/hunter/_Base/Download/Hunter/0.25.3-qdrvm23/3fb5849/Unpacked/cmake/modules/hunter_fatal_error.cmake:20 (hunter_error_page)
  build/hunter/_Base/Download/Hunter/0.25.3-qdrvm23/3fb5849/Unpacked/cmake/modules/hunter_download.cmake:623 (hunter_fatal_error)
  build/hunter/_Base/Download/Hunter/0.25.3-qdrvm23/3fb5849/Unpacked/cmake/projects/Boost/hunter.cmake:497 (hunter_download)
  build/hunter/_Base/Download/Hunter/0.25.3-qdrvm23/3fb5849/Unpacked/cmake/modules/hunter_add_package.cmake:62 (include)
  cmake/dependencies.cmake:14 (hunter_add_package)
  CMakeLists.txt:54 (include)


-- Configuring incomplete, errors occurred!

Activity

neelfirst commented on Jan 6, 2025

@neelfirst

From your logs, it doesn't look like you were able to direct Hunter to use the new URL. I'm running into the same issue, in my CMakeLists I have

hunter_config(Boost
    URL  "https://archives.boost.io/release/1.83.0/source/boost_1_83_0.tar.bz2"
    SHA1 "75b1f569134401d178ad2aaf97a2993898dd7ee3"
)
hunter_add_package(Boost)
find_package(Boost CONFIG REQUIRED)

And am still trying to get Hunter to recognize the URL

twdragon commented on Jan 6, 2025

@twdragon
Author

@neelfirst I documented only the error here, but the URL I used in hunter_config worked after deleting the cache folders both for CMake and HUNTER_ROOT.

neelfirst commented on Jan 6, 2025

@neelfirst

Got it, I had to place this in hunter's config.cmake. Thanks 🙏

TheNetos commented on Jan 15, 2025

@TheNetos

Boost have same issue every year 😃

boostorg/boost#842
boostorg/boost#996 (comment)

the url is now:

https://archives.boost.io/

sdxqw commented on Jan 18, 2025

@sdxqw

Hello any fixes to make it work again?

TheNetos commented on Jan 22, 2025

@TheNetos

sdxqw commented on Jan 22, 2025

@sdxqw

TheNetos commented on Jan 22, 2025

@TheNetos

Yep, see #771

UPD:

Try this

HunterGate(
    URL "https://github.com/cpp-pm/hunter/archive/ead00a62a9a05d36f3d376889360b379d9046ba1.tar.gz"
    SHA1 "7456937b43b9071498ba521fda9daafd931baa4a"
    ...
)

sdxqw commented on Jan 26, 2025

@sdxqw

@TheNetos Hello, got any idea why when I want to add any components to Boost it start to open my random ides without any sense any help please, contact me on discord: sdxqw, I prefer instead of waiting days

TheNetos commented on Jan 26, 2025

@TheNetos

got any idea why when I want to add any components to Boost it start to open my random ides without any sense

What does it look like?
When you configure or build one of the Boost components, does it just open the IDE without opening any of the files inside?

NeroBurner commented on Apr 29, 2025

@NeroBurner

new versions and new URLs in #775

added a commit that references this issue on Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions