Closed ilia-sharafutdinov closed 9 months ago
The command I use: cargo build --release
cargo build --release
The initial failure:
error: could not compile `rpfm_cli` (bin "rpfm_cli") Caused by: process didn't exit successfully: `/home/ilia/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name rpfm_cli --edition=2021 rpfm_cli/src/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=80 --crate-type bin --emit=dep-info,link -C opt-level=3 -C lto -C debuginfo=2 -C metadata=65a71ea0f7758228 -C extra-filename=-65a71ea0f7758228 --out-dir /home/ilia/Downloads/rpfm-4.2.1/target/release/deps -L dependency=/home/ilia/Downloads/rpfm-4.2.1/target/release/deps --extern anyhow=/home/ilia/Downloads/rpfm-4.2.1/target/release/deps/libanyhow-f3f382ef834e0328.rlib --extern clap=/home/ilia/Downloads/rpfm-4.2.1/target/release/deps/libclap-bb0308a4352e7846.rlib --extern csv=/home/ilia/Downloads/rpfm-4.2.1/target/release/deps/libcsv-f05691499711046a.rlib --extern directories=/home/ilia/Downloads/rpfm-4.2.1/target/release/deps/libdirectories-798a305961d5bb2b.rlib --extern lazy_static=/home/ilia/Downloads/rpfm-4.2.1/target/release/deps/liblazy_static-1bcaa3f92151394f.rlib --extern rayon=/home/ilia/Downloads/rpfm-4.2.1/target/release/deps/librayon-17ea8d979d9e5eb2.rlib --extern rpfm_extensions=/home/ilia/Downloads/rpfm-4.2.1/target/release/deps/librpfm_extensions-9947dae001866df1.rlib --extern rpfm_lib=/home/ilia/Downloads/rpfm-4.2.1/target/release/deps/librpfm_lib-64f6f041356edeef.rlib --extern serde=/home/ilia/Downloads/rpfm-4.2.1/target/release/deps/libserde-9e7e2f4842851cc3.rlib -L native=/home/ilia/Downloads/rpfm-4.2.1/target/release/build/libgit2-sys-52758b82c95964a0/out/build -L native=/home/ilia/Downloads/rpfm-4.2.1/target/release/build/libssh2-sys-64efc9440515c05c/out/build -L native=/usr/lib/x86_64-linux-gnu` (signal: 9, SIGKILL: kill)
The warnings seemed irrelevant to me, so I tried manually launching the failing command:
/home/ilia/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name rpfm_cli --edition=2021 rpfm_cli/src/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=80 --crate-type bin --emit=dep-info,link -C opt-level=3 -C lto -C debuginfo=2 -C metadata=65a71ea0f7758228 -C extra-filename=-65a71ea0f7758228 --out-dir /home/ilia/Downloads/rpfm-4.2.1/target/release/deps -L dependency=/home/ilia/Downloads/rpfm-4.2.1/target/release/deps --extern anyhow=/home/ilia/Downloads/rpfm-4.2.1/target/release/deps/libanyhow-f3f382ef834e0328.rlib --extern clap=/home/ilia/Downloads/rpfm-4.2.1/target/release/deps/libclap-bb0308a4352e7846.rlib --extern csv=/home/ilia/Downloads/rpfm-4.2.1/target/release/deps/libcsv-f05691499711046a.rlib --extern directories=/home/ilia/Downloads/rpfm-4.2.1/target/release/deps/libdirectories-798a305961d5bb2b.rlib --extern lazy_static=/home/ilia/Downloads/rpfm-4.2.1/target/release/deps/liblazy_static-1bcaa3f92151394f.rlib --extern rayon=/home/ilia/Downloads/rpfm-4.2.1/target/release/deps/librayon-17ea8d979d9e5eb2.rlib --extern rpfm_extensions=/home/ilia/Downloads/rpfm-4.2.1/target/release/deps/librpfm_extensions-9947dae001866df1.rlib --extern rpfm_lib=/home/ilia/Downloads/rpfm-4.2.1/target/release/deps/librpfm_lib-64f6f041356edeef.rlib --extern serde=/home/ilia/Downloads/rpfm-4.2.1/target/release/deps/libserde-9e7e2f4842851cc3.rlib -L native=/home/ilia/Downloads/rpfm-4.2.1/target/release/build/libgit2-sys-52758b82c95964a0/out/build -L native=/home/ilia/Downloads/rpfm-4.2.1/target/release/build/libssh2-sys-64efc9440515c05c/out/build -L native=/usr/lib/x86_64-linux-gnu
And got the following error:
{"message":"cannot derive `author` from Cargo.toml\n\n= note: `CARGO_PKG_AUTHORS` environment variable is not set\n\n= help: use `author = \"...\"` to set author manually\n\n","code":null,"level":"error","spans":[{"file_name":"rpfm_cli/src/app/mod.rs","byte_start":1070,"byte_end":1076,"line_start":27,"line_end":27,"column_start":11,"column_end":17,"is_primary":true,"text":[{"text":"#[command(author, version, about, long_about = None)]","highlight_start":11,"highlight_end":17}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;9merror\u001b[0m\u001b[0m\u001b[1m: cannot derive `author` from Cargo.toml\u001b[0m\n\u001b[0m\u001b[1m \u001b[0m\n\u001b[0m\u001b[1m = note: `CARGO_PKG_AUTHORS` environment variable is not set\u001b[0m\n\u001b[0m\u001b[1m \u001b[0m\n\u001b[0m\u001b[1m = help: use `author = \"...\"` to set author manually\u001b[0m\n\u001b[0m\u001b[1m \u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m--> \u001b[0m\u001b[0mrpfm_cli/src/app/mod.rs:27:11\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m27\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\u001b[0m \u001b[0m\u001b[0m#[command(author, version, about, long_about = None)]\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;9m^^^^^^\u001b[0m\n\n"} {"artifact":"/home/ilia/Downloads/rpfm-4.2.1/target/release/deps/rpfm_cli-65a71ea0f7758228.d","emit":"dep-info"} {"message":"unused import: `builder::PossibleValuesParser`","code":{"code":"unused_imports","explanation":null},"level":"warning","spans":[{"file_name":"rpfm_cli/src/app/mod.rs","byte_start":623,"byte_end":652,"line_start":14,"line_end":14,"column_start":12,"column_end":41,"is_primary":true,"text":[{"text":"use clap::{builder::PossibleValuesParser, Parser, Subcommand};","highlight_start":12,"highlight_end":41}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`#[warn(unused_imports)]` on by default","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"remove the unused import","code":null,"level":"help","spans":[{"file_name":"rpfm_cli/src/app/mod.rs","byte_start":623,"byte_end":654,"line_start":14,"line_end":14,"column_start":12,"column_end":43,"is_primary":true,"text":[{"text":"use clap::{builder::PossibleValuesParser, Parser, Subcommand};","highlight_start":12,"highlight_end":43}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[0m\u001b[1m\u001b[33mwarning\u001b[0m\u001b[0m\u001b[1m: unused import: `builder::PossibleValuesParser`\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m--> \u001b[0m\u001b[0mrpfm_cli/src/app/mod.rs:14:12\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m14\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\u001b[0m \u001b[0m\u001b[0muse clap::{builder::PossibleValuesParser, Parser, Subcommand};\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[33m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m= \u001b[0m\u001b[0m\u001b[1mnote\u001b[0m\u001b[0m: `#[warn(unused_imports)]` on by default\u001b[0m\n\n"} {"message":"aborting due to previous error; 1 warning emitted","code":null,"level":"error","spans":[],"children":[],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;9merror\u001b[0m\u001b[0m\u001b[1m: aborting due to previous error; 1 warning emitted\u001b[0m\n\n"}
Error message: aborting due to previous error
aborting due to previous error
mmmm that's a weird clap error by the looks of it. Try this: go to this file and change "author" with "author = "x"".
It worked! Thank you!
The command I use:
cargo build --release
The initial failure:
The warnings seemed irrelevant to me, so I tried manually launching the failing command:
And got the following error:
Error message:
aborting due to previous error