All Questions
10 questions
1
vote
1
answer
40
views
Anchor build says "cannot be built because it requires rustc 1.75.0 or newer" I have rustc installed 1.82.0
Anchor Verification Issue: Rustc Version Mismatch in Docker Environment
Command Executed
anchor verify 3MRKmmRZ6Fm4tvEEjBZcuGG7nxWVSYCJd83WzmAGqm8J
Problem Summary
The program build fails due to a ...
2
votes
1
answer
25
views
which versions of Solana SDK and Anchor are compatible with the stable toolchain.?
which versions of Solana SDK and Anchor are compatible with the stable toolchain.? It appears that the current nightly toolchain you are using (nightly-x86_64-unknown-linux-gnu) does not support the ...
2
votes
2
answers
136
views
keep getting this error on a fresh ubuntu 24 lts, although my rustc version is 1.78.0
error: package solana-program v1.18.14 cannot be built because it requires rustc 1.75.0 or newer, while the currently active rustc version is 1.68.0-dev
Either upgrade to rustc 1.75.0 or newer, or use
...
3
votes
0
answers
21
views
Anchor Test fails with version error [duplicate]
Issue:
I installed everything needed to start developing on Solana.
I am trying to test a simple contract but when i run: anchor test, it errors out the following:
error: package `solana-program v1.18....
4
votes
1
answer
3k
views
error: package `solana-program v1.18.1` cannot be built because it requires rustc 1.72.0 or newer [duplicate]
I tried setting up an Anchor project on my MacBook with an ARM processor, but I encountered an error. Here is step by step that i took
% anchor init testproject
Only x86_64 / Linux distributed in NPM ...
3
votes
4
answers
1k
views
Anchor compatibility issues
Whenever I try to run anchor build, I am greeted with a package incompatibility error, saying that my rustc toolchain version is too low (1.62.0-dev) but my toolchain is set to 1.75.0.
Here's the ...
11
votes
5
answers
8k
views
Anchor build says "cannot be built because it requires rustc 1.68.0 or newer" but I have a newer rustc installed
When I run anchor build or anchor test:
error: 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.
But ...
1
vote
1
answer
1k
views
update rustc that anchor uses
After running cargo build-bpf I get the following error:
cargo-build-bpf child: rustup toolchain list -v
cargo-build-bpf child: cargo +bpf build --target bpfel-unknown-unknown --release
error: package ...
1
vote
2
answers
266
views
How do pass Context into multiple helper functions?
sorry if this is a more rusty question.
As the title suggests, how can I pass the context struct into multiple helper functions?
What I'd like to do is something like this:
impl<'info> BuyIn<'...
5
votes
1
answer
375
views
Solana Program 1 time initialization Issue
I want to add a check that once a function is called it should never be called again. I want initialization to be one-time only. Is this a good approach if I take a bool value and set it to false ...