Skip to content

Error when compiling (node.js 12) #47

@clvrk

Description

@clvrk

Hey!
I just tried to install fastcall using node.js 12 and I get thrown the following error when compiling:

npm i fastcall
npm WARN deprecated [email protected]: core-js@<3.0 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.

> [email protected] install /mnt/c/myproject/node_modules/fastcall
> cmake-js compile

info TOOL Using Unix Makefiles generator.
info TOOL Using c++11 compiler standard.
info CMD CONFIGURE
info RUN cmake "/mnt/c/myproject/node_modules/fastcall" --no-warn-unused-cli -G"Unix Makefiles" -DCMAKE_JS_VERSION="3.7.3" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_LIBRARY_OUTPUT_DIRECTORY="/mnt/c/myproject/node_modules/fastcall/build/Release" -DCMAKE_JS_INC="/home/clark/.cmake-js/node-x64/v12.13.1/include/node;/mnt/c/myproject/node_modules/nan" -DNODE_RUNTIME="node" -DNODE_RUNTIMEVERSION="12.13.1" -DNODE_ARCH="x64" -DCMAKE_CXX_FLAGS="-std=c++11"
Not searching for unused variables given on the command line.
-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- Could NOT find LATEX (missing: LATEX_COMPILER) 
-- Configuring done
-- Generating done
-- Build files have been written to: /mnt/c/myproject/node_modules/fastcall/build
info CMD BUILD
info RUN cmake --build "/mnt/c/myproject/node_modules/fastcall/build" --config Release
Scanning dependencies of target dynload_s
[  3%] Building C object deps/dyncall/dynload/CMakeFiles/dynload_s.dir/dynload.c.o
[  6%] Building C object deps/dyncall/dynload/CMakeFiles/dynload_s.dir/dynload_syms.c.o
[  9%] Linking C static library libdynload_s.a
[  9%] Built target dynload_s
Scanning dependencies of target dyncall_s
[ 12%] Building C object deps/dyncall/dyncall/CMakeFiles/dyncall_s.dir/dyncall_call.S.o
[ 16%] Building C object deps/dyncall/dyncall/CMakeFiles/dyncall_s.dir/dyncall_vector.c.o
[ 19%] Building C object deps/dyncall/dyncall/CMakeFiles/dyncall_s.dir/dyncall_struct.c.o
[ 22%] Building C object deps/dyncall/dyncall/CMakeFiles/dyncall_s.dir/dyncall_api.c.o
[ 25%] Building C object deps/dyncall/dyncall/CMakeFiles/dyncall_s.dir/dyncall_callvm.c.o
[ 29%] Building C object deps/dyncall/dyncall/CMakeFiles/dyncall_s.dir/dyncall_callvm_base.c.o
[ 32%] Building C object deps/dyncall/dyncall/CMakeFiles/dyncall_s.dir/dyncall_callf.c.o
[ 35%] Linking C static library libdyncall_s.a
[ 35%] Built target dyncall_s
Scanning dependencies of target dyncallback_s
[ 38%] Building C object deps/dyncall/dyncallback/CMakeFiles/dyncallback_s.dir/dyncall_callback_arch.S.o
[ 41%] Building C object deps/dyncall/dyncallback/CMakeFiles/dyncallback_s.dir/dyncall_thunk.c.o
[ 45%] Building C object deps/dyncall/dyncallback/CMakeFiles/dyncallback_s.dir/dyncall_alloc_wx.c.o
[ 48%] Building C object deps/dyncall/dyncallback/CMakeFiles/dyncallback_s.dir/dyncall_args.c.o
[ 51%] Building C object deps/dyncall/dyncallback/CMakeFiles/dyncallback_s.dir/dyncall_callback.c.o
[ 54%] Linking C static library libdyncallback_s.a
[ 54%] Built target dyncallback_s
Scanning dependencies of target ref
[ 58%] Building CXX object deps/ref-cmake/CMakeFiles/ref.dir/__/ref/src/binding.cc.o
/mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::WriteObject(Nan::NAN_METHOD_ARGS_TYPE)’:
/mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:222:43: error: no matching function for call to ‘v8::Value::BooleanValue()’
   bool persistent = info[3]->BooleanValue();
                                           ^
