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

log fails to build for thumbv4t-none-eabi #487

Closed
wtetzner opened this issue Feb 26, 2022 · 2 comments
Closed

log fails to build for thumbv4t-none-eabi #487

wtetzner opened this issue Feb 26, 2022 · 2 comments

Comments

@wtetzner
Copy link
Contributor

wtetzner commented Feb 26, 2022

    Blocking waiting for file lock on package cache
    Updating crates.io index
    Blocking waiting for file lock on package cache
   Compiling log v0.4.14
   Compiling cfg-if v1.0.0
error[E0599]: no method named `compare_exchange` found for struct `AtomicUsize` in the current scope
    --> /Users/walter/.cargo/registry/src/github.com-1ecc6299db9ec823/log-0.4.14/src/lib.rs:1347:33
     |
1347 |     let old_state = match STATE.compare_exchange(
     |                                 ^^^^^^^^^^^^^^^^ method not found in `AtomicUsize`

For more information about this error, try `rustc --explain E0599`.
error: could not compile `log` due to previous error
@KodrAus
Copy link
Contributor

KodrAus commented Feb 26, 2022

Hi @wtetzner 👋 We've got a build script that flags targets that don't have atomics support. It looks like we're just missing the thumbv4t-none-eabi target here: https://github.com/rust-lang/log/blob/master/build.rs#L36

KodrAus added a commit that referenced this issue Mar 2, 2022
#487 Add thumbv4t-none-eabi to the list of targets that don't support…
@KodrAus
Copy link
Contributor

KodrAus commented Mar 22, 2022

This is included in 0.4.15. Thanks again @wtetzner!

@KodrAus KodrAus closed this as completed Mar 22, 2022
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

No branches or pull requests

2 participants