tjeznach / docs

1 stars 1 forks source link

build crosvm failed #2

Closed runninglinuxkernel closed 10 months ago

runninglinuxkernel commented 10 months ago

I try to build the system for IOMMU test, but build crosvm failed.

@master:crosvm$ cargo build --no-default-features --target=riscv64gc-unknown-linux-gnu --release warning: /home/rlk/rlk/riscv-iommu/crosvm/Cargo.toml: file found to be present in multiple build targets: /home/rlk/rlk/riscv-iommu/crosvm/src/main.rs Compiling cfg-if v1.0.0 Compiling futures-task v0.3.21 Compiling futures-channel v0.3.21 Compiling futures-util v0.3.21 Compiling futures-sink v0.3.21 Compiling futures-io v0.3.21 Compiling pin-project-lite v0.2.9 Compiling pin-utils v0.1.0 error[E0463]: can't find crate for core | = note: the riscv64gc-unknown-linux-gnu target may not be installed = help: consider downloading the target with rustup target add riscv64gc-unknown-linux-gnu

error[E0463]: can't find crate for compiler_builtins

error[E0463]: can't find crate for core --> /home/rlk/.cargo/registry/src/github.com-1ecc6299db9ec823/pin-utils-0.1.0/src/lib.rs:11:13 11 pub use core::*; ^^^^ can't find crate

= note: the riscv64gc-unknown-linux-gnu target may not be installed = help: consider downloading the target with rustup target add riscv64gc-unknown-linux-gnu

For more information about this error, try rustc --explain E0463. error[E0463]: can't find crate for core --> /home/rlk/.cargo/registry/src/github.com-1ecc6299db9ec823/pin-project-lite-0.2.9/src/lib.rs:1503:9 1503 use core::mem::ManuallyDrop; ^^^^ can't find crate