wolfspider / FoundationDB-ARM64

ARM64 build of FoundationDB
Apache License 2.0
0 stars 0 forks source link

Can this project be used to compile bindings for mac-arm64? #2

Open ahtremblay opened 2 years ago

ahtremblay commented 2 years ago

I am trying to building a client application for foundationdb on my m1 computer, and I get 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)

This is after installing the default binary installer for macOS from the foundationdb.org website.

Can this project be used to build a libfdb_c.dylib compatible with m1 Macs?

wolfspider commented 2 years ago

That is a really good question and actually have not gotten to trying this on the M1 yet. As it is right now the ASM which generates the bindings is Linux specific and only recently have gotten it to work for BSD. I’ll take a look at this and get back to you soon, thanks!

On Wed, Nov 10, 2021 at 10:17 PM Alexandre Harvey-Tremblay < @.***> wrote:

I am trying to building a client application for foundationdb on my m1 computer, and I get 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_futuredestroy", 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_transactiondestroy", 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_databasedestroy", 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)

This is after installing the default binary installer for macOS from the foundationdb.org website.

Can this project be used to build a libfdb_c.dylib compatible with m1 Macs?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/wolfspider/FoundationDB-ARM64/issues/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABFC6BFUQQUUOQOM6JQIEC3ULMYUHANCNFSM5HZOO4PQ .

ahtremblay commented 2 years ago

Awesome, looking forward to hear from your attempt.