-
Notifications
You must be signed in to change notification settings - Fork 222
Open
Description
$ npm i -g slap@latest
command fails;
/home/oytun/.npm-global/bin/slap -> /home/oytun/.npm-global/lib/node_modules/slap/slap.js
> marker-index@4.0.0 install /home/oytun/.npm-global/lib/node_modules/slap/node_modules/marker-index
> node-gyp rebuild
make: Entering directory '/home/oytun/.npm-global/lib/node_modules/slap/node_modules/marker-index/build'
CXX(target) Release/obj.target/marker_index/src/native/iterator.o
CXX(target) Release/obj.target/marker_index/src/native/marker-index-wrapper.o
In file included from ../src/native/marker-index-wrapper.cc:2:
../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../../nan/nan.h:2232:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
, reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
^
../src/native/marker-index-wrapper.cc: In static member function ‘static Nan::Maybe<Point> MarkerIndexWrapper::PointFromJS(Nan::MaybeLocal<v8::Object>)’:
../src/native/marker-index-wrapper.cc:112:54: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
row = static_cast<unsigned>(js_row->Int32Value());
^
In file included from /home/oytun/.node-gyp/11.9.0/include/node/v8.h:26,
from /home/oytun/.node-gyp/11.9.0/include/node/node.h:63,
from ../../nan/nan.h:53,
from ../src/native/marker-index-wrapper.cc:2:
/home/oytun/.node-gyp/11.9.0/include/node/v8.h:2572:46: note: declared here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^~~~~~~~~~
/home/oytun/.node-gyp/11.9.0/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../src/native/marker-index-wrapper.cc:118:60: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
column = static_cast<unsigned>(js_column->Int32Value());
^
In file included from /home/oytun/.node-gyp/11.9.0/include/node/v8.h:26,
from /home/oytun/.node-gyp/11.9.0/include/node/node.h:63,
from ../../nan/nan.h:53,
from ../src/native/marker-index-wrapper.cc:2:
/home/oytun/.node-gyp/11.9.0/include/node/v8.h:2572:46: note: declared here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^~~~~~~~~~
/home/oytun/.node-gyp/11.9.0/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../src/native/marker-index-wrapper.cc: In static member function ‘static bool MarkerIndexWrapper::IsFinite(v8::Local<v8::Integer>)’:
../src/native/marker-index-wrapper.cc:128:92: error: no matching function for call to ‘v8::Object::CallAsFunction(v8::Local<v8::Primitive>, int, v8::Local<v8::Value> [1])’
Local<Value> result = Nan::New(is_finite_function)->CallAsFunction(Nan::Null(), 1, argv);
^
In file included from /home/oytun/.node-gyp/11.9.0/include/node/node.h:63,
from ../../nan/nan.h:53,
from ../src/native/marker-index-wrapper.cc:2:
/home/oytun/.node-gyp/11.9.0/include/node/v8.h:3728:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::CallAsFunction(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)’
V8_WARN_UNUSED_RESULT MaybeLocal<Value> CallAsFunction(Local<Context> context,
^~~~~~~~~~~~~~
/home/oytun/.node-gyp/11.9.0/include/node/v8.h:3728:43: note: candidate expects 4 arguments, 3 provided
../src/native/marker-index-wrapper.cc:129:33: warning: ‘bool v8::Value::BooleanValue() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return result->BooleanValue();
^
In file included from /home/oytun/.node-gyp/11.9.0/include/node/v8.h:26,
from /home/oytun/.node-gyp/11.9.0/include/node/node.h:63,
from ../../nan/nan.h:53,
from ../src/native/marker-index-wrapper.cc:2:
/home/oytun/.node-gyp/11.9.0/include/node/v8.h:2568:43: note: declared here
V8_DEPRECATED("Use maybe version", bool BooleanValue() const);
^~~~~~~~~~~~
/home/oytun/.node-gyp/11.9.0/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../src/native/marker-index-wrapper.cc: In static member function ‘static Nan::Maybe<unsigned int> MarkerIndexWrapper::MarkerIdFromJS(Nan::MaybeLocal<v8::Integer>)’:
../src/native/marker-index-wrapper.cc:171:70: warning: ‘uint32_t v8::Value::Uint32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return Nan::Just<MarkerId>(static_cast<MarkerId>(id->Uint32Value()));
^
In file included from /home/oytun/.node-gyp/11.9.0/include/node/v8.h:26,
from /home/oytun/.node-gyp/11.9.0/include/node/node.h:63,
from ../../nan/nan.h:53,
from ../src/native/marker-index-wrapper.cc:2:
/home/oytun/.node-gyp/11.9.0/include/node/v8.h:2571:47: note: declared here
V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
^~~~~~~~~~~
/home/oytun/.node-gyp/11.9.0/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../src/native/marker-index-wrapper.cc: In constructor ‘MarkerIndexWrapper::MarkerIndexWrapper(v8::Local<v8::Number>)’:
../src/native/marker-index-wrapper.cc:331:57: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
marker_index{static_cast<unsigned>(seed->Int32Value())} {}
^
In file included from /home/oytun/.node-gyp/11.9.0/include/node/v8.h:26,
from /home/oytun/.node-gyp/11.9.0/include/node/node.h:63,
from ../../nan/nan.h:53,
from ../src/native/marker-index-wrapper.cc:2:
/home/oytun/.node-gyp/11.9.0/include/node/v8.h:2572:46: note: declared here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^~~~~~~~~~
/home/oytun/.node-gyp/11.9.0/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan.h:53,
from ../src/native/marker-index-wrapper.cc:2:
../src/native/marker-index-wrapper.cc: At global scope:
/home/oytun/.node-gyp/11.9.0/include/node/node.h:495:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
(node::addon_register_func) (regfunc), \
^
/home/oytun/.node-gyp/11.9.0/include/node/node.h:529:3: note: in expansion of macro ‘NODE_MODULE_X’
NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
^~~~~~~~~~~~~
../src/native/marker-index-wrapper.cc:348:1: note: in expansion of macro ‘NODE_MODULE’
NODE_MODULE(marker_index, MarkerIndexWrapper::Init)
^~~~~~~~~~~
In file included from /home/oytun/.node-gyp/11.9.0/include/node/node.h:63,
from ../../nan/nan.h:53,
from ../src/native/marker-index-wrapper.cc:2:
/home/oytun/.node-gyp/11.9.0/include/node/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>&)]’:
/home/oytun/.node-gyp/11.9.0/include/node/node_object_wrap.h:85:78: required from here
/home/oytun/.node-gyp/11.9.0/include/node/v8.h:9707:16: 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]
reinterpret_cast<Callback>(callback), type);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/oytun/.node-gyp/11.9.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
../../nan/nan_object_wrap.h:66:61: required from here
/home/oytun/.node-gyp/11.9.0/include/node/v8.h:9707:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
make: *** [marker_index.target.mk:109: Release/obj.target/marker_index/src/native/marker-index-wrapper.o] Error 1
make: Leaving directory '/home/oytun/.npm-global/lib/node_modules/slap/node_modules/marker-index/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:197:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
gyp ERR! System Linux 4.20.6-arch1-1-ARCH
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/oytun/.npm-global/lib/node_modules/slap/node_modules/marker-index
gyp ERR! node -v v11.9.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! marker-index@4.0.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the marker-index@4.0.0 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/oytun/.npm/_logs/2019-02-08T11_14_40_409Z-debug.log
/home/oytun/.npm/_logs/2019-02-08T11_14_40_409Z-debug.log last lines;
9016 silly install marker-index@4.0.0
9017 info lifecycle marker-index@4.0.0~install: marker-index@4.0.0
9018 verbose lifecycle marker-index@4.0.0~install: unsafe-perm in lifecycle true
9019 verbose lifecycle marker-index@4.0.0~install: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/oytun/.npm-global/lib/node_modules/slap/node_modules/marker-index/node_modules/.bin:/home/oytun/.npm-global/lib/node_modules/slap/node_modules/.bin:/home/oytun/.npm-global/lib/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/oytun/go/bin:/home/oytun/.config/composer/vendor/bin
9020 verbose lifecycle marker-index@4.0.0~install: CWD: /home/oytun/.npm-global/lib/node_modules/slap/node_modules/marker-index
9021 silly lifecycle marker-index@4.0.0~install: Args: [ '-c', 'node-gyp rebuild' ]
9022 silly lifecycle marker-index@4.0.0~install: Returned: code: 1 signal: null
9023 info lifecycle marker-index@4.0.0~install: Failed to exec install script
9024 timing action:install Completed in 2429ms
9025 verbose unlock done using /home/oytun/.npm/_locks/staging-1ae234b2bda2efa6.lock for /home/oytun/.npm-global/lib/node_modules/.staging
9026 timing stage:rollbackFailedOptional Completed in 605ms
9027 timing stage:runTopLevelLifecycles Completed in 8791ms
9028 verbose stack Error: marker-index@4.0.0 install: `node-gyp rebuild`
9028 verbose stack Exit status 1
9028 verbose stack at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
9028 verbose stack at EventEmitter.emit (events.js:197:13)
9028 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
9028 verbose stack at ChildProcess.emit (events.js:197:13)
9028 verbose stack at maybeClose (internal/child_process.js:978:16)
9028 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5)
9029 verbose pkgid marker-index@4.0.0
9030 verbose cwd /home/oytun
9031 verbose Linux 4.20.6-arch1-1-ARCH
9032 verbose argv "/usr/bin/node" "/usr/bin/npm" "i" "-g" "slap@latest"
9033 verbose node v11.9.0
9034 verbose npm v6.7.0
9035 error code ELIFECYCLE
9036 error errno 1
9037 error marker-index@4.0.0 install: `node-gyp rebuild`
9037 error Exit status 1
9038 error Failed at the marker-index@4.0.0 install script.
9038 error This is probably not a problem with npm. There is likely additional logging output above.
9039 verbose exit [ 1, true ]
ron-wolf and alperr
Metadata
Metadata
Assignees
Labels
No labels