-
Notifications
You must be signed in to change notification settings - Fork 526
[Bug]: Cannot build bubblegum or integrate into our Anchor program: package solana-program v1.16.3
cannot be built because it requires rustc 1.68.0 or newer, while the currently active rustc version is 1.62.0-dev
#1147
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
Comments
@nathanleclaire Just a FYI: we're in the process of moving Bubblegum to its own repo so here is the correct location for it. We'll be removing it from the metaplex program library soon, sorry for any confusion. As far as this issue goes, you're right that Bubblegum (and other Metaplex programs) are not currently compatible with Solana v1.16 yet and so need Anchor 0.26. Solana v1.16 has some breaking changes that make it a hassle to upgrade and it's not the program version on mainnet yet so it hasn't been a priority to upgrade yet. However, through trial-and-error of downgrading troublesome packages I was able to generate a lock file that compiles bpf code using your specified dependencies. Give the linked lock file a try and let me know if it works or doesn't for you: Also, you might not want to use the latest Rust version as BPF support seems to sometimes lag |
thx for speedy response! i'll check that lock file out |
Can you clarify how that comes in to play here? It seems like the problem generally speaking with the packages that don't like the Rust version is due to the vendored Rust version with the Solana 1.14.13 install. So I assumed my local Rust toolchain was largely irrelevant. |
It probably shouldn't matter? When I was troubleshooting it seemed like going from Rust 1.65 to 1.66 resolved one of the issues but maybe it was a false positive. I didn't try every combination of Rust versions once I got a working lock file. |
Which package is this bug report for?
bubblegum
Which Type of Package is this bug report for?
Rust Contract
Issue description
We want to use bubblegum in our project, but can't even include the crate due to
cargo
build errors. This is replicable in this repo for me. I am on M1 Mac FWIW. To reproduce:Ensure Solana versions and Anchor versions locally as are below and Cargo cache etc are clean.
Part of what landed us here is that we were trying to use newer Anchor and Solana versions, but we got borsh 0.9.x and 0.10.x version conflicts across the various packages. That seems to be fixed in later Solana versions (1.16.x). We did finally get Anchor 0.28.0 to compile and run with Solana 1.16, but then we couldn't successfully add mpl-bubblegum.
I forget exactly where in the matrix of difficulty we encountered them as well, but even when we got cargo to compile sometimes we would see "Instruction too large" errors from the validator itself. The only working install we have is Anchor 0.28.0 on Solana 1.16.3 without any bubblegum addition.
Our particular
Cargo.toml
locally is quite simple:But it hits the same issues.
Related links:
Invoked an instruction with data that is too large
error solana-labs/solana#31960We aren't really sure what to do. Generally, we're thinking we should target Anchor 0.26.0 because everything seems to depend on it including SPL -- and due to the borsh libs problem in Solana 1.16.x, it seems like we will have to stick to 1.14 for now. But then we come back to wanting to integrate with bubblegum and it seems like we can't even compile it in its own repo in that stack. Are we missing something? Any ideas?
Relevant log output
No response
Priority this issue should have
High (immediate attention needed)
The text was updated successfully, but these errors were encountered: