Comments (2)
I am getting a similar error.
candid@DESKTOP-5D7VSM9:~/example-helloworld/src/program-rust$ npm run build:program-rust
> [email protected] build:program-rust
> cargo build-bpf --manifest-path=./src/program-rust/Cargo.toml --bpf-out-dir=dist/program
error: package `bumpalo v3.16.0` cannot be built because it requires rustc 1.73.0 or newer, while the currently active rustc version is 1.72.0-dev
Either upgrade to rustc 1.73.0 or newer, or use
cargo update -p [email protected] --precise ver
where `ver` is the latest version of `bumpalo` supporting rustc 1.72.0-dev
My actual version of rust:
candid@DESKTOP-5D7VSM9:~/example-helloworld/src/program-rust$ rustup show
Default host: x86_64-unknown-linux-gnu
rustup home: /home/candid/.rustup
installed toolchains
--------------------
stable-x86_64-unknown-linux-gnu (default)
solana
active toolchain
----------------
stable-x86_64-unknown-linux-gnu (default)
rustc 1.77.2 (25ef9e3d8 2024-04-09)
candid@DESKTOP-5D7VSM9:~/example-helloworld/src/program-rust$ rustc --version
rustc 1.77.2 (25ef9e3d8 2024-04-09)
candid@DESKTOP-5D7VSM9:~/example-helloworld/src/program-rust$ cargo --version
cargo 1.77.2 (e52e36006 2024-03-26)
candid@DESKTOP-5D7VSM9:~/example-helloworld/src/program-rust$
from example-helloworld.
You need to put your solana-program as dev-dependency instead of dependencies. So when using cargo add for solana, you need to use --dev flag. So just update your cargo toml and move it from dependencies to dev-dependencies.
from example-helloworld.
Related Issues (20)
- Running npm run build:program-rust
- Hi
- BH sortcut
- Add a rust-toolchain.toml HOT 1
- Code
- Hello World
- Hi
- hello world
- Hello-world
- Unable to run hello world in WSL
- Hi
- Hello world
- ER diagram
- TBC
- hello-world
- .
- I am getting a compile error: target not supported when trying to compile Solana hello world smart contract HOT 1
- Error: Program is not executable after I launch client to interact with helloworld.sol
- solana program deploy ./dist/program/helloworld.so Error: ELF error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from example-helloworld.