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

failed to download from https://crates.io/api/v1/crates/zstd-sys/2.0.1+zstd.1.5.2/download #7743

Closed
darionyaphet opened this issue Jul 5, 2023 · 6 comments
Assignees
Labels
type/question The issue belongs to a question.

Comments

@darionyaphet
Copy link

General Question

When I build the source code with the following command, ninja tiflash , an error is reported.

error: failed to download from `https://crates.io/api/v1/crates/zstd-sys/2.0.1+zstd.1.5.2/download`

Caused by:
  [2] Failed initialization ([CONN-1-0] send: no filter connected)
make[1]: *** [build] Error 101
make: *** [debug] Error 2
FAILED: contrib/tiflash-proxy-cmake/debug/libtiflash_proxy.dylib /Users/wchenguang/source/tiflash/build/contrib/tiflash-proxy-cmake/debug/libtiflash_proxy.dylib
cd /Users/wchenguang/source/tiflash/contrib/tiflash-proxy && /opt/local/bin/cmake -E env PROTOC=/Users/wchenguang/source/tiflash/build/contrib/protobuf-cmake/protoc PROTOC_INCLUDE=/Users/wchenguang/source/tiflash/contrib/protobuf/src CMAKE=/opt/local/bin/cmake CFLAGS=-w CXXFLAGS=-w CARGO_TARGET_DIR=/Users/wchenguang/source/tiflash/build/contrib/tiflash-proxy-cmake make debug
ninja: build stopped: subcommand failed.
@darionyaphet darionyaphet added the type/question The issue belongs to a question. label Jul 5, 2023
@Lloyd-Pottiger
Copy link
Contributor

check this out
rust-lang/cargo#12202

@Lloyd-Pottiger Lloyd-Pottiger self-assigned this Jul 5, 2023
@darionyaphet darionyaphet reopened this Jul 5, 2023
@darionyaphet
Copy link
Author

Thank you so much, this problem is solved, but there is a new problem.

error: "/opt/homebrew/Cellar/rust/1.70.0/lib/rustlib/src/rust/Cargo.lock" does not exist, unable to build with the standard library, try:
        rustup component add rust-src
make[1]: *** [build] Error 101
make: *** [debug] Error 2
FAILED: contrib/tiflash-proxy-cmake/debug/libtiflash_proxy.dylib /Users/wchenguang/source/tiflash/build/contrib/tiflash-proxy-cmake/debug/libtiflash_proxy.dylib
cd /Users/wchenguang/source/tiflash/contrib/tiflash-proxy && /opt/local/bin/cmake -E env PROTOC=/Users/wchenguang/source/tiflash/build/contrib/protobuf-cmake/protoc PROTOC_INCLUDE=/Users/wchenguang/source/tiflash/contrib/protobuf/src CMAKE=/opt/local/bin/cmake CFLAGS=-w CXXFLAGS=-w CARGO_TARGET_DIR=/Users/wchenguang/source/tiflash/build/contrib/tiflash-proxy-cmake make debug
ninja: build stopped: subcommand failed.

@Lloyd-Pottiger
Copy link
Contributor

try:

        rustup component add rust-src

@darionyaphet
Copy link
Author

rustup component add rust-src

thank you for your reply
I tried this command and it didn't work.

@Lloyd-Pottiger
Copy link
Contributor

Sorry, I have no idea now.

Maybe you can try reinstalling Rust env by using rustup.

@darionyaphet
Copy link
Author

Thanks, I may have a problem with brew installation before

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/question The issue belongs to a question.
Projects
None yet
Development

No branches or pull requests

2 participants