build for Android failed
leleliu008 opened this issue · comments
leleliu008 commented
Naoya Hatta commented
Thank you for your information.
I'll try to update termios by contacting the owner of getch.
Naoya Hatta commented
I fixed it, and released v0.12.0.
leleliu008 commented
Thank you for your efforts. The termios
problem is disappered, but a new problem arises.
Compiling procs v0.12.0 (/tmp/tmp.XCXA0gVndm)
Running `CARGO=/home/fpliu/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/cargo CARGO_BIN_NAME=procs CARGO_CRATE_NAME=procs CARGO_MANIFEST_DIR=/tmp/tmp.XCXA0gVndm CARGO_PKG_AUTHORS='dalance@gmail.com' CARGO_PKG_DESCRIPTION='A modern replacement for ps' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=procs CARGO_PKG_REPOSITORY='https://github.com/dalance/procs' CARGO_PKG_VERSION=0.12.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=12 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH='/tmp/tmp.XCXA0gVndm/target/release/deps:/home/fpliu/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib:/home/fpliu/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib' rustc --crate-name procs --edition=2021 src/main.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -C lto -C codegen-units=1 --cfg 'feature="default"' --cfg 'feature="docker"' --cfg 'feature="dockworker"' -C metadata=f53d7ce81b334edb -C extra-filename=-f53d7ce81b334edb --out-dir /tmp/tmp.XCXA0gVndm/target/armv7-linux-androideabi/release/deps --target armv7-linux-androideabi -C linker=armv7a-linux-androideabi21-clang -L dependency=/tmp/tmp.XCXA0gVndm/target/armv7-linux-androideabi/release/deps -L dependency=/tmp/tmp.XCXA0gVndm/target/release/deps --extern anyhow=/tmp/tmp.XCXA0gVndm/target/armv7-linux-androideabi/release/deps/libanyhow-11ef88a0215cc1d7.rlib --extern atty=/tmp/tmp.XCXA0gVndm/target/armv7-linux-androideabi/release/deps/libatty-368ff04a3d923c00.rlib --extern byte_unit=/tmp/tmp.XCXA0gVndm/target/armv7-linux-androideabi/release/deps/libbyte_unit-01df39f85cf564e6.rlib --extern chrono=/tmp/tmp.XCXA0gVndm/target/armv7-linux-androideabi/release/deps/libchrono-878243ab86404d77.rlib --extern clap=/tmp/tmp.XCXA0gVndm/target/armv7-linux-androideabi/release/deps/libclap-e6649d9c11917ba3.rlib --extern clap_complete=/tmp/tmp.XCXA0gVndm/target/armv7-linux-androideabi/release/deps/libclap_complete-21112536cd3f986b.rlib --extern console=/tmp/tmp.XCXA0gVndm/target/armv7-linux-androideabi/release/deps/libconsole-bd03ac2e07769578.rlib --extern directories=/tmp/tmp.XCXA0gVndm/target/armv7-linux-androideabi/release/deps/libdirectories-da5964d0c117bf10.rlib --extern dockworker=/tmp/tmp.XCXA0gVndm/target/armv7-linux-androideabi/release/deps/libdockworker-5539cdb01d9f7539.rlib --extern getch=/tmp/tmp.XCXA0gVndm/target/armv7-linux-androideabi/release/deps/libgetch-3240f87c8751093b.rlib --extern lazy_static=/tmp/tmp.XCXA0gVndm/target/armv7-linux-androideabi/release/deps/liblazy_static-704c8250a81ea707.rlib --extern libc=/tmp/tmp.XCXA0gVndm/target/armv7-linux-androideabi/release/deps/liblibc-e1e60187597bc2db.rlib --extern serde=/tmp/tmp.XCXA0gVndm/target/armv7-linux-androideabi/release/deps/libserde-0fa62de88257e319.rlib --extern serde_derive=/tmp/tmp.XCXA0gVndm/target/release/deps/libserde_derive-fabc33cd52d2069e.so --extern termbg=/tmp/tmp.XCXA0gVndm/target/armv7-linux-androideabi/release/deps/libtermbg-f3b02df0ce63be5c.rlib --extern toml=/tmp/tmp.XCXA0gVndm/target/armv7-linux-androideabi/release/deps/libtoml-25dea160bc4d4bda.rlib --extern unicode_width=/tmp/tmp.XCXA0gVndm/target/armv7-linux-androideabi/release/deps/libunicode_width-19508d8845c0cd85.rlib -Clink-arg=-L/tmp/tmp.XCXA0gVndm/1642498638 -L native=/tmp/tmp.XCXA0gVndm/target/armv7-linux-androideabi/release/build/backtrace-sys-3eedb218e8c6157f/out`
error[E0432]: unresolved import `crate::process::ProcessInfo`
--> src/column.rs:2:5
|
2 | use crate::process::ProcessInfo;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `ProcessInfo` in `process`
error[E0432]: unresolved import `crate::columns::ConfigColumnKind`
--> src/config.rs:2:5
|
2 | use crate::columns::ConfigColumnKind;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `ConfigColumnKind` in `columns`
error[E0432]: unresolved imports `crate::columns::ConfigColumnKind`, `crate::columns::KIND_LIST`
--> src/util.rs:2:22
|
2 | use crate::columns::{ConfigColumnKind, KIND_LIST};
| ^^^^^^^^^^^^^^^^ ^^^^^^^^^ no `KIND_LIST` in `columns`
| |
| no `ConfigColumnKind` in `columns`
error[E0432]: unresolved import `crate::process::collect_proc`
--> src/view.rs:4:5
|
4 | use crate::process::collect_proc;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `collect_proc` in `process`
error[E0432]: unresolved import `pager`
--> src/view.rs:11:5
|
11 | use pager::Pager;
| ^^^^^ use of undeclared crate or module `pager`
error[E0433]: failed to resolve: use of undeclared type `ConfigColumnKind`
--> src/view.rs:35:24
|
35 | let kind = ConfigColumnKind::Tree;
| ^^^^^^^^^^^^^^^^ use of undeclared type `ConfigColumnKind`
error[E0433]: failed to resolve: use of undeclared type `ConfigColumnKind`
--> src/view.rs:63:17
|
63 | ConfigColumnKind::Slot => {
| ^^^^^^^^^^^^^^^^ use of undeclared type `ConfigColumnKind`
error[E0433]: failed to resolve: use of undeclared type `ConfigColumnKind`
--> src/view.rs:72:17
|
72 | ConfigColumnKind::MultiSlot => {
| ^^^^^^^^^^^^^^^^ use of undeclared type `ConfigColumnKind`
error[E0433]: failed to resolve: use of undeclared crate or module `which`
--> src/view.rs:544:19
|
544 | } else if which::which("less").is_ok() {
| ^^^^^ use of undeclared crate or module `which`
error[E0425]: cannot find function `gen_column` in this scope
--> src/view.rs:36:26
|
36 | let column = gen_column(
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value `KIND_LIST` in this scope
--> src/view.rs:87:37
|
87 | let kind_name = KIND_LIST[&kind].0.to_lowercase();
| ^^^^^^^^^ not found in this scope
error[E0425]: cannot find function `gen_column` in this scope
--> src/view.rs:98:30
|
98 | let column = gen_column(
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value `KIND_LIST` in this scope
--> src/view.rs:487:37
|
487 | let (kind, _) = KIND_LIST[&c.kind];
| ^^^^^^^^^ not found in this scope
error[E0425]: cannot find value `CONFIG_DEFAULT` in this scope
--> src/main.rs:212:24
|
212 | toml::from_str(CONFIG_DEFAULT).unwrap()
| ^^^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value `CONFIG_DEFAULT` in this scope
--> src/main.rs:298:41
|
298 | let config: Config = toml::from_str(CONFIG_DEFAULT).unwrap();
| ^^^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value `KIND_LIST` in this scope
--> src/main.rs:308:24
|
308 | for (_, (v, d)) in KIND_LIST.iter() {
| ^^^^^^^^^ not found in this scope
warning: unused import: `crate::columns::*`
--> src/view.rs:2:5
|
2 | use crate::columns::*;
| ^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: unused import: `crate::column::Column`
--> src/main.rs:11:5
|
11 | use crate::column::Column;
| ^^^^^^^^^^^^^^^^^^^^^
warning: unused import: `crate::columns::*`
--> src/main.rs:12:5
|
12 | use crate::columns::*;
| ^^^^^^^^^^^^^^^^^
Some errors have detailed explanations: E0425, E0432, E0433.
For more information about an error, try `rustc --explain E0425`.
warning: `procs` (bin "procs") generated 3 warnings
error: failed to compile `procs v0.12.0 (/tmp/tmp.XCXA0gVndm)`, intermediate artifacts can be found at `/tmp/tmp.XCXA0gVndm/target`
Caused by:
could not compile `procs` due to 16 previous errors; 3 warnings emitted
Caused by:
process didn't exit successfully: `CARGO=/home/fpliu/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/cargo CARGO_BIN_NAME=procs CARGO_CRATE_NAME=procs CARGO_MANIFEST_DIR=/tmp/tmp.XCXA0gVndm CARGO_PKG_AUTHORS='dalance@gmail.com' CARGO_PKG_DESCRIPTION='A modern replacement for ps' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=procs CARGO_PKG_REPOSITORY='https://github.com/dalance/procs' CARGO_PKG_VERSION=0.12.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=12 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH='/tmp/tmp.XCXA0gVndm/target/release/deps:/home/fpliu/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib:/home/fpliu/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib' rustc --crate-name procs --edition=2021 src/main.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -C lto -C codegen-units=1 --cfg 'feature="default"' --cfg 'feature="docker"' --cfg 'feature="dockworker"' -C metadata=f53d7ce81b334edb -C extra-filename=-f53d7ce81b334edb --out-dir /tmp/tmp.XCXA0gVndm/target/armv7-linux-androideabi/release/deps --target armv7-linux-androideabi -C linker=armv7a-linux-androideabi21-clang -L dependency=/tmp/tmp.XCXA0gVndm/target/armv7-linux-androideabi/release/deps -L dependency=/tmp/tmp.XCXA0gVndm/target/release/deps --extern anyhow=/tmp/tmp.XCXA0gVndm/target/armv7-linux-androideabi/release/deps/libanyhow-11ef88a0215cc1d7.rlib --extern atty=/tmp/tmp.XCXA0gVndm/target/armv7-linux-androideabi/release/deps/libatty-368ff04a3d923c00.rlib --extern byte_unit=/tmp/tmp.XCXA0gVndm/target/armv7-linux-androideabi/release/deps/libbyte_unit-01df39f85cf564e6.rlib --extern chrono=/tmp/tmp.XCXA0gVndm/target/armv7-linux-androideabi/release/deps/libchrono-878243ab86404d77.rlib --extern clap=/tmp/tmp.XCXA0gVndm/target/armv7-linux-androideabi/release/deps/libclap-e6649d9c11917ba3.rlib --extern clap_complete=/tmp/tmp.XCXA0gVndm/target/armv7-linux-androideabi/release/deps/libclap_complete-21112536cd3f986b.rlib --extern console=/tmp/tmp.XCXA0gVndm/target/armv7-linux-androideabi/release/deps/libconsole-bd03ac2e07769578.rlib --extern directories=/tmp/tmp.XCXA0gVndm/target/armv7-linux-androideabi/release/deps/libdirectories-da5964d0c117bf10.rlib --extern dockworker=/tmp/tmp.XCXA0gVndm/target/armv7-linux-androideabi/release/deps/libdockworker-5539cdb01d9f7539.rlib --extern getch=/tmp/tmp.XCXA0gVndm/target/armv7-linux-androideabi/release/deps/libgetch-3240f87c8751093b.rlib --extern lazy_static=/tmp/tmp.XCXA0gVndm/target/armv7-linux-androideabi/release/deps/liblazy_static-704c8250a81ea707.rlib --extern libc=/tmp/tmp.XCXA0gVndm/target/armv7-linux-androideabi/release/deps/liblibc-e1e60187597bc2db.rlib --extern serde=/tmp/tmp.XCXA0gVndm/target/armv7-linux-androideabi/release/deps/libserde-0fa62de88257e319.rlib --extern serde_derive=/tmp/tmp.XCXA0gVndm/target/release/deps/libserde_derive-fabc33cd52d2069e.so --extern termbg=/tmp/tmp.XCXA0gVndm/target/armv7-linux-androideabi/release/deps/libtermbg-f3b02df0ce63be5c.rlib --extern toml=/tmp/tmp.XCXA0gVndm/target/armv7-linux-androideabi/release/deps/libtoml-25dea160bc4d4bda.rlib --extern unicode_width=/tmp/tmp.XCXA0gVndm/target/armv7-linux-androideabi/release/deps/libunicode_width-19508d8845c0cd85.rlib -Clink-arg=-L/tmp/tmp.XCXA0gVndm/1642498638 -L native=/tmp/tmp.XCXA0gVndm/target/armv7-linux-androideabi/release/build/backtrace-sys-3eedb218e8c6157f/out` (exit status: 1)
Naoya Hatta commented
Could you try 256c911 ?
leleliu008 commented
Naoya Hatta commented
Could you provide all errors?
Naoya Hatta commented
How about 134914e ?
leleliu008 commented
all logs, include error logs, search error[
, you will find error messages.
Naoya Hatta commented
How about 94d9a3f ?
leleliu008 commented
Naoya Hatta commented
I fixed it.
leleliu008 commented
well done. successfully built. Thanks a lot.