ovmf-prebuilt v0.1.0-alpha.1 doesn't compile
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 25/100
- Issue 類型
- 缺陷
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 技術堆疊
- rust
研究方向
從 0.9 遷移指南以及編譯器輸出中顯示的已安裝 ovmf-prebuilt 的 src/lib.rs 開始,然後使用報告中的 nightly toolchain 和 x86_64-unknown-none 目標重現建置。確定問題是由遷移說明還是 crate 對標準函式庫的假設所導致,並記錄或驗證一個可運作的建置結果。
由索引模型根據 Issue 內容生成。
描述
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
- 主要語言
- Rust
- 星號
- 1.7k
- 分支
- 240
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
我們還沒有檢查這個專案的環境設定檔。先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
rust-osdev/bootloader 的其他 Issue
-
help wanted
難度 3/5 1-2 天 新手友好度 67/100
rust-osdev/bootloader#581 · 2 則留言 ·
-
難度 4/5 3-5 天 新手友好度 35/100
rust-osdev/bootloader#573 · 5 則留言 ·
-
難度 5/5 一週以上 新手友好度 20/100
rust-osdev/bootloader#555 · 2 則留言 ·
-
難度 5/5 一週以上 新手友好度 30/100
rust-osdev/bootloader#534 ·
-
難度 3/5 1-2 天 新手友好度 38/100
rust-osdev/bootloader#525 ·
查看 rust-osdev/bootloader 的全部 Issue
相似的 Issue
-
area: dogs area: lookout bug security
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 92/100
維護者通常 2 天內回覆
-
documentation
難度 2/5 1-3 小時 新手友好度 84/100
OpenDevicePartnership/ina4230#31 ·
維護者通常 1 天內回覆
-
area:breg criticality:p3 documentation triage:needs-implementation
難度 1/5 1 小時以內 新手友好度 86/100
registrystack/registry-stack#1713 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
posit-dev/ggsql#565 · 1 個 reaction ·
維護者通常 1 天內回覆