Skip to content

thumbv8.main -inline-asm = "undefined symbol: __basepri_r" #156

Closed
@japaric

Description

@japaric

STR

Start from the cortex-m-quickstart template and write:

#[entry]
fn main() -> ! {
    let x = basepri::read();

    loop {}
}

compile for the thumbv8m.main-none-eabi target; you get:

error: linking with `rust-lld` failed: exit code: 1
  = note: rust-lld: error: undefined symbol: __basepri_r

The thumbv8m.main-none-eabi.a archive / binary blob is missing __basepri_r and other symbols. asm-v7.s should be compiled for this target and included in the archive.

Metadata

$ rustc -V
rustc 1.36.0 (a53f9df32 2019-07-03)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions