Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross-compiling charabia for arm #265

Open
chiru-arh opened this issue Feb 7, 2024 · 5 comments
Open

Cross-compiling charabia for arm #265

chiru-arh opened this issue Feb 7, 2024 · 5 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@chiru-arh
Copy link

chiru-arh commented Feb 7, 2024

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.

@curquiza curquiza added bug Something isn't working help wanted Extra attention is needed labels Feb 13, 2024
@ahmed-hany94
Copy link

ahmed-hany94 commented Feb 13, 2024

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
Copy link
Member

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

Thanks! ☺️

@eerbing
Copy link

eerbing commented Apr 12, 2024

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
Copy link
Contributor

mosuka commented Apr 12, 2024

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

@mosuka mosuka mentioned this issue Apr 13, 2024
3 tasks
meili-bors bot added a commit that referenced this issue Apr 16, 2024
279: Update Lindera to 0.30.0 r=ManyTheFish a=mosuka

# Pull Request

## Related issue
#265 

## What does this PR do?
- Update Lindera version to 0.30.0. This downloads the dictionary from a GitHub repository, which seems to be more stable.
- Optimize built dict.words file size. For unidic, dict.words size is decreased from 200.1MB to 106.3MB.

## PR checklist
Please check if your PR fulfills the following requirements:
- [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
- [x] Have you read the contributing guidelines?
- [x] Have you made sure that the title is accurate and descriptive of the changes?

Thank you so much for contributing to Meilisearch!


Co-authored-by: Minoru OSUKA <minoru.osuka@gmail.com>
@ManyTheFish
Copy link
Member

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

6 participants