phil-opp on main
Fix broken links Merge pull request #1188 from p… (compare)
phil-opp on fix-broken-links
phil-opp on fix-broken-links
Fix broken links (compare)
cargo build
Updating crates.io index
Compiling compiler_builtins v0.1.36
Compiling core v0.0.0 (/Users/itq/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/library/core)
Compiling rustversion v1.0.7
Compiling bootloader v0.9.22
Compiling x86_64 v0.13.6
Compiling rustc-std-workspace-core v1.99.0 (/Users/itq/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/library/rustc-std-workspace-core)
Compiling bitflags v1.3.2
Compiling bit_field v0.10.1
Compiling volatile v0.4.5
error[E0658]: const generics are unstable
--> /Users/itq/.cargo/registry/src/github.com-1ecc6299db9ec823/volatile-0.4.5/src/lib.rs:686:21
|
686 | impl<R, A, T, const N: usize> Volatile<R, A>
| ^
|
= note: see issue #74878 <https://github.com/rust-lang/rust/issues/74878> for more information
= help: add `#![feature(min_const_generics)]` to the crate attributes to enable
Compiling bit_field v0.9.0
error: aborting due to previous error
For more information about this error, try `rustc --explain E0658`.
error: could not compile `volatile`
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed
#![feature(min_const_generics)]
to src/main.rs
and src/lib.rs
but didn't help.
Hello !
I have a quick question. I just finished the external interrupt handling chapter of the tutorial, and a question went in my mind.
Given that I am not using an US layout keyboard (I am using an AINSI layout), is there any chance that in the following parts, the USB protocol will be implemented ?
btw, I love the tutorial. Very explanatory and easy to follow. Thanks
pc-keyboard
crate already supports different layouts: https://docs.rs/pc-keyboard/0.5.1/pc_keyboard/layouts/index.html . I'm sure that the crate maintainer will be happy to merge a PR to add more layouts if yours isn't supported yet.
bootloader
crate. The goal is to simplify the build process, add support for booting on UEFI machines, and use the APIC for interrupt handling. Afterwards, I'm planning to add more posts again, but don't expect this anytime soon.
cargo bootimage
. It croaks with the following error: note: rust-lld: error: undefined symbol: _rest_of_bootloader_start_addr
Compiling bootloader v0.9.23 (/Users/vscolari/.cargo/registry/src/github.com-1ecc6299db9ec823/bootloader-0.9.23)
error: linking with
rust-lldfailed: exit status: 1
Hello everyone :)
I'm following the tutorial to build a minimal kernel
error: failed to run rustc
to learn about target-specific information but I've this error on windows powershell
Caused by:
process didn't exit successfully: rustc - --crate-name ___ --print=file-names --target \\?\C:\workspace\blog_os\x86-64-blog-os.json --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=cfg
(exit code: 1)
--- stderr
error: target file "\\?\C:\workspace\blog_os\x86-64-blog-os.json" does not exist
Someone had the issue ?
mdbook
and keeping all the versions in the same folder, but it's already getting incredibly tedious. If someone could point me to some resources on how the blog author did this/some templates/other info, I'd greatly appreciate it.
framebuffer
does not live long enoughframebuffer
is borrowed for 'static
framebuffer
dropped here while still borrowed