-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello world not working out-of-the-box #32361
Comments
This error message sounds like your rustc/cargo version is older than v16.2 is requiring
|
Looks like the same issue as #32397 |
@pcellix I could not reproduce your problem locally. I followed https://docs.solana.com/getstarted/rust and
|
Same issue. Can not even run the hello world example.
The setup is strictly following https://docs.solana.com/getstarted/local . |
I think I got a more generic solution to the issue. Some ContextI had the exact same error on the hello-world tutorial, i.e. The command This is a minor version difference 1.14 to 1.16, which shouldn't create any issues, since it's supposed to be only backward compatible API extension. The SolutionI pinned the minor version to match the version of solana-cargo-build-sbf in Cargo.toml # Cargo.toml
# ... other configs
[dependencies]
solana-program = "=1.14" # pin the minor version to allow update to the latest patch ([as per cargo docs](https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#specifying-dependencies-from-cratesio))
# ... other configs Run Some CommentsBased on the official docs (quoting)
Solana-CLI stable release points to 1.14.x (instead of the 1.16.x because it is a testnet relase) while the This could be flagged as a Developer UX bug with straightforward mitigation actions by the solana team: Either:
|
@Gr3at thanks for reproducing this and providing instructions.
Although this is a valid assumption, there are some known problems when migrating from 14 to 16. See #31960 |
@KirillLykov thanks for pointing me to the issue. The conversation there was very informative. So, based on this comment, in my understanding it is better to work on 1.14 (crates and cli) till all core crates are properly updated to work on 1.16. |
Based on the testing I did, my understanding is different. |
So does anyone have any insight for completely new person to run the very first tutorial or will Solana just leave it that way forever? So frustrating as a new user wanting to learn. |
Is this still an issue? I think if you use the latest version of solana, it should just work. If you experienced some problems, please specify your version of solana cli and cargo-sbf. Also when building you onchain program specify to print debug info like |
I apologize. I was just terribly frustrated and was not finding anything that worked. I had to downgrade my solana install to the latest stable version 1.17.17. Why is the dev version printed on the main docs for newcomers to use instead of a stable release with no warning? That seems very odd.
After downgrading solana program and sdk and also downgrading ahash as another posted in an earlier thread on the issue, I ran. rm Cargo.lock then... to downgrade to the stable versions. Complied and now receiving errors for multiple versions of crates being installed. I will update ASAP.
where |
I ended up restarting from scratch. Same issue. RUST_LOG=debug cargo build-sbf |
It does the same thing now no matter how many times you wipe and reinstall. Switch computers. Buy new HDD or stand on your head. It now says you are running 1.68dev and need 1.72. I've never installed version 1.68dev ever. Obviously you could read the error and tell him he has the wrong version. 20 hours later and I can still read it the error on mine but it doesn't help. How is this still the standard instructional tutorial for new people and every update it just sucks the same with new numbers? |
Related: #34987 Hope this helps: #34987 (comment), #34987 (comment) |
Starting to wrap my head around the issue but still not getting it. It 100% does not work from the tutorial if you have never had rust installed on a bare linux build and start the tutorial from scratch it does not work. I have been through it 10 times following all of what 5 steps, to a T. Still in the same spot. UGH. So I can 100% confirm this is still screwing new people post tagging whatever install they are supposed to tag. error: package |
active_release already points to stable release active_release -> /home/frackinfamous/.local/share/solana/install/releases/stable-b8ac42552b7b084e60221905c239124b8135bc36/solana-release |
Problem
Hi,
After observing solana community from outside I've decided to join this community from developer side.
I wanted to start using tutorial
https://docs.solana.com/getstarted/rust
Unfortunately it does not working currently out of the box using ubuntu 20.04
The message I receive is:
Warning: cargo-build-bpf is deprecated. Please, use cargo-build-sbf
cargo-build-bpf child: /home/ubuntu/.local/share/solana/install/active_release/bin/cargo-build-sbf --arch bpf
error: package
solana-program v1.16.2
cannot be built because it requires rustc 1.68.0 or newer, while the currently active rustc version is 1.62.0-devProposed Solution
I think this should be fixed because when someone is joining the community is enthusiastic and wants to have their code running
Best regards,
Wojtek
The text was updated successfully, but these errors were encountered: