Anush008/fastembed-rs

support building for arm architecture.

Closed this issue · 8 comments

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

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.?

Is this the same as #32?

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

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

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.

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

After analysis I have mentioned the exact issue in ring repo
briansmith/ring#2000