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

Raytrace example won't compile (wasm32::atomic_notify) #2285

Closed
nemwiz opened this issue Aug 15, 2020 · 1 comment · Fixed by #2299
Closed

Raytrace example won't compile (wasm32::atomic_notify) #2285

nemwiz opened this issue Aug 15, 2020 · 1 comment · Fixed by #2299

Comments

@nemwiz
Copy link

nemwiz commented Aug 15, 2020

I'm trying to run the raytrace example and I'm hitting a compile error.

Compiling wasm-bindgen-futures v0.4.17
error[E0425]: cannot find function atomic_notify in module core::arch::wasm32
  --> C:\Users\neni\.cargo\registry\src\github.51.al-1ecc6299db9ec823\wasm-bindgen-futures-0.4.17\src\task\multithread.rs:39:33
   |
39 |             core::arch::wasm32::atomic_notify(
   |                                 ^^^^^^^^^^^^^ not found in core::arch::wasm32

error: aborting due to previous error

For more information about this error, try rustc --explain E0425.
error: could not compile wasm-bindgen-futures

Steps to reproduce:

I'm using the Rust nighlty (nightly-x86_64-pc-windows-msvc unchanged - rustc 1.47.0-nightly (81dc88f88 2020-08-13)) and I have rust-src component added. Am I missing some steps maybe? Any help is appreciated.

Thanks,
Nemanja

@alexcrichton
Copy link
Contributor

Thanks for this! This is because the intrinsic has been renamed to memory_atomic_notify in nightly. I'll work on getting this fixed next I'm back at a computer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants