Quantcast
Channel: Active questions tagged rustc - Solana Stack Exchange
Browsing latest articles
Browse All 42 View Live
↧

could not find `__client_accounts_contributor` in the crate root

Attempting to 'anchor build' a project and running into errors with the #[program] macro. Unsure exactly what could be causing these. Tried reading the compiler error index but it didnt seem to help in...

View Article


InstructionFallbackNotFound. Error Number: 101. Error Message: Fallback...

Have a question related to custom program development. I've testing this programpub mod fluxtility { use super::*; pub fn buy_ticket(ctx: Context<Initialize>, lamports: u64) ->...

View Article


update rustc that anchor uses

After running cargo build-bpf I get the following error:cargo-build-bpf child: rustup toolchain list -vcargo-build-bpf child: cargo +bpf build --target bpfel-unknown-unknown --releaseerror: package...

View Article

Can anyone use SolGSN: Solana Gas Station?

I want to use SolGSN, where the user can't pay the gas fee like transferring the NFT. The admin has to pay the fee. However, this repository is outdated, and I've encountered several errors due to...

View Article

Is it possible to have reflection tokens like safemoon on solona?

A reminder on how reflection tokens like safemoon work is every ones balance is simply an equation instead of a fixed number. That way everyone's balance can be instantly updated with no gas needed...

View Article


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

View Article

error: package `solana-program v1.18.1` cannot be built because it requires...

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 testprojectOnly x86_64 / Linux distributed in NPM...

View Article

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

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

View Article


cargo build-bpf package error: `ahash v0.8.8` cannot be built because it...

I'm using a simple hello world solana program from https://moralis.io/how-to-write-a-solana-smart-contractsrc/lib.rsuse solana_program::{ account_info::AccountInfo, entrypoint,...

View Article


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

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


I am having the following dependencies problem in my project

I am having a dependencies problem while trying to use openbook:1- Openbook-v2 requires anchor (v0.28.0)2- Anchor v0.28.0 requires solana-program versions (>=1.14, <1.17)3- But openbook-v2...

View Article

Anchor build error: String is the wrong size

i am trying to build use anchor build, but come across an error:Error: String is the wrong sizeI tried digging it on stack and asked AIs as well but no luck i can seem to get over itIt doesnt specify...

View Article

"Failed to Build Anchor Project: rustc Incompatibility"

Problem:I'm trying to build an Anchor project on Solana, but I'm encountering compatibility issues with the rustc version used by the Solana tools. The specific error is:error: rustc 1.79.0-dev is not...

View Article

Getting rustc version not supported by bytemuck_derive@1.9.2

[![error: rustc 1.79.0-dev is not supported by the following package: Note that this is the rustc version that ships with Solana tools and not your system's rustc version. Use `solana-install update`...

View Article



Some guidance on my next steps in my Web3 journey

I started learning about Solana development around a month ago. As of now, I have good understanding of Solana architecture, writing smart contracts (both native and using anchor), working with tokens,...

View Article
Browsing latest articles
Browse All 42 View Live


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