Hi,
I compiled caliptra and able to run the test drivers but when I try to create rom binary for the emulation using image tool it is giving below error. Can you help me with it. Thanks in advance
./image --rom caliptra-rom --fw caliptra-fmc
error[E0463]: can't find crate for core
|
= note: the riscv32imc-unknown-none-elf
target may not be installed
= help: consider downloading the target with rustup target add riscv32imc-unknown-none-elf
error[E0463]: can't find crate for compiler_builtins
error[E0463]: can't find crate for core
--> /home/amis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.4.3/src/lib.rs:73:5
|
73 | use core::{
| ^^^^ can't find crate
|
= note: the riscv32imc-unknown-none-elf
target may not be installed
= help: consider downloading the target with rustup target add riscv32imc-unknown-none-elf
error: cannot find attribute derive
in this scope
--> /home/amis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.4.3/src/lib.rs:1806:3
|
1806 | #[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
| ^^^^^^
error: cannot find macro panic
in this scope
--> /home/amis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.4.3/src/lib.rs:1811:9
|
1811 | panic!("BigEndian default")
| ^^^^^
error: cannot find attribute derive
in this scope
--> /home/amis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.4.3/src/lib.rs:1836:3
|
1836 | #[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
| ^^^^^^
error: cannot find macro panic
in this scope
--> /home/amis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.4.3/src/lib.rs:1841:9
|
1841 | panic!("LittleEndian default")
| ^^^^^
error: cannot find macro assert
in this scope
--> /home/amis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.4.3/src/lib.rs:1993:9
|
1993 | assert!(1 <= nbytes && nbytes <= 8 && nbytes <= buf.len());
| ^^^^^^
error: cannot find macro assert
in this scope
--> /home/amis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.4.3/src/lib.rs:2008:9
|
2008 | assert!(1 <= nbytes && nbytes <= 16 && nbytes <= buf.len());
| ^^^^^^
error: cannot find macro assert
in this scope
--> /home/amis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.4.3/src/lib.rs:1906:9
|
1906 | assert!($size <= $dst.len());
| ^^^^^^
...
2023 | unsafe_write_num_bytes!(u16, 2, n, buf, to_be);
| ---------------------------------------------- in this macro invocation
|
= note: this error originates in the macro unsafe_write_num_bytes
(in Nightly builds, run with -Z macro-backtrace for more info)
error: cannot find macro assert
in this scope
--> /home/amis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-
error[E0405]: cannot find trait Default
in this scope
--> /home/amis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.4.3/src/lib.rs:1809:6
|
1809 | impl Default for BigEndian {
| ^^^^^^^ not found in this scope
error[E0405]: cannot find trait Default
in this scope
--> /home/amis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/byteorder-1.4.3/src/lib.rs:1839:6
|
1839 | impl Default for LittleEndian {
| ^^^^^^^ not found in this scope
Some errors have detailed explanations: E0405, E0463.
For more information about an error, try rustc --explain E0405
.
error: could not compile byteorder
(lib) due to 89 previous errors
thread 'main' panicked at 'called Result::unwrap()
on an Err
value: Custom { kind: Other, error: "Process "/home/amis/.rustup/toolchains/1.70-x86_64-unknown-linux-gnu/bin/cargo" CommandArgs { inner: ["build", "--quiet", "--locked", "--target", "riscv32imc-unknown-none-elf", "--features", "emu,riscv", "--no-default-features", "--profile", "firmware", "-p", "caliptra-rom", "--bin", "caliptra-rom"] } exited with status code Some(101)" }', builder/bin/image_gen.rs:18:68
stack backtrace:
0: rust_begin_unwind
at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/panicking.rs:578:5
1: core::panicking::panic_fmt
at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/panicking.rs:67:14
2: core::result::unwrap_failed
at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/result.rs:1687:5
3: core::result::Result<T,E>::unwrap
at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/result.rs:1089:23
4: image::main
at /home/amis/Desktop/code/caliptra-sw/builder/bin/image_gen.rs:18:15
5: core::ops::function::FnOnce::call_once
at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with RUST_BACKTRACE=full
for a verbose backtrace.