Quantcast
Channel: Active questions tagged rustc - Solana Stack Exchange
Browsing all 37 articles
Browse latest View live
↧

Cannot compile `solana-program` crate with new `sqlx` versions

For some reason when trying to compile a project having both sqlx and solana-program I get an error on package version mismatches, which is strange, because those should come from different crates and...

View Article


"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...

View Article


How do I fix "package solana-program v1.18.0 cannot be built because it...

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...

View Article

What's the benefit of using platform-tools compared to Rust's upstream...

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....

View Article

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.11`...

View Article


I am getting a compile error: target not supported when trying to compile...

So I'm trying to compile my first Solana smart contract. It's this hello world smart contract:https://github.com/solana-labs/example-helloworldHere is my rustc and cargo...

View Article

keep getting this error on a fresh ubuntu 24 lts, although my rustc version...

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-devEither upgrade to rustc 1.75.0 or newer, or...

View Article

Getting error that I am using an older version of rust, but --version shows I...

Although my Rust is version 1.78.0 I constantly am getting this error when I do an anchor build:error: package toml_edit v0.21.1 cannot be built because it requires rustc 1.69 or newer, while the...

View Article


solana contract rust error anchor build

use anchor_lang::prelude::*;use anchor_spl::token::{self, Mint, Token, TokenAccount, Transfer, MintTo};declare_id!("GTPh1tdHiMWVj3yBj2S2ZZftuLPEWPyQZ6Cy7g5ibM5K");#[program]pub mod puj {use...

View Article


Access violation in input section at address 0x400011cc0 of size 8

This program seems to work well, until I uncomment the treasury_account (need it to send funds from program account to user associated token account, and then I run into...failed: Access violation in...

View Article

Solaan transaction delay

Is there any way that after a wallet signs a transaction I can delay the transaction from actually going through until I call a function or is this not possible, also open to work arounds.Thanks in...

View Article

Mempool transaction Stream

I want to listen to the Solana mempool for a MEV bot. I was checking out Jito for this purpose, but it appears to be deprecated. How can I listen to the mempool transaction information on Solana now...

View Article

Image may be NSFW.
Clik here to view.

Anchor - Stuck with error SendTransactionError

I have been trying to write some custom contract in solana using Rust but always ending up with below error:Catch the SendTransactionError and call getLogs() on it for full details.at...

View Article


How do you get the Solana platform tools version? Or the `rustc` version used...

When building a Solana rust program, it does NOT use your normal system's rust compiler (rustc), instead cargo build-sbf uses the Solana "platform tools" under the hood which ships a separate version...

View Article

which versions of Solana SDK and Anchor are compatible with the stable...

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...

View Article


Anchor build says "cannot be built because it requires rustc 1.75.0 or newer"...

Anchor Verification Issue: Rustc Version Mismatch in Docker EnvironmentCommand Executedanchor verify 3MRKmmRZ6Fm4tvEEjBZcuGG7nxWVSYCJd83WzmAGqm8JProblem SummaryThe program build fails due to a rustc...

View Article

How to solve the cargo build-sbf error?

I have just started with rust and solana.Firstly, I created a solana program using the command:cargo init hello_world --libeverything ran fine, and then i read from the official docs, to build i ran...

View Article

Browsing all 37 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>