snipsco / snips-nlu-rs

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

Unable to run rust example on ubuntu #17

Closed kraghavk closed 6 years ago

kraghavk commented 6 years ago

I am running cargo on Ubuntu 16.04 LTS. Running the command

cargo run --verbose --example weather examples "What will be the weather in London tomorrow at 8am?"

results in the following error:

note: /home/raghu/snips-nlu-rs/snips-nlu-lib/target/debug/deps/libsnips_nlu_lib-db0d3b8725811e50.rlib(snips_nlu_lib-db0d3b8725811e50.g4ocvkiolag6no4.rcgu.o): In function `crfsuite::Tagger::set::hf3ed06d04cff7be0':
          /home/raghu/.cargo/git/checkouts/crfsuite-rs-88ab7cb8bdb2b2f2/b18d95c/src/lib.rs:145: undefined reference to `crfsuite_instance_init_n'
          /home/raghu/.cargo/git/checkouts/crfsuite-rs-88ab7cb8bdb2b2f2/b18d95c/src/lib.rs:156: undefined reference to `crfsuite_item_init'
          /home/raghu/.cargo/git/checkouts/crfsuite-rs-88ab7cb8bdb2b2f2/b18d95c/src/lib.rs:164: undefined reference to `crfsuite_attribute_set'
          /home/raghu/.cargo/git/checkouts/crfsuite-rs-88ab7cb8bdb2b2f2/b18d95c/src/lib.rs:165: undefined reference to `crfsuite_item_append_attribute'
          /home/raghu/.cargo/git/checkouts/crfsuite-rs-88ab7cb8bdb2b2f2/b18d95c/src/lib.rs:176: undefined reference to `crfsuite_instance_finish'
          /home/raghu/.cargo/git/checkouts/crfsuite-rs-88ab7cb8bdb2b2f2/b18d95c/src/lib.rs:180: undefined reference to `crfsuite_instance_finish'
          /home/raghu/snips-nlu-rs/snips-nlu-lib/target/debug/deps/libcrfsuite-7428f11a847b8a45.rlib(crfsuite-7428f11a847b8a45.crfsuite4.rcgu.o): In function `crfsuite::Tagger::create_from_memory::h1ceffb08ed3d9cb3':
          /home/raghu/.cargo/git/checkouts/crfsuite-rs-88ab7cb8bdb2b2f2/b18d95c/src/lib.rs:76: undefined reference to `crfsuite_create_instance_from_memory'
          collect2: error: ld returned 1 exit status

error: aborting due to previous error

error: Could not compile `snips-nlu-lib`.

I have also included the weather_example_run.log, which contains the complete output from the terminal window.

ClemDoum commented 6 years ago

Hi @kraghavk, I tried reproduce using docker and ubuntu:16.04 as base image but could not reproduce. Would be cool if you could provide me with a Dockerfile or a docker image in which I can reproduce.

ClemDoum commented 6 years ago

Are you on master or develop? Can you also install and use cargo-tree to display the version of the gcc and cc crates?

ClemDoum commented 6 years ago

@kraghavk have you re-tried compiling? Maybe retry with a simple cargo clean && cargo build -v before

kraghavk commented 6 years ago

Hi @ClemDoum , I am unable to reproduce it either on a different computer. Looks like an issue on my computer; I might just format it and start over. Thanks