cargo icon indicating copy to clipboard operation
cargo copied to clipboard

Cargo build `cross` error `E0464` using nightly build on macOS.

Open Wyvern opened this issue 1 year ago • 1 comments

Building cross-rs https://github.com/cross-rs/cross using latest nightly rust cargo 1.83.0-nightly (80d82ca22 2024-09-27) got error like below:

error[E0464]: multiple candidates for `dylib` dependency `proc_macro_error_attr` found
   --> index.crates.io-6f17d22bba15001f/proc-macro-error-1.0.4/src/lib.rs:284:9
    |
284 | pub use proc_macro_error_attr::proc_macro_error;
    |         ^^^^^^^^^^^^^^^^^^^^^
    |
    = note: candidate #1: /private/var/folders/kz/y16z4dms7xn5gkphbxltbdc40000gn/T/cargo-installHMrg7n/release/deps/libproc_macro_error_attr-b33a0a920db22da1.dylib
    = note: candidate #2: /private/var/folders/kz/y16z4dms7xn5gkphbxltbdc40000gn/T/cargo-installHMrg7n/release/deps/libproc_macro_error_attr-3cbf98ceb064ca9b.dylib

For more information about this error, try `rustc --explain E0464`.

Wyvern avatar Sep 29 '24 02:09 Wyvern

Sorry, I'm not able to reproduce. Can you show exactly what you did? What is the output of cargo --version --verbose? Does it still reproduce on the latest nightly?

ehuss avatar Sep 29 '24 14:09 ehuss

As this has been "needs info" for over a year, I'm going to go ahead and close this. If you are able to provide more information about this problem we can re-evaluate.

epage avatar Nov 10 '25 21:11 epage