quickwit icon indicating copy to clipboard operation
quickwit copied to clipboard

Support for ARM architecture (Mac M1)

Open demangejeremy opened this issue 3 years ago • 3 comments

I see that there is no binary available for ARM / Mac M1. If nobody is on this project, I can participate on my time (because I need it, the indexing time is way too high on M1 as I have to mimic the x64 architecture).

Can I build it and fix any bugs if needed? And also try to find solutions to build an ARM compatible Docker.

demangejeremy avatar Sep 06 '22 14:09 demangejeremy

Yes sure, That will be awesome. We used to have ARM builds in our release, but currently we depend on RocksDB and it makes it hard to build and link for ARM. As a pointer, you could try building from cross images. They recently updated the tools in those base images.

In the near future we are planning to dicth RockDB, so ARM builds should be back again. See https://github.com/quickwit-oss/quickwit/issues/1816

evanxg852000 avatar Sep 06 '22 15:09 evanxg852000

@demangejeremy I'm on M1, and you can build it with cargo. If you need to build it with all features (kafka, azure, postgresql...), you can launch cargo build --features release-feature-vendored-set

fmassot avatar Sep 06 '22 15:09 fmassot

Also, we will likely ditch RocksDB in the near future.

fulmicoton avatar Sep 08 '22 01:09 fulmicoton

Still waiting for a binary for ARM / Mac M1, any updates on this?

sudochia avatar Dec 23 '22 15:12 sudochia

Came here to support this issue too. M1s are the de-facto choice for most developers nowadays. Which makes the getting-started of quickwit a bad experience from the get-go unfortunately. I do not know the effort to have a pre-built version of quickwit for arm but hope you can achieve this at some point 👍 (I'll still continue exploring)

vvo avatar Jan 06 '23 14:01 vvo

Agreed.

GitHub does not offer a macOS m1 runner, and it won't come before one year .

Meanwhile, we can:

  1. Cross-compile Quickwit on a runner with arch x86_64 and use --target aarch64-apple-darwin
  2. Compile on a self-hosted m1 runner.

The issue with 1 is that cross-compilation is currently failing. See the logs here. This is related to this issue. The issue with 2 is that we need to deploy a runner :)

fmassot avatar Jan 07 '23 13:01 fmassot

Let's reopen it as the binaries are not yet available, but at least, we are able to generate them!

fmassot avatar Jan 09 '23 18:01 fmassot

M1 binary released: https://quickwit.io/docs/get-started/installation!

fmassot avatar Mar 18 '23 16:03 fmassot