solana: Hello world not working out-of-the-box

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

Proposed Solution

  1. In tutorial cargo-build-bpf should be changed to cargo-build-sbf
  2. I’ve added the following version of solana program to make it work: cargo add solana-program@=1.14.18

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

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Reactions: 4
  • Comments: 17 (7 by maintainers)

Most upvoted comments

I ended up restarting from scratch. Same issue.

RUST_LOG=debug cargo build-sbf [2024-01-27T17:16:02.584833161Z INFO cargo_build_sbf] spawn: --version [2024-01-27T17:16:02.738686760Z INFO cargo_build_sbf] Solana SDK: /home/frackinfamous/.local/share/solana/install/releases/1.17.17/solana-release/bin/sdk/sbf [2024-01-27T17:16:02.738777760Z INFO cargo_build_sbf] spawn: toolchain list -v [2024-01-27T17:16:02.743675360Z INFO cargo_build_sbf] spawn: +solana build --release --target sbf-solana-solana error: package solana-program v1.18.0 cannot be built because it requires rustc 1.72.0 or newer, while the currently active rustc version is 1.68.0-dev Either upgrade to rustc 1.72.0 or newer, or use cargo update -p solana-program@1.18.0 --precise ver where ver is the latest version of solana-program supporting rustc 1.68.0-dev