Multiple definitions of atomic builtins on armv5te-unknown-linux-gnu #48625
Labels
C-bug
Category: This is a bug.
O-Arm
Target: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 state
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Trying to cross-compile the Rust compiler for armv5te-unknown-linux-gnu fails with:
This happens because Rust's own libcompiler_builtins provides atomic builtins like __sync_synchronize despite the fact that gcc already provides these builtins itself. The builtins provided by libcompiler_builtins should therefore be disabled.
I could not find where those are defined, but I could only find a reference to them: https://github.com/rust-lang/rust/blob/master/src/librustc_back/target/armv5te_unknown_linux_gnueabi.rs#L30
CC @jrtc27
CC @malbarbo
The text was updated successfully, but these errors were encountered: