Skip to content
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

[lecture_1] cargo build-bpf failed #1

Open
kfnx opened this issue Jan 27, 2022 · 1 comment
Open

[lecture_1] cargo build-bpf failed #1

kfnx opened this issue Jan 27, 2022 · 1 comment

Comments

@kfnx
Copy link

kfnx commented Jan 27, 2022

Hi, i follow solana bootcamp lecture from youtube and trying to run some code from this repo.
got error when running cargo build-bpf

rustup show:

Default host: x86_64-apple-darwin
rustup home:  /Users/kafin/.rustup

installed toolchains
--------------------

stable-x86_64-apple-darwin
nightly-x86_64-apple-darwin (default)
bpf

active toolchain
----------------

nightly-x86_64-apple-darwin (default)
rustc 1.60.0-nightly (6abb6385b 2022-01-26)

complete error log after executing cargo build-bpf:

BPF SDK: /Users/kafin/.local/share/solana/install/releases/1.8.1/solana-release/bin/sdk/bpf
Running: rustup toolchain list -v
Running: cargo +bpf build --target bpfel-unknown-unknown --release
error: failed to download `solana-frozen-abi v1.9.5`

Caused by:
  unable to get packages from source

Caused by:
  failed to parse manifest at `/Users/kafin/.cargo/registry/src/github.aaakk.us.kg-1ecc6299db9ec823/solana-frozen-abi-1.9.5/Cargo.toml`

Caused by:
  feature `edition2021` is required

  consider adding `cargo-features = ["edition2021"]` to the manifest
@faisalKhan-99
Copy link

faisalKhan-99 commented Mar 20, 2022

was facing the same issue, make sure that you do a "solana update" and also a rustc update. Also check that you're using an updated Node version (mine working on 17.3.0).After all updations MAKE SURE you clear cache, the command is "rm -rf ~/.cache/solana", don't remember the exact command! This is what I did to resolve the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants