Comments (10)
but are you going to continue writing the tutorial?
from bootimage.
It's difficult to guess without the actual errors, but the problem might be that you're running the cargo install
command from a folder that contains a .cargo/config.toml
file with build-std
settings. If that's the case, try running it again from a parent directory or from your home directory.
from bootimage.
If I run cargo install bootimage
on C: I get this error
C:\>cargo install bootimage
warning: unused config key `unstable.build-std-features` in `C:\Users\Sytze Meijer\.cargo\config.toml`
Updating crates.io index
Installing bootimage v0.10.3
Compiling compiler_builtins v0.1.32
Compiling core v0.0.0 (C:\Users\Sytze Meijer\.rustup\toolchains\nightly-2020-07-15-x86_64-pc-windows-msvc\lib\rustlib\src\rust\src\libcore)
Compiling proc-macro2 v1.0.47
Compiling unicode-ident v1.0.5
Compiling quote v1.0.21
Compiling syn v1.0.103
Compiling serde v1.0.147
Compiling serde_json v1.0.89
Compiling serde_derive v1.0.147
Compiling thiserror v1.0.37
Compiling anyhow v1.0.66
error[E0635]: unknown feature `proc_macro_span_shrink`
--> C:\Users\Sytze Meijer\.cargo\registry\src\github.com-1ecc6299db9ec823\proc-macro2-1.0.47\src\lib.rs:92:30
|
92 | feature(proc_macro_span, proc_macro_span_shrink)
| ^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0635`.
error: could not compile `proc-macro2`.
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
Building [========================> ] 20/44: core
from bootimage.
Two things:
- You probably don't want to set any
unstable
features in the.cargo/config.toml
in your user directory since these settings will then be used for all your Rust projects. Instead, create a local.cargo/config.toml
file in your project directory. For details, see https://doc.rust-lang.org/cargo/reference/config.html#hierarchical-structure. - It looks like you're using a nightly from 2020, which is way to old. Try running
rustup update
.
from bootimage.
It now installs but the bin file has no extension and when I run it in qemu nothing happens.
from bootimage.
Which bin file are you talking about?
from bootimage.
I'm following your tutorial on how to create a operating system in rust. edition-2, A Minimal Rust Kernel
from bootimage.
Does the cargo bootimage
command work? If so, what error occurs when you're trying to start the bootimage-blog_os.bin
in QEMU?
from bootimage.
thanks it's now working
from bootimage.
Great to hear that it's working now!
but are you going to continue writing the tutorial?
I'm planning to create a new third edition, which will do some things a bit differently (bootimage
is no longer needed, support for UEFI booting, APIC instead of PIC, etc.).
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
- 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.