1

Specifically, the error looks like this:

Function.c:563:9: error: implicit declaration of function 'rb_thread_call_without_gvl' is invalid in
C99 [-Werror,-Wimplicit-function-declaration]
        rb_thread_call_without_gvl(async_cb_wait, &w, async_cb_stop, &w);
        ^
Function.c:563:9: note: did you mean 'rb_thread_call_with_gvl'?
Function.c:102:14: note: 'rb_thread_call_with_gvl' declared here
extern void *rb_thread_call_with_gvl(void *(*func)(void *), void *data1);
             ^
Function.c:948:17: warning: 'ffi_prep_closure' is deprecated [-Wdeprecated-declarations]
    ffiStatus = ffi_prep_closure(code, &fnInfo->ffi_cif, callback_invoke, closure);
                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/ffi/ffi.h:350:18: note:
'ffi_prep_closure' has been explicitly marked deprecated here
  __attribute__((deprecated))

I've been trying to install an older version of FFI v'1.9.18' using Ruby 2.3.6.

JCC
  • 453
  • 7
  • 20

1 Answers1

5

Found the solution: gem install ffi -v '1.9.18' -- --with-cflags="-Wno-error=implicit-function-declaration"

Got the solution from this: StackOverflow

JCC
  • 453
  • 7
  • 20
  • thanks for this! I did `bundle config build.ffi '-- --with-cflags="-Wno-error=implicit-function-declaration"'` and then ran `bundle install` successfully – Matt Budz Oct 01 '21 at 14:41