`bin` file does not exist
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- rust
- Domain
- build-system, cli
Research direction
Start by comparing the path printed in the build stdout with the path requested by ls, then review .cargo/config.toml, Cargo.toml, and x86_64-cernel.json for the target and binary configuration. Reproduce the build with the shown nightly toolchain and determine whether the expected bootimage-cernel.bin is created at the reported location; document the cause and a verified path or configuration.
Written by the indexing model from the issue text.
Description
Hello, I've been following A Minimal Rust Kernel tutorial. I am on Creating a Bootimage section. The problem is, even though build finishes successfully, .bin file does not exist. Here's build stdout:
WARNING: `CARGO_MANIFEST_DIR` env variable not set
Building kernel
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.07s
Building bootloader
Finished `release` profile [optimized + debuginfo] target(s) in 0.07s
Created bootimage for `cernel` at `/var/home/erayerdin/Projects/cernel/target/x86_64-cernel/debug/bootimage-cernel.bin`
I do ls target/x86-64_cernel/debug/, which does not show any bin file at all.
Just in case if it is needed, here are some configurations:
# Cargo.toml
[package]
name = "cernel"
version = "0.1.0"
edition = "2024"
[dependencies]
bootloader = "0.9"
[profile.dev]
panic = "abort"
[profile.release]
panic = "abort"
[[bin]]
name = "cernel"
test = false
bench = false
# .cargo/config.toml
[unstable]
json-target-spec = true
build-std = ["core", "compiler_builtins"]
build-std-features = ["compiler-builtins-mem"]
[build]
target = "x86_64-cernel.json"
// x86_64-cernel.json
{
"llvm-target": "x86_64-unknown-none",
"data-layout": "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128",
"arch": "x86_64",
"target-endian": "little",
"target-pointer-width": 64,
"target-c-int-width": 32,
"os": "none",
"executables": true,
"linker-flavor": "ld.lld",
"linker": "rust-lld",
"panic-strategy": "abort",
"disable-redzone": true,
"features": "-mmx,-sse,+soft-float",
"rustc-abi": "x86-softfloat"
}
# rust-toolchain.toml
[toolchain]
channel = "nightly"
- Dominant language
- Rust
- Stars
- 914
- Forks
- 70
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rust-osdev/bootimage
-
-Z flags not passedOpen
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
rust-osdev/bootimage#103 · 9 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
rust-osdev/bootimage#110 · 4 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 45/100
rust-osdev/bootimage#98 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
rust-osdev/bootimage#94 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
rust-osdev/bootimage#93 · 1 comment ·
All issues in rust-osdev/bootimage
Similar issues
-
claim
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Nixitov/Riptide-Native#946 ·
Maintainers usually reply within 1 day
-
area: ai-assistants documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
BetaBots-LLC/latticegate#17 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
storytold/craft-libs#5594 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
听歌识曲历史跳转后对应音源界面无法返回Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
LingyunStudio/RustMusic#16 ·