-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
error[E0463]: can't find crate for core
#837
Comments
You need to use |
when run error[E0461]: couldn't find crate `core` with expected target triple x86_64-blog_os-10958214645806601562 |
Run |
thanks for helping me so patiently! blog_os git:(post-02) cargo clean
➜ blog_os git:(post-02) cargo xbuild
Compiling compiler_builtins v0.1.32
Compiling core v0.0.0 (/home/lfn/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libcore)
Compiling rustc-std-workspace-core v1.99.0 (/home/lfn/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/tools/rustc-std-workspace-core)
Compiling alloc v0.0.0 (/tmp/cargo-xbuildkSeMac)
Finished release [optimized] target(s) in 12.42s
Compiling bootloader v0.9.8
Compiling rlibc v1.0.0
error[E0461]: couldn't find crate `core` with expected target triple x86_64-blog_os-10958214645806601562
|
= note: the following crate versions were found:
crate `core`, target triple x86_64-blog_os-6028079494216025267: /home/lfn/Documents/rust/projects/blog_os/target/sysroot/lib/rustlib/x86_64-blog_os/lib/libcore-8db6693f79383387.rmeta
crate `core`, target triple x86_64-blog_os-6028079494216025267: /home/lfn/Documents/rust/projects/blog_os/target/sysroot/lib/rustlib/x86_64-blog_os/lib/libcore-8db6693f79383387.rlib
error: aborting due to previous error
error: could not compile `rlibc`.
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed |
Strange. I don't know what could be the problem. |
thx all the same~~ |
Sorry for the confusion all! I just updated the blog to use standard On https://os.phil-opp.com/minimal-rust-kernel/#building-our-kernel I put some note about this:
I will also add this note to the Readme to try to prevent this confusion in the future. |
Done. |
It works! |
when run "cargo build" within blog-02,
it reports "can't find crate for
core
i have already used nightly.
blog_os git:(post-02) rustc --version
rustc 1.46.0-nightly (346aec9b0 2020-07-11)
The text was updated successfully, but these errors were encountered: