Created
January 4, 2021 13:09
-
-
Save syanle/7972ef82a60cfbc74c5abe317e13ef82 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Step 16/17 : RUN DATABASE_URL=postgresql://postgres@db/scinote_production PAPERCLIP_HASH_SECRET=dummy SECRET_KEY_BASE=dummy DEFACE_ENABLED=true bash -c "rake assets:precompile && rake deface:precompile" | |
---> Running in 4d852c8d99e2 | |
DEPRECATION WARNING: Including LoggerSilence is deprecated and will be removed in Rails 6.1. Please use `ActiveSupport::LoggerSilence` instead (called from <top (required)> at /usr/src/app/config/application.rb:7) | |
Not connected to database, skipping additional Azure AD configuration | |
An enum element in Repository uses the prefix 'not_'. This will cause a conflict with auto generated negative scopes. | |
yarn install v1.22.10 | |
[1/4] Resolving packages... | |
[2/4] Fetching packages... | |
warning [email protected]: Invalid bin field for "compression-webpack-plugin". | |
info [email protected]: The platform "linux" is incompatible with this module. | |
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation. | |
[3/4] Linking dependencies... | |
warning " > [email protected]" has incorrect peer dependency "webpack@^3.1.0". | |
warning " > [email protected]" has incorrect peer dependency "react@^0.14.3 || ^15.0.0". | |
warning " > [email protected]" has incorrect peer dependency "webpack@1 || 2 || 3". | |
warning " > [email protected]" has incorrect peer dependency "eslint@^3.19.0 || ^4.3.0". | |
warning "eslint-config-airbnb > [email protected]" has incorrect peer dependency "eslint@^3.19.0 || ^4.5.0". | |
warning " > [email protected]" has incorrect peer dependency "eslint@^2.10.2 || ^3 || ^4". | |
[4/4] Building fresh packages... | |
info This module is OPTIONAL, you can safely ignore this error | |
warning Error running install script for optional dependency: "/usr/src/app/node_modules/canvas: Command failed. | |
Exit code: 1 | |
Command: node-gyp rebuild | |
Arguments: | |
Directory: /usr/src/app/node_modules/canvas | |
Output: | |
gyp info it worked if it ends with ok | |
gyp info using [email protected] | |
gyp info using [email protected] | linux | x64 | |
gyp info spawn /usr/bin/python2 | |
gyp info spawn args [ '/usr/share/node-gyp/gyp/gyp_main.py', | |
gyp info spawn args 'binding.gyp', | |
gyp info spawn args '-f', | |
gyp info spawn args 'make', | |
gyp info spawn args '-I', | |
gyp info spawn args '/usr/src/app/node_modules/canvas/build/config.gypi', | |
gyp info spawn args '-I', | |
gyp info spawn args '/usr/share/node-gyp/addon.gypi', | |
gyp info spawn args '-I', | |
gyp info spawn args '/usr/include/nodejs/common.gypi', | |
gyp info spawn args '-Dlibrary=shared_library', | |
gyp info spawn args '-Dvisibility=default', | |
gyp info spawn args '-Dnode_root_dir=/usr/include/nodejs', | |
gyp info spawn args '-Dnode_gyp_dir=/usr/share/node-gyp', | |
gyp info spawn args '-Dnode_lib_file=/usr/include/nodejs/<(target_arch)/node.lib', | |
gyp info spawn args '-Dmodule_root_dir=/usr/src/app/node_modules/canvas', | |
gyp info spawn args '-Dnode_engine=v8', | |
gyp info spawn args '--depth=.', | |
gyp info spawn args '--no-parallel', | |
gyp info spawn args '--generator-output', | |
gyp info spawn args 'build', | |
gyp info spawn args '-Goutput_dir=.' ] | |
gyp info spawn make | |
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] | |
make: Entering directory '/usr/src/app/node_modules/canvas/build' | |
SOLINK_MODULE(target) Release/obj.target/canvas-postbuild.node | |
COPY Release/canvas-postbuild.node | |
CXX(target) Release/obj.target/canvas/src/Canvas.o | |
In file included from ../src/Canvas.h:22, | |
from ../src/Canvas.cc:7: | |
../../nan/nan.h: In function 'void Nan::AsyncQueueWorker(Nan::AsyncWorker*)': | |
../../nan/nan.h:2298: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) | |
^ | |
In file included from ../src/Canvas.cc:20: | |
../src/JPEGStream.h: In function 'boolean empty_closure_output_buffer(j_compress_ptr)': | |
../src/JPEGStream.h:42:108: warning: 'v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)' is deprecated [-Wdeprecated-declarations] | |
Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)dest->closure->fn, 2, argv); | |
^ | |
In file included from ../src/Canvas.h:22, | |
from ../src/Canvas.cc:7: | |
../../nan/nan.h:1024:46: note: declared here | |
NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( | |
^~~~~~~~~~~~ | |
In file included from ../src/Canvas.cc:20: | |
../src/JPEGStream.h:42:108: warning: 'v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)' is deprecated [-Wdeprecated-declarations] | |
Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)dest->closure->fn, 2, argv); | |
^ | |
In file included from ../src/Canvas.h:22, | |
from ../src/Canvas.cc:7: | |
../../nan/nan.h:1024:46: note: declared here | |
NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( | |
^~~~~~~~~~~~ | |
In file included from ../src/Canvas.cc:20: | |
../src/JPEGStream.h: In function 'void term_closure_destination(j_compress_ptr)': | |
../src/JPEGStream.h:63:113: warning: 'v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)' is deprecated [-Wdeprecated-declarations] | |
Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)dest->closure->fn, 2, data_argv); | |
^ | |
In file included from ../src/Canvas.h:22, | |
from ../src/Canvas.cc:7: | |
../../nan/nan.h:1024:46: note: declared here | |
NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( | |
^~~~~~~~~~~~ | |
In file included from ../src/Canvas.cc:20: | |
../src/JPEGStream.h:63:113: warning: 'v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)' is deprecated [-Wdeprecated-declarations] | |
Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)dest->closure->fn, 2, data_argv); | |
^ | |
In file included from ../src/Canvas.h:22, | |
from ../src/Canvas.cc:7: | |
../../nan/nan.h:1024:46: note: declared here | |
NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( | |
^~~~~~~~~~~~ | |
In file included from ../src/Canvas.cc:20: | |
../src/JPEGStream.h:71:112: warning: 'v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)' is deprecated [-Wdeprecated-declarations] | |
Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)dest->closure->fn, 2, end_argv); | |
^ | |
In file included from ../src/Canvas.h:22, | |
from ../src/Canvas.cc:7: | |
../../nan/nan.h:1024:46: note: declared here | |
NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( | |
^~~~~~~~~~~~ | |
In file included from ../src/Canvas.cc:20: | |
../src/JPEGStream.h:71:112: warning: 'v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)' is deprecated [-Wdeprecated-declarations] | |
Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)dest->closure->fn, 2, end_argv); | |
^ | |
In file included from ../src/Canvas.h:22, | |
from ../src/Canvas.cc:7: | |
../../nan/nan.h:1024:46: note: declared here | |
NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( | |
^~~~~~~~~~~~ | |
../src/Canvas.cc: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE Canvas::New(Nan::NAN_METHOD_ARGS_TYPE)': | |
../src/Canvas.cc:72:57: warning: 'uint32_t v8::Value::Uint32Value() const' is deprecated: Use maybe version [-Wdeprecated-declarations] | |
if (info[0]->IsNumber()) width = info[0]->Uint32Value(); | |
^ | |
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26, | |
from ../src/Canvas.h:11, | |
from ../src/Canvas.cc:7: | |
/usr/include/nodejs/deps/v8/include/v8.h:2477:47: note: declared here | |
V8_DEPRECATED(\"Use maybe version\", uint32_t Uint32Value() const); | |
^~~~~~~~~~~ | |
/usr/include/nodejs/deps/v8/include/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED' | |
declarator __attribute__((deprecated(message))) | |
^~~~~~~~~~ | |
../src/Canvas.cc:73:58: warning: 'uint32_t v8::Value::Uint32Value() const' is deprecated: Use maybe version [-Wdeprecated-declarations] | |
if (info[1]->IsNumber()) height = info[1]->Uint32Value(); | |
^ | |
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26, | |
from ../src/Canvas.h:11, | |
from ../src/Canvas.cc:7: | |
/usr/include/nodejs/deps/v8/include/v8.h:2477:47: note: declared here | |
V8_DEPRECATED(\"Use maybe version\", uint32_t Uint32Value() const); | |
^~~~~~~~~~~ | |
/usr/include/nodejs/deps/v8/include/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED' | |
declarator __attribute__((deprecated(message))) | |
^~~~~~~~~~ | |
../src/Canvas.cc:74:76: warning: 'v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)' is deprecated: Use Isolate version [-Wdeprecated-declarations] | |
if (info[2]->IsString()) type = !strcmp(\"pdf\", *String::Utf8Value(info[2])) | |
^ | |
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26, | |
from ../src/Canvas.h:11, | |
from ../src/Canvas.cc:7: | |
/usr/include/nodejs/deps/v8/include/v8.h:2892:28: note: declared here | |
explicit Utf8Value(Local<v8::Value> obj)); | |
^~~~~~~~~ | |
/usr/include/nodejs/deps/v8/include/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED' | |
declarator __attribute__((deprecated(message))) | |
^~~~~~~~~~ | |
../src/Canvas.cc:76:48: warning: 'v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)' is deprecated: Use Isolate version [-Wdeprecated-declarations] | |
: !strcmp(\"svg\", *String::Utf8Value(info[2])) | |
^ | |
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26, | |
from ../src/Canvas.h:11, | |
from ../src/Canvas.cc:7: | |
/usr/include/nodejs/deps/v8/include/v8.h:2892:28: note: declared here | |
explicit Utf8Value(Local<v8::Value> obj)); | |
^~~~~~~~~ | |
/usr/include/nodejs/deps/v8/include/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED' | |
declarator __attribute__((deprecated(message))) | |
^~~~~~~~~~ | |
../src/Canvas.cc: In static member function 'static Nan::NAN_SETTER_RETURN_TYPE Canvas::SetWidth(v8::Local<v8::String>, v8::Local<v8::Value>, Nan::NAN_SETTER_ARGS_TYPE)': | |
../src/Canvas.cc:109:40: warning: 'uint32_t v8::Value::Uint32Value() const' is deprecated: Use maybe version [-Wdeprecated-declarations] | |
canvas->width = value->Uint32Value(); | |
^ | |
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26, | |
from ../src/Canvas.h:11, | |
from ../src/Canvas.cc:7: | |
/usr/include/nodejs/deps/v8/include/v8.h:2477:47: note: declared here | |
V8_DEPRECATED(\"Use maybe version\", uint32_t Uint32Value() const); | |
^~~~~~~~~~~ | |
/usr/include/nodejs/deps/v8/include/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED' | |
declarator __attribute__((deprecated(message))) | |
^~~~~~~~~~ | |
../src/Canvas.cc: In static member function 'static Nan::NAN_SETTER_RETURN_TYPE Canvas::SetHeight(v8::Local<v8::String>, v8::Local<v8::Value>, Nan::NAN_SETTER_ARGS_TYPE)': | |
../src/Canvas.cc:130:41: warning: 'uint32_t v8::Value::Uint32Value() const' is deprecated: Use maybe version [-Wdeprecated-declarations] | |
canvas->height = value->Uint32Value(); | |
^ | |
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26, | |
from ../src/Canvas.h:11, | |
from ../src/Canvas.cc:7: | |
/usr/include/nodejs/deps/v8/include/v8.h:2477:47: note: declared here | |
V8_DEPRECATED(\"Use maybe version\", uint32_t Uint32Value() const); | |
^~~~~~~~~~~ | |
/usr/include/nodejs/deps/v8/include/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED' | |
declarator __attribute__((deprecated(message))) | |
^~~~~~~~~~ | |
../src/Canvas.cc: In static member function 'static void Canvas::ToBufferAsyncAfter(uv_work_t*)': | |
../src/Canvas.cc:211:31: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations] | |
closure->pfn->Call(1, argv); | |
^ | |
In file included from ../src/Canvas.h:22, | |
from ../src/Canvas.cc:7: | |
../../nan/nan.h:1740:3: note: declared here | |
Call(int argc, v8::Local<v8::Value> argv[]) const { | |
^~~~ | |
../src/Canvas.cc:216:31: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations] | |
closure->pfn->Call(2, argv); | |
^ | |
In file included from ../src/Canvas.h:22, | |
from ../src/Canvas.cc:7: | |
../../nan/nan.h:1740:3: note: declared here | |
Call(int argc, v8::Local<v8::Value> argv[]) const { | |
^~~~ | |
../src/Canvas.cc: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE Canvas::ToBuffer(Nan::NAN_METHOD_ARGS_TYPE)': | |
../src/Canvas.cc:254:52: warning: 'uint32_t v8::Value::Uint32Value() const' is deprecated: Use maybe version [-Wdeprecated-declarations] | |
compression_level = info[1]->Uint32Value(); | |
^ | |
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26, | |
from ../src/Canvas.h:11, | |
from ../src/Canvas.cc:7: | |
/usr/include/nodejs/deps/v8/include/v8.h:2477:47: note: declared here | |
V8_DEPRECATED(\"Use maybe version\", uint32_t Uint32Value() const); | |
^~~~~~~~~~~ | |
/usr/include/nodejs/deps/v8/include/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED' | |
declarator __attribute__((deprecated(message))) | |
^~~~~~~~~~ | |
../src/Canvas.cc:259:49: warning: 'uint32_t v8::Value::Uint32Value() const' is deprecated: Use maybe version [-Wdeprecated-declarations] | |
uint32_t tmp = info[1]->Uint32Value(); | |
^ | |
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26, | |
from ../src/Canvas.h:11, | |
from ../src/Canvas.cc:7: | |
/usr/include/nodejs/deps/v8/include/v8.h:2477:47: note: declared here | |
V8_DEPRECATED(\"Use maybe version\", uint32_t Uint32Value() const); | |
^~~~~~~~~~~ | |
/usr/include/nodejs/deps/v8/include/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED' | |
declarator __attribute__((deprecated(message))) | |
^~~~~~~~~~ | |
../src/Canvas.cc:281:39: warning: 'uint32_t v8::Value::Uint32Value() const' is deprecated: Use maybe version [-Wdeprecated-declarations] | |
filter = info[2]->Uint32Value(); | |
^ | |
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26, | |
from ../src/Canvas.h:11, | |
from ../src/Canvas.cc:7: | |
/usr/include/nodejs/deps/v8/include/v8.h:2477:47: note: declared here | |
V8_DEPRECATED(\"Use maybe version\", uint32_t Uint32Value() const); | |
^~~~~~~~~~~ | |
/usr/include/nodejs/deps/v8/include/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED' | |
declarator __attribute__((deprecated(message))) | |
^~~~~~~~~~ | |
../src/Canvas.cc:307:76: 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] | |
uv_queue_work(uv_default_loop(), req, ToBufferAsync, (uv_after_work_cb)ToBufferAsyncAfter); | |
^~~~~~~~~~~~~~~~~~ | |
../src/Canvas.cc:325:14: error: no matching function for call to 'v8::TryCatch::TryCatch()' | |
TryCatch try_catch; | |
^~~~~~~~~ | |
In file included from ../src/Canvas.h:11, | |
from ../src/Canvas.cc:7: | |
/usr/include/nodejs/deps/v8/include/v8.h:8536:12: note: candidate: 'v8::TryCatch::TryCatch(v8::Isolate*)' | |
explicit TryCatch(Isolate* isolate); | |
^~~~~~~~ | |
/usr/include/nodejs/deps/v8/include/v8.h:8536:12: note: candidate expects 1 argument, 0 provided | |
../src/Canvas.cc: In function 'cairo_status_t streamPNG(void*, const uint8_t*, unsigned int)': | |
../src/Canvas.cc:357:102: warning: 'v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)' is deprecated [-Wdeprecated-declarations] | |
Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)closure->fn, 3, argv); | |
^ | |
In file included from ../src/Canvas.h:22, | |
from ../src/Canvas.cc:7: | |
../../nan/nan.h:1024:46: note: declared here | |
NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( | |
^~~~~~~~~~~~ | |
../src/Canvas.cc:357:102: warning: 'v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)' is deprecated [-Wdeprecated-declarations] | |
Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)closure->fn, 3, argv); | |
^ | |
In file included from ../src/Canvas.h:22, | |
from ../src/Canvas.cc:7: | |
../../nan/nan.h:1024:46: note: declared here | |
NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( | |
^~~~~~~~~~~~ | |
../src/Canvas.cc: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE Canvas::StreamPNGSync(Nan::NAN_METHOD_ARGS_TYPE)': | |
../src/Canvas.cc:376:52: warning: 'uint32_t v8::Value::Uint32Value() const' is deprecated: Use maybe version [-Wdeprecated-declarations] | |
compression_level = info[1]->Uint32Value(); | |
^ | |
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26, | |
from ../src/Canvas.h:11, | |
from ../src/Canvas.cc:7: | |
/usr/include/nodejs/deps/v8/include/v8.h:2477:47: note: declared here | |
V8_DEPRECATED(\"Use maybe version\", uint32_t Uint32Value() const); | |
^~~~~~~~~~~ | |
/usr/include/nodejs/deps/v8/include/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED' | |
declarator __attribute__((deprecated(message))) | |
^~~~~~~~~~ | |
../src/Canvas.cc:381:49: warning: 'uint32_t v8::Value::Uint32Value() const' is deprecated: Use maybe version [-Wdeprecated-declarations] | |
uint32_t tmp = info[1]->Uint32Value(); | |
^ | |
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26, | |
from ../src/Canvas.h:11, | |
from ../src/Canvas.cc:7: | |
/usr/include/nodejs/deps/v8/include/v8.h:2477:47: note: declared here | |
V8_DEPRECATED(\"Use maybe version\", uint32_t Uint32Value() const); | |
^~~~~~~~~~~ | |
/usr/include/nodejs/deps/v8/include/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED' | |
declarator __attribute__((deprecated(message))) | |
^~~~~~~~~~ | |
../src/Canvas.cc:403:39: warning: 'uint32_t v8::Value::Uint32Value() const' is deprecated: Use maybe version [-Wdeprecated-declarations] | |
filter = info[2]->Uint32Value(); | |
^ | |
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26, | |
from ../src/Canvas.h:11, | |
from ../src/Canvas.cc:7: | |
/usr/include/nodejs/deps/v8/include/v8.h:2477:47: note: declared here | |
V8_DEPRECATED(\"Use maybe version\", uint32_t Uint32Value() const); | |
^~~~~~~~~~~ | |
/usr/include/nodejs/deps/v8/include/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED' | |
declarator __attribute__((deprecated(message))) | |
^~~~~~~~~~ | |
../src/Canvas.cc:417:12: error: no matching function for call to 'v8::TryCatch::TryCatch()' | |
TryCatch try_catch; | |
^~~~~~~~~ | |
In file included from ../src/Canvas.h:11, | |
from ../src/Canvas.cc:7: | |
/usr/include/nodejs/deps/v8/include/v8.h:8536:12: note: candidate: 'v8::TryCatch::TryCatch(v8::Isolate*)' | |
explicit TryCatch(Isolate* isolate); | |
^~~~~~~~ | |
/usr/include/nodejs/deps/v8/include/v8.h:8536:12: note: candidate expects 1 argument, 0 provided | |
../src/Canvas.cc:426:103: warning: 'v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)' is deprecated [-Wdeprecated-declarations] | |
Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)closure.fn, 1, argv); | |
^ | |
In file included from ../src/Canvas.h:22, | |
from ../src/Canvas.cc:7: | |
../../nan/nan.h:1024:46: note: declared here | |
NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( | |
^~~~~~~~~~~~ | |
../src/Canvas.cc:426:103: warning: 'v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)' is deprecated [-Wdeprecated-declarations] | |
Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)closure.fn, 1, argv); | |
^ | |
In file included from ../src/Canvas.h:22, | |
from ../src/Canvas.cc:7: | |
../../nan/nan.h:1024:46: note: declared here | |
NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( | |
^~~~~~~~~~~~ | |
../src/Canvas.cc:432:103: warning: 'v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)' is deprecated [-Wdeprecated-declarations] | |
Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)closure.fn, 1, argv); | |
^ | |
In file included from ../src/Canvas.h:22, | |
from ../src/Canvas.cc:7: | |
../../nan/nan.h:1024:46: note: declared here | |
NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( | |
^~~~~~~~~~~~ | |
../src/Canvas.cc:432:103: warning: 'v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)' is deprecated [-Wdeprecated-declarations] | |
Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)closure.fn, 1, argv); | |
^ | |
In file included from ../src/Canvas.h:22, | |
from ../src/Canvas.cc:7: | |
../../nan/nan.h:1024:46: note: declared here | |
NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( | |
^~~~~~~~~~~~ | |
../src/Canvas.cc: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE Canvas::StreamJPEGSync(Nan::NAN_METHOD_ARGS_TYPE)': | |
../src/Canvas.cc:458:12: error: no matching function for call to 'v8::TryCatch::TryCatch()' | |
TryCatch try_catch; | |
^~~~~~~~~ | |
In file included from ../src/Canvas.h:11, | |
from ../src/Canvas.cc:7: | |
/usr/include/nodejs/deps/v8/include/v8.h:8536:12: note: candidate: 'v8::TryCatch::TryCatch(v8::Isolate*)' | |
explicit TryCatch(Isolate* isolate); | |
^~~~~~~~ | |
/usr/include/nodejs/deps/v8/include/v8.h:8536:12: note: candidate expects 1 argument, 0 provided | |
../src/Canvas.cc:459:64: warning: 'double v8::Value::NumberValue() const' is deprecated: Use maybe version [-Wdeprecated-declarations] | |
write_to_jpeg_stream(canvas->surface(), info[0]->NumberValue(), info[1]->NumberValue(), info[2]->BooleanValue(), &closure); | |
^ | |
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26, | |
from ../src/Canvas.h:11, | |
from ../src/Canvas.cc:7: | |
/usr/include/nodejs/deps/v8/include/v8.h:2475:45: note: declared here | |
V8_DEPRECATED(\"Use maybe version\", double NumberValue() const); | |
^~~~~~~~~~~ | |
/usr/include/nodejs/deps/v8/include/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED' | |
declarator __attribute__((deprecated(message))) | |
^~~~~~~~~~ | |
../src/Canvas.cc:459:88: warning: 'double v8::Value::NumberValue() const' is deprecated: Use maybe version [-Wdeprecated-declarations] | |
write_to_jpeg_stream(canvas->surface(), info[0]->NumberValue(), info[1]->NumberValue(), info[2]->BooleanValue(), &closure); | |
^ | |
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26, | |
from ../src/Canvas.h:11, | |
from ../src/Canvas.cc:7: | |
/usr/include/nodejs/deps/v8/include/v8.h:2475:45: note: declared here | |
V8_DEPRECATED(\"Use maybe version\", double NumberValue() const); | |
^~~~~~~~~~~ | |
/usr/include/nodejs/deps/v8/include/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED' | |
declarator __attribute__((deprecated(message))) | |
^~~~~~~~~~ | |
../src/Canvas.cc: In member function 'void Canvas::resurface(v8::Local<v8::Object>)': | |
../src/Canvas.cc:542:85: warning: 'v8::Local<v8::Object> v8::Value::ToObject() const' is deprecated: Use maybe version [-Wdeprecated-declarations] | |
Context2d *context2d = Nan::ObjectWrap::Unwrap<Context2d>(context->ToObject()); | |
^ | |
In file included from ../src/Canvas.h:11, | |
from ../src/Canvas.cc:7: | |
/usr/include/nodejs/deps/v8/include/v8.h:10046:15: note: declared here | |
Local<Object> Value::ToObject() const { | |
^~~~~ | |
../src/Canvas.cc:559:85: warning: 'v8::Local<v8::Object> v8::Value::ToObject() const' is deprecated: Use maybe version [-Wdeprecated-declarations] | |
Context2d *context2d = Nan::ObjectWrap::Unwrap<Context2d>(context->ToObject()); | |
^ | |
In file included from ../src/Canvas.h:11, | |
from ../src/Canvas.cc:7: | |
/usr/include/nodejs/deps/v8/include/v8.h:10046:15: note: declared here | |
Local<Object> Value::ToObject() const { | |
^~~~~ | |
/usr/include/nodejs/deps/v8/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>&)]': | |
/usr/include/nodejs/src/node_object_wrap.h:84:78: required from here | |
/usr/include/nodejs/deps/v8/include/v8.h:9502: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); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/usr/include/nodejs/deps/v8/include/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:65:61: required from here | |
/usr/include/nodejs/deps/v8/include/v8.h:9502: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: *** [canvas.target.mk:131: Release/obj.target/canvas/src/Canvas.o] Error 1 | |
gyp ERR! build error | |
make: Leaving directory '/usr/src/app/node_modules/canvas/build' | |
gyp ERR! stack Error: `make` failed with exit code: 2 | |
gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:262:23) | |
gyp ERR! stack at ChildProcess.emit (events.js:198:13) | |
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12) | |
gyp ERR! System Linux 4.15.0-101-generic | |
gyp ERR! command \"/usr/bin/node\" \"/usr/bin/node-gyp\" \"rebuild\" | |
gyp ERR! cwd /usr/src/app/node_modules/canvas | |
gyp ERR! node -v v10.21.0 | |
gyp ERR! node-gyp -v v3.8.0 | |
gyp ERR! not ok" | |
warning Error running install script for optional dependency: "/usr/src/app/node_modules/contextify: Command failed. | |
Exit code: 1 | |
Command: node-gyp rebuild | |
Arguments: | |
Directory: /usr/src/app/node_modules/contextify | |
Output: | |
gyp info it worked if it ends with ok | |
gyp info using [email protected] | |
gyp info using [email protected] | linux | x64 | |
gyp info spawn /usr/bin/python2 | |
gyp info spawn args [ '/usr/share/node-gyp/gyp/gyp_main.py', | |
gyp info spawn args 'binding.gyp', | |
gyp info spawn args '-f', | |
gyp info spawn args 'make', | |
gyp info spawn args '-I', | |
gyp info spawn args '/usr/src/app/node_modules/contextify/build/config.gypi', | |
gyp info spawn args '-I', | |
gyp info spawn args '/usr/share/node-gyp/addon.gypi', | |
gyp info spawn args '-I', | |
gyp info spawn args '/usr/include/nodejs/common.gypi', | |
gyp info spawn args '-Dlibrary=shared_library', | |
gyp info spawn args '-Dvisibility=default', | |
gyp info spawn args '-Dnode_root_dir=/usr/include/nodejs', | |
gyp info spawn args '-Dnode_gyp_dir=/usr/share/node-gyp', | |
gyp info spawn args '-Dnode_lib_file=/usr/include/nodejs/<(target_arch)/node.lib', | |
gyp info spawn args '-Dmodule_root_dir=/usr/src/app/node_modules/contextify', | |
gyp info spawn args '-Dnode_engine=v8', | |
gyp info spawn args '--depth=.', | |
gyp info spawn args '--no-parallel', | |
gyp info spawn args '--generator-output', | |
gyp info spawn args 'build', | |
gyp info spawn args '-Goutput_dir=.' ] | |
gyp info spawn make | |
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] | |
make: Entering directory '/usr/src/app/node_modules/contextify/build' | |
CXX(target) Release/obj.target/contextify/src/contextify.o | |
In file included from ../src/contextify.cc:3: | |
../../nan/nan.h: In function 'void Nan::AsyncQueueWorker(Nan::AsyncWorker*)': | |
../../nan/nan.h:2298: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/contextify.cc: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE ContextifyContext::New(Nan::NAN_METHOD_ARGS_TYPE)': | |
../src/contextify.cc:62:74: warning: 'v8::Local<v8::Object> v8::Value::ToObject() const' is deprecated: Use maybe version [-Wdeprecated-declarations] | |
ContextifyContext* ctx = new ContextifyContext(info[0]->ToObject()); | |
^ | |
In file included from /usr/include/nodejs/src/node.h:63, | |
from ../src/contextify.cc:1: | |
/usr/include/nodejs/deps/v8/include/v8.h:10046:15: note: declared here | |
Local<Object> Value::ToObject() const { | |
^~~~~ | |
../src/contextify.cc: In static member function 'static v8::Local<v8::Context> ContextWrap::createV8Context(v8::Local<v8::Object>)': | |
../src/contextify.cc:131:68: error: no matching function for call to 'v8::Function::NewInstance()' | |
Local<Object> wrapper = Nan::New(constructor)->NewInstance(); | |
^ | |
In file included from /usr/include/nodejs/src/node.h:63, | |
from ../src/contextify.cc:1: | |
/usr/include/nodejs/deps/v8/include/v8.h:3993:44: note: candidate: 'v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>, int, v8::Local<v8::Value>*) const' | |
V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance( | |
^~~~~~~~~~~ | |
/usr/include/nodejs/deps/v8/include/v8.h:3993:44: note: candidate expects 3 arguments, 0 provided | |
/usr/include/nodejs/deps/v8/include/v8.h:3996:44: note: candidate: 'v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const' | |
V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance( | |
^~~~~~~~~~~ | |
/usr/include/nodejs/deps/v8/include/v8.h:3996:44: note: candidate expects 1 argument, 0 provided | |
../src/contextify.cc:150:16: error: 'class v8::ObjectTemplate' has no member named 'SetAccessCheckCallbacks'; did you mean 'SetAccessCheckCallback'? | |
otmpl->SetAccessCheckCallbacks(GlobalPropertyNamedAccessCheck, | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
SetAccessCheckCallback | |
../src/contextify.cc: In static member function 'static void ContextWrap::GlobalPropertyGetter(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Value>&)': | |
../src/contextify.cc:176:52: warning: 'v8::Local<v8::Object> v8::Value::ToObject() const' is deprecated: Use maybe version [-Wdeprecated-declarations] | |
Local<Object> data = info.Data()->ToObject(); | |
^ | |
In file included from /usr/include/nodejs/src/node.h:63, | |
from ../src/contextify.cc:1: | |
/usr/include/nodejs/deps/v8/include/v8.h:10046:15: note: declared here | |
Local<Object> Value::ToObject() const { | |
^~~~~ | |
../src/contextify.cc:182:80: error: no matching function for call to 'v8::Object::GetRealNamedProperty(v8::Local<v8::String>&)' | |
Local<Value> rv = Nan::New(ctx->sandbox)->GetRealNamedProperty(property); | |
^ | |
In file included from /usr/include/nodejs/src/node.h:63, | |
from ../src/contextify.cc:1: | |
/usr/include/nodejs/deps/v8/include/v8.h:3562:43: note: candidate: 'v8::MaybeLocal<v8::Value> v8::Object::GetRealNamedProperty(v8::Local<v8::Context>, v8::Local<v8::Name>)' | |
V8_WARN_UNUSED_RESULT MaybeLocal<Value> GetRealNamedProperty( | |
^~~~~~~~~~~~~~~~~~~~ | |
/usr/include/nodejs/deps/v8/include/v8.h:3562:43: note: candidate expects 2 arguments, 1 provided | |
../src/contextify.cc: In static member function 'static void ContextWrap::GlobalPropertySetter(v8::Local<v8::String>, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<v8::Value>&)': | |
../src/contextify.cc:192:52: warning: 'v8::Local<v8::Object> v8::Value::ToObject() const' is deprecated: Use maybe version [-Wdeprecated-declarations] | |
Local<Object> data = info.Data()->ToObject(); | |
^ | |
In file included from /usr/include/nodejs/src/node.h:63, | |
from ../src/contextify.cc:1: | |
/usr/include/nodejs/deps/v8/include/v8.h:10046:15: note: declared here | |
Local<Object> Value::ToObject() const { | |
^~~~~ | |
../src/contextify.cc: In static member function 'static void ContextWrap::GlobalPropertyQuery(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Integer>&)': | |
../src/contextify.cc:203:52: warning: 'v8::Local<v8::Object> v8::Value::ToObject() const' is deprecated: Use maybe version [-Wdeprecated-declarations] | |
Local<Object> data = info.Data()->ToObject(); | |
^ | |
In file included from /usr/include/nodejs/src/node.h:63, | |
from ../src/contextify.cc:1: | |
/usr/include/nodejs/deps/v8/include/v8.h:10046:15: note: declared here | |
Local<Object> Value::ToObject() const { | |
^~~~~ | |
../src/contextify.cc:209:67: error: no matching function for call to 'v8::Object::GetRealNamedProperty(v8::Local<v8::String>&)' | |
if (!Nan::New(ctx->sandbox)->GetRealNamedProperty(property).IsEmpty() || | |
^ | |
In file included from /usr/include/nodejs/src/node.h:63, | |
from ../src/contextify.cc:1: | |
/usr/include/nodejs/deps/v8/include/v8.h:3562:43: note: candidate: 'v8::MaybeLocal<v8::Value> v8::Object::GetRealNamedProperty(v8::Local<v8::Context>, v8::Local<v8::Name>)' | |
V8_WARN_UNUSED_RESULT MaybeLocal<Value> GetRealNamedProperty( | |
^~~~~~~~~~~~~~~~~~~~ | |
/usr/include/nodejs/deps/v8/include/v8.h:3562:43: note: candidate expects 2 arguments, 1 provided | |
../src/contextify.cc:210:71: error: no matching function for call to 'v8::Object::GetRealNamedProperty(v8::Local<v8::String>&)' | |
!Nan::New(ctx->proxyGlobal)->GetRealNamedProperty(property).IsEmpty()) { | |
^ | |
In file included from /usr/include/nodejs/src/node.h:63, | |
from ../src/contextify.cc:1: | |
/usr/include/nodejs/deps/v8/include/v8.h:3562:43: note: candidate: 'v8::MaybeLocal<v8::Value> v8::Object::GetRealNamedProperty(v8::Local<v8::Context>, v8::Local<v8::Name>)' | |
V8_WARN_UNUSED_RESULT MaybeLocal<Value> GetRealNamedProperty( | |
^~~~~~~~~~~~~~~~~~~~ | |
/usr/include/nodejs/deps/v8/include/v8.h:3562:43: note: candidate expects 2 arguments, 1 provided | |
../src/contextify.cc: In static member function 'static void ContextWrap::GlobalPropertyDeleter(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Boolean>&)': | |
../src/contextify.cc:218:52: warning: 'v8::Local<v8::Object> v8::Value::ToObject() const' is deprecated: Use maybe version [-Wdeprecated-declarations] | |
Local<Object> data = info.Data()->ToObject(); | |
^ | |
In file included from /usr/include/nodejs/src/node.h:63, | |
from ../src/contextify.cc:1: | |
/usr/include/nodejs/deps/v8/include/v8.h:10046:15: note: declared here | |
Local<Object> Value::ToObject() const { | |
^~~~~ | |
../src/contextify.cc: In static member function 'static void ContextWrap::GlobalPropertyEnumerator(const Nan::PropertyCallbackInfo<v8::Array>&)': | |
../src/contextify.cc:229:52: warning: 'v8::Local<v8::Object> v8::Value::ToObject() const' is deprecated: Use maybe version [-Wdeprecated-declarations] | |
Local<Object> data = info.Data()->ToObject(); | |
^ | |
In file included from /usr/include/nodejs/src/node.h:63, | |
from ../src/contextify.cc:1: | |
/usr/include/nodejs/deps/v8/include/v8.h:10046:15: note: declared here | |
Local<Object> Value::ToObject() const { | |
^~~~~ | |
../src/contextify.cc: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE ContextifyScript::RunInContext(Nan::NAN_METHOD_ARGS_TYPE)': | |
../src/contextify.cc:319:62: warning: 'v8::Local<v8::Object> v8::Value::ToObject() const' is deprecated: Use maybe version [-Wdeprecated-declarations] | |
if (!ContextifyContext::InstanceOf(info[0]->ToObject())) | |
^ | |
In file included from /usr/include/nodejs/src/node.h:63, | |
from ../src/contextify.cc:1: | |
/usr/include/nodejs/deps/v8/include/v8.h:10046:15: note: declared here | |
Local<Object> Value::ToObject() const { | |
^~~~~ | |
../src/contextify.cc:322:95: warning: 'v8::Local<v8::Object> v8::Value::ToObject() const' is deprecated: Use maybe version [-Wdeprecated-declarations] | |
ContextifyContext* ctx = Nan::ObjectWrap::Unwrap<ContextifyContext>(info[0]->ToObject()); | |
^ | |
In file included from /usr/include/nodejs/src/node.h:63, | |
from ../src/contextify.cc:1: | |
/usr/include/nodejs/deps/v8/include/v8.h:10046:15: note: declared here | |
Local<Object> Value::ToObject() const { | |
^~~~~ | |
In file included from ../src/contextify.cc:1: | |
../src/contextify.cc: At global scope: | |
/usr/include/nodejs/src/node.h:573:43: warning: cast between incompatible function types from 'void (*)(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), \\\n ^ | |
/usr/include/nodejs/src/node.h:607:3: note: in expansion of macro 'NODE_MODULE_X' | |
NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) | |
^~~~~~~~~~~~~ | |
../src/contextify.cc:361:5: note: in expansion of macro 'NODE_MODULE' | |
NODE_MODULE(contextify, init) | |
^~~~~~~~~~~ | |
In file included from /usr/include/nodejs/src/node.h:63, | |
from ../src/contextify.cc:1: | |
/usr/include/nodejs/deps/v8/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>&)]': | |
/usr/include/nodejs/src/node_object_wrap.h:84:78: required from here | |
/usr/include/nodejs/deps/v8/include/v8.h:9502: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); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/usr/include/nodejs/deps/v8/include/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:65:61: required from here | |
/usr/include/nodejs/deps/v8/include/v8.h:9502: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] | |
In file included from ../../nan/nan.h:2784, | |
from ../src/contextify.cc:3: | |
../../nan/nan_weak.h: In instantiation of 'Nan::WeakCallbackInfo<P>::WeakCallbackInfo(Nan::Persistent<v8::Value>*, Nan::WeakCallbackInfo<P>::Callback, void*, void*, void*) [with T = ContextWrap; Nan::WeakCallbackInfo<P>::Callback = void (*)(const Nan::WeakCallbackInfo<ContextWrap>&)]': | |
../../nan/nan_weak.h:264:12: required from 'void Nan::Persistent<T, M>::SetWeak(P*, typename Nan::WeakCallbackInfo<P>::Callback, Nan::WeakCallbackType) [with P = ContextWrap; T = v8::Object; M = v8::NonCopyablePersistentTraits<v8::Object>; typename Nan::WeakCallbackInfo<P>::Callback = void (*)(const Nan::WeakCallbackInfo<ContextWrap>&); Nan::WeakCallbackType = v8::WeakCallbackType]' | |
../src/contextify.cc:136:132: required from here | |
../../nan/nan_weak.h:58:16: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class v8::Persistent<v8::Value>' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] | |
std::memcpy(&persistent_, persistent, sizeof (v8::Persistent<v8::Value>)); | |
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
In file included from /usr/include/nodejs/src/node.h:63, | |
from ../src/contextify.cc:1: | |
/usr/include/nodejs/deps/v8/include/v8.h:685:35: note: 'class v8::Persistent<v8::Value>' declared here | |
template <class T, class M> class Persistent : public PersistentBase<T> { | |
^~~~~~~~~~ | |
/usr/include/nodejs/deps/v8/include/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::WeakCallbackInfo<ContextWrap>; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::WeakCallbackInfo<ContextWrap> >&)]': | |
../../nan/nan_weak.h:268:35: required from 'void Nan::Persistent<T, M>::SetWeak(P*, typename Nan::WeakCallbackInfo<P>::Callback, Nan::WeakCallbackType) [with P = ContextWrap; T = v8::Object; M = v8::NonCopyablePersistentTraits<v8::Object>; typename Nan::WeakCallbackInfo<P>::Callback = void (*)(const Nan::WeakCallbackInfo<ContextWrap>&); Nan::WeakCallbackType = v8::WeakCallbackType]' | |
../src/contextify.cc:136:132: required from here | |
/usr/include/nodejs/deps/v8/include/v8.h:9502:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<Nan::WeakCallbackInfo<ContextWrap> >::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<Nan::WeakCallbackInfo<ContextWrap> >&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type] | |
reinterpret_cast<Callback>(callback), type); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
make: *** [contextify.target.mk:103: Release/obj.target/contextify/src/contextify.o] Error 1 | |
make: Leaving directory '/usr/src/app/node_modules/contextify/build' | |
gyp ERR! build error | |
gyp ERR! stack Error: `make` failed with exit code: 2 | |
gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:262:23) | |
gyp ERR! stack at ChildProcess.emit (events.js:198:13) | |
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12) | |
gyp ERR! System Linux 4.15.0-101-generic | |
gyp ERR! command \"/usr/bin/node\" \"/usr/bin/node-gyp\" \"rebuild\" | |
gyp ERR! cwd /usr/src/app/node_modules/contextify | |
gyp ERR! node -v v10.21.0 | |
gyp ERR! node-gyp -v v3.8.0 | |
gyp ERR! not ok" | |
info This module is OPTIONAL, you can safely ignore this error | |
Done in 75.64s. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment