Skip to content
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

WASM64 compiltion failure on core::arch::wasm32::unreachable() in the unwind library #122877

Closed
newpavlov opened this issue Mar 22, 2024 · 1 comment
Labels
C-bug Category: This is a bug. O-wasm Target: WASM (WebAssembly), http://webassembly.org/ T-libs Relevant to the library team, which will review and decide on the PR/issue.

Comments

@newpavlov
Copy link
Contributor

Compiling tests with cargo test --no-run -Z build-std=std,panic_abort results in the following compilation error:

   Compiling unwind v0.0.0 (/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/unwind)
error[E0433]: failed to resolve: could not find `wasm32` in `arch`
  --> /home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/unwind/src/wasm.rs:62:25
   |
62 |             core::arch::wasm32::unreachable()
   |                         ^^^^^^ could not find `wasm32` in `arch`

For example, see this CI job.

Nightly version: rustc 1.79.0-nightly (0ad927c 2024-03-21)

@newpavlov newpavlov added the C-bug Category: This is a bug. label Mar 22, 2024
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Mar 22, 2024
@jieyouxu jieyouxu added O-wasm Target: WASM (WebAssembly), http://webassembly.org/ T-libs Relevant to the library team, which will review and decide on the PR/issue. and removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Mar 22, 2024
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this issue Mar 23, 2024
Use `arch::wasm::unreachable` instead of `arch::wasm32::unreachable`

Closes rust-lang#122877
@kadiwa4
Copy link
Contributor

kadiwa4 commented Mar 27, 2024

Fixed by #122797

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. O-wasm Target: WASM (WebAssembly), http://webassembly.org/ T-libs Relevant to the library team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants