losfair / mvsqlite

Distributed, MVCC SQLite that runs on FoundationDB.
https://github.com/losfair/mvsqlite/wiki
Apache License 2.0
1.35k stars 38 forks source link

Instructions on how to build mvsqlite for ARM64 architecture #97

Open mairasaboia opened 1 year ago

mairasaboia commented 1 year ago

I would like to use mvsqlite but I have a Mac M1 computer (ARM64) The preload library and the patched libsqlite3.so are only available for AMD64

Do you have detailed instructions on how to build mvsqlite from source? I couldn't find one.

losfair commented 1 year ago

"Build" step in the CI configuration can be used as a reference:

https://github.com/losfair/mvsqlite/blob/d925ec567b328bf88f7892d7b55339e5abee00dc/.github/workflows/ci.yml

There isn't any architecture-specific code in mvsqlite itself. If you are running FoundationDB on the same ARM64 machine, please also follow their instructions.

pnewell commented 1 week ago

I am trying to build this atm on my M2 Mac and getting linker errors

ld: unknown options: -z 

If I remove this line from the Makefile:

-Wl,-z,noexecstack \

Then I get this error:

ld: library 'ssl' not found

I've confirmed openssl 3.3 is install so at a loss, have tried a bunch of stuff