All Questions
5 questions
5
votes
2
answers
211
views
What's the benefit of using platform-tools compared to Rust's upstream bpfel-unknown-none target?
The fact that Solana's CLI installer shipped (and still ships) with a nearly year-long outdated version of platform-tools has been a pain point with the previous Solana team I've worked with. platform-...
6
votes
1
answer
2k
views
How do I fix "package solana-program v1.18.0 cannot be built because it requires rustc 1.72.0 or newer"?
When building an onchain program with cargo build-sbf using solana-program v1.18, I get the following error:
error: package solana-program v1.18.0 cannot be built because it requires rustc 1.72.0 or ...
1
vote
1
answer
294
views
"package solana-program v1.18.7 cannot be built" error [duplicate]
I have a new Rust project that gives the following error when I compile it.
package `solana-program v1.18.7` cannot be built because it requires rustc 1.72.0 or newer, while the currently active rustc ...
4
votes
3
answers
153
views
Unable to build a binary
Both anchor build and cargo-build-sbf throw:
Warning: cargo-build-bpf is deprecated. Please, use cargo-build-sbf
cargo-build-bpf child: /Users/usr1/solana/bin/cargo-build-sbf --arch bpf
error: package ...
1
vote
0
answers
77
views
RUSTFLAGS="-C instrument-coverage" with solana program [closed]
Trying to add check coverage, when using RUSTFLAGS="-C instrument-coverage" cargo build-bpf I'm getting:
error: failed to run `rustc` to learn about target-specific information
Caused by:
...