Anush008 / fastembed-rs

Library for generating vector embeddings, reranking in Rust
https://docs.rs/fastembed
Apache License 2.0
264 stars 36 forks source link

support building for arm architecture. #37

Closed Adarsh999bh closed 6 months ago

Adarsh999bh commented 7 months ago

Hi, Just wanted to know to what platforms rust fastembed supports.

Anush008 commented 7 months ago

I am assuming everywhere https://github.com/pykeio/ort builds and https://github.com/microsoft/onnxruntime/releases is available.

Adarsh999bh commented 7 months ago

Ok, I'm trying to build sample application mentioned in the README file for aarch64 but I'm facing error linking cc failed exit status: 1 I used below command to build for aarch64 cargo build --target=aarch64-unknown-linux-gnu Any idea why it might have happened.?

Anush008 commented 7 months ago

Is this the same as https://github.com/Anush008/fastembed-rs/issues/32?

I see you are trying a cross-platform build. May I recommend https://github.com/cross-rs/cross?

Adarsh999bh commented 7 months ago

The main error is same but the actual logs are different.!

Adarsh999bh commented 7 months ago

Sure I'll checkout https://github.com/cross-rs/cross

Adarsh999bh commented 7 months ago

Fastembed downloads a tarball https://parcel.pyke.io/v2/delivery/ortrs/packages/msort-binary/1.17.0/ortrs-msort_static-v1.17.0-x86_64-unknown-linux-gnu.tgz The shared library in the tarball is for x86_64 architecture and i believe that while linking that same the process is failing.

Adarsh999bh commented 7 months ago

With cross-rs I'm facing similar issue error: linking with `aarch64-linux-gnu-gcc` failed: exit status: 1

Adarsh999bh commented 6 months ago

After analysis I have mentioned the exact issue in ring repo https://github.com/briansmith/ring/issues/2000