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

when i use cargo build command to build log , i don't know what wrong and how to solve it? #640

Closed
KairusZhang opened this issue Oct 15, 2024 · 3 comments

Comments

@KairusZhang
Copy link

error[E0658]: cfg(target_has_atomic) is experimental and subject to change
--> src/lib.rs:396:11
|
396 | #[cfg(not(target_has_atomic = "ptr"))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #32976 rust-lang/rust#32976 for more information
= help: add #![feature(cfg_target_has_atomic)] to the crate attributes to enable

@KairusZhang
Copy link
Author

i try to change the rustc version to
rustup default nightly-2024-05-01-x86_64-unknown-linux-gnu
And show the version of rustc 1.84.0-nightly (9322d183f 2024-10-14)
, but all of them are useless!!

@Thomasdezeeuw
Copy link
Collaborator

Can you update to a Rust version newer than 1.60? This is the minimum supported version: https://github.com/rust-lang/log?tab=readme-ov-file#minimum-supported-rustc.

@KairusZhang
Copy link
Author

yes, i solved it by uninstall all other version
$ rustup toolchain list && rustup uninstall XXXX-linux-gnu*;
$ rustc --version
only keep the latest rustc 1.84.0-nightly (9322d183f 2024-10-14);

i find the problem was caused by Cargo.toml dependencies , there are some other crate which is too old and them have dependencies on oler log crate.

so i must keep the dependencies and version of rustc in latest sates.\thanks for your suggestion,.

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