I've had a similar problem when developing on Xilinx hardware (ZedBoard) using Rust & Cargo.
The error was due to linking against a different version of libc that was installed on my board (as @Yardanico said). The solution I chose was to use musl-gcc in order to statically link the libc.