BPF SDK: /home/ammar/.local/share/solana/install/releases/stable-0592b5568fafe00a796f5dce54e8ec8eaa9678ea/solana-release/bin/sdk/bpf cargo-build-bpf child: rustup toolchain list -v cargo-build-bpf child: cargo +bpf build --target bpfel-unknown-unknown --release Finished release [optimized] target(s) in 2.66s cargo-build-bpf child: /home/ammar/.local/share/solana/install/releases/stable-0592b5568fafe00a796f5dce54e8ec8eaa9678ea/solana-release/bin/sdk/bpf/dependencies/bpf-tools/llvm/bin/llvm-readelf --dyn-symbols /mnt/d/Office/NFT-Marketplace-with-Rust-on-Solana/program/target/deploy/fair_launch.so To deploy this program: $ solana program deploy /mnt/d/Office/NFT-Marketplace-with-Rust-on-Solana/program/target/deploy/fair_launch.so The program address will default to this keypair (override with --program-id): /mnt/d/Office/NFT-Marketplace-with-Rust-on-Solana/program/target/deploy/fair_launch-keypair.json BPF SDK: /home/ammar/.local/share/solana/install/releases/stable-0592b5568fafe00a796f5dce54e8ec8eaa9678ea/solana-release/bin/sdk/bpf cargo-build-bpf child: rustup toolchain list -v cargo-build-bpf child: cargo +bpf build --target bpfel-unknown-unknown --release warning: unused import:
solana_program::msg--> metaplex/program/src/state.rs:1:5 | 1 | use solana_program::msg; | ^^^^^^^^^^^^^^^^^^^ | = note:
#[warn(unused_imports)]` on by default
warning: metaplex
(lib) generated 1 warning
Finished release [optimized] target(s) in 1.52s
cargo-build-bpf child: /home/ammar/.local/share/solana/install/releases/stable-0592b5568fafe00a796f5dce54e8ec8eaa9678ea/solana-release/bin/sdk/bpf/dependencies/bpf-tools/llvm/bin/llvm-readelf --dyn-symbols /mnt/d/Office/NFT-Marketplace-with-Rust-on-Solana/program/target/deploy/metaplex.so
To deploy this program:
$ solana program deploy /mnt/d/Office/NFT-Marketplace-with-Rust-on-Solana/program/target/deploy/metaplex.so
The program address will default to this keypair (override with --program-id):
/mnt/d/Office/NFT-Marketplace-with-Rust-on-Solana/program/target/deploy/metaplex-keypair.json
BPF SDK: /home/ammar/.local/share/solana/install/releases/stable-0592b5568fafe00a796f5dce54e8ec8eaa9678ea/solana-release/bin/sdk/bpf
cargo-build-bpf child: rustup toolchain list -v
cargo-build-bpf child: cargo +bpf build --target bpfel-unknown-unknown --release
Compiling metaplex-auction v0.0.1 (/mnt/d/Office/NFT-Marketplace-with-Rust-on-Solana/program/auction/program)
Finished release [optimized] target(s) in 7.95s
cargo-build-bpf child: /home/ammar/.local/share/solana/install/releases/stable-0592b5568fafe00a796f5dce54e8ec8eaa9678ea/solana-release/bin/sdk/bpf/scripts/strip.sh /mnt/d/Office/NFT-Marketplace-with-Rust-on-Solana/program/target/bpfel-unknown-unknown/release/metaplex_auction.so /mnt/d/Office/NFT-Marketplace-with-Rust-on-Solana/program/target/deploy/metaplex_auction.so
/home/ammar/.local/share/solana/install/releases/stable-0592b5568fafe00a796f5dce54e8ec8eaa9678ea/solana-release/bin/sdk/bpf/dependencies/bpf-tools/llvm/bin/llvm-objcopy: error: '/mnt/d/Office/NFT-Marketplace-with-Rust-on-Solana/program/target/deploy/metaplex_auction.so': Operation not permitted`
Getting this error while building cargo build-bpf. It has created the target folder and the following files inside the deploy folder in it:
- fair_launch_keypairgen.json
- fair_launch.so
- metaplex_auction_keypair.json
- metaplex_auction.so
- metaplex.so
- metaplex_keypair.json
Any idea how to resolve it. I am on windows 10, using WSL2 within VSCode. Versions are:
- solana-cli 1.8.12 (src:0592b556; feat:1006352700)
- cargo 1.57.0 (b2e52d7ca 2021-10-21)
Let me know if i should provide any other details I am missing here. Any idea why its happening ?