Не могу собрать Nodejs на Chakracore на Linux - PullRequest
0 голосов
/ 01 сентября 2018

Я не могу собрать Nodejs на Chakracore из исходного кода, версия '10 .6.0' на fedora.

Ошибка:

                 from ../src/node_buffer.h:25,
                 from ../src/node_api_jsrt.cc:14:
../deps/chakrashim/include/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]':
../src/node_object_wrap.h:85:78:   required from here
../deps/chakrashim/include/v8.h:3303:28: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<node::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
   SetWeakCommon(parameter, reinterpret_cast<Callback>(callback));
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [node_lib.target.mk:225: /chakracore/out/Release/obj.target/node_lib/src/node_api_jsrt.o] Error 1
rm d450309b09a99f26d5e5da35a4b0561607cfc25c.intermediate
make: *** [Makefile:87: node] Error 2
The command '/bin/sh -c make' returned a non-zero code: 2
...