In file included from /home/clark/.cmake-js/node-x64/v12.13.1/include/node/node.h:63:0,
                 from /mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:5:
/home/clark/.cmake-js/node-x64/v12.13.1/include/node/v8.h:2603:8: note: candidate: bool v8::Value::BooleanValue(v8::Isolate*) const
   bool BooleanValue(Isolate* isolate) const;
        ^~~~~~~~~~~~
/home/clark/.cmake-js/node-x64/v12.13.1/include/node/v8.h:2603:8: note:   candidate expects 1 argument, 0 provided
In file included from /home/clark/.cmake-js/node-x64/v12.13.1/include/node/v8-internal.h:14:0,
                 from /home/clark/.cmake-js/node-x64/v12.13.1/include/node/v8.h:25,
                 from /home/clark/.cmake-js/node-x64/v12.13.1/include/node/node.h:63,
                 from /mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:5:
/home/clark/.cmake-js/node-x64/v12.13.1/include/node/v8.h:2606:51: note: candidate: v8::Maybe<bool> v8::Value::BooleanValue(v8::Local<v8::Context>) const
                 V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(
                                                   ^
/home/clark/.cmake-js/node-x64/v12.13.1/include/node/v8config.h:318:44: note: in definition of macro ‘V8_DEPRECATED’
 #define V8_DEPRECATED(message, declarator) declarator
                                            ^~~~~~~~~~
/home/clark/.cmake-js/node-x64/v12.13.1/include/node/v8.h:2606:51: note:   candidate expects 1 argument, 0 provided
                 V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(
                                                   ^
/home/clark/.cmake-js/node-x64/v12.13.1/include/node/v8config.h:318:44: note: in definition of macro ‘V8_DEPRECATED’
 #define V8_DEPRECATED(message, declarator) declarator
                                            ^~~~~~~~~~
/mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::ReadPointer(Nan::NAN_METHOD_ARGS_TYPE)’:
/mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:253:38: error: no matching function for call to ‘v8::Value::Uint32Value()’
   size_t size = info[2]->Uint32Value();
                                      ^
In file included from /home/clark/.cmake-js/node-x64/v12.13.1/include/node/node.h:63:0,
                 from /mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:5:
/home/clark/.cmake-js/node-x64/v12.13.1/include/node/v8.h:2611:41: note: candidate: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
                                         ^~~~~~~~~~~
/home/clark/.cmake-js/node-x64/v12.13.1/include/node/v8.h:2611:41: note:   candidate expects 1 argument, 0 provided
/mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::WriteInt64(Nan::NAN_METHOD_ARGS_TYPE)’:
/mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:360:30: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>&)’
     String::Utf8Value _str(in);
                              ^
In file included from /home/clark/.cmake-js/node-x64/v12.13.1/include/node/node.h:63:0,
                 from /mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:5:
/home/clark/.cmake-js/node-x64/v12.13.1/include/node/v8.h:3039:5: note: candidate: v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)
     Utf8Value(Isolate* isolate, Local<v8::Value> obj);
     ^~~~~~~~~
/home/clark/.cmake-js/node-x64/v12.13.1/include/node/v8.h:3039:5: note:   candidate expects 2 arguments, 1 provided
/mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::WriteUInt64(Nan::NAN_METHOD_ARGS_TYPE)’:
/mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:447:30: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>&)’
     String::Utf8Value _str(in);
                              ^
In file included from /home/clark/.cmake-js/node-x64/v12.13.1/include/node/node.h:63:0,
                 from /mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:5:
