-
Notifications
You must be signed in to change notification settings - Fork 12.2k
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
build_std can't find crate for panic_abort #83805
Comments
This is a known issue (unfortunately), mainly tracked in rust-lang/wg-cargo-std-aware#29. The |
Aha, that worked perfectly, thanks! Are the options for |
|
I try all the feedback but it doesn't work successfully. |
What error did you get? Coincidentally I did a talk about this yesterday and it still works for me. |
I'm trying to build
std
forwasm32-unknown-unknown
. I cloned the wasm template but compiling it gives this:I tried adding the
panic_abort
crate from crates.io but it gives some other errors and I'm pretty sure I shouldn't have to.Compiling with
RUSTC_LOG=info
gives a bit more info:As you can see it is looking for the wrong
libpanic_abort.rlib
! It's especially weird because it finds the right crate when it tries to resolve other ones, e.g:And it actually did successfully compile
libpanic_abort.rlib
for wasm:Possibly related to #56228. I also made a thread about this here.
The text was updated successfully, but these errors were encountered: