Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[package] boost/1.71.0: ConanException: sha256 signature failed for 'boost_1_71_0.tar.bz2' file. #26428

Open
hungcaovu opened this issue Jan 20, 2025 · 2 comments
Assignees
Labels
bug Something isn't working requires reporter action Waiting on issue reporter

Comments

@hungcaovu
Copy link

Description

I can't build my project with this error:
#7 214.2 ERROR: boost/1.71.0: Error in source() method, line 845
#7 214.2 get(self, **self.conan_data["sources"][self.version],
#7 214.2 ConanException: sha256 signature failed for 'boost_1_71_0.tar.bz2' file.
#7 214.2 Provided signature: d73a8da01e8bf8c7eda40b4c84915071a8c8a0df4a6734537ddde4a8580524ee
#7 214.2 Computed signature: 79e6d3f986444e5a80afbeccdaf2d1c1cf964baa8d766d20859d653a16c39848

It did OK Oct 11 2024

As i checked, Many people hit this similar issue. But I am not sure how did they fix the isssue ? I tried whole day today to fix it.
Any hint or workaround please.

Many thanks.

Package and Environment Details

Package Name/Version: boost/1.71.0
Operating System+version: ubuntu:focal-20240530
Compiler+version: gcc
Conan version: conan 2.7.0
Python version: Python 3.10.12

Conan profile

class Titan(ConanFile):
name = "titan"
version = "1.0"
settings = ["compiler", "build_type", "arch"]
generators = "CMakeDeps", "CMakeToolchain"
exports_sources = "CMakeLists.txt", "src/", "include/", "proto_gen/", "protos_include/", "protos/*"

def requirements(self):
    self.requires("abseil/20230125.3")
    self.requires("bzip2/1.0.8")
    self.requires("c-ares/1.19.1")
    self.requires("crc32c/1.1.2")
    self.requires("libbacktrace/cci.20210118")
    self.requires("nlohmann_json/3.11.3")
    self.requires("re2/20230301")
    self.requires("zlib/1.2.13")
    self.requires("openssl/3.1.3")
    self.requires("libcurl/7.88.1")
    self.requires("protobuf/3.21.12")
    self.requires("gtest/1.10.0")
    self.requires("grpc/1.54.3")
    self.requires("google-cloud-cpp/2.12.0")
    self.requires("boost/1.71.0#56a29963d7c60a6d28f3c162c695bfc2")
    self.requires("redis-plus-plus/1.3.12")
    self.requires("jsoncpp/1.9.5")


def build_requirements(self):
    self.tool_requires("abseil/20220623.0")
    self.tool_requires("bzip2/1.0.8")
    self.tool_requires("c-ares/1.19.0")
    self.tool_requires("crc32c/1.1.1")
    self.tool_requires("libbacktrace/cci.20210118")
    self.tool_requires("nlohmann_json/3.10.0")
    self.tool_requires("re2/20230301")
    self.tool_requires("zlib/1.2.13")
    self.tool_requires("openssl/3.1.3")
    self.tool_requires("libcurl/7.88.1")
    self.tool_requires("protobuf/3.21.9")
    self.tool_requires("gtest/1.10.0")
    self.tool_requires("grpc/1.50.1")
    self.tool_requires("google-cloud-cpp/2.12.0")
    self.tool_requires("boost/1.71.0#56a29963d7c60a6d28f3c162c695bfc2")
    self.tool_requires("redis-plus-plus/1.3.12")
    self.tool_requires("jsoncpp/1.9.5")

Steps to reproduce

/bin/sh -c conan install /app --build=missing

Logs

