playform icon indicating copy to clipboard operation
playform copied to clipboard

errors while compiling..

Open zielony12 opened this issue 4 years ago • 2 comments

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/github.com-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/github.com-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/github.com-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.. 

zielony12 avatar May 04 '21 20:05 zielony12

I've got the same error

BrunoWallner avatar Aug 30 '22 00:08 BrunoWallner

Same here =(

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

Hanuko33 avatar May 14 '23 08:05 Hanuko33