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

errors while compiling.. #197

Open
zielony12 opened this issue May 4, 2021 · 2 comments
Open

errors while compiling.. #197

zielony12 opened this issue May 4, 2021 · 2 comments

Comments

@zielony12
Copy link

zielony12 commented May 4, 2021

OS: ArchLinux with Linux 5.11.11
Cargo version: cargo 1.51.0
Rustc version: rustc 1.51.0

Error:

  --> /home/user/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/raw-cpuid-2.0.2/src/lib.rs:48:9
   |
48 |           asm!("cpuid" : "+{eax}"(eax) "={ebx}"(ebx)
   |           ^---
   |           |
   |  _________help: replace with: `llvm_asm!`
   | |
49 | |                        "+{ecx}"(ecx) "={edx}"(edx));
   | |____________________________________________________^
   |
   = note: consider migrating to the new asm! syntax specified in RFC 2873
   = note: alternatively, switch to llvm_asm! to keep your code working as it is

error: the legacy LLVM-style asm! syntax is no longer supported
  --> /home/user/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/raw-cpuid-2.0.2/src/lib.rs:64:9
   |
64 |           asm!("cpuid" : "+{eax}"(eax) "={ebx}"(ebx)
   |           ^---
   |           |
   |  _________help: replace with: `llvm_asm!`
   | |
65 | |                        "={ecx}"(ecx) "={edx}"(edx));
   | |____________________________________________________^
   |
   = note: consider migrating to the new asm! syntax specified in RFC 2873
   = note: alternatively, switch to llvm_asm! to keep your code working as it is

error[E0554]: `#![feature]` may not be used on the stable release channel
 --> /home/user/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/raw-cpuid-2.0.2/src/lib.rs:1:1
  |
1 | #![feature(prelude_import, asm)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

   Compiling syn v0.11.11
   Compiling phf v0.7.21
   Compiling num-complex v0.1.41
   Compiling csv v0.14.7
error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0554`.
error: could not compile `raw-cpuid`

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed```


I don't know it's my fault or not.. 
@BrunoWallner
Copy link

I've got the same error

@Hanuko33
Copy link

Hanuko33 commented May 14, 2023

Same here =(

but i have newer version of rust (nightly) rustc 1.71.0-nightly cargo 1.71.0-nightly

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

3 participants