Comments (2)
The bootloader
dependency needs to be in the Cargo.toml of the executable, so for example in demo/Cargo.toml
if you want to build the rusty_demo
executable.
The problem you are seeing occurs because cargo build
builds all binaries in the project by default. In this situation, bootimage
tries to also create bootable disk images for all built binaries, but some of the binaries have no bootimage
dependency. (In the error message you posted, you see that bootimage
successfully created the bootable disk image for the rusty_demo
binary but failed afterwards when it tried to created the bootable disk image for the next binary. We should definitely improve the error message to make this more clear.)
To fix this problem, either add a bootimage
dependency to all your binaries in the workspace if you want to build them all with bootimage
. Alternatively, try building from the subdirectory of an executable or specifying a single executable to build by passing e.g. --bin rusty_demo
.
from bootimage.
Thanks a lot, that was very helpful!
from bootimage.
Related Issues (20)
- Bootimage command claims it can report version, but doesn't. HOT 1
- debug sections stripped HOT 3
- Cannot run tests on CLion HOT 2
- Fails to link with `rust-lld` with an out of range error in latest Rust Nightly HOT 3
- Failing to find bootloader dependency when it's conditionally included
- Doesn't work with newer versions of the bootloader crate HOT 1
- Failing to build HOT 1
- Failed to run example-kernels HOT 3
- While compiling dependencies, I get the error of missing std HOT 1
- Trying to install bootimage yields errors HOT 6
- Support for aarch64 and riscv HOT 1
- How to create .iso? HOT 2
- Kernel command line flags
- linking with `rust-lld` failed: exit status: 1 HOT 4
- Can't Install bootimage with cargo install bootimage HOT 3
- Can't install bootimage HOT 10
- Quiet in Cargo.toml HOT 1
- Add to AUR HOT 1
- Error: Failed to find kernel binary in cargo metadata output HOT 1
- cargo test --quiet passes invalid option --quiet to qemu HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bootimage.