rustberry
rustberry copied to clipboard
cannot use make
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
Can you try:
$ rustup override set nighlty
$ rustup component add rust-src llvm-tools
and run make again?
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
Can you try again with the latest nightly ? The three updated command from the README should do it
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
What's the output of rustup show ?
Default host: x86_64-unknown-linux-gnu
stable-x86_64-unknown-linux-gnu (default) rustc 1.27.0 (3eda71b00 2018-06-19)
You must have the nightly version as default. Try rustup default nightly and make again
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
maybe you can try
rustup default nightly-2018-01-09
rustup component add rust-src
yes works