Git Product home page Git Product logo

Comments (10)

sytzemeijer avatar sytzemeijer commented on August 16, 2024 1

but are you going to continue writing the tutorial?

from bootimage.

phil-opp avatar phil-opp commented on August 16, 2024

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.

sytzemeijer avatar sytzemeijer commented on August 16, 2024

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.

phil-opp avatar phil-opp commented on August 16, 2024

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.

sytzemeijer avatar sytzemeijer commented on August 16, 2024

It now installs but the bin file has no extension and when I run it in qemu nothing happens.

from bootimage.

phil-opp avatar phil-opp commented on August 16, 2024

Which bin file are you talking about?

from bootimage.

sytzemeijer avatar sytzemeijer commented on August 16, 2024

I'm following your tutorial on how to create a operating system in rust. edition-2, A Minimal Rust Kernel

from bootimage.

phil-opp avatar phil-opp commented on August 16, 2024

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.

sytzemeijer avatar sytzemeijer commented on August 16, 2024

thanks it's now working

from bootimage.

phil-opp avatar phil-opp commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.