/home/clark/.cmake-js/node-x64/v12.13.1/include/node/v8.h:3039:5: note: candidate: v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)
     Utf8Value(Isolate* isolate, Local<v8::Value> obj);
     ^~~~~~~~~
/home/clark/.cmake-js/node-x64/v12.13.1/include/node/v8.h:3039:5: note:   candidate expects 2 arguments, 1 provided
/mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::ReinterpretBuffer(Nan::NAN_METHOD_ARGS_TYPE)’:
/mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:521:38: error: no matching function for call to ‘v8::Value::Uint32Value()’
   size_t size = info[1]->Uint32Value();
                                      ^
In file included from /home/clark/.cmake-js/node-x64/v12.13.1/include/node/node.h:63:0,
                 from /mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:5:
/home/clark/.cmake-js/node-x64/v12.13.1/include/node/v8.h:2611:41: note: candidate: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
                                         ^~~~~~~~~~~
/home/clark/.cmake-js/node-x64/v12.13.1/include/node/v8.h:2611:41: note:   candidate expects 1 argument, 0 provided
/mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::ReinterpretBufferUntilZeros(Nan::NAN_METHOD_ARGS_TYPE)’:
/mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:550:44: error: no matching function for call to ‘v8::Value::Uint32Value()’
   uint32_t numZeros = info[1]->Uint32Value();
                                            ^
In file included from /home/clark/.cmake-js/node-x64/v12.13.1/include/node/node.h:63:0,
                 from /mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:5:
/home/clark/.cmake-js/node-x64/v12.13.1/include/node/v8.h:2611:41: note: candidate: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
                                         ^~~~~~~~~~~
/home/clark/.cmake-js/node-x64/v12.13.1/include/node/v8.h:2611:41: note:   candidate expects 1 argument, 0 provided
/mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc: In function ‘void init(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’:
/mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:643:8: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New<v8::String>("endianness").ToLocalChecked(), Nan::New<v8::String>(CheckEndianness()).ToLocalChecked(), static_cast<PropertyAttribute>(ReadOnly|DontDelete));
        ^~~~~~~~
In file included from /mnt/c/myproject/node_modules/nan/nan.h:282:0,
                 from /mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:7:
/mnt/c/myproject/node_modules/nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^~~~~~~~
/mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:643:187: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New<v8::String>("endianness").ToLocalChecked(), Nan::New<v8::String>(CheckEndianness()).ToLocalChecked(), static_cast<PropertyAttribute>(ReadOnly|DontDelete));
                                                                                                                                                                                           ^
In file included from /mnt/c/myproject/node_modules/nan/nan.h:282:0,
                 from /mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:7:
/mnt/c/myproject/node_modules/nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^~~~~~~~
/mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:644:8: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New<v8::String>("NULL").ToLocalChecked(), WrapNullPointer(), static_cast<PropertyAttribute>(ReadOnly|DontDelete));
        ^~~~~~~~
In file included from /mnt/c/myproject/node_modules/nan/nan.h:282:0,
                 from /mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:7:
/mnt/c/myproject/node_modules/nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^~~~~~~~
/mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:644:142: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New<v8::String>("NULL").ToLocalChecked(), WrapNullPointer(), static_cast<PropertyAttribute>(ReadOnly|DontDelete));
                                                                                                                                              ^
In file included from /mnt/c/myproject/node_modules/nan/nan.h:282:0,
                 from /mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:7:
