bootloader icon indicating copy to clipboard operation
bootloader copied to clipboard

ovmf-prebuilt v0.1.0-alpha.1 doesn't compile

Open Zingoooooo opened this issue 2 years ago • 3 comments

The result i get when I compile with cargo 1.70.0-nightly (15d090969 2023-03-21) is listed below. What am I missing? I'm following the migration guide from 0.9.

Compiling ovmf-prebuilt v0.1.0-alpha.1 error[E0463]: can't find crate for std | = note: the x86_64-unknown-none target may not support the standard library = note: std is required by ovmf_prebuilt because it does not declare #![no_std] = help: consider building the standard library from source with cargo build -Zbuild-std

error[E0463]: can't find crate for std --> /home/zingo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ovmf-prebuilt-0.1.0-alpha.1/src/lib.rs:1:5 | 1 | use std::path::{PathBuf, Path}; | ^^^ can't find crate | = note: the x86_64-unknown-none target may not support the standard library = help: consider building the standard library from source with cargo build -Zbuild-std

error: cannot find macro assert in this scope --> /home/zingo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ovmf-prebuilt-0.1.0-alpha.1/src/lib.rs:5:5 | 5 | assert!(path.exists(), "OVMF-pure-efi.fd does not exist"); | ^^^^^^ | = help: consider importing this macro: core::assert

error: cannot find macro env in this scope --> /home/zingo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ovmf-prebuilt-0.1.0-alpha.1/src/lib.rs:4:26 | 4 | let path = Path::new(env!("CARGO_MANIFEST_DIR")).join("OVMF-pure-efi.fd"); | ^^^ | = help: consider importing this macro: core::env

Zingoooooo avatar Mar 29 '23 18:03 Zingoooooo