multiple rlib candidates for compiler_builtins found
AthiraRamakrishna opened this issue · 4 comments
AthiraRamakrishna commented
bjorn3 commented
Try -Zbuild-std=core,compiler_builtins and removing the explicit dependency on the compiler_builtins crate in Cargo.toml.
AthiraRamakrishna commented
If I remove the explicit dependency from Cargo.toml and use -Zbuild-std=core,compiler_builtins then i get again rust-lld: error: undefined symbol: memcmp.
bjorn3 commented
Try also passing -Zbuild-std-features=compiler-builtins-mem to cargo. Or alternatively you can add -none to your target name to make compiler-builtins assume that your target is missing libc and automatically enable the mem feature.
AthiraRamakrishna commented
This worked, thank you!