/mnt/c/myproject/node_modules/nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^~~~~~~~
deps/ref-cmake/CMakeFiles/ref.dir/build.make:62: recipe for target 'deps/ref-cmake/CMakeFiles/ref.dir/__/ref/src/binding.cc.o' failed
make[2]: *** [deps/ref-cmake/CMakeFiles/ref.dir/__/ref/src/binding.cc.o] Error 1
CMakeFiles/Makefile2:1246: recipe for target 'deps/ref-cmake/CMakeFiles/ref.dir/all' failed
make[1]: *** [deps/ref-cmake/CMakeFiles/ref.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2
info REP Build has been failed, trying to do a full rebuild.
info CMD CLEAN
info RUN cmake -E remove_directory "/mnt/c/myproject/node_modules/fastcall/build"
info CMD CONFIGURE
info RUN cmake "/mnt/c/myproject/node_modules/fastcall" --no-warn-unused-cli -G"Unix Makefiles" -DCMAKE_JS_VERSION="3.7.3" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_LIBRARY_OUTPUT_DIRECTORY="/mnt/c/myproject/node_modules/fastcall/build/Release" -DCMAKE_JS_INC="/home/clark/.cmake-js/node-x64/v12.13.1/include/node;/mnt/c/myproject/node_modules/nan" -DNODE_RUNTIME="node" -DNODE_RUNTIMEVERSION="12.13.1" -DNODE_ARCH="x64" -DCMAKE_CXX_FLAGS="-std=c++11"
Not searching for unused variables given on the command line.
-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- Could NOT find LATEX (missing: LATEX_COMPILER) 
-- Configuring done
-- Generating done
-- Build files have been written to: /mnt/c/myproject/node_modules/fastcall/build
info CMD BUILD
info RUN cmake --build "/mnt/c/myproject/node_modules/fastcall/build" --config Release
Scanning dependencies of target dynload_s
[  3%] Building C object deps/dyncall/dynload/CMakeFiles/dynload_s.dir/dynload.c.o
[  6%] Building C object deps/dyncall/dynload/CMakeFiles/dynload_s.dir/dynload_syms.c.o
[  9%] Linking C static library libdynload_s.a
[  9%] Built target dynload_s
Scanning dependencies of target dyncall_s
[ 12%] Building C object deps/dyncall/dyncall/CMakeFiles/dyncall_s.dir/dyncall_call.S.o
[ 16%] Building C object deps/dyncall/dyncall/CMakeFiles/dyncall_s.dir/dyncall_vector.c.o
[ 19%] Building C object deps/dyncall/dyncall/CMakeFiles/dyncall_s.dir/dyncall_struct.c.o
[ 22%] Building C object deps/dyncall/dyncall/CMakeFiles/dyncall_s.dir/dyncall_api.c.o
[ 25%] Building C object deps/dyncall/dyncall/CMakeFiles/dyncall_s.dir/dyncall_callvm.c.o
[ 29%] Building C object deps/dyncall/dyncall/CMakeFiles/dyncall_s.dir/dyncall_callvm_base.c.o
[ 32%] Building C object deps/dyncall/dyncall/CMakeFiles/dyncall_s.dir/dyncall_callf.c.o
[ 35%] Linking C static library libdyncall_s.a
[ 35%] Built target dyncall_s
Scanning dependencies of target dyncallback_s
[ 38%] Building C object deps/dyncall/dyncallback/CMakeFiles/dyncallback_s.dir/dyncall_callback_arch.S.o
[ 41%] Building C object deps/dyncall/dyncallback/CMakeFiles/dyncallback_s.dir/dyncall_thunk.c.o
[ 45%] Building C object deps/dyncall/dyncallback/CMakeFiles/dyncallback_s.dir/dyncall_alloc_wx.c.o
[ 48%] Building C object deps/dyncall/dyncallback/CMakeFiles/dyncallback_s.dir/dyncall_args.c.o
[ 51%] Building C object deps/dyncall/dyncallback/CMakeFiles/dyncallback_s.dir/dyncall_callback.c.o
[ 54%] Linking C static library libdyncallback_s.a
[ 54%] Built target dyncallback_s
Scanning dependencies of target ref
[ 58%] Building CXX object deps/ref-cmake/CMakeFiles/ref.dir/__/ref/src/binding.cc.o
/mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::WriteObject(Nan::NAN_METHOD_ARGS_TYPE)’:
/mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:222:43: error: no matching function for call to ‘v8::Value::BooleanValue()’
   bool persistent = info[3]->BooleanValue();
                                           ^
In file included from /home/clark/.cmake-js/node-x64/v12.13.1/include/node/node.h:63:0,
                 from /mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:5:
/home/clark/.cmake-js/node-x64/v12.13.1/include/node/v8.h:2603:8: note: candidate: bool v8::Value::BooleanValue(v8::Isolate*) const
   bool BooleanValue(Isolate* isolate) const;
        ^~~~~~~~~~~~
/home/clark/.cmake-js/node-x64/v12.13.1/include/node/v8.h:2603:8: note:   candidate expects 1 argument, 0 provided
In file included from /home/clark/.cmake-js/node-x64/v12.13.1/include/node/v8-internal.h:14:0,
                 from /home/clark/.cmake-js/node-x64/v12.13.1/include/node/v8.h:25,
                 from /home/clark/.cmake-js/node-x64/v12.13.1/include/node/node.h:63,
                 from /mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:5:
/home/clark/.cmake-js/node-x64/v12.13.1/include/node/v8.h:2606:51: note: candidate: v8::Maybe<bool> v8::Value::BooleanValue(v8::Local<v8::Context>) const
                 V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(
                                                   ^
/home/clark/.cmake-js/node-x64/v12.13.1/include/node/v8config.h:318:44: note: in definition of macro ‘V8_DEPRECATED’
 #define V8_DEPRECATED(message, declarator) declarator
                                            ^~~~~~~~~~
/home/clark/.cmake-js/node-x64/v12.13.1/include/node/v8.h:2606:51: note:   candidate expects 1 argument, 0 provided
                 V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(
                                                   ^
/home/clark/.cmake-js/node-x64/v12.13.1/include/node/v8config.h:318:44: note: in definition of macro ‘V8_DEPRECATED’
 #define V8_DEPRECATED(message, declarator) declarator
                                            ^~~~~~~~~~
/mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::ReadPointer(Nan::NAN_METHOD_ARGS_TYPE)’:
/mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:253:38: error: no matching function for call to ‘v8::Value::Uint32Value()’
   size_t size = info[2]->Uint32Value();
                                      ^
In file included from /home/clark/.cmake-js/node-x64/v12.13.1/include/node/node.h:63:0,
                 from /mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:5:
/home/clark/.cmake-js/node-x64/v12.13.1/include/node/v8.h:2611:41: note: candidate: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
                                         ^~~~~~~~~~~
/home/clark/.cmake-js/node-x64/v12.13.1/include/node/v8.h:2611:41: note:   candidate expects 1 argument, 0 provided
/mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::WriteInt64(Nan::NAN_METHOD_ARGS_TYPE)’:
/mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:360:30: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>&)’
     String::Utf8Value _str(in);
                              ^
In file included from /home/clark/.cmake-js/node-x64/v12.13.1/include/node/node.h:63:0,
                 from /mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:5:
/home/clark/.cmake-js/node-x64/v12.13.1/include/node/v8.h:3039:5: note: candidate: v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)
     Utf8Value(Isolate* isolate, Local<v8::Value> obj);
     ^~~~~~~~~
/home/clark/.cmake-js/node-x64/v12.13.1/include/node/v8.h:3039:5: note:   candidate expects 2 arguments, 1 provided
/mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::WriteUInt64(Nan::NAN_METHOD_ARGS_TYPE)’:
/mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:447:30: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>&)’
     String::Utf8Value _str(in);
                              ^
