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

Doesn't build #2

Open
7-- opened this issue Jul 12, 2022 · 1 comment
Open

Doesn't build #2

7-- opened this issue Jul 12, 2022 · 1 comment

Comments

@7--
Copy link

7-- commented Jul 12, 2022

$ ./run.sh deploy
BPF SDK: /home/phil/Downloads/solana-1.10.8/bin/sdk/bpf
cargo-build-bpf child: rustup toolchain list -v
cargo-build-bpf child: cargo +bpf build --target bpfel-unknown-unknown --release
   Compiling getrandom v0.1.16
   Compiling rayon-core v1.9.3
   Compiling generic-array v0.14.5
   Compiling toml v0.5.9
   Compiling bv v0.11.1
   Compiling serde_bytes v0.11.6
   Compiling bincode v1.3.3
error: target is not supported, for more information see: https://docs.rs/getrandom/#unsupported-targets
   --> /home/phil/.cargo/registry/src/github.com-1ecc6299db9ec823/getrandom-0.1.16/src/lib.rs:267:9
    |
267 | /         compile_error!("\
268 | |             target is not supported, for more information see: \
269 | |             https://docs.rs/getrandom/#unsupported-targets\
270 | |         ");
    | |___________^

error[E0433]: failed to resolve: use of undeclared crate or module `imp`
   --> /home/phil/.cargo/registry/src/github.com-1ecc6299db9ec823/getrandom-0.1.16/src/lib.rs:291:5
    |
291 |     imp::getrandom_inner(dest)
    |     ^^^ use of undeclared crate or module `imp`

For more information about this error, try `rustc --explain E0433`.
error: could not compile `getrandom` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error[E0599]: no method named `lock` found for struct `Stderr` in the current scope
   --> /home/phil/.cargo/registry/src/github.com-1ecc6299db9ec823/rayon-core-1.9.3/src/log.rs:266:52
    |
266 |             let mut writer = BufWriter::new(stderr.lock());
    |                                                    ^^^^ method not found in `Stderr`

For more information about this error, try `rustc --explain E0599`.
error: build failed
Error: Unable to open program file: No such file or directory (os error 2)

$ cargo build-bpf --manifest-path=program/Cargo.toml --bpf-out-dir=dist/program
BPF SDK: /home/phil/Downloads/solana-1.10.8/bin/sdk/bpf
cargo-build-bpf child: rustup toolchain list -v
cargo-build-bpf child: cargo +bpf build --target bpfel-unknown-unknown --release
   Compiling getrandom v0.1.16
   Compiling serde v1.0.139
   Compiling rayon-core v1.9.3
   Compiling wasm-bindgen-macro-support v0.2.81
   Compiling thiserror v1.0.31
   Compiling solana-program v1.11.2
   Compiling solana-frozen-abi-macro v1.11.2
error: target is not supported, for more information see: https://docs.rs/getrandom/#unsupported-targets
   --> /home/phil/.cargo/registry/src/github.com-1ecc6299db9ec823/getrandom-0.1.16/src/lib.rs:267:9
    |
267 | /         compile_error!("\
268 | |             target is not supported, for more information see: \
269 | |             https://docs.rs/getrandom/#unsupported-targets\
270 | |         ");
    | |___________^

   Compiling bytemuck v1.10.0
error[E0433]: failed to resolve: use of undeclared crate or module `imp`
   --> /home/phil/.cargo/registry/src/github.com-1ecc6299db9ec823/getrandom-0.1.16/src/lib.rs:291:5
    |
291 |     imp::getrandom_inner(dest)
    |     ^^^ use of undeclared crate or module `imp`

For more information about this error, try `rustc --explain E0433`.
error: could not compile `getrandom` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error[E0599]: no method named `lock` found for struct `Stderr` in the current scope
   --> /home/phil/.cargo/registry/src/github.com-1ecc6299db9ec823/rayon-core-1.9.3/src/log.rs:266:52
    |
266 |             let mut writer = BufWriter::new(stderr.lock());
    |                                                    ^^^^ method not found in `Stderr`

For more information about this error, try `rustc --explain E0599`.
error: build failed
@david-zarandi-old
Copy link

Hey, I run into the same issue, but a simple upgrade solved my issue sh -c "$(curl -sSfL https://release.solana.com/stable/install)" I'm on solana-cli 1.10.35.

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