-
Notifications
You must be signed in to change notification settings - Fork 13.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
error: linker rust-lld
not found
#52362
Comments
Hm, there was some changes around this recently: intermezzOS/kernel@f341033 But that's in target specs, which you don't have. What's your `rustc +nightly --version'? |
pi@raspberrypi:~ $ rustc +nightly --version |
Looks like docs are outdated, could you try installing
|
I'm seeing the same thing. This may be specific to the arm toolchains since it doesn't occur on my x64 linux machine. |
@mati865 I installed
|
Indeed issue affects arm but not x86. |
the directory does exist on mine, but that was after I installed the llvm tools. It doesn't contain the rust-lld though so I'm guessing it doesn't ship on arm. I wonder if that's an underlying issue with lld or it just hasn't been packaged into rust for arm yet. Edit: I found out why it isn't built: |
actually that would be @alexcrichton. If it were for me I would enable LLD everywhere it can be built but I don't know how that would affect CI time. PR #48125 says:
So you would have to install LLD on ARM Linux if want to compile to wasm. After #51936 you would have to pass |
Yes currently we unfortunately don't have enough time on CI to produce these artifacts for all platforms, only those with self-hosted compilers (which build one fewer compiler than the cross-compiled platforms) |
Bah... compiling rust-lld on a rpi3 might prove difficult/more time consuming that on CI. 😭 |
I've run into this problem in that I can't generate wasm on arm64. I'm testing this change to the build flags to see just how long Travis will take: https://github.com/vielmetti/rust/pull/1/commits/684f997e40038729d865e6e0cab59b8f50b99f79 |
Based on Plume-org/Plume#394 I can recommend this script as being suitable for installing the lld dependency: https://github.com/mcrosson/Plume/blob/master/script/wasm-deps.sh and then you invoke with https://github.com/mcrosson/Plume/blob/master/script/plume-front.sh The note in the PR at Plume-org/Plume#402 says
|
For the record, LLVM 8 lld is good enough, but LLVM 7 lld isn't. In Nix, one can just add |
I'm going to close this as it's not really an actionable issue at this point. |
@alexcrichton I know the Rust's CI situation has changed a bit since this issue was first opened. Is it still the case that there isn't enough CI time available to build LLVM tools for (at least some) tier 2 platforms? |
Unfortunately we haven't had any major changes to CI in the meantime. |
I don't want to spam this issue, but I wanted to ask if the situation maybe changed with the switch to GitHub actions? Also, is there any tracking issue for things blocked on CI capacity? In a quick search, I found #42639, #57438, and #59637, but there are probably more. |
I installed Rust on my Raspberry pi3 but when i tried hello-world example from this page.
https://rustwasm.github.io/book/hello-world.html
it shows this error
The text was updated successfully, but these errors were encountered: