![moshudp 交叉编译](https://linux22.com/image/1192079/moshudp%20%E4%BA%A4%E5%8F%89%E7%BC%96%E8%AF%91.png)
我有一块带有 mips64el 的 MIPS CPU 的主板和带有工具链的 buildRoot。当我尝试使用 rust 从 buildRoot 编译 moshudp 程序时,我得到了以下错误
$ source $BUILD_ROOT_PATH/buildroot/output/host/environment_setup
$ cargo build --target mips64el-unknown-linux-gnuabi64
Compiling syn v1.0.91
error[E0463]: can't find crate for `std`
我只安装了 mips64el-unknown-linux-gnuabi64 目标
$ rustup target list | grep install
mips64el-unknown-linux-gnuabi64 (installed)
怎么了?
更新 添加新目标又出现错误
$ rustup target add x86_64-unknown-linux-gnu
$ cargo build --target mips64el-unknown-linux-gnuabi64
= note: cc.br_real.br_real: No such file or directory