Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--target not working properly — could not find any output files #243

Open
masklinn opened this issue Jan 18, 2022 · 2 comments
Open

--target not working properly — could not find any output files #243

masklinn opened this issue Jan 18, 2022 · 2 comments

Comments

@masklinn
Copy link

According to e.g. #142, it seems like cargo asm --target=$TARGET should work, but when I try it cargo asm replies:

[ERROR]: cargo asm could not find any output files!%                                                                                                                                                                                                 

All I've done was rustup target add $TARGET, on compilation the artefacts end up into target/$TARGET/release but otherwise seem fine (the binary runs). The Cargo.toml was not updated with any sort of toolchain or target information (not sure it's relevant).

Also if the builddir is not clean, rather than fail cargo asm dumps the contents from the default target.

> rustup --version
rustup 1.24.3 (ce5817a94 2021-05-31)
> cargo --version
cargo 1.58.0 (7f08ace4f 2021-11-24)
> rustup toolchain list
stable-aarch64-apple-darwin (default)
nightly-aarch64-apple-darwin
> rustup target list | rg installed
aarch64-apple-darwin (installed)
x86_64-apple-darwin (installed)

I was trying to look at the x86_64 output from an aarch64 machine.

@luojia65
Copy link

luojia65 commented Jul 6, 2022

Can reproduce, I uses .cargo/config.toml target.

@pacak
Copy link

pacak commented Jan 13, 2023

https://crates.io/crates/cargo-show-asm should support crosscompilation as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants