rowanfr opened issue #11395:
Steps to Reproduce
On an android device install termux. Within it run
pkg install rust
cargo install wastime-cliExpected Results
I expected the installation to be successful.
Actual Results
The full error is:
error: could not compile `cranelift-codegen` (lib) Caused by: process didn't exit successfully: `rustc --crate-name cranelift_codegen --edition=2024 /data/data/com.termux/files/home/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cranelift-codegen-0.122.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=47 --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no '--allow=clippy::all' '--warn=clippy::useless_conversion' --warn=unused_import_braces --warn=unused_extern_crates --warn=unused-macro-rules --warn=unused-lifetimes --warn=unstable_features '--warn=clippy::unnecessary_to_owned' '--warn=clippy::unnecessary_mut_passed' '--warn=clippy::unnecessary_fallible_conversions' '--warn=clippy::unnecessary_cast' '--warn=clippy::uninlined_format_args' --warn=unexpected_cfgs --warn=trivial_numeric_casts '--warn=clippy::redundant_field_names' '--warn=clippy::map_clone' '--warn=clippy::manual_strip' '--warn=clippy::from_over_into' '--warn=clippy::clone_on_copy' '--warn=clippy::allow_attributes_without_reason' --check-cfg 'cfg(pulley_tail_calls)' --check-cfg 'cfg(pulley_assume_llvm_makes_tail_calls)' --check-cfg 'cfg(pulley_disable_interp_simd)' --cfg 'feature="anyhow"' --cfg 'feature="capstone"' --cfg 'feature="disas"' --cfg 'feature="gimli"' --cfg 'feature="host-arch"' --cfg 'feature="pulley"' --cfg 'feature="std"' --cfg 'feature="timing"' --cfg 'feature="unwind"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("all-arch", "all-native-arch", "anyhow", "arm64", "capstone", "core", "default", "disas", "enable-serde", "gimli", "host-arch", "incremental-cache", "isle-errors", "postcard", "pulley", "riscv64", "s390x", "serde", "serde_derive", "sha2", "souper-harvest", "souper-ir", "std", "timing", "trace-log", "unwind", "x86"))' -C metadata=cf36be5a7291013e -C extra-filename=-75c86cb6f3051a68 --out-dir /data/data/com.termux/files/usr/tmp/cargo-installhMfvy5/release/deps -C strip=debuginfo -L dependency=/data/data/com.termux/files/usr/tmp/cargo-installhMfvy5/release/deps --extern anyhow=/data/data/com.termux/files/usr/tmp/cargo-installhMfvy5/release/deps/libanyhow-38bdf1fbd289f8e6.rmeta --extern bumpalo=/data/data/com.termux/files/usr/tmp/cargo-installhMfvy5/release/deps/libbumpalo-b75557ef1677f292.rmeta --extern capstone=/data/data/com.termux/files/usr/tmp/cargo-installhMfvy5/release/deps/libcapstone-ff924feb9a4f6d24.rmeta --extern cranelift_assembler_x64=/data/data/com.termux/files/usr/tmp/cargo-installhMfvy5/release/deps/libcranelift_assembler_x64-1ec67c57b321783c.rmeta --extern cranelift_bforest=/data/data/com.termux/files/usr/tmp/cargo-installhMfvy5/release/deps/libcranelift_bforest-46c1a6cf0c720b5d.rmeta --extern cranelift_bitset=/data/data/com.termux/files/usr/tmp/cargo-installhMfvy5/release/deps/libcranelift_bitset-0807b4eb22322e97.rmeta --extern cranelift_codegen_shared=/data/data/com.termux/files/usr/tmp/cargo-installhMfvy5/release/deps/libcranelift_codegen_shared-38b0162a19e69294.rmeta --extern cranelift_control=/data/data/com.termux/files/usr/tmp/cargo-installhMfvy5/release/deps/libcranelift_control-46d7039cf665c772.rmeta --extern cranelift_entity=/data/data/com.termux/files/usr/tmp/cargo-installhMfvy5/release/deps/libcranelift_entity-13c3ecb40bde79dd.rmeta --extern gimli=/data/data/com.termux/files/usr/tmp/cargo-installhMfvy5/release/deps/libgimli-f5ac58a5374999cc.rmeta --extern hashbrown=/data/data/com.termux/files/usr/tmp/cargo-installhMfvy5/release/deps/libhashbrown-132a7419b461b66b.rmeta --extern log=/data/data/com.termux/files/usr/tmp/cargo-installhMfvy5/release/deps/liblog-f5b114f16fd422be.rmeta --extern pulley_interpreter=/data/data/com.termux/files/usr/tmp/cargo-installhMfvy5/release/deps/libpulley_interpreter-a4f4511ae4188817.rmeta --extern regalloc2=/data/data/com.termux/files/usr/tmp/cargo-installhMfvy5/release/deps/libregalloc2-917fb9ef06ccf3d6.rmeta --extern rustc_hash=/data/data/com.termux/files/usr/tmp/cargo-installhMfvy5/release/deps/librustc_hash-5f86d98c52fa9576.rmeta --extern smallvec=/data/data/com.termux/files/usr/tmp/cargo-installhMfvy5/release/deps/libsmallvec-4b2c86a249db0b26.rmeta --extern target_lexicon=/data/data/com.termux/files/usr/tmp/cargo-installhMfvy5/release/deps/libtarget_lexicon-750a72877220afe8.rmeta --extern wasmtime_math=/data/data/com.termux/files/usr/tmp/cargo-installhMfvy5/release/deps/libwasmtime_internal_math-d0579aea02246d04.rmeta --cap-lints allow -L native=/data/data/com.termux/files/usr/tmp/cargo-installhMfvy5/release/build/capstone-sys-a22490eef1a866eb/out --cfg 'feature="arm64"'` (signal: 11, SIGSEGV: invalid memory reference)Versions and Environment
Operating system: Android
Architecture: Termux (version 0.118.3)
Extra Info
Anything else you'd like to add?
This is likely outside the bounds of expected use. The android kernel and OS layout/functionality is much more limited and fairly different to the linux kernel. Further termux specific rust packages also cause further complexity in compilation (the termux rustc package version is 1.88.0 presently). As a result I think while this would be nice to have, it's fair to close this issue as not intended if it's outside the scope of the project.
rowanfr added the bug label to Issue #11395.
rowanfr added the cranelift label to Issue #11395.
Last updated: Dec 06 2025 at 07:03 UTC