rustberry icon indicating copy to clipboard operation
rustberry copied to clipboard

cannot use make

Open josselinchevalay opened this issue 7 years ago • 10 comments

Building target/aarch64-none-elf/release/rustberry
RUST_TARGET_PATH="/home/josselin/develop/rustberry" cargo xbuild --release --target=aarch64-none-elf 
WARNING: the sysroot can't be built for the Stable channel. Switch to nightly.
   Compiling tock-regs v0.1.0 (https://github.com/tock/tock.git?rev=8b64ec2#8b64ec27)
   Compiling spin v0.4.8
   Compiling volatile v0.2.4
   Compiling once v0.3.3
error[E0463]: can't find crate for `core`
  |
  = note: the `aarch64-none-elf` target may not be installed

error: aborting due to previous error

For more information about this error, try `rustc --explain E0463`.
error[E0463]: can't find crate for `core`
  |
  = note: the `aarch64-none-elf` target may not be installed

error: aborting due to previous error

For more information about this error, try `rustc --explain E0463`.
error: Could not compile `once`.
warning: build failed, waiting for other jobs to finish...
error: Could not compile `volatile`.
warning: build failed, waiting for other jobs to finish...
error[E0463]: can't find crate for `core`
  |
  = note: the `aarch64-none-elf` target may not be installed

error: aborting due to previous error

For more information about this error, try `rustc --explain E0463`.
error: Could not compile `tock-regs`.
warning: build failed, waiting for other jobs to finish...
error[E0463]: can't find crate for `core`
  |
  = note: the `aarch64-none-elf` target may not be installed

error: aborting due to previous error

For more information about this error, try `rustc --explain E0463`.
error: Could not compile `spin`.

To learn more, run the command again with --verbose.
Makefile:32 : la recette pour la cible « target/aarch64-none-elf/release/rustberry » a échouée
make: *** [target/aarch64-none-elf/release/rustberry] Erreur 101

josselinchevalay avatar Jul 12 '18 19:07 josselinchevalay

Can you try:

$ rustup override set nighlty
$ rustup component add rust-src llvm-tools

and run make again?

Sh4d1 avatar Jul 12 '18 20:07 Sh4d1

not works i unistall rust and re-install with params

rustc 1.27.0 (3eda71b00 2018-06-19) rustup 1.12.0 (573895abc 2018-07-07) rustc 1.27.0 (3eda71b00 2018-06-19) cargo 1.27.0 (1e95190e5 2018-05-27)

regards

josselinchevalay avatar Jul 16 '18 17:07 josselinchevalay

Can you try again with the latest nightly ? The three updated command from the README should do it

Sh4d1 avatar Jul 18 '18 12:07 Sh4d1

same issue.

+ Building target/aarch64-none-elf/release/rustberry
RUST_TARGET_PATH="/home/josselin/develop/rustberry" cargo xbuild --release --target=aarch64-none-elf 
WARNING: the sysroot can't be built for the Stable channel. Switch to nightly.
   Compiling tock-regs v0.1.0 (https://github.com/tock/tock.git?rev=8b64ec2#8b64ec27)
   Compiling spin v0.4.8
   Compiling volatile v0.2.4
   Compiling once v0.3.3
error[E0463]: can't find crate for `core`
  |
  = note: the `aarch64-none-elf` target may not be installed
error[E0463]: can't find crate for `core`

  |
  = note: the `aarch64-none-elf` target may not be installed

error: aborting due to previous error

For more information about this error, try `rustc --explain E0463`.
error: aborting due to previous error

For more information about this error, try `rustc --explain E0463`.
error: Could not compile `tock-regs`.
warning: build failed, waiting for other jobs to finish...
error: Could not compile `volatile`.
warning: build failed, waiting for other jobs to finish...
error[E0463]: can't find crate for `core`
  |
  = note: the `aarch64-none-elf` target may not be installed

error: aborting due to previous error

For more information about this error, try `rustc --explain E0463`.
error: Could not compile `once`.
warning: build failed, waiting for other jobs to finish...
error[E0463]: can't find crate for `core`
  |
  = note: the `aarch64-none-elf` target may not be installed

error: aborting due to previous error

For more information about this error, try `rustc --explain E0463`.
error: Could not compile `spin`.

To learn more, run the command again with --verbose.
Makefile:32 : la recette pour la cible « target/aarch64-none-elf/release/rustberry » a échouée
make: *** [target/aarch64-none-elf/release/rustberry] Erreur 101

josselinchevalay avatar Jul 18 '18 17:07 josselinchevalay

What's the output of rustup show ?

Sh4d1 avatar Jul 18 '18 17:07 Sh4d1

Default host: x86_64-unknown-linux-gnu

stable-x86_64-unknown-linux-gnu (default) rustc 1.27.0 (3eda71b00 2018-06-19)

josselinchevalay avatar Jul 28 '18 16:07 josselinchevalay

You must have the nightly version as default. Try rustup default nightly and make again

Sh4d1 avatar Jul 28 '18 16:07 Sh4d1

i type your command and

rustup component add rust-src

now

error: this expression will panic at runtime
  --> src/arch/aarch64/context/scheduler.rs:36:9
   |
36 |         p1.trap_frame.elr = proc1 as *mut u64 as u64;
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ a raw memory access tried to access part of a pointer value as raw bytes
   |
   = note: #[deny(const_err)] on by default

error: this expression will panic at runtime
  --> src/arch/aarch64/context/scheduler.rs:42:9
   |
42 |         p2.trap_frame.elr = proc2 as *mut u64 as u64;
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ a raw memory access tried to access part of a pointer value as raw bytes

error: this expression will panic at runtime
  --> src/arch/aarch64/context/scheduler.rs:46:9
   |
46 |         p3.trap_frame.elr = proc3 as *mut u64 as u64;
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ a raw memory access tried to access part of a pointer value as raw bytes

regards and thx for your helps

josselinchevalay avatar Jul 29 '18 05:07 josselinchevalay

maybe you can try

rustup default nightly-2018-01-09
rustup component add rust-src

Visitant0226 avatar Aug 06 '18 13:08 Visitant0226

yes works

josselinchevalay avatar Aug 06 '18 14:08 josselinchevalay