meilisearch / charabia

Library used by Meilisearch to tokenize queries and documents
MIT License
261 stars 89 forks source link

Cross-compiling charabia for arm #265

Open chiru-arh opened 9 months ago

chiru-arh commented 9 months ago

Hello, I'm trying to cross-compile charabia (v0.8.3) for arm on x86 machine but I'm facing the build error when using the command cargo build --target=arm-unknown-linux-gnueabi.

error: failed to run custom build command for `lindera-unidic v0.27.0`

Caused by:
  process didn't exit successfully: `/home/chianjeevi/Projects/office/vectordb/charabia/target/debug/build/lindera-unidic-e516fba748e6461c/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-changed=build.rs
  cargo:rerun-if-changed=Cargo.toml
  --- stderr
  Error: InvalidArchive("Could not find central directory end")

How can I fix this error.

ahmed-hany94 commented 9 months ago

Had a similar error building on Windows 10 with this message

 --- stderr
  Error: Transport(Transport { kind: ConnectionFailed, message: Some("Connect error"), url: Some(Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("download.johtani.info")), port: None, path: "/unidic-mecab-2.1.2_src.zip", query: None, fragment: None }), source: Some(Error { kind: TimedOut, message: "connection timed out" }) })

Can't connect to [download.johtani.info](https://download.johtani.info/unidic-mecab-2.1.2_src.zip) even using the browser.

ManyTheFish commented 9 months ago

Hey @mosuka, do you have any issue with cross-compile Lindera or is it only on Charabia's side?

Thanks! ☺️

eerbing commented 7 months ago

I had the same issue, since the file is too big, and easily get timeout. you'd better upload the file into a local url to download

mosuka commented 7 months ago

@ManyTheFish @eerbing Sorry for late reply. I have an idea. I will send you a pull request this weekend, so please wait a bit.

ManyTheFish commented 7 months ago

Hello @eerbing, The release v0.8.9 incorporates the Lindera update, could you retry on your side and close the issue if it works, please?

Thank you, and thanks to @mosuka for the update!