In file included from /home/clark/.cmake-js/node-x64/v12.13.1/include/node/node.h:63:0,
                 from /mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:5:
/home/clark/.cmake-js/node-x64/v12.13.1/include/node/v8.h:3039:5: note: candidate: v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)
     Utf8Value(Isolate* isolate, Local<v8::Value> obj);
     ^~~~~~~~~
/home/clark/.cmake-js/node-x64/v12.13.1/include/node/v8.h:3039:5: note:   candidate expects 2 arguments, 1 provided
/mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::ReinterpretBuffer(Nan::NAN_METHOD_ARGS_TYPE)’:
/mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:521:38: error: no matching function for call to ‘v8::Value::Uint32Value()’
   size_t size = info[1]->Uint32Value();
                                      ^
In file included from /home/clark/.cmake-js/node-x64/v12.13.1/include/node/node.h:63:0,
                 from /mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:5:
/home/clark/.cmake-js/node-x64/v12.13.1/include/node/v8.h:2611:41: note: candidate: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
                                         ^~~~~~~~~~~
/home/clark/.cmake-js/node-x64/v12.13.1/include/node/v8.h:2611:41: note:   candidate expects 1 argument, 0 provided
/mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::ReinterpretBufferUntilZeros(Nan::NAN_METHOD_ARGS_TYPE)’:
/mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:550:44: error: no matching function for call to ‘v8::Value::Uint32Value()’
   uint32_t numZeros = info[1]->Uint32Value();
                                            ^
