Closed zxcfer closed 2 months ago
Duplicate of #237 cargo build-bpf
is a cross compilation command which builds for the Solana target. So you will need to register some sort of custom handler for that target (see the docs). Also see https://github.com/solana-labs/solana/pull/32382
In fact, it seems Solana documents how to handle this on their custom target: https://solana.com/docs/programs/lang-rust#depending-on-rand
Error why running
cargo build-bpf
in Linux Virtual Machine, but documentations states that Linux and x86_64 are supported.System details: