-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
bpf-tools/llvm/bin/ld.lld: not found when build c-project #21085
Comments
Can you change the
and try to build your project again? |
@dmakarov, no, changing to the path you suggested leads to the same error I tried to build solana from sources on two ubuntu machines: on one failed when compiling the 858th package, and on the second (on a clean one) during compilation of the 830th package with the same error
I won't post the full stacktrace - it's huge
trying to rebuild didn't help at all :( |
Is the machine you're building on a virtual machine? How much RAM does it have? |
@dmakarov 8 gb (( |
At least you don't see the error that ld.lld is not found anymore? Maybe you can try to set the environment variable |
@dmakarov, unfortunately, this did not become a solution (( error that ld.lld is not found I still encounter |
@dmakarov, good evening
Can you tell me now, maybe this output is more understandable than the previous error ? |
Solana is not supported to run natively on Windows. Normally people use Windows Subsystem for Linux to run Solana or develop for Solana on Windows. Recently @joncinque made significant efforts to enable the Solana BPF toolchain to run natively on Windows. However it looks like cargo-build-bpf still does not work on Windows. The error that you're seeing is issued here solana/sdk/cargo-build-bpf/src/main.rs Line 684 in 1b46d1d
which means that cargo-build-bpf is not supposed to be run on Windows. @joncinque should we remove this check solana/sdk/cargo-build-bpf/src/main.rs Lines 683 to 686 in 1b46d1d
and let corgo-build-bpf run natively on Windows? |
I have to update #20276 and get that working, then we can certainly have this working for windows! |
thank you all for your help, in the end it turned out to solve the problem using the prebuilt version on pure ubuntu 20.04 |
This issue has been automatically locked since there has not been any activity in past 7 days after it was closed. Please open a new issue for related bugs. |
Problem
I am trying to build a c-project on Ubuntu 18.04 according to the instructions on the website, but I get an error
[lld] build/main.so ()
/home/ivan/.local/share/solana/solana-release/bin/sdk/bpf/c/bpf.mk:214: recipe for target 'build/main.so' failed
/bin/sh: 1: /home/ivan/.local/share/solana/solana-release/bin/sdk/bpf/c/../dependencies/bpf-tools/llvm/bin/ld.lld: not found
at the same time, the installation was completed successfully and rust was installed too
Proposed Solution
my attempts to install llvm, clang and lld were successful but it did not become a solution and the error did not change
my make file
OUT_DIR := build
include ~/.local/share/solana/solana-release/bin/sdk/bpf/c/bpf.mk
Can you help me ?
The text was updated successfully, but these errors were encountered: