Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple rlib candidates found

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.

like image 544
korochun Avatar asked Aug 03 '26 13:08

korochun


1 Answers

I've seen this error today

error[E0465]: multiple rmeta candidates for `<package_name>` found

It turns out I had different versions specified for this package between [dependencies] and [dev-dependencies] section in the Cargo.toml file.

like image 109
undefined Avatar answered Aug 07 '26 00:08

undefined



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!