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

No such target '@rust_darwin_aarch64//:cargo' #519

Open
ibraheemdev opened this issue Aug 11, 2022 · 1 comment
Open

No such target '@rust_darwin_aarch64//:cargo' #519

ibraheemdev opened this issue Aug 11, 2022 · 1 comment

Comments

@ibraheemdev
Copy link

I'm upgrading a project to newer versions of rules_rust (0.9) and cargo-raze (0.16), and am now running into an error when running bazel run @cargo-raze//:raze on an M1 machine:

/external/cargo_raze/tools/BUILD.bazel:44:6: no such target '@rust_darwin_aarch64//:cargo': target 'cargo' not declared in package '' defined by /external/rust_darwin_aarch64/BUILD.bazel and referenced by '@cargo_raze//tools:cargo'
ERROR: /external/cargo_raze/tools/BUILD.bazel:55:6: no such target '@rust_darwin_aarch64//:rustc': target 'rustc' not declared in package '' defined by /external/rust_darwin_aarch64/BUILD.bazel and referenced by '@cargo_raze//tools:rustc

Is there any obvious config I might be missing? I have:

targets = [
    "x86_64-unknown-linux-gnu",
    "aarch64-apple-darwin"
]

in my Cargo.toml

@nobu-k
Copy link

nobu-k commented Sep 5, 2022

I have the same issue on Linux as well with rules_rust 0.10.0 and cargo-raze 0.16.0.

$ bazel run @cargo_raze//:raze
ERROR: external/cargo_raze/tools/BUILD.bazel:44:6: no such target '@rust_linux_x86_64//:cargo': target 'cargo' not declared in package '' defined by external/rust_linux_x86_64/BUILD.bazel and referenced by '@cargo_raze//tools:cargo'
ERROR: Analysis of target '@cargo_raze//:raze' failed; build aborted:
INFO: Elapsed time: 0.424s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets configured)
FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets configured)

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

2 participants