-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
[dependencies]
...
volatile-ptr = "*"
$ uname -a # That's Debian 10
Linux home 4.19.0-20-amd64 #1 SMP Debian 4.19.235-1 (2022-03-17) x86_64 GNU/Linux
$ rustc -V
rustc 1.62.0-nightly (e7575f967 2022-04-14)
$ cargo b
Blocking waiting for file lock on package cache
Updating crates.io index
Blocking waiting for file lock on package cache
Blocking waiting for file lock on package cache
Compiling volatile-ptr v0.1.1
Compiling nanomsg-sys v0.7.2 (/home/nick/code/ONI/nanomsg.rs/nanomsg_sys)
Compiling memoffset v0.6.5
Compiling getrandom v0.2.6
Compiling aho-corasick v0.7.18
Compiling atty v0.2.14
error: cannot find macro `asm` in this scope
--> /home/nick/.cargo/registry/src/github.com-1ecc6299db9ec823/volatile-ptr-0.1.1/src/lib.rs:379:13
|
379 | asm!("" ::: "memory" : "volatile");
| ^^^
|
= note: consider importing this macro:
core::arch::asm
error: cannot find macro `asm` in this scope
--> /home/nick/.cargo/registry/src/github.com-1ecc6299db9ec823/volatile-ptr-0.1.1/src/lib.rs:388:13
|
388 | asm!("" ::: "memory" : "volatile");
| ^^^
|
= note: consider importing this macro:
core::arch::asm
error: could not compile `volatile-ptr` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
Hi, same error with stable rustc 1.60. I've tried putting use core::arch::asm;, but then another error pops up. Hope this helps.
Metadata
Metadata
Assignees
Labels
No labels