In file included from /home/clark/.cmake-js/node-x64/v12.13.1/include/node/node.h:63:0,
                 from /mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:5:
/home/clark/.cmake-js/node-x64/v12.13.1/include/node/v8.h:2611:41: note: candidate: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
                                         ^~~~~~~~~~~
/home/clark/.cmake-js/node-x64/v12.13.1/include/node/v8.h:2611:41: note:   candidate expects 1 argument, 0 provided
/mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc: In function ‘void init(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’:
/mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:643:8: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New<v8::String>("endianness").ToLocalChecked(), Nan::New<v8::String>(CheckEndianness()).ToLocalChecked(), static_cast<PropertyAttribute>(ReadOnly|DontDelete));
        ^~~~~~~~
In file included from /mnt/c/myproject/node_modules/nan/nan.h:282:0,
                 from /mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:7:
/mnt/c/myproject/node_modules/nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^~~~~~~~
/mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:643:187: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New<v8::String>("endianness").ToLocalChecked(), Nan::New<v8::String>(CheckEndianness()).ToLocalChecked(), static_cast<PropertyAttribute>(ReadOnly|DontDelete));
                                                                                                                                                                                           ^
In file included from /mnt/c/myproject/node_modules/nan/nan.h:282:0,
                 from /mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:7:
/mnt/c/myproject/node_modules/nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^~~~~~~~
/mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:644:8: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New<v8::String>("NULL").ToLocalChecked(), WrapNullPointer(), static_cast<PropertyAttribute>(ReadOnly|DontDelete));
        ^~~~~~~~
In file included from /mnt/c/myproject/node_modules/nan/nan.h:282:0,
                 from /mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:7:
/mnt/c/myproject/node_modules/nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^~~~~~~~
/mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:644:142: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New<v8::String>("NULL").ToLocalChecked(), WrapNullPointer(), static_cast<PropertyAttribute>(ReadOnly|DontDelete));
                                                                                                                                              ^
In file included from /mnt/c/myproject/node_modules/nan/nan.h:282:0,
                 from /mnt/c/myproject/node_modules/fastcall/deps/ref/src/binding.cc:7:
/mnt/c/myproject/node_modules/nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^~~~~~~~
deps/ref-cmake/CMakeFiles/ref.dir/build.make:62: recipe for target 'deps/ref-cmake/CMakeFiles/ref.dir/__/ref/src/binding.cc.o' failed
make[2]: *** [deps/ref-cmake/CMakeFiles/ref.dir/__/ref/src/binding.cc.o] Error 1
CMakeFiles/Makefile2:1246: recipe for target 'deps/ref-cmake/CMakeFiles/ref.dir/all' failed
make[1]: *** [deps/ref-cmake/CMakeFiles/ref.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2
ERR! OMG Process terminated: 2
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `cmake-js compile`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/clark/.npm/_logs/2019-12-07T14_11_30_211Z-debug.log

CMake and GCC installed.

Thanks and have a nice day :),
Clark.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions