Error: Failed to find kernel binary in cargo metadata output
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- rust
调研方向
在 Windows 11 上复现 cargo bootimage --target ./x64_86-darkos.json,并将 cargo metadata 的输出与 target 文件夹中生成的二进制文件进行比较。首先从 bootimage 对 cargo metadata 和目标 x64_86-darkos.json 的处理入手;当生成的内核二进制文件能够被正确识别,而不是报告其缺失时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
I was following the OS tutorial, and ran into an issue when using cargo bootimage.
→ cargo bootimage --target ./x64_86-darkos.json
Building kernel
Compiling compiler_builtins v0.1.105
Compiling core v0.0.0 (C:\Users\ticta\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core)
Compiling bootloader v0.9.23
Compiling rustc-std-workspace-core v1.99.0 (C:\Users\ticta\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\rustc-std-workspace-core)
Compiling os v0.1.0 (C:\Users\ticta\Deno\os)
Finished dev [unoptimized + debuginfo] target(s) in 21.97s
Error: Failed to find kernel binary in cargo metadata output
When looking through to target folder, it did spit out a file that looks to be the kernel binary:
Not exactly sure how to solve this issue.
My os is Windows (11) and my cargo version is cargo 1.77.0-nightly (1ae631085 2024-01-17)
- 主要语言
- Rust
- 星标
- 906
- 派生
- 70
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
rust-osdev/bootimage 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
rust-osdev/bootimage#103 · 9 条评论 ·
-
难度 3/5 1-2 天 新手友好度 45/100
rust-osdev/bootimage#110 · 4 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 45/100
rust-osdev/bootimage#109 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 45/100
rust-osdev/bootimage#98 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
rust-osdev/bootimage#94 · 1 条评论 ·
查看 rust-osdev/bootimage 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
app documentation remote windows-os
难度 1/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
oxidecomputer/dendrite#380 ·
维护者通常 5 天内回复
-
area:cli bug good first issue priority:high
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复