This repository was archived by the owner on Jan 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
m simulate fails #11
Comments
Looks like you don't have the necessary Rust toolchain installed. IIRC the
commands are:
rustup toolchain install nightly-2023-01-26-x86_64-unknown-linux-gnu
rustup +nightly-2023-01-26 target add aarch64-unknown-none
(assuming you are building on an x86 host). Or change CANTRIP_RUST_VERSION
to whatever version you are using.
…On Mon, Jun 19, 2023 at 8:02 PM Shun Nagasaki ***@***.***> wrote:
I encountered compilation errors while attempting to run m simulate. Here
are the details:
[1/75] cd /home/shunnagasaki/git/sel4-rust/sparrow/cantrip/projects/capdl/cantrip-os-rootserver && /usr/bin/cmake -E env RUSTFLAGS=-Z\ tls-model=local-exec cargo +nightly-2023-01-26 build --target aarch64-unknown-none --features CONFIG_PLAT_BCM2837 -Z unstable-options -Z avoid-dev-deps --release --target-dir /home/shunnagasaki/git/sel4-rust/sparrow/out/cantrip/aarch64-unknown-elf/release/capdl/cantrip-os-rootserver --out-dir /home/shunnagasaki/git/sel4-rust/sparrow/out/cantrip/aarch64-unknown-elf/release/capdl/cantrip-os-rootserver
FAILED: capdl/cantrip-os-rootserver/CMakeFiles/cantrip_rootserver_custom capdl/cantrip-os-rootserver/libcantrip_os_rootserver.a /home/shunnagasaki/git/sel4-rust/sparrow/out/cantrip/aarch64-unknown-elf/release/capdl/cantrip-os-rootserver/CMakeFiles/cantrip_rootserver_custom /home/shunnagasaki/git/sel4-rust/sparrow/out/cantrip/aarch64-unknown-elf/release/capdl/cantrip-os-rootserver/libcantrip_os_rootserver.a
cd /home/shunnagasaki/git/sel4-rust/sparrow/cantrip/projects/capdl/cantrip-os-rootserver && /usr/bin/cmake -E env RUSTFLAGS=-Z\ tls-model=local-exec cargo +nightly-2023-01-26 build --target aarch64-unknown-none --features CONFIG_PLAT_BCM2837 -Z unstable-options -Z avoid-dev-deps --release --target-dir /home/shunnagasaki/git/sel4-rust/sparrow/out/cantrip/aarch64-unknown-elf/release/capdl/cantrip-os-rootserver --out-dir /home/shunnagasaki/git/sel4-rust/sparrow/out/cantrip/aarch64-unknown-elf/release/capdl/cantrip-os-rootserver
warning: file `/home/shunnagasaki/git/sel4-rust/sparrow/cantrip/projects/capdl/cantrip-os-rootserver/src/main.rs` found to be present in multiple build targets:
* `lib` target `cantrip_os_rootserver`
* `bin` target `cantrip-os-rootserver`
Blocking waiting for file lock on package cache
Updating crates.io index
Updating git repository `https://github.com/rcore-os/cpio` <https://github.com/rcore-os/cpio>
Blocking waiting for file lock on package cache
Blocking waiting for file lock on package cache
Compiling static_assertions v1.1.0
Compiling cfg-if v1.0.0
Compiling scopeguard v1.1.0
Compiling log v0.4.19
Compiling memchr v2.5.0
Compiling cty v0.2.2
Compiling postcard-cobs v0.1.5-pre
Compiling linked_list_allocator v0.10.5
Compiling serde_derive v1.0.164
Compiling num_enum_derive v0.6.1
Compiling cpio v0.1.0 (https://github.com/rcore-os/cpio#16ad88f8)
Compiling smallvec v1.10.0
error[E0463]: can't find crate for `core`
|
= note: the `aarch64-unknown-none` target may not be installed
= help: consider downloading the target with `rustup target add aarch64-unknown-none`
= help: consider building the standard library from source with `cargo build -Zbuild-std`
error[E0463]: can't find crate for `compiler_builtins`
error[E0463]: can't find crate for `core`
--> /home/shunnagasaki/.cargo/registry/src/github.com-1ecc6299db9ec823/scopeguard-1.1.0/src/lib.rs:192:1
|
192 | extern crate core as std;
| ^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
|
= note: the `aarch64-unknown-none` target may not be installed
= help: consider downloading the target with `rustup target add aarch64-unknown-none`
= help: consider building the standard library from source with `cargo build -Zbuild-std`
error: cannot find macro `stringify` in this scope
--> /home/shunnagasaki/.cargo/registry/src/github.com-1ecc6299db9ec823/scopeguard-1.1.0/src/lib.rs:470:24
|
470 | f.debug_struct(stringify!(ScopeGuard))
| ^^^^^^^^^
error: cannot find attribute `derive` in this scope
--> /home/shunnagasaki/.cargo/registry/src/github.com-1ecc6299db9ec823/scopeguard-1.1.0/src/lib.rs:212:3
|
212 | #[derive(Debug)]
| ^^^^^^
For more information about this error, try `rustc --explain E0463`.
error[E0463]: can't find crate for `core`
--> /home/shunnagasaki/.cargo/registry/src/github.com-1ecc6299db9ec823/log-0.4.19/src/lib.rs:333:1
|
333 | extern crate core as std;
| ^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
|
= note: the `aarch64-unknown-none` target may not be installed
= help: consider downloading the target with `rustup target add aarch64-unknown-none`
= help: consider building the standard library from source with `cargo build -Zbuild-std`
.
.
.
I tried running rustup target add aarch64-unknown-none, but it didn't
work.
—
Reply to this email directly, view it on GitHub
<#11>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABRM7IP2K4QVHTQGJR5DPSTXMEHETANCNFSM6AAAAAAZMUNABI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Thanks for your reply. It seems that the problem above has been resolved. However, a new error has occurred.
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I encountered compilation errors while attempting to run
m simulate
. Here are the details:I tried running
rustup target add aarch64-unknown-none
, but it didn't work.Emvironments
OS: Ubuntu 22.04.2 LTS
CPU: Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
The text was updated successfully, but these errors were encountered: