0.65.0 build failing for android
cahuja1992 opened this issue · 0 comments
0.65.0 build is failing for android when compiling the crfsuite-rs
NDK Version = android-ndk-r20
running: "aarch64-linux-android-gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "c/include" "-Wall" "-Wextra" "-o" "/home/cahuja/snips/snips-nlu-rs-0.65.0/target/aarch64-linux-android/debug/build/crfsuite-sys-68380cbf5474de65/out/c/crf/crfsuite.o" "-c" "c/crf/crfsuite.c"
cargo:warning=c/crf/crfsuite.c:322:14: warning: unused function 'safe_strncpy' [-Wunused-function]
cargo:warning=static char *safe_strncpy(char *dst, const char *src, size_t n)
cargo:warning= ^
cargo:warning=1 warning generated.
exit code: 0
AR_aarch64-linux-android = None
AR_aarch64_linux_android = None
TARGET_AR = None
AR = None
running: "aarch64-linux-android-ar" "crs" "/home/cahuja/snips/snips-nlu-rs-0.65.0/target/aarch64-linux-android/debug/build/crfsuite-sys-68380cbf5474de65/out/libcrfsuite.a" "/home/cahuja/snips/snips-nlu-rs-0.65.0/target/aarch64-linux-android/debug/build/crfsuite-sys-68380cbf5474de65/out/c/lbfgs/lbfgs.o" "/home/cahuja/snips/snips-nlu-rs-0.65.0/target/aarch64-linux-android/debug/build/crfsuite-sys-68380cbf5474de65/out/c/cqdb/lookup3.o" "/home/cahuja/snips/snips-nlu-rs-0.65.0/target/aarch64-linux-android/debug/build/crfsuite-sys-68380cbf5474de65/out/c/cqdb/cqdb.o" "/home/cahuja/snips/snips-nlu-rs-0.65.0/target/aarch64-linux-android/debug/build/crfsuite-sys-68380cbf5474de65/out/c/crf/dictionary.o" "/home/cahuja/snips/snips-nlu-rs-0.65.0/target/aarch64-linux-android/debug/build/crfsuite-sys-68380cbf5474de65/out/c/crf/logging.o" "/home/cahuja/snips/snips-nlu-rs-0.65.0/target/aarch64-linux-android/debug/build/crfsuite-sys-68380cbf5474de65/out/c/crf/params.o" "/home/cahuja/snips/snips-nlu-rs-0.65.0/target/aarch64-linux-android/debug/build/crfsuite-sys-68380cbf5474de65/out/c/crf/quark.o" "/home/cahuja/snips/snips-nlu-rs-0.65.0/target/aarch64-linux-android/debug/build/crfsuite-sys-68380cbf5474de65/out/c/crf/rumavl.o" "/home/cahuja/snips/snips-nlu-rs-0.65.0/target/aarch64-linux-android/debug/build/crfsuite-sys-68380cbf5474de65/out/c/crf/dataset.o" "/home/cahuja/snips/snips-nlu-rs-0.65.0/target/aarch64-linux-android/debug/build/crfsuite-sys-68380cbf5474de65/out/c/crf/holdout.o" "/home/cahuja/snips/snips-nlu-rs-0.65.0/target/aarch64-linux-android/debug/build/crfsuite-sys-68380cbf5474de65/out/c/crf/train_arow.o" "/home/cahuja/snips/snips-nlu-rs-0.65.0/target/aarch64-linux-android/debug/build/crfsuite-sys-68380cbf5474de65/out/c/crf/train_averaged_perceptron.o" "/home/cahuja/snips/snips-nlu-rs-0.65.0/target/aarch64-linux-android/debug/build/crfsuite-sys-68380cbf5474de65/out/c/crf/train_l2sgd.o" "/home/cahuja/snips/snips-nlu-rs-0.65.0/target/aarch64-linux-android/debug/build/crfsuite-sys-68380cbf5474de65/out/c/crf/train_lbfgs.o" "/home/cahuja/snips/snips-nlu-rs-0.65.0/target/aarch64-linux-android/debug/build/crfsuite-sys-68380cbf5474de65/out/c/crf/train_passive_aggressive.o" "/home/cahuja/snips/snips-nlu-rs-0.65.0/target/aarch64-linux-android/debug/build/crfsuite-sys-68380cbf5474de65/out/c/crf/crf1d_context.o" "/home/cahuja/snips/snips-nlu-rs-0.65.0/target/aarch64-linux-android/debug/build/crfsuite-sys-68380cbf5474de65/out/c/crf/crf1d_model.o" "/home/cahuja/snips/snips-nlu-rs-0.65.0/target/aarch64-linux-android/debug/build/crfsuite-sys-68380cbf5474de65/out/c/crf/crf1d_feature.o" "/home/cahuja/snips/snips-nlu-rs-0.65.0/target/aarch64-linux-android/debug/build/crfsuite-sys-68380cbf5474de65/out/c/crf/crf1d_encode.o" "/home/cahuja/snips/snips-nlu-rs-0.65.0/target/aarch64-linux-android/debug/build/crfsuite-sys-68380cbf5474de65/out/c/crf/crf1d_tag.o" "/home/cahuja/snips/snips-nlu-rs-0.65.0/target/aarch64-linux-android/debug/build/crfsuite-sys-68380cbf5474de65/out/c/crf/crfsuite_train.o" "/home/cahuja/snips/snips-nlu-rs-0.65.0/target/aarch64-linux-android/debug/build/crfsuite-sys-68380cbf5474de65/out/c/crf/crfsuite.o"
exit code: 0
cargo:rustc-link-lib=static=crfsuite
cargo:rustc-link-search=native=/home/cahuja/snips/snips-nlu-rs-0.65.0/target/aarch64-linux-android/debug/build/crfsuite-sys-68380cbf5474de65/out
--- stderr
clang80: error: no input files
clang80: error: no input files
clang80: error: no input files
clang80: error: no input files
clang80: error: no input files
clang80: error: no input files
clang80: error: no input files
clang80: error: no input files
clang80: error: no input files
clang80: error: no input files
clang80: error: no input files
clang80: error: no input files
clang80: error: no input files
clang80: error: no input files
clang80: error: no input files
clang80: error: no input files
clang80: error: no input files
clang80: error: no input files
clang80: error: no input files
clang80: error: no input files
clang80: error: no input files
clang80: error: no input files
clang80: error: no input files
thread 'main' panicked at 'called Result::unwrap()
on an Err
value: Error(Msg("You must either define a TARGET_SYSROOT or use Dinghy to build your project."), State { next_error: None })', src/libcore/result.rs:997:5
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:71
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:59
at src/libstd/panicking.rs:197
3: std::panicking::default_hook
at src/libstd/panicking.rs:211
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:474
5: std::panicking::continue_panic_fmt
at src/libstd/panicking.rs:381
6: rust_begin_unwind
at src/libstd/panicking.rs:308
7: core::panicking::panic_fmt
at src/libcore/panicking.rs:85
8: core::result::unwrap_failed
at /rustc/3c235d5600393dfe6c36eeed34042efad8d4f26e/src/libcore/macros.rs:18
9: core::result::Result<T,E>::unwrap
at /rustc/3c235d5600393dfe6c36eeed34042efad8d4f26e/src/libcore/result.rs:798
10: build_script_build::main
at ./build.rs:55
11: std::rt::lang_start::{{closure}}
at /rustc/3c235d5600393dfe6c36eeed34042efad8d4f26e/src/libstd/rt.rs:64
12: std::panicking::try::do_call
at src/libstd/rt.rs:49
at src/libstd/panicking.rs:293
13: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:87
14: std::rt::lang_start_internal
at src/libstd/panicking.rs:272
at src/libstd/panic.rs:388
at src/libstd/rt.rs:48
15: std::rt::lang_start
at /rustc/3c235d5600393dfe6c36eeed34042efad8d4f26e/src/libstd/rt.rs:64
16: main
17: __libc_start_main
18: _start