Skip to content

Crate fails to build from source #1

@n-epifanov

Description

@n-epifanov
[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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions