apple / foundationdb

FoundationDB - the open source, distributed, transactional key-value store
https://apple.github.io/foundationdb/
Apache License 2.0
14.2k stars 1.3k forks source link

macOS-arm64? #5958

Open ahtremblay opened 2 years ago

ahtremblay commented 2 years ago

I recently installed the macOS version of FoundationDB, but trying to build against the library files gives me this error:

  = note: ld: warning: ignoring file /usr/local/lib/libfdb_c.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
          Undefined symbols for architecture arm64:
            "_fdb_future_destroy", referenced from:
                _$LT$foundationdb..future..FdbFutureHandle$u20$as$u20$core..ops..drop..Drop$GT$::drop::h278a2051a976c1d8 in libfoundationdb-69b33e2a1302943f.rlib(foundationdb-69b33e2a1302943f.foundationdb.6tolvyuv-cgu.14.rcgu.o)
            "_fdb_transaction_destroy", referenced from:
                _$LT$foundationdb..transaction..Transaction$u20$as$u20$core..ops..drop..Drop$GT$::drop::hbd6731e5ae26b713 in libfoundationdb-69b33e2a1302943f.rlib(foundationdb-69b33e2a1302943f.foundationdb.6tolvyuv-cgu.9.rcgu.o)
            "_fdb_database_destroy", referenced from:
                _$LT$foundationdb..database..Database$u20$as$u20$core..ops..drop..Drop$GT$::drop::h8ea0f1d183d0af0b in libfoundationdb-69b33e2a1302943f.rlib(foundationdb-69b33e2a1302943f.foundationdb.6tolvyuv-cgu.5.rcgu.o)
          ld: symbol(s) not found for architecture arm64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)

It is possible to produce macOS-arm64 bindings?

jzhou77 commented 2 years ago

Currently FDB only supports x64 CPUs for MacOS. There is patch support ARM build which has been merged to master.

NeonWizard commented 2 years ago

Currently FDB only supports x64 CPUs for MacOS. There is patch support ARM build which has been merged to master.

Hi, do you have a link to that ARM build?