qqiangwu / cppsafe

Cpp lifetime safety profile static analyzer
MIT License
39 stars 1 forks source link

ConanException: Error downloading file https://github.com/fmtlib/fmt/releases/download/10.1.1/fmt-10.1.1.zip #37

Closed SteveLee123 closed 4 months ago

SteveLee123 commented 4 months ago

When I execute this command: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release

I'm running into this :

fmt/10.1.1: WARN: Trying to remove corrupted source folder
fmt/10.1.1: WARN: This can take a while for big packages
fmt/10.1.1: Calling source() in /home/fttx/.conan2/p/fmtfb3b1a5d1575d/s/src
fmt/10.1.1: WARN: network: Error downloading file https://github.com/fmtlib/fmt/releases/download/10.1.1/fmt-10.1.1.zip: 'HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /fmtlib/fmt/releases/download/10.1.1/fmt-10.1.1.zip (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1131)')))'
fmt/10.1.1: Waiting 5 seconds to retry...
fmt/10.1.1: WARN: network: Error downloading file https://github.com/fmtlib/fmt/releases/download/10.1.1/fmt-10.1.1.zip: 'HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /fmtlib/fmt/releases/download/10.1.1/fmt-10.1.1.zip (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1131)')))'
fmt/10.1.1: Waiting 5 seconds to retry...
ERROR: fmt/10.1.1: Error in source() method, line 77
        get(self, **self.conan_data["sources"][self.version], strip_root=True)
        ConanException: Error downloading file https://github.com/fmtlib/fmt/releases/download/10.1.1/fmt-10.1.1.zip: 'HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /fmtlib/fmt/releases/download/10.1.1/fmt-10.1.1.zip (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1131)')))'
CMake Error at cmake/conan.cmake:174 (message):
  Conan install failed='1'
Call Stack (most recent call first):
  cmake/conan.cmake:212 (conan_install)
  cmake/conan.cmake:230 (conan_setup)
  CMakeLists.txt:57 (include)

how can I fix that ?

qqiangwu commented 4 months ago

the title and the description you provide are two problems.

  1. for the llvm issue, maybe you can install llvm via your system package manager (e.g. brew/yum),and compile with it. see README for details
  2. for the fmt issue, it seems your certificate has some problems, try wget https://github.com/fmtlib/fmt/releases/download/10.1.1/fmt-10.1.1.zip and make sure it's okay. then retry cmake build.
SteveLee123 commented 4 months ago

I can wget this fmt-10.1.1.zip successfully.

but I still can not excuate this cmake -S . -B build -DCMAKE_BUILD_TYPE=Release this command successfully.

SteveLee123 commented 4 months ago

something I have to mention is that :

I have closed the conancenter's SSL Verify.

$ conan remote list
conancenter: https://center.conan.io [Verify SSL: False, Enabled: True]

because if I open this SSL Verify, I will run into an error at the beginning as below.

ERROR: Failed checking for binary 'fmt/10.1.1:cbdb02aa6358a51c3c1624a2b16892bd905a6a19' in remote 'conancenter': remote not available
ERROR: HTTPSConnectionPool(host='center.conan.io', port=443): Max retries exceeded with url: /v1/ping (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1131)')))

Unable to connect to remote conancenter=https://center.conan.io
1. Make sure the remote is reachable or,
2. Disable it with 'conan remote disable <remote>' or,
3. Use the '-nr/--no-remote' argument
Then try again.
CMake Error at cmake/conan.cmake:174 (message):
  Conan install failed='1'
Call Stack (most recent call first):
  cmake/conan.cmake:212 (conan_install)
  cmake/conan.cmake:230 (conan_setup)
  CMakeLists.txt:57 (include)

Seems that is the same reason lead to them. certification stuff. so weird , because I can git clone by https and wget a file by https.

SteveLee123 commented 4 months ago

manually download package (in Chinese): https://blog.csdn.net/cyujust/article/details/136484628