-
Notifications
You must be signed in to change notification settings - Fork 446
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
Ch11- Compilation Error #44
Comments
Thanks for raising this @Flinner. It looks like this changed in Rust 1.54. I will investigate and get back to you. |
i have the same problem |
! My system is macOS Big Sur 11.5.2. In So the [dependencies]
bootloader = "0.9"
x86_64 = "0.14" I also tried to updated |
works for me too! |
Thanks! It solved my issue too! |
I'm still having this issue, the fix @bonjune posted doesn't work on my system (Manjaro) or isn't up to date anymore due to newer versions of rust. (I suppose) |
Ok, so I found the final workaround. You should add this to the manuscript @timClicks Due to the rapid evolution of rust, installing nightly breaks your example. Because of this, I suggest installing a specific nightly version. This was the only fix that worked for me at least. I installed a pretty random version, before the error of this issue here popped up.
This corresponds to After that, You have to make it default, as written in the book
And then install the components $ rustup component add rust-src
$ rustup component add llvm-tools-preview This should do the trick for the future for everyone. |
I did wonder if using an untagged nightly would end up biting readers. Sorry for putting through everyone through so much hassle. I will investigate how best to recommend using the fixed nightly that works.. |
I also stumbled upon an issue considering the dependencies versions. I tested some combinations. The one with the latest versions which was still compiling and executing fine was:
|
Hi. I've tried the suggestions to use the specific nightly, and I've also tried the suggestions to update the dependencies in |
For anyone else finding this issue, see also #88, which has a working solution, using these versions:
and clearing the cargo cache. (It then built for me in an Ubuntu 22.04 LTS VM, with rust nightly of 2023-01-13.) FTR, I found that trying to use the latest FTR, to get qemu working on Ubuntu 22.04 LTS I also needed:
to be able to run the GUI qemu and see the console (at least when displayed via Forwarded X11 over SSH). ETA: A similar fix also works for the other ch11 examples, which use a random variety of other Ewen |
While the solutions written in this thread are correct, there's something missing in my case. In case you run with similar issue like mine, these steps might be worth taking. It turns out my cargo registry got messed up so I was forced to do this
Also following the dependency setting at
Additional Note
|
running
cargo +nightly run
onch11/ch11-fledge-os-0
returns the following:no issues opened for this in https://github.com/rust-osdev/x86_64, related rust-lang/rust#84510
any help appriciated!
The text was updated successfully, but these errors were encountered: