Install the GNU toolchain/gcc of the target system. For example, to cross build ARM64 binaries in AMD64 ubuntu/debian machine, do these steps: Install the GNU toolchain/gcc of the target system ARM64