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

Build stops with error: failed to select a version for zstd-sys #19

Open
smesher opened this issue Jul 7, 2022 · 0 comments
Open

Build stops with error: failed to select a version for zstd-sys #19

smesher opened this issue Jul 7, 2022 · 0 comments

Comments

@smesher
Copy link

smesher commented Jul 7, 2022

When i build rnode on ubuntu 20.4 or 18.4 every time i get error:

Updating git repository https://github.com/tonlabs/ton-labs-adnl
Updating git submodule https://github.com/tonlabs/common.git
Updating crates.io index
Updating git repository https://github.com/tonlabs/lockfree.git
Updating git repository https://github.com/tonlabs/ton-labs-tl
Updating git repository https://github.com/tonlabs/ton-labs-block
Updating git repository https://github.com/tonlabs/ton-labs-types
Updating git repository https://github.com/rust-rocksdb/rust-rocksdb.git
Updating git submodule https://github.com/lz4/lz4.git
Updating git submodule https://github.com/facebook/rocksdb.git
Updating git submodule https://github.com/google/snappy.git
Updating git submodule https://github.com/google/benchmark.git
Updating git submodule https://github.com/google/googletest.git
Updating git repository https://github.com/tonlabs/ton-labs-dht
Updating git submodule https://github.com/tonlabs/common.git
Updating git repository https://github.com/tonlabs/ever-labs-crypto
Updating git repository https://github.com/tonlabs/ton-labs-overlay
Updating git submodule https://github.com/tonlabs/common.git
Updating git repository https://github.com/tonlabs/ton-labs-rldp
Updating git submodule https://github.com/tonlabs/common.git
Updating git repository https://github.com/tonlabs/ton-labs-abi.git
Updating git repository https://github.com/tonlabs/ton-labs-block-json.git
Updating git repository https://github.com/tonlabs/ton-labs-executor
Updating git repository https://github.com/tonlabs/ton-labs-vm

error: failed to select a version for zstd-sys.
... required by package zstd-safe v4.0.0+zstd.1.4.9
... which satisfies dependency zstd-safe = "=4.0.0" of package zstd v0.8. 0+zstd.1.4.9
... which satisfies dependency zstd = "^0.8" of package adnl v0.7.74 (htt ps://github.com/tonlabs/ton-labs-adnl?tag=0.7.74#4f2335e0)
... which satisfies git dependency adnl of package catchain v0.1.0 (/tonl abs/ton-node/catchain)
... which satisfies path dependency catchain of package ton_node v0.50.21 (/tonlabs/ton-node)
versions that meet the requirements =1.5.0 are: 1.5.0+zstd.1.4.9

the package zstd-sys links to the native library zstd, but it conflicts with a previous package which links to zstd as well:
package zstd-sys v2.0.0+zstd.1.5.2
... which satisfies dependency zstd-sys = "^2.0" of package librocksdb-sy s v0.7.1+7.3.1 (https://github.com/rust-rocksdb/rust-rocksdb.git#39dc822d)
... which satisfies git dependency librocksdb-sys of package rocksdb v0.1 8.0 (https://github.com/rust-rocksdb/rust-rocksdb.git#39dc822d)
... which satisfies git dependency rocksdb of package storage v0.5.0 (/to nlabs/ton-node/storage)
... which satisfies path dependency storage of package catchain v0.1.0 (/ tonlabs/ton-node/catchain)
... which satisfies path dependency catchain of package ton_node v0.50.21 (/tonlabs/ton-node)
Only one package in the dependency graph may specify the same links value. This helps ensure that only one copy of a native library is linked in the final binar y. Try to adjust your dependencies so that only one package uses the links ='zst d-sys' value. For more information, see https://doc.rust-lang.org/cargo/referenc e/resolver.html#links.

failed to select a version for zstd-sys which could resolve this conflict
Service 'node' failed to build: The command '/bin/sh -c cargo update && cargo bu ild --release --features "metrics"' returned a non-zero code: 101

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant