Skip to content

error[E0463]: can't find crate for core #164

@EWYan

Description

@EWYan

hi, there,
i tried to compile 01_wait_forever sample but get an error log like below:

yan@ubuntu:~/Desktop/rust-raspberrypi-OS-tutorials/01_wait_forever$ sudo make qemu

Compiling kernel ELF - rpi3
   Compiling mingo v0.1.0 (/home/yan/Desktop/rust-raspberrypi-OS-tutorials/01_wait_forever)
error[E0463]: can't find crate for `core`
  |
  = note: the `aarch64-unknown-none-softfloat` target may not be installed
  = help: consider downloading the target with `rustup target add aarch64-unknown-none-softfloat`

For more information about this error, try `rustc --explain E0463`.
error: could not compile `mingo` due to previous error
make: *** [Makefile:121: target/aarch64-unknown-none-softfloat/release/kernel] Error 101

according to log note "consider downloading the target with rustup target add aarch64-unknown-none-softfloat",
but i think the mentioned compiler had been added on my environment:

yan@ubuntu:~/Desktop/rust-raspberrypi-OS-tutorials/01_wait_forever$ rustup show
Default host: x86_64-unknown-linux-gnu
rustup home:  /home/yan/.rustup

installed toolchains
--------------------

stable-x86_64-unknown-linux-gnu
nightly-2022-04-10-x86_64-unknown-linux-gnu
nightly-x86_64-unknown-linux-gnu (default)

installed targets for active toolchain
--------------------------------------

aarch64-unknown-none
aarch64-unknown-none-softfloat
x86_64-unknown-linux-gnu

active toolchain
----------------

nightly-2022-04-10-x86_64-unknown-linux-gnu (overridden by '/home/yan/Desktop/rust-raspberrypi-OS-tutorials/rust-toolchain.toml')
rustc 1.62.0-nightly (8bf93e9b6 2022-04-09)

so, may something in my environment setting was not right, but don't know how to figure this mess out.
please give some advice, thx.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions