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

Nightly std fails to build for WASM with -C target-feature=+atomics #100055

Closed
ghost opened this issue Aug 2, 2022 · 1 comment
Closed

Nightly std fails to build for WASM with -C target-feature=+atomics #100055

ghost opened this issue Aug 2, 2022 · 1 comment
Labels
C-bug Category: This is a bug.

Comments

@ghost
Copy link

ghost commented Aug 2, 2022

Trying to build the standard library for the wasm32-unknown-unknown target with -C target-feature=+atomics fails using the latest nightly compiler. Specifically, this happens:

error[E0583]: file not found for module `futex`
  --> /.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/library/std/src/sys/wasm/mod.rs:55:13
   |
55 |             mod futex;
   |             ^^^^^^^^^^
   |
   = help: to create the module `futex`, create file "/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/library/std/src/sys/wasm/../unix/locks/futex.rs" or "/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/library/std/src/sys/wasm/../unix/locks/futex/mod.rs"

error[E0432]: unresolved imports `futex::Mutex`, `futex::MovableMutex`, `futex::Condvar`, `futex::MovableCondvar`
  --> /.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/library/std/src/sys/wasm/mod.rs:57:36
   |
57 |             pub(crate) use futex::{Mutex, MovableMutex, Condvar, MovableCondvar};
   |                                    ^^^^^  ^^^^^^^^^^^^  ^^^^^^^  ^^^^^^^^^^^^^^ no `MovableCondvar` in `sys::wasm::locks::futex`
   |                                    |      |             |
   |                                    |      |             no `Condvar` in `sys::wasm::locks::futex`
   |                                    |      no `MovableMutex` in `sys::wasm::locks::futex`
   |                                    no `Mutex` in `sys::wasm::locks::futex`

Meta

rustc --version --verbose:

rustc 1.64.0-nightly (fe3342816 2022-08-01)
binary: rustc
commit-hash: fe3342816a282949f014caa05ea2e669ff9d3d3c
commit-date: 2022-08-01
host: x86_64-apple-darwin
release: 1.64.0-nightly
LLVM version: 14.0.6
@ghost ghost added the C-bug Category: This is a bug. label Aug 2, 2022
@ghost
Copy link
Author

ghost commented Aug 3, 2022

Fixed by #99800

@ghost ghost closed this as completed Aug 3, 2022
This issue was closed.
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.
Projects
None yet
Development

No branches or pull requests

0 participants