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 select a version for secp256k1-sys #39

Open
RCasatta opened this issue Aug 26, 2022 · 1 comment
Open

failed to select a version for secp256k1-sys #39

RCasatta opened this issue Aug 26, 2022 · 1 comment

Comments

@RCasatta
Copy link
Owner

bumping bitcoind to 0.27.0 cause this error

error: failed to select a version for `secp256k1-sys`.
    ... required by package `secp256k1 v0.22.0`
    ... which satisfies dependency `secp256k1 = "^0.22.0"` of package `bitcoin v0.28.0`
    ... which satisfies dependency `bitcoin = "^0.28"` of package `electrum-client v0.10.2 (/home/casatta/git/rust-electrum-client)`
    ... which satisfies path dependency `electrum-client` of package `electrsd v0.20.0 (/home/casatta/git/electrsd)`
versions that meet the requirements `^0.5.0` are: 0.5.1, 0.5.2, 0.5.0

the package `secp256k1-sys` links to the native library `rustsecp256k1_v0_5_0`, but it conflicts with a previous package which links to `rustsecp256k1_v0_5_0` as well:
package `secp256k1-sys v0.6.0`
    ... which satisfies dependency `secp256k1-sys = "^0.6.0"` of package `secp256k1 v0.24.0`
    ... which satisfies dependency `secp256k1 = "^0.24.0"` of package `bitcoin v0.29.1`
    ... which satisfies dependency `bitcoin = "^0.29.0"` of package `bitcoincore-rpc-json v0.16.0`
    ... which satisfies dependency `bitcoincore-rpc-json = "^0.16.0"` of package `bitcoincore-rpc v0.16.0`
    ... which satisfies dependency `bitcoincore-rpc = "^0.16.0"` of package `bitcoind v0.27.0`
    ... which satisfies dependency `bitcoind = "^0.27.0"` of package `electrsd v0.20.0 (/home/casatta/git/electrsd)`
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 binary. Try to adjust your dependencies so that only one package uses the links ='secp256k1-sys' value. For more information, see https://doc.rust-lang.org/cargo/reference/resolver.html#links.

failed to select a version for `secp256k1-sys` which could resolve this conflict

@RCasatta
Copy link
Owner Author

rust-electrum-client need to bump bitcoin to 0.29 too to solve the issue

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