Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: 编译tikv5.4.1版本时,cargo build报错
[TiDB Usage Environment] Production Environment / Testing / PoC
[TiDB Version]
[Reproduction Path] What operations were performed when the issue occurred
[Encountered Issue: Issue Phenomenon and Impact]
[Resource Configuration] Go to TiDB Dashboard - Cluster Info - Hosts and take a screenshot of this page
[Attachments: Screenshots/Logs/Monitoring]
error: failed to get crossbeam-skiplist
as a dependency of package concurrency_manager v0.0.1 (/root/go/src/github.com/tikv/test/tikv-5.4.1/components/concurrency_manager)
Caused by:
failed to load source for dependency crossbeam-skiplist
Caused by:
Unable to update GitHub - tikv/crossbeam: Tools for concurrent programming in Rust
Caused by:
failed to clone into: /root/.cargo/git/db/crossbeam-b3e66c33e6ecb946
Caused by:
network failure seems to have happened
if a proxy or similar is necessary net.git-fetch-with-cli
may help here
Configuration - The Cargo Book
Caused by:
SSL error: unknown error; class=Ssl (16)
Missing dependency package concurrency_manager v0.0.1, also check the network.
Can you access GitHub? It seems like the network is down.
It is accessible, and the network is also connected. I have run cargo build
multiple times, and it always reports an error at this point. The source code also contains concurrency_manager
.
(base) root@node1:~/go/src/github.com/tikv/test/tikv-5.4.1/components/concurrency_manager# ls
benches Cargo.toml src tests
Refer to this and take a look.
Did you modify the code yourself? The official team provides a software package.
You need to compile the source code. No code modifications were made; the source code was downloaded directly from GitHub.
TiKV modified a library: crossbeam, but did not change the version number or synchronize it to create-io, resulting in incorrect downloads. Just change the version number as suggested in the best answer in my post above.
I haven’t used Source Code for installation yet.
Understood, the versions need to be staggered.
Edit components/tidb_query_datatype/Cargo.toml
, comment out encoding_rs
Change to: encoding_rs = { git = "https://github.com/tikv/encoding_rs.git", rev="5870de8f67a354daeb3649794e960c60339011f4" }
Edit components/concurrency_manager/Cargo.toml
, comment out crossbeam-skiplist
Add the following line, change to: crossbeam-skiplist = "0.1"
Well, but why not compile the latest version? 5.4 is a bit old.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.