Error when cargo build
Duveyorg opened this issue Ā· comments
~/quiche $ cargo build --examples
Updating crates.io index
Locking 118 packages to latest compatible versions
Adding bindgen v0.68.1 (latest: v0.69.4)
Adding env_logger v0.10.2 (latest: v0.11.5)
Adding hermit-abi v0.3.9 (latest: v0.4.0)
Adding idna v0.1.5 (latest: v1.0.2)
Adding idna v0.5.0 (latest: v1.0.2)
Adding mio v0.8.11 (latest: v1.0.1)
Adding nix v0.27.1 (latest: v0.29.0)
Adding peeking_take_while v0.1.2 (latest: v1.0.0)
Adding percent-encoding v1.0.1 (latest: v2.3.1)
Adding rustc-hash v1.1.0 (latest: v2.0.0)
Adding strsim v0.10.0 (latest: v0.11.1)
Adding url v1.7.2 (latest: v2.5.2)
Adding wasi v0.11.0+wasi-snapshot-preview1 (latest: v0.13.1+wasi-0.2.0)
Adding windows-sys v0.48.0 (latest: v0.52.0)
Adding windows-targets v0.48.5 (latest: v0.52.6)
Adding windows_aarch64_gnullvm v0.48.5 (latest: v0.52.6)
Adding windows_aarch64_msvc v0.48.5 (latest: v0.52.6)
Adding windows_i686_gnu v0.48.5 (latest: v0.52.6)
Adding windows_i686_msvc v0.48.5 (latest: v0.52.6)
Adding windows_x86_64_gnu v0.48.5 (latest: v0.52.6)
Adding windows_x86_64_gnullvm v0.48.5 (latest: v0.52.6)
Adding windows_x86_64_msvc v0.48.5 (latest: v0.52.6)
Downloaded darling_macro v0.20.10
Downloaded arrayvec v0.7.4
Downloaded equivalent v1.0.1
Downloaded is-terminal v0.4.12
Downloaded ident_case v1.0.1
Downloaded tinyvec_macros v0.1.1
Downloaded matches v0.1.10
Downloaded form_urlencoded v1.2.1
Downloaded fnv v1.0.7
Downloaded either v1.13.0
Downloaded data-encoding v2.6.0
Downloaded cmake v0.1.50
Downloaded cfg-if v1.0.0
Downloaded percent-encoding v2.3.1
Downloaded memoffset v0.9.1
Downloaded lazy_static v1.5.0
Downloaded itoa v1.0.11
Downloaded sfv v0.9.4
Downloaded termcolor v1.4.1
Downloaded percent-encoding v1.0.1
Downloaded untrusted v0.9.0
Downloaded slab v0.4.9
Downloaded strsim v0.10.0
Downloaded env_logger v0.10.2
Downloaded getrandom v0.2.15
Downloaded humantime v2.1.0
Downloaded darling v0.20.10
Downloaded autocfg v1.3.0
Downloaded smallvec v1.13.2
Downloaded quote v1.0.36
Downloaded spin v0.9.8
Downloaded strsim v0.11.1
Downloaded once_cell v1.19.0
Downloaded bitflags v2.6.0
Downloaded serde_derive v1.0.204
Downloaded log v0.4.22
Downloaded ryu v1.0.18
Downloaded intrusive-collections v0.9.6
Downloaded proc-macro2 v1.0.86
Downloaded num-traits v0.2.19
Downloaded docopt v1.1.1
Downloaded unicode-ident v1.0.12
Downloaded unicode-bidi v0.3.15
Downloaded tinyvec v1.8.0
Downloaded serde_with_macros v3.9.0
Downloaded url v2.5.2
Downloaded url v1.7.2
Downloaded serde v1.0.204
Downloaded memchr v2.7.4
Downloaded darling_core v0.20.10
Downloaded indexmap v2.2.6
Downloaded cc v1.1.7
Downloaded mio v0.8.11
Downloaded libm v0.2.8
Downloaded hashbrown v0.14.5
Downloaded unicode-normalization v0.1.23
Downloaded serde_with v3.9.0
Downloaded serde_json v1.0.121
Downloaded rust_decimal v1.35.0
Downloaded aho-corasick v1.1.3
Downloaded idna v0.1.5
Downloaded regex v1.10.5
Downloaded idna v0.5.0
Downloaded syn v2.0.72
Downloaded regex-syntax v0.8.4
Downloaded nix v0.27.1
Downloaded regex-automata v0.4.7
Downloaded libc v0.2.155
Downloaded ring v0.17.8
Downloaded 69 crates (10.0 MB) in 9.18s (largest was ring
at 4.2 MB)
Compiling proc-macro2 v1.0.86
Compiling unicode-ident v1.0.12
Compiling autocfg v1.3.0
Compiling fnv v1.0.7
Compiling cc v1.1.7
Compiling strsim v0.11.1
Compiling ident_case v1.0.1
Compiling serde v1.0.204
Compiling libc v0.2.155
Compiling hashbrown v0.14.5
Compiling equivalent v1.0.1
Compiling tinyvec_macros v0.1.1
Compiling serde_json v1.0.121
Compiling rust_decimal v1.35.0
Compiling tinyvec v1.8.0
Compiling num-traits v0.2.19
Compiling memoffset v0.9.1
Compiling slab v0.4.9
Compiling ryu v1.0.18
Compiling arrayvec v0.7.4
Compiling cmake v0.1.50
Compiling itoa v1.0.11
Compiling quote v1.0.36
Compiling indexmap v2.2.6
Compiling syn v2.0.72
Compiling memchr v2.7.4
Compiling libm v0.2.8
Compiling cfg-if v1.0.0
Compiling unicode-normalization v0.1.23
Compiling log v0.4.22
Compiling getrandom v0.2.15
Compiling unicode-bidi v0.3.15
Compiling percent-encoding v2.3.1
Compiling untrusted v0.9.0
Compiling data-encoding v2.6.0
Compiling ring v0.17.8
Compiling quiche v0.22.0 (/data/data/com.termux/files/home/quiche/quiche)
Compiling spin v0.9.8
Compiling form_urlencoded v1.2.1
Compiling intrusive-collections v0.9.6
Compiling octets v0.3.0 (/data/data/com.termux/files/home/quiche/octets)
Compiling sfv v0.9.4
Compiling idna v0.5.0
Compiling once_cell v1.19.0
Compiling either v1.13.0
Compiling mio v0.8.11
Compiling url v2.5.2
Compiling darling_core v0.20.10
error: failed to run custom build command for quiche v0.22.0 (/data/data/com.termux/files/home/quiche/quiche)
Caused by:
process didn't exit successfully: /data/data/com.termux/files/home/quiche/target/debug/build/quiche-51803e9ca348fb69/build-script-build
(exit status: 101)
--- stderr
thread 'main' panicked at quiche/src/build.rs:82:18:
Please set ANDROID_NDK_HOME for Android build: NotPresent
note: run with RUST_BACKTRACE=1
environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
I am new in Linux,please help