Skip to content

cargo nm can't find the path to existing binary #120

@wmstack

Description

@wmstack

As per the https://docs.rust-embedded.org/embedonomicon/smallest-no-std.html, I execute the following.

cargo nm -- target/thumbv7m-none-eabi/debug/deps/app-*.o | grep '[0-9]* [^N] '
/homeo/waleed/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin/llvm-nm: error: target/thumbv7m-none-eabi/debug/deps/app-2fb83299481625ce.o: No such file or directory

The binary is in fact there, but llvm-nm doesn't notice.

rustc --version
rustc 1.60.0 (7737e0b5c 2022-04-04)

I installed llvm and with

llvm-nm target/thumbv7m-none-eabi/debug/deps/app-2fb83299481625ce.o
00000000 T rust_begin_unwind

it works, but the cargo nm command doesn't work.

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