Multiple rlib candidates found

Viewed 867

I'm trying to cross-compile an application that needs mem* functions, so I added this to my Cargo.toml:

compiler_builtins = { version = "0.1.35", features = ["mem"] }

I'm getting a compilation error that says:

error[E0465]: multiple rlib candidates for `compiler_builtins` found
  |
  = note: candidate #1: target/x86_64-unknown-uefi/debug/deps/libcompiler_builtins-a0e318c45dffdc3f.rlib
  = note: candidate #2: target/x86_64-unknown-uefi/debug/deps/libcompiler_builtins-86a9a51317aff18e.rlib

Replacing compiler_builtins with the deprecated rlibc fixes this problem, but I'd rather not use deprecated packages.

0 Answers
Related