Git Product home page Git Product logo

Comments (11)

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

The error occurs here in the code, which means that the bootloader build succeeded, but there is no bootloader output file. I don't know how this could happen.

Which version of bootimage and bootloader are you using and what's your Rust version? And which OS are you on (Windows, Linux, macOS)?

from bootimage.

GrayJack avatar GrayJack commented on August 16, 2024

I am using the latests release to this date, Rust 1.33.0-nightly, on Linux

from bootimage.

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

Thanks. That's strange, I'm using Linux too and it is also regularly tested on travis CI, but I've never seen this error. Do you use any .cargo/config files or special Rust/Cargo environment variables such as RUSTFLAGS?

from bootimage.

GrayJack avatar GrayJack commented on August 16, 2024

I have a special path environment for Rust target folder, that's all.
But i also did a reset of that and it gave me the same mistake

from bootimage.

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

This could be the problem. Bootimage performs an uncommon second building step to build the bootloader and it does not handle any target overrides yet. I think the problem is that the bootloader is put to your custom target folder, but bootimage looks for it in the default location.

What option are you using exactly to override the target folder?

from bootimage.

GrayJack avatar GrayJack commented on August 16, 2024

Something like

export $CARGO_TARGET_DIR=/path/to/my/custom/target/dir

from bootimage.

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

Ok. Could you try wether it works when you don't set the environment variable?

from bootimage.

GrayJack avatar GrayJack commented on August 16, 2024

Yeah, looks like that works...

I wonder why it doesn't work when I simply have that set and simply unset it at runtime

like if I have set
export CARGO_TARGET_DIR=/path/to/my/custom/target/dir
and then
export CARGO_TARGET_DIR=

after that using bootimage don't work.

But it works when I don't set that env at all

from bootimage.

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

I just opened #26, which should fix the compilation with a set CARGO_TARGET_DIR. Could you try whether this works for you? To install the version from this pull request, run:

cargo install bootimage --git https://github.com/rust-osdev/bootimage.git --branch bootloader_target_dir --debug --force

from bootimage.

GrayJack avatar GrayJack commented on August 16, 2024

Yeap, it worked!!! Nice :3

from bootimage.

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

Perfect, thanks for testing!

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.