#7 212.0 -- Installing: /root/.conan2/p/b/zstdb8a538befa20e/p/bin/unzstd
#7 212.0 -- Installing: /root/.conan2/p/b/zstdb8a538befa20e/p/bin/zstdgrep
#7 212.0 -- Installing: /root/.conan2/p/b/zstdb8a538befa20e/p/bin/zstdless
#7 212.0 -- Installing: /root/.conan2/p/b/zstdb8a538befa20e/p/share/man/man1/zstd.1
#7 212.0 -- Installing: /root/.conan2/p/b/zstdb8a538befa20e/p/share/man/man1/zstdcat.1
#7 212.0 -- Installing: /root/.conan2/p/b/zstdb8a538befa20e/p/share/man/man1/unzstd.1
#7 212.0 -- Installing: /root/.conan2/p/b/zstdb8a538befa20e/p/share/man/man1/zstdgrep.1
#7 212.0 -- Installing: /root/.conan2/p/b/zstdb8a538befa20e/p/share/man/man1/zstdless.1
#7 212.0 -- Installing: /root/.conan2/p/b/zstdb8a538befa20e/p/bin/zstdmt
#7 212.0
#7 212.0 zstd/1.5.5: package(): Packaged 3 '.h' files: zstd.h, zstd_errors.h, zdict.h
#7 212.0 zstd/1.5.5: package(): Packaged 7 files
#7 212.0 zstd/1.5.5: package(): Packaged 1 '.a' file: libzstd.a
#7 212.0 zstd/1.5.5: Created package revision 730be55d9785f4802466fe548e66bb90
#7 212.0 zstd/1.5.5: Package '6125b5e1b7febc4a66f0c77315e1376097872ef8' created
#7 212.0 zstd/1.5.5: Full package reference: zstd/1.5.5#1f239731dc45147c7fc2f54bfbde73df:6125b5e1b7febc4a66f0c77315e1376097872ef8#730be55d9785f4802466fe548e66bb90
#7 212.0 zstd/1.5.5: Package folder /root/.conan2/p/b/zstdb8a538befa20e/p
#7 212.0 pkgconf/2.1.0: WARN: The use of 'unix_path_legacy_compat' is deprecated in Conan 2.0 and does not perform path conversions. This is retained for compatibility with Conan 1.x and will be removed in a future version.
#7 212.0 pkgconf/2.1.0: WARN: The use of 'unix_path_legacy_compat' is deprecated in Conan 2.0 and does not perform path conversions. This is retained for compatibility with Conan 1.x and will be removed in a future version.
#7 212.0 pkgconf/2.1.0: WARN: The use of 'unix_path_legacy_compat' is deprecated in Conan 2.0 and does not perform path conversions. This is retained for compatibility with Conan 1.x and will be removed in a future version.
#7 212.0 pkgconf/2.1.0: WARN: The use of 'unix_path_legacy_compat' is deprecated in Conan 2.0 and does not perform path conversions. This is retained for compatibility with Conan 1.x and will be removed in a future version.
#7 212.0 pkgconf/2.1.0: WARN: The use of 'unix_path_legacy_compat' is deprecated in Conan 2.0 and does not perform path conversions. This is retained for compatibility with Conan 1.x and will be removed in a future version.
#7 212.0 pkgconf/2.1.0: WARN: The use of 'unix_path_legacy_compat' is deprecated in Conan 2.0 and does not perform path conversions. This is retained for compatibility with Conan 1.x and will be removed in a future version.
#7 212.0 pkgconf/2.1.0: WARN: The use of 'unix_path_legacy_compat' is deprecated in Conan 2.0 and does not perform path conversions. This is retained for compatibility with Conan 1.x and will be removed in a future version.
#7 212.0 pkgconf/2.2.0: WARN: The use of 'unix_path_legacy_compat' is deprecated in Conan 2.0 and does not perform path conversions. This is retained for compatibility with Conan 1.x and will be removed in a future version.
#7 212.0 pkgconf/2.2.0: WARN: The use of 'unix_path_legacy_compat' is deprecated in Conan 2.0 and does not perform path conversions. This is retained for compatibility with Conan 1.x and will be removed in a future version.
#7 212.0 pkgconf/2.2.0: WARN: The use of 'unix_path_legacy_compat' is deprecated in Conan 2.0 and does not perform path conversions. This is retained for compatibility with Conan 1.x and will be removed in a future version.
#7 212.0 pkgconf/2.2.0: WARN: The use of 'unix_path_legacy_compat' is deprecated in Conan 2.0 and does not perform path conversions. This is retained for compatibility with Conan 1.x and will be removed in a future version.
#7 212.1 boost/1.71.0: Sources downloaded from 'conancenter'
#7 212.1 boost/1.71.0: Calling source() in /root/.conan2/p/boosta84c6dca88e65/s/src
#7 214.2 ERROR: boost/1.71.0: Error in source() method, line 845
#7 214.2 get(self, **self.conan_data["sources"][self.version],
#7 214.2 ConanException: sha256 signature failed for 'boost_1_71_0.tar.bz2' file.
#7 214.2 Provided signature: d73a8da01e8bf8c7eda40b4c84915071a8c8a0df4a6734537ddde4a8580524ee
#7 214.2 Computed signature: 79e6d3f986444e5a80afbeccdaf2d1c1cf964baa8d766d20859d653a16c39848
#7 ERROR: process "/bin/sh -c conan install /app --build=missing" did not complete successfully: exit code: 1

@hungcaovu hungcaovu added the bug Something isn't working label Jan 20, 2025
@uilianries
Copy link
Member

Hello @hungcaovu !! It seems your case is duplicated with the issue #26397

Could you please confirm that this is the case? Regards!

@jcar87
Copy link
Contributor

jcar87 commented Jan 21, 2025

Please see #26397 (comment)

  • All published recipe revisions of boost 1.72 or higher have a fallback on a mirror if the first URL fails
  • All published recipe revisions of boost 1.78 or higher point to the new URL

your options are:

  • Use a newer boost version (>= 1.72 or >=1.78)
  • Modify the recipe locally and export it to your cache (and possibly upload to a local remote) so that the sources are downloaded from a differently URL

@uilianries uilianries added the requires reporter action Waiting on issue reporter label Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working requires reporter action Waiting on issue reporter
Projects
None yet
Development

No branches or pull requests

3 participants