Skip to content

Instantly share code, notes, and snippets.

@ab5tract
Created November 26, 2025 08:42
Show Gist options
  • Select an option

  • Save ab5tract/31aceb75beb0cea71945f13bba208b75 to your computer and use it in GitHub Desktop.

Select an option

Save ab5tract/31aceb75beb0cea71945f13bba208b75 to your computer and use it in GitHub Desktop.
compiling src/core/nativecall_libffi.o
src/core/nativecall_libffi.c: In function ‘MVM_nativecall_dispatch’:
src/core/nativecall_libffi.c:880:77: error: ‘num_args’ undeclared (first use in this function)
880 | ffi_status status = ffi_prep_cif(&cif, body->convention, (unsigned int)num_args, body->ffi_ret_type, body->ffi_arg_types);
| ^~~~~~~~
src/core/nativecall_libffi.c:880:77: note: each undeclared identifier is reported only once for each function it appears in
src/core/nativecall_libffi.c:888:13: error: redeclaration of ‘cif’ with no linkage
888 | ffi_cif cif;
| ^~~
src/core/nativecall_libffi.c:879:13: note: previous declaration of ‘cif’ with type ‘ffi_cif’
879 | ffi_cif cif;
| ^~~
make: *** [Makefile:670: src/core/nativecall_libffi.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment