-
Notifications
You must be signed in to change notification settings - Fork 894
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
Missing src directory on nightly install? #878
Comments
Hey David! intermezzOS maintainer here. I haven't had much time for it in the past two months, so I haven't compiled it myself in a while. Just wanted to let you know that if you find any other bugs, they also might be changes in Rust that weren't applied to the kernel yet. I'm not aware of any; it should just build. |
The problem is you don't have your rust sources installed. I think
|
Sources have always been an optional component, you may be thinking of docs? |
So I've been doing some digging on a problem I've run into when going through an operating system tutorial book called IntermezzOS.
At first I thought this could be my code but it also exists with Intermezzos's kernel
I'm on a Macbook Air 2013, running the latest OSX, using zsh, make, and the latest rust nightly.
$ uname -ar Darwin Davids-Air.home 16.1.0 Darwin Kernel Version 16.1.0: Wed Oct 19 20:31:56 PDT 2016; root:xnu-3789.21.4~4/RELEASE_X86_64 x86_64
The problem
I'm using xargo to compile for the x86_64 architecture, but it doesn't find the files it's looking for from my rustup nightly installation.
digging into it
I'm sure I'm running the current version of rustc.
Looking for the
src
folder mentioned in the output; it looks indeed like it was never created by rustup.Is
/Users/david/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src
meant to be for a generic architecture? I ask that because runningrustup target add aarch64-unknown-linux-gnu
added theaarch64-unknown-linux-gnu
folder inside ofrustlib
.~/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib $ ls -la total 184K drwxr-xr-x 3 david staff 102 Dec 21 16:02 aarch64-unknown-linux-gnu -rw-r--r-- 1 david staff 116 Dec 21 16:02 components drwxr-xr-x 6 david staff 204 Dec 19 22:41 etc -rw-r--r-- 1 david staff 1.1K Dec 19 22:41 manifest-cargo-x86_64-apple-darwin -rw-r--r-- 1 david staff 4.8K Dec 21 16:02 manifest-rust-std-aarch64-unknown-linux-gnu -rw-r--r-- 1 david staff 4.5K Dec 19 22:41 manifest-rust-std-x86_64-apple-darwin -rw-r--r-- 1 david staff 2.2K Dec 19 22:41 manifest-rustc-x86_64-apple-darwin -rw-r--r-- 1 david staff 145K Dec 21 16:02 multirust-channel-manifest.toml -rw-r--r-- 1 david staff 277 Dec 21 16:02 multirust-config.toml -rw-r--r-- 1 david staff 1 Dec 21 16:02 rust-installer-version drwxr-xr-x 3 david staff 102 Dec 19 22:41 x86_64-apple-darwin
Either way I'm not exactly sure what's going on with rustup or whether it's something wrong with my machine / rust install or not.
How to recreate the issue:
Run these commands on the latest OSX and please let me know if there's anything else I can do to help figure out this issue.
$ git clone https://github.com/intermezzOS/kernel intermezzos $ cd intermezzos $ cargo install $ make cargo
Thank you in advance for any and all help and feedback.
The text was updated successfully, but these errors were encountered: