Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

post-02 branch cannot be built successfully #1201

Closed
lima2020-root opened this issue Mar 23, 2023 · 1 comment
Closed

post-02 branch cannot be built successfully #1201

lima2020-root opened this issue Mar 23, 2023 · 1 comment

Comments

@lima2020-root
Copy link

lima2020-root commented Mar 23, 2023

Hi, I cannot build this branch successfully. My environment and error was listed as following:

❯ rustc --version --verbose
rustc 1.70.0-nightly (a266f1199 2023-03-22)
binary: rustc
commit-hash: a266f11990d9544ee408e213e1eec8cc9eb032b7
commit-date: 2023-03-22
host: aarch64-apple-darwin
release: 1.70.0-nightly
LLVM version: 15.0.7

the dependencies was set as

[package]
name = "blog_os"
version = "0.1.0"
authors = ["Philipp Oppermann <dev@phil-opp.com>"]
edition = "2021"

[dependencies]
bootloader = "0.11.2"

with #![no_std] is set in main.rs, running cargo build, this post-02 still tries to find some dependencies and types, like

error: target is not supported, for more information see: https://docs.rs/getrandom/#unsupported-targets
   --> /Users/XXXX/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/getrandom-0.2.8/src/lib.rs:268:9
    |
268 | /         compile_error!("target is not supported, for more information see: \
269 | |                         https://docs.rs/getrandom/#unsupported-targets");
    | |________________________________________________________________________^

error[E0433]: failed to resolve: use of undeclared crate or module `imp`
   --> /Users/XXXX/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/getrandom-0.2.8/src/lib.rs:290:5
    |
290 |     imp::getrandom_inner(dest)
    |     ^^^ use of undeclared crate or module `imp`

For more information about this error, try `rustc --explain E0433`.
error: could not compile `getrandom` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
@bjorn3
Copy link
Contributor

bjorn3 commented Mar 23, 2023

The post-02 branch uses bootloader 0.9.8, not 0.11.2. The current second edition of blog os doesn't work with bootloader >0.9 as 0.10 and 0.11 use a fundamentally different way of integration. @phil-opp is currently working on a third edition which will use bootloader 0.11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants