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

no method named 'lock' found for struct 'Stderr' in the current scope #2

Open
lorenzodelia125 opened this issue Aug 11, 2022 · 1 comment

Comments

@lorenzodelia125
Copy link

lorenzodelia125 commented Aug 11, 2022

Hi, thanks for your Solana course and for this repo! I encountered an issue with this Rust project. When I try to launch cargo-build-bpf command the building process fails with the error: no method named 'lock' found for struct 'Stderr' in the current scope. I don't have any idea on how to resolve it.

p.s. I would also share with you that before this issue I have had another one about getrandom who I solved adding this dependecy in cargo.toml file in according with Solana docs: getrandom = { version = "^0.1.6", features = ["dummy"] }

@lorenzodelia125 lorenzodelia125 changed the title no method named lock found for struct Stderr in the current scope no method named 'lock' found for struct 'Stderr' in the current scope Aug 11, 2022
@void-ness
Copy link

Hey, cargo build-bpf seems to be deprecated. Why don't you try using cargo build-sbf instead. Works fine for me while building a solana program for deployment.

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