Open bboysteed opened 3 months ago
What system and node version are you using? I've heard that node-gyp was failing on some arm based Macs recently but I wasn't able to reproduce from my Linux machine.
On Tue, 16 Jul 2024, 14:17 ma pubo, @.***> wrote:
@.:~/jsPwn/ExpoSE/node_modules/z3javascript$ npm install npm WARN deprecated @.: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm WARN deprecated @@.: This functionality has been moved to @npmcli/fs npm WARN deprecated @.: This package is no longer supported. npm WARN deprecated @.: Rimraf versions prior to v4 are no longer supported npm WARN deprecated @.: Rimraf versions prior to v4 are no longer supported npm WARN deprecated @.: Rimraf versions prior to v4 are no longer supported npm WARN deprecated @.: Rimraf versions prior to v4 are no longer supported npm WARN deprecated @.: This package is no longer supported. npm WARN deprecated @.: Glob versions prior to v9 are no longer supported npm WARN deprecated @.: Glob versions prior to v9 are no longer supported npm WARN deprecated @.: Glob versions prior to v9 are no longer supported npm WARN deprecated @.: This package is no longer supported. npm ERR! code 1 npm ERR! path @./ffi-napi npm ERR! command failed npm ERR! command sh -c node-gyp-build npm ERR! make: Entering directory @./ffi-napi/build' npm ERR! CC(target) Release/obj.target/nothing/../../node-addon-api/nothing.o npm ERR! rm -f Release/obj.target/../../node-addon-api/nothing.a Release/obj.target/../../node-addon-api/nothing.a.ar-file-list; mkdir -p dirname Release/obj.target/../../node-addon-api/nothing.a npm ERR! ar crs Release/obj.target/../../node-addon-api/nothing.a @Release/obj.target/../../node-addon-api/nothing.a.ar-file-list npm ERR! COPY Release/nothing.a npm ERR! CC(target) Release/obj.target/ffi/deps/libffi/src/prep_cif.o npm ERR! CC(target) Release/obj.target/ffi/deps/libffi/src/types.o npm ERR! CC(target) Release/obj.target/ffi/deps/libffi/src/raw_api.o npm ERR! CC(target) Release/obj.target/ffi/deps/libffi/src/java_raw_api.o npm ERR! CC(target) Release/obj.target/ffi/deps/libffi/src/closures.o npm ERR! CC(target) Release/obj.target/ffi/deps/libffi/src/x86/ffiw64.o npm ERR! CC(target) Release/obj.target/ffi/deps/libffi/src/x86/ffi64.o npm ERR! CC(target) Release/obj.target/ffi/deps/libffi/src/x86/unix64.o npm ERR! CC(target) Release/obj.target/ffi/deps/libffi/src/x86/win64.o npm ERR! rm -f Release/obj.target/deps/libffi/libffi.a Release/obj.target/deps/libffi/libffi.a.ar-file-list; mkdir -p dirname Release/obj.target/deps/libffi/libffi.a npm ERR! ar crs Release/obj.target/deps/libffi/libffi.a @Release/obj.target/deps/libffi/libffi.a.ar-file-list npm ERR! COPY Release/libffi.a npm ERR! CXX(target) Release/obj.target/ffi_bindings/src/ffi.o npm ERR! make: Leaving directory @./ffi-napi/build' npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using @. npm ERR! gyp info using @. | linux | x64 npm ERR! gyp info find Python using Python version 3.8.10 found at "/usr/bin/python3" npm ERR! gyp info spawn /usr/bin/python3 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/home/bboysteed/jsPwn/ExpoSE/node_modules/z3javascript/node_modules/node-gyp/gyp/gyp_main.py', npm ERR! gyp info spawn args 'binding.gyp', npm ERR! gyp info spawn args '-f', npm ERR! gyp info spawn args 'make', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args @./ffi-napi/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/home/bboysteed/jsPwn/ExpoSE/node_modules/z3javascript/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/home/bboysteed/.cache/node-gyp/21.7.2/include/node/common.gypi', npm ERR! gyp info spawn args '-Dlibrary=shared_library', npm ERR! gyp info spawn args '-Dvisibility=default', npm ERR! gyp info spawn args '-Dnode_root_dir=/home/bboysteed/.cache/node-gyp/21.7.2', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/home/bboysteed/jsPwn/ExpoSE/node_modules/z3javascript/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/home/bboysteed/.cache/node-gyp/21.7.2/<(target_arch)/node.lib', npm ERR! gyp info spawn args @./ffi-napi', npm ERR! gyp info spawn args '-Dnode_engine=v8', npm ERR! gyp info spawn args '--depth=.', npm ERR! gyp info spawn args '--no-parallel', npm ERR! gyp info spawn args '--generator-output', npm ERR! gyp info spawn args 'build', npm ERR! gyp info spawn args '-Goutput_dir=.' npm ERR! gyp info spawn args ] npm ERR! gyp info spawn make npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] npm ERR! ../deps/libffi/src/java_raw_api.c: In function ‘ffi_java_raw_call’: npm ERR! ../deps/libffi/src/java_raw_api.c:317:3: warning: ‘ffi_java_raw_to_ptrarray’ is deprecated [-Wdeprecated-declarations] npm ERR! 317 | ffi_java_raw_to_ptrarray (cif, raw, avalue); npm ERR! | ^
~~~~~~~ npm ERR! ../deps/libffi/src/java_raw_api.c:76:1: note: declared here npm ERR! 76 | ffi_java_raw_to_ptrarray (ffi_cifcif, ffi_java_raw raw, void args) npm ERR! | ^
~~~~~~~ npm ERR! ../deps/libffi/src/java_raw_api.c: In function ‘ffi_java_translate_args’: npm ERR! ../deps/libffi/src/java_raw_api.c:328:3: warning: ‘ffi_java_raw_size’ is deprecated [-Wdeprecated-declarations] npm ERR! 328 | ffi_java_raw raw = (ffi_java_raw)alloca (ffi_java_raw_size (cif)); npm ERR! | ^~~~ npm ERR! ../deps/libffi/src/java_raw_api.c:45:1: note: declared here npm ERR! 45 | ffi_java_raw_size (ffi_cif cif) npm ERR! | ^~~~~ npm ERR! ../deps/libffi/src/java_raw_api.c:331:3: warning: ‘ffi_java_ptrarray_to_raw’ is deprecated [-Wdeprecated-declarations] npm ERR! 331 | ffi_java_ptrarray_to_raw (cif, avalue, raw); npm ERR! | ^~~~~~~~ npm ERR! ../deps/libffi/src/java_raw_api.c:157:1: note: declared here npm ERR! 157 | ffi_java_ptrarray_to_raw (ffi_cif cif, void args, ffi_java_raw raw) npm ERR! | ^~~~~~~~ npm ERR! ../deps/libffi/src/java_raw_api.c: In function ‘ffi_prep_java_raw_closure’: npm ERR! ../deps/libffi/src/java_raw_api.c:369:3: warning: ‘ffi_prep_java_raw_closure_loc’ is deprecated [-Wdeprecated-declarations] npm ERR! 369 | return ffi_prep_java_raw_closure_loc (cl, cif, fun, user_data, cl); npm ERR! | ^~npm ERR! ../deps/libffi/src/java_raw_api.c:337:1: note: declared here npm ERR! 337 | ffi_prep_java_raw_closure_loc (ffi_java_raw_closure cl, npm ERR! | ^~~~~~~~~ npm ERR! ../deps/libffi/src/closures.c: In function ‘allocate_space’: npm ERR! ../deps/libffi/src/closures.c:748:29: warning: comparison of integer expressions of different signedness: ‘off_t’ {aka ‘long int’} and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] npm ERR! 748 | off_t to_write = (len < page_size) ? len : page_size; npm ERR! | ^ npm ERR! ../deps/libffi/src/closures.c:748:44: warning: operand of ?: changes signedness from ‘off_t’ {aka ‘long int’} to ‘size_t’ {aka ‘long unsigned int’} due to unsignedness of other operand [-Wsign-compare] npm ERR! 748 | off_t to_write = (len < page_size) ? len : page_size; npm ERR! | ^~~ npm ERR! ../deps/libffi/src/x86/ffi64.c: In function ‘classify_argument’: npm ERR! ../deps/libffi/src/x86/ffi64.c:200:18: warning: suggest braces around empty body in an ‘else’ statement [-Wempty-body] npm ERR! 200 | FFI_ASSERT (0); npm ERR! | ^ npm ERR! ../deps/libffi/src/x86/ffi64.c:175:7: warning: this statement may fall through [-Wimplicit-fallthrough=] npm ERR! 175 | { npm ERR! | ^ npm ERR! ../deps/libffi/src/x86/ffi64.c:202:5: note: here npm ERR! 202 | case FFI_TYPE_FLOAT: npm ERR! | ^~~~ npm ERR! In file included from ../src/ffi.cc:5: npm ERR! /home/bboysteed/jsPwn/ExpoSE/node_modules/z3javascript/node_modules/get-uv-event-loop-napi-h/include/get-uv-event-loop-napi.h: In function ‘uv_loop_t get_uv_event_loop(napi_env)’: npm ERR! /home/bboysteed/jsPwn/ExpoSE/node_modules/z3javascript/node_modules/get-uv-event-loop-napi-h/include/get-uv-event-loop-napi.h:26:30: error: invalid conversion from ‘napi_status ()(node_api_nogc_env, uv_loop_s)’ {aka ‘napi_status ()(con st napi_env__, uv_loop_s)’} to ‘get_uv_event_loop_fn’ {aka ‘napi_status ()(napi_env__, uv_loop_s)’} [-fpermissive] npm ERR! 26 | napi_get_uv_event_loop = &napi_get_uv_event_loop; npm ERR! | ^~~~~~~ npm ERR! | | npm ERR! | napi_status (*)(node_api_nogc_env, uv_loop_s*) {aka napi_status ()(const napi_env*, uv_loop_s*)} npm ERR! In file included from /home/bboysteed/jsPwn/ExpoSE/node_modules/z3javascript/node_modules/node-addon-api/napi.h:3199, npm ERR! from ../src/ffi.h:2, npm ERR! from ../src/ffi.cc:3: npm ERR! /home/bboysteed/jsPwn/ExpoSE/node_modules/z3javascript/node_modules/node-addon-api/napi-inl.h: In instantiation of ‘napi_status Napi::details::AttachData(napi_env, napi_value, FreeType, void) [with FreeType = Napi::details::CallbackData< Napi::Value ()(const Napi::CallbackInfo&), Napi::Value>; void ( finalizer)(napi_env, void, void) = Napi::details::default_finalizer<Napi::details::CallbackData<Napi::Value ()(const Napi::CallbackInfo&), Napi::Value> >; napi_env = napi_env*; napi_value = napi_value ]’: npm ERR! /home/bboysteed/jsPwn/ExpoSE/node_modules/z3javascript/node_modules/node-addon-api/napi-inl.h:2379:39: required from ‘napi_status Napi::CreateFunction(napi_env, const char, napi_callback, CbData*, napi_value__
) [with CbData = Napi::de tails::CallbackData<Napi::Value ()(const Napi::CallbackInfo&), Napi::Value>; napi_env = napi_env; napi_callback = napi_value ()(napi_env, napi_callback_info); napi_value = napi_value; napi_callback_info = napi_callback_info]’ npm ERR! /home/bboysteed/jsPwn/ExpoSE/node_modules/z3javascript/node_modules/node-addon-api/napi-inl.h:2436:21: required from ‘static Napi::Function Napi::Function::New(napi_env, Callable, const char, void) [with Callable = Napi::Value ()(cons t Napi::CallbackInfo&); napi_env = napi_env__]’ npm ERR! ../src/ffi.cc:59:57: required from here npm ERR! /home/bboysteed/jsPwn/ExpoSE/node_modules/z3javascript/node_modules/node-addon-api/napi-inl.h:68:30: error: invalid conversion from ‘void ()(napi_env, void, void)’ {aka ‘void ()(napi_env, void, void)’} to ‘node_api_nogc_finalize’ {aka ‘void ()(const napi_env, void, void)’} [-fpermissive] npm ERR! 68 | status = napi_add_finalizer(env, obj, data, finalizer, hint, nullptr); npm ERR! |
npm ERR! | void ()(napi_env, void, void*) {aka void ()(napi_env__, void*, void*)} npm ERR! In file included from /home/bboysteed/.cache/node-gyp/21.7.2/include/node/node_api.h:12, npm ERR! from /home/bboysteed/jsPwn/ExpoSE/node_modules/z3javascript/node_modules/node-addon-api/napi.h:13, npm ERR! from ../src/ffi.h:2, npm ERR! from ../src/ffi.cc:3: npm ERR! /home/bboysteed/.cache/node-gyp/21.7.2/include/node/js_native_api.h:523:43: note: initializing argument 4 of ‘napi_status napi_add_finalizer(napi_env, napi_value, void*, node_api_nogc_finalize, void*, napi_ref__*)’ npm ERR! 523 | node_api_nogc_finalize finalize_cb, npm ERR! | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ npm ERR! In file included from /home/bboysteed/jsPwn/ExpoSE/node_modules/z3javascript/node_modules/node-addon-api/napi.h:3199, npm ERR! from ../src/ffi.h:2, npm ERR! from ../src/ffi.cc:3: npm ERR! /home/bboysteed/jsPwn/ExpoSE/node_modules/z3javascript/node_modules/node-addon-api/napi-inl.h: In instantiation of ‘napi_status Napi::details::AttachData(napi_env, napi_value, FreeType*, void*) [with FreeType = Napi::details::CallbackData< void (*)(const Napi::CallbackInfo&), void>; void (* finalizer)(napi_env, void*, void*) = Napi::details::default_finalizer<Napi::details::CallbackData<void (*)(const Napi::CallbackInfo&), void> >; napi_env = napi_env__*; napi_value = napi_value__ *]’ : npm ERR! /home/bboysteed/jsPwn/ExpoSE/node_modules/z3javascript/node_modules/node-addon-api/napi-inl.h:2379:39: required from ‘napi_status Napi::CreateFunction(napi_env, const char*, napi_callback, CbData*, napi_value__ *) [with CbData = Napi::de tails::CallbackData<void ()(const Napi::CallbackInfo&), void>; napi_env = napi_env__; napi_callback = napi_value__* ()(napi_env__, napi_callback_info__); napi_value = napi_value__; napi_callback_info = napi_callback_info__]’ npm ERR! /home/bboysteed/jsPwn/ExpoSE/node_modules/z3javascript/node_modules/node-addon-api/napi-inl.h:2436:21: required from ‘static Napi::Function Napi::Function::New(napi_env, Callable, const char, void*) [with Callable = void ()(const Napi: :CallbackInfo&); napi_env = napi_env__]’ npm ERR! ../src/ffi.cc:61:50: required from here npm ERR! /home/bboysteed/jsPwn/ExpoSE/node_modules/z3javascript/node_modules/node-addon-api/napi-inl.h:68:30: error: invalid conversion from ‘void ()(napi_env, void, void*)’ {aka ‘void ()(napi_env__, void*, void*)’} to ‘node_api_nogc_finalize’ {aka ‘void ()(const napi_env__, void*, void*)’} [-fpermissive] npm ERR! 68 | status = napi_add_finalizer(env, obj, data, finalizer, hint, nullptr); npm ERR! | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! | | npm ERR! | void ()(napi_env, void, void*) {aka void ()(napi_env__, void*, void*)} npm ERR! In file included from /home/bboysteed/.cache/node-gyp/21.7.2/include/node/node_api.h:12, npm ERR! from /home/bboysteed/jsPwn/ExpoSE/node_modules/z3javascript/node_modules/node-addon-api/napi.h:13, npm ERR! from ../src/ffi.h:2, npm ERR! from ../src/ffi.cc:3: npm ERR! /home/bboysteed/.cache/node-gyp/21.7.2/include/node/js_native_api.h:523:43: note: initializing argument 4 of ‘napi_status napi_add_finalizer(napi_env, napi_value, void*, node_api_nogc_finalize, void*, napi_ref__*)’ npm ERR! 523 | node_api_nogc_finalize finalize_cb, npm ERR! | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ npm ERR! make: *** [ffi_bindings.target.mk:121: Release/obj.target/ffi_bindings/src/ffi.o] Error 1 npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error: make failed with exit code: 2 npm ERR! gyp ERR! stack at ChildProcess.onExit (/home/bboysteed/jsPwn/ExpoSE/node_modules/z3javascript/node_modules/node-gyp/lib/build.js:203:23) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:519:28) npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12) npm ERR! gyp ERR! System Linux 4.4.0-19041-Microsoft npm ERR! gyp ERR! command "/home/bboysteed/.local/share/fnm/node-versions/v21.7.2/installation/bin/node" "/home/bboysteed/jsPwn/ExpoSE/node_modules/z3javascript/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd ***@***.***/ffi-napi npm ERR! gyp ERR! node -v v21.7.2 npm ERR! gyp ERR! node-gyp -v v9.4.1 npm ERR! gyp ERR! not ok npm ERR! A complete log of this run can be found in: /home/bboysteed/.npm/_logs/2024-07-16T05_15_12_691Z-debug-0.log — Reply to this email directly, view it on GitHub <https://github.com/ExpoSEJS/ExpoSE/issues/116>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AABYJPYCZYIOLLDLMO6AMKLZMSUGTAVCNFSM6AAAAABK5Z3IHCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQYTAMRTGM3TAOA> . You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs npm WARN deprecated npmlog@6.0.2: This package is no longer supported. npm WARN deprecated rimraf@2.6.3: Rimraf versions prior to v4 are no longer supported npm WARN deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported npm WARN deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported npm WARN deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported npm WARN deprecated are-we-there-yet@3.0.1: This package is no longer supported. npm WARN deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm WARN deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm WARN deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported npm WARN deprecated gauge@4.0.4: This package is no longer supported. npm ERR! code 1 npm ERR! path /home/bboysteed/jsPwn/ExpoSE/node_modules/z3javascript/node_modules/@makeomatic/ffi-napi npm ERR! command failed npm ERR! command sh -c node-gyp-build npm ERR! make: Entering directory '/home/bboysteed/jsPwn/ExpoSE/node_modules/z3javascript/node_modules/@makeomatic/ffi-napi/build' npm ERR! CC(target) Release/obj.target/nothing/../../node-addon-api/nothing.o npm ERR! rm -f Release/obj.target/../../node-addon-api/nothing.a Release/obj.target/../../node-addon-api/nothing.a.ar-file-list; mkdir -p
dirname Release/obj.target/../../node-addon-api/nothing.a
npm ERR! ar crs Release/obj.target/../../node-addon-api/nothing.a @Release/obj.target/../../node-addon-api/nothing.a.ar-file-list npm ERR! COPY Release/nothing.a npm ERR! CC(target) Release/obj.target/ffi/deps/libffi/src/prep_cif.o npm ERR! CC(target) Release/obj.target/ffi/deps/libffi/src/types.o npm ERR! CC(target) Release/obj.target/ffi/deps/libffi/src/raw_api.o npm ERR! CC(target) Release/obj.target/ffi/deps/libffi/src/java_raw_api.o npm ERR! CC(target) Release/obj.target/ffi/deps/libffi/src/closures.o npm ERR! CC(target) Release/obj.target/ffi/deps/libffi/src/x86/ffiw64.o npm ERR! CC(target) Release/obj.target/ffi/deps/libffi/src/x86/ffi64.o npm ERR! CC(target) Release/obj.target/ffi/deps/libffi/src/x86/unix64.o npm ERR! CC(target) Release/obj.target/ffi/deps/libffi/src/x86/win64.o npm ERR! rm -f Release/obj.target/deps/libffi/libffi.a Release/obj.target/deps/libffi/libffi.a.ar-file-list; mkdir -pdirname Release/obj.target/deps/libffi/libffi.a
npm ERR! ar crs Release/obj.target/deps/libffi/libffi.a @Release/obj.target/deps/libffi/libffi.a.ar-file-list npm ERR! COPY Release/libffi.a npm ERR! CXX(target) Release/obj.target/ffi_bindings/src/ffi.o npm ERR! make: Leaving directory '/home/bboysteed/jsPwn/ExpoSE/node_modules/z3javascript/node_modules/@makeomatic/ffi-napi/build' npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@9.4.1 npm ERR! gyp info using node@21.7.2~~~~~~~ npm ERR! ../deps/libffi/src/java_raw_api.c:76:1: note: declared here npm ERR! 76~~~~~~~ npm ERR! ../deps/libffi/src/java_raw_api.c: In function ‘ffi_java_translate_args’: npm ERR! ../deps/libffi/src/java_raw_api.c:328:3: warning: ‘ffi_java_raw_size’ is deprecated [-Wdeprecated-declarations] npm ERR! 328~~~ npm ERR! ../deps/libffi/src/java_raw_api.c:45:1: note: declared here npm ERR! 45~~~~ npm ERR! ../deps/libffi/src/java_raw_api.c:331:3: warning: ‘ffi_java_ptrarray_to_raw’ is deprecated [-Wdeprecated-declarations] npm ERR! 331~~~~~~~ npm ERR! ../deps/libffi/src/java_raw_api.c:157:1: note: declared here npm ERR! 157~~~~~~~ npm ERR! ../deps/libffi/src/java_raw_api.c: In function ‘ffi_prep_java_raw_closure’: npm ERR! ../deps/libffi/src/java_raw_api.c:369:3: warning: ‘ffi_prep_java_raw_closure_loc’ is deprecated [-Wdeprecated-declarations] npm ERR! 369~npm ERR! ../deps/libffi/src/java_raw_api.c:337:1: note: declared here npm ERR! 337~~~~~~~~ npm ERR! ../deps/libffi/src/closures.c: In function ‘allocate_space’: npm ERR! ../deps/libffi/src/closures.c:748:29: warning: comparison of integer expressions of different signedness: ‘off_t’ {aka ‘long int’} and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] npm ERR! 748~~~~~~ npm ERR!npm ERR! /home/bboysteed/jsPwn/ExpoSE/node_modules/z3javascript/node_modules/node-addon-api/napi-inl.h:2436:21: required from ‘static Napi::Function Napi::Function::New(napi_env, Callable, const char, void) [with Callable = Napi::Value ()(cons t Napi::CallbackInfo&); napi_env = napi_env]’ npm ERR! ../src/ffi.cc:59:57: required from here npm ERR! /home/bboysteed/jsPwn/ExpoSE/node_modules/z3javascript/node_modules/node-addon-api/napi-inl.h:68:30: error: invalid conversion from ‘void ()(napi_env, void, void)’ {aka ‘void (*)(napi_env, void, void)’} to ‘node_api_nogc_finalize’ {aka ‘void ()(const napi_env__, void, void*)’} [-fpermissive] npm ERR! 68
~~~~^~~~~~~~~~~~ npm ERR!~~~~~^~~~~ npm ERR! In file included from /home/bboysteed/jsPwn/ExpoSE/node_modules/z3javascript/node_modules/node-addon-api/napi.h:3199, npm ERR! from ../src/ffi.h:2, npm ERR! from ../src/ffi.cc:3: npm ERR! /home/bboysteed/jsPwn/ExpoSE/node_modules/z3javascript/node_modules/node-addon-api/napi-inl.h: In instantiation of ‘napi_status Napi::details::AttachData(napi_env, napi_value, FreeType, void) [with FreeType = Napi::details::CallbackData< void ()(const Napi::CallbackInfo&), void>; void ( finalizer)(napi_env, void, void) = Napi::details::default_finalizer<Napi::details::CallbackData<void ()(const Napi::CallbackInfo&), void> >; napi_env = napi_env__; napi_value = napi_value__*]’npm ERR! /home/bboysteed/jsPwn/ExpoSE/node_modules/z3javascript/node_modules/node-addon-api/napi-inl.h:2379:39: required from ‘napi_status Napi::CreateFunction(napi_env, const char, napi_callback, CbData, napi_value*) [with CbData = Napi::de tails::CallbackData<void ()(const Napi::CallbackInfo&), void>; napi_env = napi_env; napi_callback = napi_value__ ()(napi_env__, napi_callback_info*); napi_value = napi_value; napi_callback_info = napi_callback_info__]’ npm ERR! /home/bboysteed/jsPwn/ExpoSE/node_modules/z3javascript/node_modules/node-addon-api/napi-inl.h:2436:21: required from ‘static Napi::Function Napi::Function::New(napi_env, Callable, const char, void) [with Callable = void ()(const Napi: :CallbackInfo&); napi_env = napi_env__]’ npm ERR! ../src/ffi.cc:61:50: required from here npm ERR! /home/bboysteed/jsPwn/ExpoSE/node_modules/z3javascript/node_modules/node-addon-api/napi-inl.h:68:30: error: invalid conversion from ‘void ()(napi_env, void, void)’ {aka ‘void ()(napi_env, void, void)’} to ‘node_api_nogc_finalize’ {aka ‘void ()(const napi_env, void, void)’} [-fpermissive] npm ERR! 68 | status = napi_add_finalizer(env, obj, data, finalizer, hint, nullptr); npm ERR! |
~~~~^~~~~~~~~~~~ npm ERR! | | npm ERR! | void ()(napi_env, void, void) {aka void ()(napi_env__, void, void)} npm ERR! In file included from /home/bboysteed/.cache/node-gyp/21.7.2/include/node/node_api.h:12, npm ERR! from /home/bboysteed/jsPwn/ExpoSE/node_modules/z3javascript/node_modules/node-addon-api/napi.h:13, npm ERR! from ../src/ffi.h:2, npm ERR! from ../src/ffi.cc:3: npm ERR! /home/bboysteed/.cache/node-gyp/21.7.2/include/node/js_native_api.h:523:43: note: initializing argument 4 of ‘napi_status napi_add_finalizer(napi_env, napi_value, void, node_api_nogc_finalize, void, napi_ref__**)’ npm ERR! 523 | node_api_nogc_finalize finalize_cb, npm ERR! |~~~~~^~~~~ npm ERR! make: *** [ffi_bindings.target.mk:121: Release/obj.target/ffi_bindings/src/ffi.o] Error 1 npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error:make
failed with exit code: 2 npm ERR! gyp ERR! stack at ChildProcess.onExit (/home/bboysteed/jsPwn/ExpoSE/node_modules/z3javascript/node_modules/node-gyp/lib/build.js:203:23) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:519:28) npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12) npm ERR! gyp ERR! System Linux 4.4.0-19041-Microsoft npm ERR! gyp ERR! command "/home/bboysteed/.local/share/fnm/node-versions/v21.7.2/installation/bin/node" "/home/bboysteed/jsPwn/ExpoSE/node_modules/z3javascript/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd /home/bboysteed/jsPwn/ExpoSE/node_modules/z3javascript/node_modules/@makeomatic/ffi-napi npm ERR! gyp ERR! node -v v21.7.2 npm ERR! gyp ERR! node-gyp -v v9.4.1 npm ERR! gyp ERR! not oknpm ERR! A complete log of this run can be found in: /home/bboysteed/.npm/_logs/2024-07-16T05_15_12_691Z-debug-0.log