Skip to content

errors while compiling..  #197

@zielony12

Description

@zielony12

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.. 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions