snipsco / snips-nlu-rs

Snips NLU rust implementation
https://snips.ai
Other
340 stars 56 forks source link

Adding snips-nlu-lib causes errror #119

Closed Flocksserver closed 5 years ago

Flocksserver commented 5 years ago

Hey guys, I would like to compile an android lib with rust, jni and your snips-nlu-lib. Without the snips-nlu-lib my android lib compiles as expected. My cargo config looks like:

[target.armv7-linux-androideabi]
ar = "/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-ar"
linker = "/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi21-clang++"

I am not using the standalone android toolchain but the standard ndk as mentioned in https://developer.android.com/ndk/guides/other_build_systems because of my ndk version r19. The lib as well as the JNI connection works:

Finished release [optimized] target(s) in 0.14s

After adding

snips-nlu-lib = { git = "https://github.com/snipsco/snips-nlu-rs", branch = "master" }

I find

Compiling backtrace-sys v0.1.28
   Compiling bzip2-sys v0.1.7
   Compiling clap v2.32.0
   Compiling rmp v0.8.7
   Compiling clang-sys v0.23.0
   Compiling enum_primitive v0.1.1
   Compiling chrono v0.4.6
error: failed to run custom build command for `backtrace-sys v0.1.28`
process didn't exit successfully: `/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/release/build/backtrace-sys-5917014bf132b9c5/build-script-build` (exit code: 101)
--- stdout
cargo:rustc-cfg=rbt
TARGET = Some("armv7-linux-androideabi")
OPT_LEVEL = Some("3")
HOST = Some("x86_64-apple-darwin")
CC_armv7-linux-androideabi = None
CC_armv7_linux_androideabi = None
TARGET_CC = None
CC = None
CFLAGS_armv7-linux-androideabi = None
CFLAGS_armv7_linux_androideabi = None
TARGET_CFLAGS = None
CFLAGS = None
running: "arm-linux-androideabi-clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=armv7-linux-androideabi" "-I" "src/libbacktrace" "-I" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/release/build/backtrace-sys-27dbfe46cbd61a97/out" "-fvisibility=hidden" "-DBACKTRACE_ELF_SIZE=32" "-DBACKTRACE_SUPPORTED=1" "-DBACKTRACE_USES_MALLOC=1" "-DBACKTRACE_SUPPORTS_THREADS=0" "-DBACKTRACE_SUPPORTS_DATA=0" "-D_GNU_SOURCE=1" "-D_LARGE_FILES=1" "-Dbacktrace_full=__rbt_backtrace_full" "-Dbacktrace_dwarf_add=__rbt_backtrace_dwarf_add" "-Dbacktrace_initialize=__rbt_backtrace_initialize" "-Dbacktrace_pcinfo=__rbt_backtrace_pcinfo" "-Dbacktrace_syminfo=__rbt_backtrace_syminfo" "-Dbacktrace_get_view=__rbt_backtrace_get_view" "-Dbacktrace_release_view=__rbt_backtrace_release_view" "-Dbacktrace_alloc=__rbt_backtrace_alloc" "-Dbacktrace_free=__rbt_backtrace_free" "-Dbacktrace_vector_finish=__rbt_backtrace_vector_finish" "-Dbacktrace_vector_grow=__rbt_backtrace_vector_grow" "-Dbacktrace_vector_release=__rbt_backtrace_vector_release" "-Dbacktrace_close=__rbt_backtrace_close" "-Dbacktrace_open=__rbt_backtrace_open" "-Dbacktrace_print=__rbt_backtrace_print" "-Dbacktrace_simple=__rbt_backtrace_simple" "-Dbacktrace_qsort=__rbt_backtrace_qsort" "-Dbacktrace_create_state=__rbt_backtrace_create_state" "-Dbacktrace_uncompress_zdebug=__rbt_backtrace_uncompress_zdebug" "-o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/release/build/backtrace-sys-27dbfe46cbd61a97/out/src/libbacktrace/alloc.o" "-c" "src/libbacktrace/alloc.c"

--- stderr
thread 'main' panicked at '

Internal error occurred: Failed to find tool. Is `arm-linux-androideabi-clang` installed?

', /Users/marcelkaufmann/.cargo/registry/src/github.com-1ecc6299db9ec823/cc-1.0.29/src/lib.rs:2314:5
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
   1: std::sys_common::backtrace::_print
   2: std::panicking::default_hook::{{closure}}
   3: std::panicking::default_hook
   4: std::panicking::rust_panic_with_hook
   5: std::panicking::continue_panic_fmt
   6: std::panicking::begin_panic_fmt
   7: cc::fail
   8: cc::Build::compile
   9: build_script_build::main
  10: std::rt::lang_start::{{closure}}
  11: std::panicking::try::do_call
  12: __rust_maybe_catch_panic
  13: std::rt::lang_start_internal
  14: main

warning: build failed, waiting for other jobs to finish...
error: failed to run custom build command for `bzip2-sys v0.1.7`
process didn't exit successfully: `/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/release/build/bzip2-sys-338438d94e50ff86/build-script-build` (exit code: 101)
--- stdout
TARGET = Some("armv7-linux-androideabi")
OPT_LEVEL = Some("3")
HOST = Some("x86_64-apple-darwin")
CC_armv7-linux-androideabi = None
CC_armv7_linux_androideabi = None
TARGET_CC = None
CC = None
CFLAGS_armv7-linux-androideabi = None
CFLAGS_armv7_linux_androideabi = None
TARGET_CFLAGS = None
CFLAGS = None
DEBUG = Some("false")
running: "arm-linux-androideabi-clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=armv7-linux-androideabi" "-I" "bzip2-1.0.6" "-D_FILE_OFFSET_BITS=64" "-DBZ_NO_STDIO" "-o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/release/build/bzip2-sys-4a4802aaf443cba8/out/lib/bzip2-1.0.6/blocksort.o" "-c" "bzip2-1.0.6/blocksort.c"

--- stderr
thread 'main' panicked at '

Internal error occurred: Failed to find tool. Is `arm-linux-androideabi-clang` installed?

', /Users/marcelkaufmann/.cargo/registry/src/github.com-1ecc6299db9ec823/cc-1.0.29/src/lib.rs:2314:5
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
   1: std::sys_common::backtrace::_print
   2: std::panicking::default_hook::{{closure}}
   3: std::panicking::default_hook
   4: std::panicking::rust_panic_with_hook
   5: std::panicking::continue_panic_fmt
   6: std::panicking::begin_panic_fmt
   7: cc::fail
   8: cc::Build::compile
   9: build_script_build::main
  10: std::rt::lang_start::{{closure}}
  11: std::panicking::try::do_call
  12: __rust_maybe_catch_panic
  13: std::rt::lang_start_internal
  14: main

warning: build failed, waiting for other jobs to finish...
error: build failed
------------------------------------------------------------

Do you have any suggestion what the problem is? Why does the compiler search for arm-linux-androideabi-clang and where? And why after adding your library? Thanks :)

Flocksserver commented 5 years ago

Hmm, looks like the crfsuite-sys lib dependency is the problem? As a Mobile Developer I am not that familiar with c and rust 🙈 Do you know how to deal with it? Thanks!

fredszaq commented 5 years ago

Hi @Flocksserver !

Cross compiling rust is usually easy, as long as this is pure rust you're compiling. As soon as you start compiling some C code, it get complicated. In this case you didn't tell to the build scripts of backtrace-sys, bzip2-sys and crfsuite-sys which C compiler to use so they tryied to guess the name it should have based on the used rustc tuple and failed.

