programming-nu / nu

Nu is an interpreted Lisp that builds on the Objective-C runtime and Foundation framework.
http://programming-nu.github.io
Apache License 2.0
2.15k stars 237 forks source link

ffi_prep_closure is unavailable on ARM-based Macs #97

Open timburks opened 3 years ago

timburks commented 3 years ago

Nu builds fail on ARM-based Macs:

objc/NuBridge.m:1242:6: error: implicit declaration of function
      'ffi_prep_closure' is invalid in C99
      [-Werror,-Wimplicit-function-declaration]
        if (ffi_prep_closure(closure, cif, objc_calling_nu_method_handle...
            ^
1 error generated.
make: *** [objc/NuBridge.o] Error 1

This appears to be already fixed for iOS.

NightMachinery commented 3 years ago

Does it work via Rosetta?