etheryal-kernel icon indicating copy to clipboard operation
etheryal-kernel copied to clipboard

"cargo make run" goes into error

Open fatgrass opened this issue 4 years ago • 1 comments

Follow the build guide,error occured when come to build etheryal-bootimage v0.4.1 using "cargo make run" command. Error messages :

Compiling etheryal-bootimage v0.4.1 error[E0432]: unresolved import clap::Clap --> /home/test/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/etheryal-bootimage-0.4.1/src/main.rs:26:5 | 26 | use clap::Clap; | ^^^^^^^^^^ no Clap in the root

error[E0432]: unresolved import clap::Clap --> /home/test/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/etheryal-bootimage-0.4.1/src/opts.rs:23:5 | 23 | use clap::Clap; | ^^^^^^^^^^ no Clap in the root

error: cannot determine resolution for the derive macro Clap --> /home/test/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/etheryal-bootimage-0.4.1/src/opts.rs:26:10 | 26 | #[derive(Clap)] | ^^^^ | = note: import resolution is stuck, try simplifying macro imports

error: cannot find attribute clap in this scope --> /home/test/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/etheryal-bootimage-0.4.1/src/opts.rs:27:3 | 27 | #[clap(version = "0.4", author = "Miguel Peláez [email protected]")] | ^^^^ | = note: clap is in scope, but it is a crate, not an attribute

error: cannot find attribute clap in this scope --> /home/test/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/etheryal-bootimage-0.4.1/src/opts.rs:29:7 | 29 | #[clap(subcommand)] | ^^^^ | = note: clap is in scope, but it is a crate, not an attribute

error: cannot determine resolution for the derive macro Clap --> /home/test/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/etheryal-bootimage-0.4.1/src/opts.rs:33:10 | 33 | #[derive(Clap)] | ^^^^ | = note: import resolution is stuck, try simplifying macro imports

error: cannot find attribute clap in this scope --> /home/test/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/etheryal-bootimage-0.4.1/src/opts.rs:35:7 | 35 | #[clap(long, default_value = "--no-reboot -serial stdio -s")] | ^^^^ | = note: clap is in scope, but it is a crate, not an attribute

error: cannot find attribute clap in this scope --> /home/test/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/etheryal-bootimage-0.4.1/src/opts.rs:40:7 | 40 | #[clap(long, short, default_value = "out")] | ^^^^ | = note: clap is in scope, but it is a crate, not an attribute

error: cannot find attribute clap in this scope --> /home/test/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/etheryal-bootimage-0.4.1/src/opts.rs:43:7 | 43 | #[clap(long, short)] | ^^^^ | = note: clap is in scope, but it is a crate, not an attribute

error: cannot determine resolution for the derive macro Clap --> /home/test/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/etheryal-bootimage-0.4.1/src/opts.rs:47:10 | 47 | #[derive(Clap)] | ^^^^ | = note: import resolution is stuck, try simplifying macro imports

error: cannot find attribute clap in this scope --> /home/test/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/etheryal-bootimage-0.4.1/src/opts.rs:49:7 | 49 | #[clap(long, default_value = "x86_64")] | ^^^^ | = note: clap is in scope, but it is a crate, not an attribute

error: cannot find attribute clap in this scope --> /home/test/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/etheryal-bootimage-0.4.1/src/opts.rs:52:7 | 52 | #[clap(long)] | ^^^^ | = note: clap is in scope, but it is a crate, not an attribute

error: cannot find attribute clap in this scope --> /home/test/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/etheryal-bootimage-0.4.1/src/opts.rs:55:7 | 55 | #[clap(long)] | ^^^^ | = note: clap is in scope, but it is a crate, not an attribute

error: cannot find attribute clap in this scope --> /home/test/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/etheryal-bootimage-0.4.1/src/opts.rs:58:7 | 58 | #[clap(long)] | ^^^^ | = note: clap is in scope, but it is a crate, not an attribute

error: cannot find attribute clap in this scope --> /home/test/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/etheryal-bootimage-0.4.1/src/opts.rs:61:7 | 61 | #[clap(long)] | ^^^^ | = note: clap is in scope, but it is a crate, not an attribute

error: cannot find attribute clap in this scope --> /home/test/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/etheryal-bootimage-0.4.1/src/opts.rs:64:7 | 64 | #[clap(long, short)] | ^^^^ | = note: clap is in scope, but it is a crate, not an attribute

error: cannot determine resolution for the derive macro Clap --> /home/test/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/etheryal-bootimage-0.4.1/src/opts.rs:68:10 | 68 | #[derive(Clap)] | ^^^^ | = note: import resolution is stuck, try simplifying macro imports

error: cannot find attribute clap in this scope --> /home/test/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/etheryal-bootimage-0.4.1/src/opts.rs:71:7 | 71 | #[clap(version = "0.4", author = "Miguel Peláez [email protected]")] | ^^^^ | = note: clap is in scope, but it is a crate, not an attribute

error: cannot find attribute clap in this scope --> /home/test/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/etheryal-bootimage-0.4.1/src/opts.rs:75:7 | 75 | #[clap(version = "0.4", author = "Miguel Peláez [email protected]")] | ^^^^ | = note: clap is in scope, but it is a crate, not an attribute

error[E0599]: no function or associated item named parse found for struct opts::Opts in the current scope --> /home/test/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/etheryal-bootimage-0.4.1/src/main.rs:40:28 | 40 | let opts: Opts = Opts::parse(); | ^^^^^ function or associated item not found in opts::Opts | ::: /home/test/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/etheryal-bootimage-0.4.1/src/opts.rs:28:1 | 28 | pub struct Opts { | --------------- function or associated item parse not found for this | = help: items from traits can only be used if the trait is implemented and in scope = note: the following trait defines an item parse, perhaps you need to implement it: candidate #1: Parser

Some errors have detailed explanations: E0432, E0599. For more information about an error, try rustc --explain E0432. error: failed to compile etheryal-bootimage v0.4.1, intermediate artifacts can be found at /tmp/cargo-installLZeLU8

Caused by: could not compile etheryal-bootimage due to 20 previous errors [cargo-make] ERROR - Error while executing command, exit code: 101 [cargo-make] WARN - Build Failed.

fatgrass avatar Dec 14 '21 08:12 fatgrass

Hi there! Thanks for submitting a new issue. We will get in touch with you very soon.

github-actions[bot] avatar Dec 14 '21 08:12 github-actions[bot]