You can use environment variables to setup that (TARGET_CC, or better CC_armv7-linux-androideabi) but it can quickly be tedious as the C compiler is not the only thing that may need configuring.

At snips we developed a tool to do all that configuration for you it called dinghy. We recently added the support for android-ndk r19 (ie without standalone toolchains)

You don't need to configure anything in the .cargo/config to use it, a simple cargo dinghy --platform auto-android-armv7 build should do the job. You may have to pass an env var to tell dinghy where your ndk is located (ANDROID_NDK_HOME) but it should find it it is in a standard location.

snips-nlu-rs is one of the crates we use to develop dinghy as we need it in our android sdk

Flocksserver commented 5 years ago

Thanks @fredszaq for your kindful answer! That does make sense :) Unfortunately it does not work...

Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: armv7--linux-android
Thread model: posix
InstalledDir: 
ignoring nonexistent directory "lib/clang/10.0.0/include"
ignoring nonexistent directory "/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/include"
#include "..." search starts here:
#include <...> search starts here:
 /Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/lib64/clang/8.0.2/include
 /Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/local/include
 /Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include
End of search list.
/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/linux/types.h:21:10: fatal error: 'asm/types.h' file not found
/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/linux/types.h:21:10: fatal error: 'asm/types.h' file not found, err: true

The asm/types.h file is located in sysroot/usr/include/arm-linux-androideabi and not in the search locations... Some sources say with another build system I can extend the CMakeLists.txt file to include directories

include_directories(${ANDROID_SYSROOT}/usr/include/arm-linux-androideabi)

How is that possible with dinghy? Should I ask this question in the dinghy repo? Is there a complete knowledge gap or a misunderstanding on my side? I would be very pleased if you can give me (one last time) another helpful hint. Best regards

fredszaq commented 5 years ago

Hi @Flocksserver can you include a little more context in you log ? ie full output of cargo clean && cargo dinghy --platform auto-android-armv7 build make sure you don't have anything regarding the configuration of the armv7-linux-androideabi target in your cargo config as it can interfere with dinghy own's config. Do you have the same problem when trying to build directly snips-nlu-rs ?

Flocksserver commented 5 years ago
# cargo --version
cargo 1.32.0 (8610973aa 2019-01-02)
# cargo-dinghy --version 
dinghy 0.4.8

Do you have the same problem when trying to build directly snips-nlu-rs ?

Yes - the same

make sure you don't have anything regarding the configuration of the armv7-linux-androideabi target in your cargo config

I am sure I have no cargo config. Neither in the project dir nor in the users "home" dir

console output

