Closed BeycanDeveloper closed 1 year ago
I am also stuck with this error, what should I do
Error message:
cargo-build-bpf child: rustup toolchain list -v
cargo-build-bpf child: rustup toolchain uninstall bpf
info: uninstalling toolchain 'bpf'
info: toolchain 'bpf' uninstalled
cargo-build-bpf child: rustup toolchain link bpf \?\C:\Users\arnab.local\share\solana\install\releases\1.9.12\solana-release\bin\sdk\bpf\dependencies\bpf-tools\rust
cargo-build-bpf child: cargo +bpf build --target bpfel-unknown-unknown --release
Compiling program v0.1.0 (C:\Users\arnab\OneDrive\Desktop\Blockchain\crowd-funding\program)
error: linking with \\?\C:\Users\arnab\.local\share\solana\install\releases\1.9.12\solana-release\bin\sdk\bpf\dependencies\bpf-tools\llvm\bin\ld.lld
failed: exit code: 1
Just solved this issue. Install WSL (ubuntu). Then follow this article https://medium.com/@sncryldrm/setup-solana-development-environment-on-windows-cbed9e42ccef
After that cd to /mnt/c/.../root-project-folder
After going through the article, when trying to compile using cargo build-bpf you may face an error saying: 'Operation not permitted' (You will only face this issue if you are using git)
Trying running the commands: sudo umount /mnt/c sudo mount -t drvfs C: /mnt/c -o metadata
(cd back to root location, else it will show "/mnt/c is busy" before running the above commands)
This will solve the issue :)
It looks like this is no longer an issue.
He can't download them himself, I downloaded them manually and threw them away. But the file specified below does not exist in the directory. What should I do. I am testing the sample Solana program below.
C:\Users\halil.local\share\solana\install\releases\1.9.13\solana-release\bin\sdk\bpf\dependencies\bpf-tools\llvm\bin\ld.lld` failed: exit code: 1
https://github.com/solana-labs/example-helloworld