GigaDAO / openbook

📖 A CLI, TUI and SDK to interact with the OpenBook market on the Solana blockchain (WIP).
https://docs.rs/openbook
MIT License
11 stars 6 forks source link

compatibility issue solana_rbpf and solana dependencies #24

Open dekacypher opened 3 months ago

dekacypher commented 3 months ago

I'm experiencing dependency issues with solana_rbpf and other solana dependencies. Either i downgrade the solana_rbpf to 0.8.0 and solana packages to 17.0.34. I still get this error and if i upgrade solanas to 1.18.0 i still get compatibility issues with solana_rbpf. This seems like a never ending loop.

I've tried multiple versions for solana_rbpf and likewise with solana. Even though both solana versions are compatible with 0.8.0, I'm met with a long traceback of errors. Heres the short one:

cargo build

Updating crates.io index
Enter passphrase for key '/Users/anon/.ssh/id_ed25519': 
remote: Enumerating objects: 25, done.
remote: Counting objects: 100% (25/25), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 15 (delta 10), reused 14 (delta 9), pack-reused 0 (from 0)
Unpacking objects: 100% (15/15), 1.87 KiB | 83.00 KiB/s, done.
From github.com:rust-lang/crates.io-index
   9111c4d998..7752f9d1f3             -> origin/HEAD
error: failed to select a version for `solana_rbpf`.
    ... required by package `solana-program-runtime v1.18.0`
    ... which satisfies dependency `solana-program-runtime = "=1.18.0"` of package `solana-config-program v1.18.0`
    ... which satisfies dependency `solana-config-program = "=1.18.0"` of package `solana-account-decoder v1.18.0`
    ... which satisfies dependency `solana-account-decoder = "=1.18"` of package `openbook v0.1.0 (/Users/anon/Documents/GitHub/openbook)`
versions that meet the requirements `=0.8.0` are: 0.8.0

all possible versions conflict with previously selected packages.

  previously selected package `solana_rbpf v0.8.3`
    ... which satisfies dependency `solana_rbpf = "^0.8.0"` of package `openbook v0.1.0 (/Users/anon/Documents/GitHub/openbook)`

failed to select a version for `solana_rbpf` which could resolve this conflict

rustc 1.69.0 (84c898d65 2023-04-16) openbook_dex version = "0.5.6"

beautyfree commented 2 months ago

same issue

looks like the reason in yank of 0.8.0 - https://crates.io/crates/solana_rbpf/versions