``` cargo dinghy --platform auto-android-armv7 build INFO cargo_dinghy > Targeting platform 'auto-android-armv7' and device '' Compiling proc-macro2 v0.4.27 Compiling unicode-xid v0.1.0 Compiling libc v0.2.48 Compiling autocfg v0.1.2 Compiling memchr v2.2.0 Compiling failure_derive v0.1.5 Compiling cc v1.0.29 Compiling num-traits v0.2.6 thread '' panicked at 'called `Result::unwrap()` on an `Err` value: Error(Msg("error: e8000084"), State { next_error: None, backtrace: None })', src/libcore/result.rs:1009:5 note: Run with `RUST_BACKTRACE=1` for a backtrace. Compiling serde v1.0.88 Compiling rustc-demangle v0.1.13 Compiling ucd-util v0.1.3 Compiling num-integer v0.1.39 Compiling lazy_static v1.2.0 Compiling cfg-if v0.1.6 Compiling regex v0.2.11 Compiling utf8-ranges v1.0.2 Compiling smallvec v0.6.9 Compiling regex v1.1.0 Compiling string-interner v0.3.3 Compiling fnv v1.0.6 Compiling glob v0.2.11 Compiling vec_map v0.8.1 Compiling quick-error v1.2.2 Compiling unicode-width v0.1.5 Compiling byteorder v1.3.1 Compiling bitflags v1.0.4 Compiling bindgen v0.41.0 Compiling termcolor v1.0.4 Compiling strsim v0.7.0 Compiling semver-parser v0.7.0 Compiling ansi_term v0.11.0 Compiling peeking_take_while v0.1.2 Compiling build_const v0.2.1 Compiling bindgen v0.37.4 Compiling error-chain v0.11.0 Compiling ryu v0.2.7 Compiling gcc v0.3.55 Compiling adler32 v1.0.3 Compiling crc32fast v1.1.2 Compiling rand_core v0.4.0 Compiling itoa v0.4.3 Compiling either v1.5.0 Compiling matrixmultiply v0.1.15 Compiling rawpointer v0.1.0 Compiling ndarray v0.11.2 Compiling podio v0.1.6 Compiling ascii v0.7.1 Compiling linked-hash-map v0.4.2 Compiling remove_dir_all v0.5.1 Compiling safemem v0.3.0 Compiling cesu8 v1.1.0 Compiling error-chain v0.10.0 Compiling jni-sys v0.2.5 Compiling nlu v0.1.0 (/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo) Compiling proc-macro2 v0.3.5 Compiling backtrace v0.3.14 Compiling rand_chacha v0.1.1 Compiling rand v0.6.5 Compiling log v0.4.6 Compiling thread_local v0.3.6 Compiling regex-syntax v0.5.6 Compiling regex-syntax v0.6.5 Compiling humantime v1.2.0 Compiling textwrap v0.10.0 Compiling backtrace-sys v0.1.28 Compiling libloading v0.5.0 Compiling bzip2-sys v0.1.7 Compiling miniz_oxide_c_api v0.2.1 Compiling clang-sys v0.23.0 Compiling unicode-normalization v0.1.8 Compiling crc v1.8.1 Compiling semver v0.9.0 Compiling miniz_oxide v0.2.1 Compiling itertools v0.8.0 Compiling itertools v0.7.11 Compiling rand_core v0.3.1 Compiling rand_jitter v0.1.3 Compiling lru-cache v0.1.1 Compiling quote v0.5.2 Compiling log v0.3.9 Compiling rustc_version v0.2.3 Compiling rand_isaac v0.1.1 Compiling rand_hc v0.1.0 Compiling rand_xorshift v0.1.1 Compiling time v0.1.42 Compiling memchr v1.0.2 Compiling atty v0.2.11 Compiling which v1.0.5 Compiling rand_os v0.1.2 Compiling quote v0.6.11 Compiling num-traits v0.1.43 Compiling num-complex v0.1.43 Compiling base64 v0.9.3 Compiling combine v2.5.2 Compiling rand_pcg v0.1.1 Compiling aho-corasick v0.6.10 Compiling clap v2.32.0 Compiling nom v3.2.1 Compiling csv-core v0.1.5 Compiling enum_primitive v0.1.1 Compiling rmp v0.8.7 Compiling syn v0.15.26 Compiling chrono v0.4.6 Compiling msdos_time v0.1.6 Compiling bzip2 v0.3.3 Compiling jni v0.5.3 Compiling cexpr v0.2.3 Compiling rmp-serde v0.13.7 Compiling serde_json v1.0.38 Compiling csv v1.0.5 Compiling flate2 v1.0.6 Compiling synstructure v0.10.1 Compiling serde_derive v1.0.88 Compiling derive-new v0.5.6 Compiling env_logger v0.5.13 Compiling snips-nlu-utils v0.7.1 (https://github.com/snipsco/snips-nlu-utils?tag=0.7.1#a31e86bc) Compiling zip v0.3.3 Compiling tempfile v3.0.7 Compiling failure v0.1.5 Compiling rustling-ontology-moment v0.17.7 (https://github.com/snipsco/rustling-ontology?tag=0.17.7#eb109672) Compiling rustling-core v0.9.0 (https://github.com/snipsco/rustling?tag=0.9.0#fd8084bd) Compiling rustling-ml v0.9.0 (https://github.com/snipsco/rustling?tag=0.9.0#fd8084bd) Compiling gazetteer-entity-parser v0.6.0 (https://github.com/snipsco/gazetteer-entity-parser?tag=0.6.0#6cbc956a) Compiling snips-nlu-ontology v0.63.1 (https://github.com/snipsco/snips-nlu-ontology?tag=0.63.1#42811e20) Compiling rustling v0.9.0 (https://github.com/snipsco/rustling?tag=0.9.0#fd8084bd) Compiling dinghy-build v0.3.5 Compiling rustling-ontology-values v0.17.7 (https://github.com/snipsco/rustling-ontology?tag=0.17.7#eb109672) Compiling crfsuite-sys v0.2.0-pre (https://github.com/snipsco/crfsuite-rs?rev=91fda4b#91fda4b3) Compiling rustling-ontology-ko v0.17.7 (https://github.com/snipsco/rustling-ontology?tag=0.17.7#eb109672) Compiling rustling-ontology-ja v0.17.7 (https://github.com/snipsco/rustling-ontology?tag=0.17.7#eb109672) Compiling rustling-ontology-fr v0.17.7 (https://github.com/snipsco/rustling-ontology?tag=0.17.7#eb109672) Compiling rustling-ontology-es v0.17.7 (https://github.com/snipsco/rustling-ontology?tag=0.17.7#eb109672) Compiling rustling-ontology-zh v0.17.7 (https://github.com/snipsco/rustling-ontology?tag=0.17.7#eb109672) Compiling rustling-ontology-it v0.17.7 (https://github.com/snipsco/rustling-ontology?tag=0.17.7#eb109672) Compiling rustling-ontology-en v0.17.7 (https://github.com/snipsco/rustling-ontology?tag=0.17.7#eb109672) Compiling rustling-ontology-de v0.17.7 (https://github.com/snipsco/rustling-ontology?tag=0.17.7#eb109672) Compiling rustling-ontology-grammar v0.17.7 (https://github.com/snipsco/rustling-ontology?tag=0.17.7#eb109672) Compiling rustling-ontology v0.17.7 (https://github.com/snipsco/rustling-ontology?tag=0.17.7#eb109672) error: failed to run custom build command for `crfsuite-sys v0.2.0-pre (https://github.com/snipsco/crfsuite-rs?rev=91fda4b#91fda4b3)` process didn't exit successfully: `/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/debug/build/crfsuite-sys-9918fb759337bc98/build-script-build` (exit code: 101) --- stdout TARGET = Some("armv7-linux-androideabi") OPT_LEVEL = Some("0") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") TARGET = Some("armv7-linux-androideabi") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CC_armv7-linux-androideabi = Some("/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CFLAGS_armv7-linux-androideabi = None CFLAGS_armv7_linux_androideabi = None TARGET_CFLAGS = None CFLAGS = None DEBUG = Some("true") running: "/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "--target=armv7-linux-androideabi" "-I" "c/include" "-Wall" "-Wextra" "-o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/lbfgs/lbfgs.o" "-c" "c/lbfgs/lbfgs.c" cargo:warning=c/lbfgs/lbfgs.c:653:28: warning: unused parameter 'gp' [-Wunused-parameter] cargo:warning= const lbfgsfloatval_t* gp, cargo:warning= ^ cargo:warning=c/lbfgs/lbfgs.c:654:22: warning: unused parameter 'wp' [-Wunused-parameter] cargo:warning= lbfgsfloatval_t *wp, cargo:warning= ^ cargo:warning=c/lbfgs/lbfgs.c:820:28: warning: unused parameter 'gp' [-Wunused-parameter] cargo:warning= const lbfgsfloatval_t* gp, cargo:warning= ^ cargo:warning=c/lbfgs/lbfgs.c:821:22: warning: unused parameter 'wa' [-Wunused-parameter] cargo:warning= lbfgsfloatval_t *wa, cargo:warning= ^ cargo:warning=4 warnings generated. exit code: 0 TARGET = Some("armv7-linux-androideabi") OPT_LEVEL = Some("0") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") TARGET = Some("armv7-linux-androideabi") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CC_armv7-linux-androideabi = Some("/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CFLAGS_armv7-linux-androideabi = None CFLAGS_armv7_linux_androideabi = None TARGET_CFLAGS = None CFLAGS = None DEBUG = Some("true") running: "/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "--target=armv7-linux-androideabi" "-I" "c/include" "-Wall" "-Wextra" "-o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/cqdb/lookup3.o" "-c" "c/cqdb/lookup3.c" exit code: 0 TARGET = Some("armv7-linux-androideabi") OPT_LEVEL = Some("0") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") TARGET = Some("armv7-linux-androideabi") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CC_armv7-linux-androideabi = Some("/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CFLAGS_armv7-linux-androideabi = None CFLAGS_armv7_linux_androideabi = None TARGET_CFLAGS = None CFLAGS = None DEBUG = Some("true") running: "/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "--target=armv7-linux-androideabi" "-I" "c/include" "-Wall" "-Wextra" "-o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/cqdb/cqdb.o" "-c" "c/cqdb/cqdb.c" exit code: 0 TARGET = Some("armv7-linux-androideabi") OPT_LEVEL = Some("0") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") TARGET = Some("armv7-linux-androideabi") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CC_armv7-linux-androideabi = Some("/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CFLAGS_armv7-linux-androideabi = None CFLAGS_armv7_linux_androideabi = None TARGET_CFLAGS = None CFLAGS = None DEBUG = Some("true") running: "/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "--target=armv7-linux-androideabi" "-I" "c/include" "-Wall" "-Wextra" "-o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/crf/dictionary.o" "-c" "c/crf/dictionary.c" cargo:warning=c/crf/dictionary.c:90:52: warning: unused parameter 'dic' [-Wunused-parameter] cargo:warning=static void dictionary_free(crfsuite_dictionary_t* dic, const char *str) cargo:warning= ^ cargo:warning=1 warning generated. exit code: 0 TARGET = Some("armv7-linux-androideabi") OPT_LEVEL = Some("0") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") TARGET = Some("armv7-linux-androideabi") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CC_armv7-linux-androideabi = Some("/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CFLAGS_armv7-linux-androideabi = None CFLAGS_armv7_linux_androideabi = None TARGET_CFLAGS = None CFLAGS = None DEBUG = Some("true") running: "/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "--target=armv7-linux-androideabi" "-I" "c/include" "-Wall" "-Wextra" "-o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/crf/logging.o" "-c" "c/crf/logging.c" exit code: 0 TARGET = Some("armv7-linux-androideabi") OPT_LEVEL = Some("0") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") TARGET = Some("armv7-linux-androideabi") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CC_armv7-linux-androideabi = Some("/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CFLAGS_armv7-linux-androideabi = None CFLAGS_armv7_linux_androideabi = None TARGET_CFLAGS = None CFLAGS = None DEBUG = Some("true") running: "/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "--target=armv7-linux-androideabi" "-I" "c/include" "-Wall" "-Wextra" "-o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/crf/params.o" "-c" "c/crf/params.c" cargo:warning=c/crf/params.c:160:44: warning: unused parameter 'params' [-Wunused-parameter] cargo:warning=static void params_free(crfsuite_params_t* params, const char *value) cargo:warning= ^ cargo:warning=1 warning generated. exit code: 0 TARGET = Some("armv7-linux-androideabi") OPT_LEVEL = Some("0") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") TARGET = Some("armv7-linux-androideabi") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CC_armv7-linux-androideabi = Some("/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CFLAGS_armv7-linux-androideabi = None CFLAGS_armv7_linux_androideabi = None TARGET_CFLAGS = None CFLAGS = None DEBUG = Some("true") running: "/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "--target=armv7-linux-androideabi" "-I" "c/include" "-Wall" "-Wextra" "-o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/crf/quark.o" "-c" "c/crf/quark.c" cargo:warning=c/crf/quark.c:51:58: warning: unused parameter 'n' [-Wunused-parameter] cargo:warning=static int keycmp(const void *_x, const void *_y, size_t n, void *udata) cargo:warning= ^ cargo:warning=c/crf/quark.c:51:67: warning: unused parameter 'udata' [-Wunused-parameter] cargo:warning=static int keycmp(const void *_x, const void *_y, size_t n, void *udata) cargo:warning= ^ cargo:warning=c/crf/quark.c:58:25: warning: unused parameter 'tree' [-Wunused-parameter] cargo:warning=static int owcb(RUMAVL *tree, RUMAVL_NODE *n, void *_x, const void *_y, void *udata) cargo:warning= ^ cargo:warning=c/crf/quark.c:58:44: warning: unused parameter 'n' [-Wunused-parameter] cargo:warning=static int owcb(RUMAVL *tree, RUMAVL_NODE *n, void *_x, const void *_y, void *udata) cargo:warning= ^ cargo:warning=c/crf/quark.c:58:69: warning: unused parameter '_y' [-Wunused-parameter] cargo:warning=static int owcb(RUMAVL *tree, RUMAVL_NODE *n, void *_x, const void *_y, void *udata) cargo:warning= ^ cargo:warning=c/crf/quark.c:58:79: warning: unused parameter 'udata' [-Wunused-parameter] cargo:warning=static int owcb(RUMAVL *tree, RUMAVL_NODE *n, void *_x, const void *_y, void *udata) cargo:warning= ^ cargo:warning=c/crf/quark.c:65:26: warning: unused parameter 'tree' [-Wunused-parameter] cargo:warning=static int delcb(RUMAVL *tree, RUMAVL_NODE *n, void *_record, void *udata) cargo:warning= ^ cargo:warning=c/crf/quark.c:65:45: warning: unused parameter 'n' [-Wunused-parameter] cargo:warning=static int delcb(RUMAVL *tree, RUMAVL_NODE *n, void *_record, void *udata) cargo:warning= ^ cargo:warning=c/crf/quark.c:65:69: warning: unused parameter 'udata' [-Wunused-parameter] cargo:warning=static int delcb(RUMAVL *tree, RUMAVL_NODE *n, void *_record, void *udata) cargo:warning= ^ cargo:warning=9 warnings generated. exit code: 0 TARGET = Some("armv7-linux-androideabi") OPT_LEVEL = Some("0") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") TARGET = Some("armv7-linux-androideabi") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CC_armv7-linux-androideabi = Some("/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CFLAGS_armv7-linux-androideabi = None CFLAGS_armv7_linux_androideabi = None TARGET_CFLAGS = None CFLAGS = None DEBUG = Some("true") running: "/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "--target=armv7-linux-androideabi" "-I" "c/include" "-Wall" "-Wextra" "-o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/crf/rumavl.o" "-c" "c/crf/rumavl.c" exit code: 0 TARGET = Some("armv7-linux-androideabi") OPT_LEVEL = Some("0") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") TARGET = Some("armv7-linux-androideabi") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CC_armv7-linux-androideabi = Some("/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CFLAGS_armv7-linux-androideabi = None CFLAGS_armv7_linux_androideabi = None TARGET_CFLAGS = None CFLAGS = None DEBUG = Some("true") running: "/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "--target=armv7-linux-androideabi" "-I" "c/include" "-Wall" "-Wextra" "-o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/crf/dataset.o" "-c" "c/crf/dataset.c" exit code: 0 TARGET = Some("armv7-linux-androideabi") OPT_LEVEL = Some("0") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") TARGET = Some("armv7-linux-androideabi") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CC_armv7-linux-androideabi = Some("/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CFLAGS_armv7-linux-androideabi = None CFLAGS_armv7_linux_androideabi = None TARGET_CFLAGS = None CFLAGS = None DEBUG = Some("true") running: "/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "--target=armv7-linux-androideabi" "-I" "c/include" "-Wall" "-Wextra" "-o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/crf/holdout.o" "-c" "c/crf/holdout.c" exit code: 0 TARGET = Some("armv7-linux-androideabi") OPT_LEVEL = Some("0") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") TARGET = Some("armv7-linux-androideabi") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CC_armv7-linux-androideabi = Some("/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CFLAGS_armv7-linux-androideabi = None CFLAGS_armv7_linux_androideabi = None TARGET_CFLAGS = None CFLAGS = None DEBUG = Some("true") running: "/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "--target=armv7-linux-androideabi" "-I" "c/include" "-Wall" "-Wextra" "-o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/crf/train_arow.o" "-c" "c/crf/train_arow.c" cargo:warning=c/crf/train_arow.c:180:63: warning: unused parameter 'd' [-Wunused-parameter] cargo:warning=static floatval_t cost_insensitive(floatval_t err, floatval_t d) cargo:warning= ^ cargo:warning=c/crf/train_arow.c:190:69: warning: unused parameter 'c' [-Wunused-parameter] cargo:warning=static floatval_t tau0(floatval_t cost, floatval_t norm, floatval_t c) cargo:warning= ^ cargo:warning=c/crf/train_arow.c:288:20: warning: unused variable 'norm' [-Wunused-variable] cargo:warning= floatval_t norm = 0., sum_loss = 0.; cargo:warning= ^ cargo:warning=c/crf/train_arow.c:145:19: warning: unused function 'delta_norm2' [-Wunused-function] cargo:warning=static floatval_t delta_norm2(delta_t *dc) cargo:warning= ^ cargo:warning=c/crf/train_arow.c:157:13: warning: unused function 'delta_add' [-Wunused-function] cargo:warning=static void delta_add(delta_t *dc, floatval_t *w, floatval_t *ws, const floatval_t tau, const floatval_t u) cargo:warning= ^ cargo:warning=c/crf/train_arow.c:180:19: warning: unused function 'cost_insensitive' [-Wunused-function] cargo:warning=static floatval_t cost_insensitive(floatval_t err, floatval_t d) cargo:warning= ^ cargo:warning=c/crf/train_arow.c:185:19: warning: unused function 'cost_sensitive' [-Wunused-function] cargo:warning=static floatval_t cost_sensitive(floatval_t err, floatval_t d) cargo:warning= ^ cargo:warning=c/crf/train_arow.c:190:19: warning: unused function 'tau0' [-Wunused-function] cargo:warning=static floatval_t tau0(floatval_t cost, floatval_t norm, floatval_t c) cargo:warning= ^ cargo:warning=c/crf/train_arow.c:195:19: warning: unused function 'tau1' [-Wunused-function] cargo:warning=static floatval_t tau1(floatval_t cost, floatval_t norm, floatval_t c) cargo:warning= ^ cargo:warning=c/crf/train_arow.c:200:19: warning: unused function 'tau2' [-Wunused-function] cargo:warning=static floatval_t tau2(floatval_t cost, floatval_t norm, floatval_t c) cargo:warning= ^ cargo:warning=10 warnings generated. exit code: 0 TARGET = Some("armv7-linux-androideabi") OPT_LEVEL = Some("0") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") TARGET = Some("armv7-linux-androideabi") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CC_armv7-linux-androideabi = Some("/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CFLAGS_armv7-linux-androideabi = None CFLAGS_armv7_linux_androideabi = None TARGET_CFLAGS = None CFLAGS = None DEBUG = Some("true") running: "/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "--target=armv7-linux-androideabi" "-I" "c/include" "-Wall" "-Wextra" "-o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/crf/train_averaged_perceptron.o" "-c" "c/crf/train_averaged_perceptron.c" cargo:warning=c/crf/train_averaged_perceptron.c:155:20: warning: unused variable 'norm' [-Wunused-variable] cargo:warning= floatval_t norm = 0., loss = 0.; cargo:warning= ^ cargo:warning=1 warning generated. exit code: 0 TARGET = Some("armv7-linux-androideabi") OPT_LEVEL = Some("0") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") TARGET = Some("armv7-linux-androideabi") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CC_armv7-linux-androideabi = Some("/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CFLAGS_armv7-linux-androideabi = None CFLAGS_armv7_linux_androideabi = None TARGET_CFLAGS = None CFLAGS = None DEBUG = Some("true") running: "/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "--target=armv7-linux-androideabi" "-I" "c/include" "-Wall" "-Wextra" "-o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/crf/train_l2sgd.o" "-c" "c/crf/train_l2sgd.c" cargo:warning=c/crf/train_l2sgd.c:152:23: warning: unused variable 'clk_begin' [-Wunused-variable] cargo:warning= clock_t clk_prev, clk_begin = clock(); cargo:warning= ^ cargo:warning=c/crf/train_l2sgd.c:454:15: warning: unused variable 'T' [-Wunused-variable] cargo:warning= const int T = gm->cap_items; cargo:warning= ^ cargo:warning=2 warnings generated. exit code: 0 TARGET = Some("armv7-linux-androideabi") OPT_LEVEL = Some("0") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") TARGET = Some("armv7-linux-androideabi") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CC_armv7-linux-androideabi = Some("/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CFLAGS_armv7-linux-androideabi = None CFLAGS_armv7_linux_androideabi = None TARGET_CFLAGS = None CFLAGS = None DEBUG = Some("true") running: "/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "--target=armv7-linux-androideabi" "-I" "c/include" "-Wall" "-Wextra" "-o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/crf/train_lbfgs.o" "-c" "c/crf/train_lbfgs.c" cargo:warning=c/crf/train_lbfgs.c:86:27: warning: unused parameter 'step' [-Wunused-parameter] cargo:warning= const lbfgsfloatval_t step cargo:warning= ^ cargo:warning=c/crf/train_lbfgs.c:114:28: warning: unused parameter 'g' [-Wunused-parameter] cargo:warning= const lbfgsfloatval_t *g, cargo:warning= ^ cargo:warning=c/crf/train_lbfgs.c:229:15: warning: unused variable 'N' [-Wunused-variable] cargo:warning= const int N = trainset->num_instances; cargo:warning= ^ cargo:warning=c/crf/train_lbfgs.c:230:15: warning: unused variable 'L' [-Wunused-variable] cargo:warning= const int L = trainset->data->labels->num(trainset->data->labels); cargo:warning= ^ cargo:warning=c/crf/train_lbfgs.c:231:15: warning: unused variable 'A' [-Wunused-variable] cargo:warning= const int A = trainset->data->attrs->num(trainset->data->attrs); cargo:warning= ^ cargo:warning=5 warnings generated. exit code: 0 TARGET = Some("armv7-linux-androideabi") OPT_LEVEL = Some("0") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") TARGET = Some("armv7-linux-androideabi") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CC_armv7-linux-androideabi = Some("/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CFLAGS_armv7-linux-androideabi = None CFLAGS_armv7_linux_androideabi = None TARGET_CFLAGS = None CFLAGS = None DEBUG = Some("true") running: "/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "--target=armv7-linux-androideabi" "-I" "c/include" "-Wall" "-Wextra" "-o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/crf/train_passive_aggressive.o" "-c" "c/crf/train_passive_aggressive.c" cargo:warning=c/crf/train_passive_aggressive.c:182:63: warning: unused parameter 'd' [-Wunused-parameter] cargo:warning=static floatval_t cost_insensitive(floatval_t err, floatval_t d) cargo:warning= ^ cargo:warning=c/crf/train_passive_aggressive.c:192:69: warning: unused parameter 'c' [-Wunused-parameter] cargo:warning=static floatval_t tau0(floatval_t cost, floatval_t norm, floatval_t c) cargo:warning= ^ cargo:warning=c/crf/train_passive_aggressive.c:318:20: warning: unused variable 'norm' [-Wunused-variable] cargo:warning= floatval_t norm = 0., sum_loss = 0.; cargo:warning= ^ cargo:warning=3 warnings generated. exit code: 0 TARGET = Some("armv7-linux-androideabi") OPT_LEVEL = Some("0") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") TARGET = Some("armv7-linux-androideabi") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CC_armv7-linux-androideabi = Some("/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CFLAGS_armv7-linux-androideabi = None CFLAGS_armv7_linux_androideabi = None TARGET_CFLAGS = None CFLAGS = None DEBUG = Some("true") running: "/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "--target=armv7-linux-androideabi" "-I" "c/include" "-Wall" "-Wextra" "-o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/crf/crf1d_context.o" "-c" "c/crf/crf1d_context.c" cargo:warning=c/crf/crf1d_context.c:71:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] cargo:warning= if (ret = crf1dc_set_num_items(ctx, T)) { cargo:warning= ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cargo:warning=c/crf/crf1d_context.c:71:17: note: place parentheses around the assignment to silence this warning cargo:warning= if (ret = crf1dc_set_num_items(ctx, T)) { cargo:warning= ^ cargo:warning= ( ) cargo:warning=c/crf/crf1d_context.c:71:17: note: use '==' to turn this assignment into an equality comparison cargo:warning= if (ret = crf1dc_set_num_items(ctx, T)) { cargo:warning= ^ cargo:warning= == cargo:warning=c/crf/crf1d_context.c:438:38: warning: unused variable 'cur' [-Wunused-variable] cargo:warning= const floatval_t *state = NULL, *cur = NULL, *trans = NULL; cargo:warning= ^ cargo:warning=c/crf/crf1d_context.c:440:15: warning: unused variable 'L' [-Wunused-variable] cargo:warning= const int L = ctx->num_labels; cargo:warning= ^ cargo:warning=3 warnings generated. exit code: 0 TARGET = Some("armv7-linux-androideabi") OPT_LEVEL = Some("0") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") TARGET = Some("armv7-linux-androideabi") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CC_armv7-linux-androideabi = Some("/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CFLAGS_armv7-linux-androideabi = None CFLAGS_armv7_linux_androideabi = None TARGET_CFLAGS = None CFLAGS = None DEBUG = Some("true") running: "/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "--target=armv7-linux-androideabi" "-I" "c/include" "-Wall" "-Wextra" "-o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/crf/crf1d_model.o" "-c" "c/crf/crf1d_model.c" cargo:warning=c/crf/crf1d_model.c:487:21: warning: unused variable 'offset' [-Wunused-variable] cargo:warning= uint32_t n = 0, offset = 0; cargo:warning= ^ cargo:warning=c/crf/crf1d_model.c:594:21: warning: unused variable 'offset' [-Wunused-variable] cargo:warning= uint32_t n = 0, offset = 0; cargo:warning= ^ cargo:warning=c/crf/crf1d_model.c:691:13: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare] cargo:warning= if (fid != hfeat->num) { cargo:warning= ~~~ ^ ~~~~~~~~~~ cargo:warning=c/crf/crf1d_model.c:779:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] cargo:warning= if (buffer_orig = NULL) { cargo:warning= ~~~~~~~~~~~~^~~~~~ cargo:warning=c/crf/crf1d_model.c:779:21: note: place parentheses around the assignment to silence this warning cargo:warning= if (buffer_orig = NULL) { cargo:warning= ^ cargo:warning= ( ) cargo:warning=c/crf/crf1d_model.c:779:21: note: use '==' to turn this assignment into an equality comparison cargo:warning= if (buffer_orig = NULL) { cargo:warning= ^ cargo:warning= == cargo:warning=4 warnings generated. exit code: 0 TARGET = Some("armv7-linux-androideabi") OPT_LEVEL = Some("0") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") TARGET = Some("armv7-linux-androideabi") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CC_armv7-linux-androideabi = Some("/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CFLAGS_armv7-linux-androideabi = None CFLAGS_armv7_linux_androideabi = None TARGET_CFLAGS = None CFLAGS = None DEBUG = Some("true") running: "/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "--target=armv7-linux-androideabi" "-I" "c/include" "-Wall" "-Wextra" "-o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/crf/crf1d_feature.o" "-c" "c/crf/crf1d_feature.c" cargo:warning=c/crf/crf1d_feature.c:61:65: warning: unused parameter 'n' [-Wunused-parameter] cargo:warning=static int featureset_comp(const void *x, const void *y, size_t n, void *udata) cargo:warning= ^ cargo:warning=c/crf/crf1d_feature.c:61:74: warning: unused parameter 'udata' [-Wunused-parameter] cargo:warning=static int featureset_comp(const void *x, const void *y, size_t n, void *udata) cargo:warning= ^ cargo:warning=c/crf/crf1d_feature.c:159:9: warning: unused parameter 'num_attributes' [-Wunused-parameter] cargo:warning= int num_attributes, cargo:warning= ^ cargo:warning=3 warnings generated. exit code: 0 TARGET = Some("armv7-linux-androideabi") OPT_LEVEL = Some("0") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") TARGET = Some("armv7-linux-androideabi") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CC_armv7-linux-androideabi = Some("/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CFLAGS_armv7-linux-androideabi = None CFLAGS_armv7_linux_androideabi = None TARGET_CFLAGS = None CFLAGS = None DEBUG = Some("true") running: "/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "--target=armv7-linux-androideabi" "-I" "c/include" "-Wall" "-Wextra" "-o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/crf/crf1d_encode.o" "-c" "c/crf/crf1d_encode.c" cargo:warning=c/crf/crf1d_encode.c:136:15: warning: unused variable 'L' [-Wunused-variable] cargo:warning= const int L = crf1de->num_labels; cargo:warning= ^ cargo:warning=c/crf/crf1d_encode.c:172:15: warning: unused variable 'L' [-Wunused-variable] cargo:warning= const int L = crf1de->num_labels; cargo:warning= ^ cargo:warning=c/crf/crf1d_encode.c:266:22: warning: unused variable 'ctx' [-Wunused-variable] cargo:warning= crf1d_context_t* ctx = crf1de->ctx; cargo:warning= ^ cargo:warning=c/crf/crf1d_encode.c:268:15: warning: unused variable 'L' [-Wunused-variable] cargo:warning= const int L = crf1de->num_labels; cargo:warning= ^ cargo:warning=c/crf/crf1d_encode.c:319:22: warning: unused variable 'ctx' [-Wunused-variable] cargo:warning= crf1d_context_t* ctx = crf1de->ctx; cargo:warning= ^ cargo:warning=c/crf/crf1d_encode.c:321:15: warning: unused variable 'L' [-Wunused-variable] cargo:warning= const int L = crf1de->num_labels; cargo:warning= ^ cargo:warning=c/crf/crf1d_encode.c:372:41: warning: unused variable 'trans' [-Wunused-variable] cargo:warning= const feature_refs_t *attr = NULL, *trans = NULL; cargo:warning= ^ cargo:warning=c/crf/crf1d_encode.c:551:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] cargo:warning= if (ret = crf1dmw_open_features(writer)) { cargo:warning= ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cargo:warning=c/crf/crf1d_encode.c:551:13: note: place parentheses around the assignment to silence this warning cargo:warning= if (ret = crf1dmw_open_features(writer)) { cargo:warning= ^ cargo:warning= ( ) cargo:warning=c/crf/crf1d_encode.c:551:13: note: use '==' to turn this assignment into an equality comparison cargo:warning= if (ret = crf1dmw_open_features(writer)) { cargo:warning= ^ cargo:warning= == cargo:warning=c/crf/crf1d_encode.c:585:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] cargo:warning= if (ret = crf1dmw_put_feature(writer, fmap[k], &feat)) { cargo:warning= ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cargo:warning=c/crf/crf1d_encode.c:585:21: note: place parentheses around the assignment to silence this warning cargo:warning= if (ret = crf1dmw_put_feature(writer, fmap[k], &feat)) { cargo:warning= ^ cargo:warning= ( ) cargo:warning=c/crf/crf1d_encode.c:585:21: note: use '==' to turn this assignment into an equality comparison cargo:warning= if (ret = crf1dmw_put_feature(writer, fmap[k], &feat)) { cargo:warning= ^ cargo:warning= == cargo:warning=c/crf/crf1d_encode.c:592:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] cargo:warning= if (ret = crf1dmw_close_features(writer)) { cargo:warning= ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cargo:warning=c/crf/crf1d_encode.c:592:13: note: place parentheses around the assignment to silence this warning cargo:warning= if (ret = crf1dmw_close_features(writer)) { cargo:warning= ^ cargo:warning= ( ) cargo:warning=c/crf/crf1d_encode.c:592:13: note: use '==' to turn this assignment into an equality comparison cargo:warning= if (ret = crf1dmw_close_features(writer)) { cargo:warning= ^ cargo:warning= == cargo:warning=c/crf/crf1d_encode.c:602:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] cargo:warning= if (ret = crf1dmw_open_labels(writer, L)) { cargo:warning= ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cargo:warning=c/crf/crf1d_encode.c:602:13: note: place parentheses around the assignment to silence this warning cargo:warning= if (ret = crf1dmw_open_labels(writer, L)) { cargo:warning= ^ cargo:warning= ( ) cargo:warning=c/crf/crf1d_encode.c:602:13: note: use '==' to turn this assignment into an equality comparison cargo:warning= if (ret = crf1dmw_open_labels(writer, L)) { cargo:warning= ^ cargo:warning= == cargo:warning=c/crf/crf1d_encode.c:609:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] cargo:warning= if (ret = crf1dmw_put_label(writer, l, str)) { cargo:warning= ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cargo:warning=c/crf/crf1d_encode.c:609:21: note: place parentheses around the assignment to silence this warning cargo:warning= if (ret = crf1dmw_put_label(writer, l, str)) { cargo:warning= ^ cargo:warning= ( ) cargo:warning=c/crf/crf1d_encode.c:609:21: note: use '==' to turn this assignment into an equality comparison cargo:warning= if (ret = crf1dmw_put_label(writer, l, str)) { cargo:warning= ^ cargo:warning= == cargo:warning=c/crf/crf1d_encode.c:615:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] cargo:warning= if (ret = crf1dmw_close_labels(writer)) { cargo:warning= ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cargo:warning=c/crf/crf1d_encode.c:615:13: note: place parentheses around the assignment to silence this warning cargo:warning= if (ret = crf1dmw_close_labels(writer)) { cargo:warning= ^ cargo:warning= ( ) cargo:warning=c/crf/crf1d_encode.c:615:13: note: use '==' to turn this assignment into an equality comparison cargo:warning= if (ret = crf1dmw_close_labels(writer)) { cargo:warning= ^ cargo:warning= == cargo:warning=c/crf/crf1d_encode.c:621:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] cargo:warning= if (ret = crf1dmw_open_attrs(writer, B)) { cargo:warning= ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cargo:warning=c/crf/crf1d_encode.c:621:13: note: place parentheses around the assignment to silence this warning cargo:warning= if (ret = crf1dmw_open_attrs(writer, B)) { cargo:warning= ^ cargo:warning= ( ) cargo:warning=c/crf/crf1d_encode.c:621:13: note: use '==' to turn this assignment into an equality comparison cargo:warning= if (ret = crf1dmw_open_attrs(writer, B)) { cargo:warning= ^ cargo:warning= == cargo:warning=c/crf/crf1d_encode.c:629:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] cargo:warning= if (ret = crf1dmw_put_attr(writer, amap[a], str)) { cargo:warning= ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cargo:warning=c/crf/crf1d_encode.c:629:25: note: place parentheses around the assignment to silence this warning cargo:warning= if (ret = crf1dmw_put_attr(writer, amap[a], str)) { cargo:warning= ^ cargo:warning= ( ) cargo:warning=c/crf/crf1d_encode.c:629:25: note: use '==' to turn this assignment into an equality comparison cargo:warning= if (ret = crf1dmw_put_attr(writer, amap[a], str)) { cargo:warning= ^ cargo:warning= == cargo:warning=c/crf/crf1d_encode.c:636:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] cargo:warning= if (ret = crf1dmw_close_attrs(writer)) { cargo:warning= ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cargo:warning=c/crf/crf1d_encode.c:636:13: note: place parentheses around the assignment to silence this warning cargo:warning= if (ret = crf1dmw_close_attrs(writer)) { cargo:warning= ^ cargo:warning= ( ) cargo:warning=c/crf/crf1d_encode.c:636:13: note: use '==' to turn this assignment into an equality comparison cargo:warning= if (ret = crf1dmw_close_attrs(writer)) { cargo:warning= ^ cargo:warning= == cargo:warning=c/crf/crf1d_encode.c:642:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] cargo:warning= if (ret = crf1dmw_open_labelrefs(writer, L+2)) { cargo:warning= ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cargo:warning=c/crf/crf1d_encode.c:642:13: note: place parentheses around the assignment to silence this warning cargo:warning= if (ret = crf1dmw_open_labelrefs(writer, L+2)) { cargo:warning= ^ cargo:warning= ( ) cargo:warning=c/crf/crf1d_encode.c:642:13: note: use '==' to turn this assignment into an equality comparison cargo:warning= if (ret = crf1dmw_open_labelrefs(writer, L+2)) { cargo:warning= ^ cargo:warning= == cargo:warning=c/crf/crf1d_encode.c:647:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] cargo:warning= if (ret = crf1dmw_put_labelref(writer, l, edge, fmap)) { cargo:warning= ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cargo:warning=c/crf/crf1d_encode.c:647:17: note: place parentheses around the assignment to silence this warning cargo:warning= if (ret = crf1dmw_put_labelref(writer, l, edge, fmap)) { cargo:warning= ^ cargo:warning= ( ) cargo:warning=c/crf/crf1d_encode.c:647:17: note: use '==' to turn this assignment into an equality comparison cargo:warning= if (ret = crf1dmw_put_labelref(writer, l, edge, fmap)) { cargo:warning= ^ cargo:warning= == cargo:warning=c/crf/crf1d_encode.c:651:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] cargo:warning= if (ret = crf1dmw_close_labelrefs(writer)) { cargo:warning= ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cargo:warning=c/crf/crf1d_encode.c:651:13: note: place parentheses around the assignment to silence this warning cargo:warning= if (ret = crf1dmw_close_labelrefs(writer)) { cargo:warning= ^ cargo:warning= ( ) cargo:warning=c/crf/crf1d_encode.c:651:13: note: use '==' to turn this assignment into an equality comparison cargo:warning= if (ret = crf1dmw_close_labelrefs(writer)) { cargo:warning= ^ cargo:warning= == cargo:warning=c/crf/crf1d_encode.c:657:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] cargo:warning= if (ret = crf1dmw_open_attrrefs(writer, B)) { cargo:warning= ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cargo:warning=c/crf/crf1d_encode.c:657:13: note: place parentheses around the assignment to silence this warning cargo:warning= if (ret = crf1dmw_open_attrrefs(writer, B)) { cargo:warning= ^ cargo:warning= ( ) cargo:warning=c/crf/crf1d_encode.c:657:13: note: use '==' to turn this assignment into an equality comparison cargo:warning= if (ret = crf1dmw_open_attrrefs(writer, B)) { cargo:warning= ^ cargo:warning= == cargo:warning=c/crf/crf1d_encode.c:663:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] cargo:warning= if (ret = crf1dmw_put_attrref(writer, amap[a], attr, fmap)) { cargo:warning= ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cargo:warning=c/crf/crf1d_encode.c:663:21: note: place parentheses around the assignment to silence this warning cargo:warning= if (ret = crf1dmw_put_attrref(writer, amap[a], attr, fmap)) { cargo:warning= ^ cargo:warning= ( ) cargo:warning=c/crf/crf1d_encode.c:663:21: note: use '==' to turn this assignment into an equality comparison cargo:warning= if (ret = crf1dmw_put_attrref(writer, amap[a], attr, fmap)) { cargo:warning= ^ cargo:warning= == cargo:warning=c/crf/crf1d_encode.c:668:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] cargo:warning= if (ret = crf1dmw_close_attrrefs(writer)) { cargo:warning= ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cargo:warning=c/crf/crf1d_encode.c:668:13: note: place parentheses around the assignment to silence this warning cargo:warning= if (ret = crf1dmw_close_attrrefs(writer)) { cargo:warning= ^ cargo:warning= ( ) cargo:warning=c/crf/crf1d_encode.c:668:13: note: use '==' to turn this assignment into an equality comparison cargo:warning= if (ret = crf1dmw_close_attrrefs(writer)) { cargo:warning= ^ cargo:warning= == cargo:warning=c/crf/crf1d_encode.c:508:22: warning: unused variable 'threshold' [-Wunused-variable] cargo:warning= const floatval_t threshold = 0.01; cargo:warning= ^ cargo:warning=c/crf/crf1d_encode.c:546:9: warning: variable 'ret' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] cargo:warning= if (writer == NULL) { cargo:warning= ^~~~~~~~~~~~~~ cargo:warning=c/crf/crf1d_encode.c:691:12: note: uninitialized use occurs here cargo:warning= return ret; cargo:warning= ^~~ cargo:warning=c/crf/crf1d_encode.c:546:5: note: remove the 'if' if its condition is always false cargo:warning= if (writer == NULL) { cargo:warning= ^~~~~~~~~~~~~~~~~~~~~ cargo:warning=c/crf/crf1d_encode.c:532:9: warning: variable 'ret' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] cargo:warning= if (amap == NULL) { cargo:warning= ^~~~~~~~~~~~ cargo:warning=c/crf/crf1d_encode.c:691:12: note: uninitialized use occurs here cargo:warning= return ret; cargo:warning= ^~~ cargo:warning=c/crf/crf1d_encode.c:532:5: note: remove the 'if' if its condition is always false cargo:warning= if (amap == NULL) { cargo:warning= ^~~~~~~~~~~~~~~~~~~ cargo:warning=c/crf/crf1d_encode.c:520:9: warning: variable 'ret' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] cargo:warning= if (fmap == NULL) { cargo:warning= ^~~~~~~~~~~~ cargo:warning=c/crf/crf1d_encode.c:691:12: note: uninitialized use occurs here cargo:warning= return ret; cargo:warning= ^~~ cargo:warning=c/crf/crf1d_encode.c:520:5: note: remove the 'if' if its condition is always false cargo:warning= if (fmap == NULL) { cargo:warning= ^~~~~~~~~~~~~~~~~~~ cargo:warning=c/crf/crf1d_encode.c:503:21: note: initialize the variable 'ret' to silence this warning cargo:warning= int a, k, l, ret; cargo:warning= ^ cargo:warning= = 0 cargo:warning=c/crf/crf1d_encode.c:897:9: warning: unused variable 'i' [-Wunused-variable] cargo:warning= int i; cargo:warning= ^ cargo:warning=27 warnings generated. exit code: 0 TARGET = Some("armv7-linux-androideabi") OPT_LEVEL = Some("0") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") TARGET = Some("armv7-linux-androideabi") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CC_armv7-linux-androideabi = Some("/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CFLAGS_armv7-linux-androideabi = None CFLAGS_armv7_linux_androideabi = None TARGET_CFLAGS = None CFLAGS = None DEBUG = Some("true") running: "/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "--target=armv7-linux-androideabi" "-I" "c/include" "-Wall" "-Wextra" "-o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/crf/crf1d_tag.o" "-c" "c/crf/crf1d_tag.c" cargo:warning=c/crf/crf1d_tag.c:72:15: warning: unused variable 'L' [-Wunused-variable] cargo:warning= const int L = crf1dt->num_labels; cargo:warning= ^ cargo:warning=c/crf/crf1d_tag.c:281:51: warning: unused parameter 'dic' [-Wunused-parameter] cargo:warning=static int model_attrs_get(crfsuite_dictionary_t* dic, const char *str) cargo:warning= ^ cargo:warning=c/crf/crf1d_tag.c:281:68: warning: unused parameter 'str' [-Wunused-parameter] cargo:warning=static int model_attrs_get(crfsuite_dictionary_t* dic, const char *str) cargo:warning= ^ cargo:warning=c/crf/crf1d_tag.c:306:53: warning: unused parameter 'dic' [-Wunused-parameter] cargo:warning=static void model_attrs_free(crfsuite_dictionary_t* dic, const char *str) cargo:warning= ^ cargo:warning=c/crf/crf1d_tag.c:306:70: warning: unused parameter 'str' [-Wunused-parameter] cargo:warning=static void model_attrs_free(crfsuite_dictionary_t* dic, const char *str) cargo:warning= ^ cargo:warning=c/crf/crf1d_tag.c:331:52: warning: unused parameter 'dic' [-Wunused-parameter] cargo:warning=static int model_labels_get(crfsuite_dictionary_t* dic, const char *str) cargo:warning= ^ cargo:warning=c/crf/crf1d_tag.c:331:69: warning: unused parameter 'str' [-Wunused-parameter] cargo:warning=static int model_labels_get(crfsuite_dictionary_t* dic, const char *str) cargo:warning= ^ cargo:warning=c/crf/crf1d_tag.c:356:54: warning: unused parameter 'dic' [-Wunused-parameter] cargo:warning=static void model_labels_free(crfsuite_dictionary_t* dic, const char *str) cargo:warning= ^ cargo:warning=c/crf/crf1d_tag.c:356:71: warning: unused parameter 'str' [-Wunused-parameter] cargo:warning=static void model_labels_free(crfsuite_dictionary_t* dic, const char *str) cargo:warning= ^ cargo:warning=9 warnings generated. exit code: 0 TARGET = Some("armv7-linux-androideabi") OPT_LEVEL = Some("0") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") TARGET = Some("armv7-linux-androideabi") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CC_armv7-linux-androideabi = Some("/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CFLAGS_armv7-linux-androideabi = None CFLAGS_armv7_linux_androideabi = None TARGET_CFLAGS = None CFLAGS = None DEBUG = Some("true") running: "/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "--target=armv7-linux-androideabi" "-I" "c/include" "-Wall" "-Wextra" "-o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/crf/crfsuite_train.o" "-c" "c/crf/crfsuite_train.c" cargo:warning=c/crf/crfsuite_train.c:135:11: warning: unused variable 'algorithm' [-Wunused-variable] cargo:warning= char *algorithm = NULL; cargo:warning= ^ cargo:warning=1 warning generated. exit code: 0 TARGET = Some("armv7-linux-androideabi") OPT_LEVEL = Some("0") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") TARGET = Some("armv7-linux-androideabi") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CC_armv7-linux-androideabi = Some("/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CFLAGS_armv7-linux-androideabi = None CFLAGS_armv7_linux_androideabi = None TARGET_CFLAGS = None CFLAGS = None DEBUG = Some("true") running: "/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "--target=armv7-linux-androideabi" "-I" "c/include" "-Wall" "-Wextra" "-o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/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 TARGET = Some("armv7-linux-androideabi") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") AR_armv7-linux-androideabi = Some("/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-ar") running: "/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-ar" "crs" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/libcrfsuite.a" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/lbfgs/lbfgs.o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/cqdb/lookup3.o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/cqdb/cqdb.o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/crf/dictionary.o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/crf/logging.o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/crf/params.o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/crf/quark.o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/crf/rumavl.o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/crf/dataset.o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/crf/holdout.o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/crf/train_arow.o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/crf/train_averaged_perceptron.o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/crf/train_l2sgd.o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/crf/train_lbfgs.o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/crf/train_passive_aggressive.o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/crf/crf1d_context.o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/crf/crf1d_model.o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/crf/crf1d_feature.o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/crf/crf1d_encode.o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/crf/crf1d_tag.o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/crf/crfsuite_train.o" "/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out/c/crf/crfsuite.o" exit code: 0 TARGET = Some("armv7-linux-androideabi") cargo:rustc-link-lib=static=crfsuite cargo:rustc-link-search=native=/Users/marcelkaufmann/Projekte/MeineProjekte/rust-nlp/cargo/target/armv7-linux-androideabi/debug/build/crfsuite-sys-54403fa1d2127a38/out OPT_LEVEL = Some("0") TARGET = Some("armv7-linux-androideabi") HOST = Some("x86_64-apple-darwin") CC_armv7-linux-androideabi = Some("/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi28-clang") CFLAGS_armv7-linux-androideabi = None CFLAGS_armv7_linux_androideabi = None TARGET_CFLAGS = None CFLAGS = None DEBUG = Some("true") --- stderr Apple LLVM version 10.0.0 (clang-1000.11.45.5) Target: armv7--linux-android Thread model: posix InstalledDir: ignoring nonexistent directory "lib/clang/10.0.0/include" ignoring nonexistent directory "/Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/include" #include "..." search starts here: #include <...> search starts here: /Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/lib64/clang/8.0.2/include /Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/local/include /Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include End of search list. /Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/linux/types.h:21:10: fatal error: 'asm/types.h' file not found /Users/marcelkaufmann/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/linux/types.h:21:10: fatal error: 'asm/types.h' file not found, err: true thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ()', src/libcore/result.rs:1009:5 note: Run with `RUST_BACKTRACE=1` for a backtrace. warning: build failed, waiting for other jobs to finish... ERROR cargo_dinghy > Cargo error: build failed build failed ```

fredszaq commented 5 years ago

Thanks for the logs ! a few things to try next:

Flocksserver commented 5 years ago

@fredszaq Hero 🥇 Oh WOW seriously? After upgrading to mojave two month ago or so... seemingly the llvm permissions/installation got broken. But with these error logs pointing on an android ndk path error I was not expecting that.... 😅 Thanks a lot for your time and thoughts!