Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#361 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

rust-osdev/bootloader のほかの issue

rust-osdev/bootloader の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。