theia-ide / theia-ruby-extension

Theia extension to support Ruby.
Eclipse Public License 2.0
3 stars 7 forks source link

Docker build failing #10

Open digitalshow opened 4 years ago

digitalshow commented 4 years ago

I tried building an image using the Dockerfile, it fails, I attached the complete output.

I'm not much into Node.js, yarn and docker so I have no idea where to start looking for the issue.

Sending build context to Docker daemon  873.5kB
Step 1/18 : FROM alpine
latest: Pulling from library/alpine
cbdbe7a5bc2a: Already exists 
Digest: sha256:9a839e63dad54c3a6d1834e29692c8492d93f90c59c978c1ed79109ea4fb9a54
Status: Downloaded newer image for alpine:latest
 ---> f70734b6a266
Step 2/18 : USER root
 ---> Running in 7efc6d9b82c4
Removing intermediate container 7efc6d9b82c4
 ---> 94b4460d9c1f
Step 3/18 : RUN apk add python
 ---> Running in 4f9d2615b0a9
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/community/x86_64/APKINDEX.tar.gz
(1/9) Installing libbz2 (1.0.8-r1)
(2/9) Installing expat (2.2.9-r1)
(3/9) Installing libffi (3.2.1-r6)
(4/9) Installing gdbm (1.13-r1)
(5/9) Installing ncurses-terminfo-base (6.1_p20200118-r3)
(6/9) Installing ncurses-libs (6.1_p20200118-r3)
(7/9) Installing readline (8.0.1-r0)
(8/9) Installing sqlite-libs (3.30.1-r1)
(9/9) Installing python2 (2.7.16-r3)
Executing busybox-1.31.1-r9.trigger
OK: 46 MiB in 23 packages
Removing intermediate container 4f9d2615b0a9
 ---> bb4b074b015e
Step 4/18 : RUN apk add make
 ---> Running in 30eec1db7145
(1/1) Installing make (4.2.1-r2)
Executing busybox-1.31.1-r9.trigger
OK: 46 MiB in 24 packages
Removing intermediate container 30eec1db7145
 ---> fac95e6014f5
Step 5/18 : RUN apk add g++
 ---> Running in 411d36c10768
(1/13) Installing libgcc (9.2.0-r4)
(2/13) Installing libstdc++ (9.2.0-r4)
(3/13) Installing binutils (2.33.1-r0)
(4/13) Installing gmp (6.1.2-r1)
(5/13) Installing isl (0.18-r0)
(6/13) Installing libgomp (9.2.0-r4)
(7/13) Installing libatomic (9.2.0-r4)
(8/13) Installing mpfr4 (4.0.2-r1)
(9/13) Installing mpc1 (1.1.0-r1)
(10/13) Installing gcc (9.2.0-r4)
(11/13) Installing musl-dev (1.1.24-r2)
(12/13) Installing libc-dev (0.7.2-r0)
(13/13) Installing g++ (9.2.0-r4)
Executing busybox-1.31.1-r9.trigger
OK: 212 MiB in 37 packages
Removing intermediate container 411d36c10768
 ---> 57f8c36513eb
Step 6/18 : RUN apk add yarn
 ---> Running in e11b58701e6d
(1/6) Installing ca-certificates (20191127-r1)
(2/6) Installing c-ares (1.15.0-r0)
(3/6) Installing nghttp2-libs (1.40.0-r0)
(4/6) Installing libuv (1.34.0-r0)
(5/6) Installing nodejs (12.15.0-r1)
(6/6) Installing yarn (1.19.2-r0)
Executing busybox-1.31.1-r9.trigger
Executing ca-certificates-20191127-r1.trigger
OK: 246 MiB in 43 packages
Removing intermediate container e11b58701e6d
 ---> 2eac546d92d2
Step 7/18 : ENV PATH="/usr/bin:${PATH}"
 ---> Running in 94226816a5ab
Removing intermediate container 94226816a5ab
 ---> f65a83f0f19a
Step 8/18 : RUN apk add ruby
 ---> Running in 06d822882bd4
(1/3) Installing yaml (0.2.2-r1)
(2/3) Installing ruby-libs (2.6.6-r2)
(3/3) Installing ruby (2.6.6-r2)
Executing busybox-1.31.1-r9.trigger
OK: 258 MiB in 46 packages
Removing intermediate container 06d822882bd4
 ---> f7c1d3a676e0
Step 9/18 : RUN apk add ruby-dev
 ---> Running in 0ea150a4aaef
(1/4) Installing libgmpxx (6.1.2-r1)
(2/4) Installing gmp-dev (6.1.2-r1)
(3/4) Installing pkgconf (1.6.3-r0)
(4/4) Installing ruby-dev (2.6.6-r2)
Executing busybox-1.31.1-r9.trigger
OK: 261 MiB in 50 packages
Removing intermediate container 0ea150a4aaef
 ---> 3841cacf240c
Step 10/18 : RUN apk add zlib-dev
 ---> Running in cec5f49ea589
(1/1) Installing zlib-dev (1.2.11-r3)
OK: 261 MiB in 51 packages
Removing intermediate container cec5f49ea589
 ---> 1e88c0b20473
Step 11/18 : RUN gem install rdoc --no-document
 ---> Running in b55f974db0ad
Successfully installed rdoc-6.2.1
1 gem installed
Removing intermediate container b55f974db0ad
 ---> 221af2da2710
Step 12/18 : RUN gem install json
 ---> Running in c642e5d48079
Building native extensions. This could take a while...
Successfully installed json-2.3.0
Parsing documentation for json-2.3.0
Installing ri documentation for json-2.3.0
Done installing documentation for json after 1 seconds
1 gem installed
Removing intermediate container c642e5d48079
 ---> dc25191b6374
Step 13/18 : RUN gem install solargraph
 ---> Running in eea65c73cd97
Successfully installed backport-1.1.2
Successfully installed benchmark-0.1.0
Successfully installed bundler-2.1.4
Building native extensions. This could take a while...
Successfully installed jaro_winkler-1.5.4
Successfully installed maruku-0.7.3
Successfully installed mini_portile2-2.4.0
Building native extensions. This could take a while...
Successfully installed nokogiri-1.10.9
Successfully installed ast-2.4.0
Successfully installed parser-2.7.1.1
Successfully installed reverse_markdown-1.4.0
Successfully installed parallel-1.19.1
Successfully installed rainbow-3.0.0
Successfully installed ruby-progressbar-1.10.1
Successfully installed unicode-display_width-1.7.0
Successfully installed rubocop-0.82.0
Successfully installed thor-1.0.1
Successfully installed tilt-2.0.10
Successfully installed yard-0.9.24
Successfully installed solargraph-0.38.6
Parsing documentation for backport-1.1.2
Installing ri documentation for backport-1.1.2
Parsing documentation for benchmark-0.1.0
Installing ri documentation for benchmark-0.1.0
Parsing documentation for bundler-2.1.4
Installing ri documentation for bundler-2.1.4
Parsing documentation for jaro_winkler-1.5.4
Installing ri documentation for jaro_winkler-1.5.4
Parsing documentation for maruku-0.7.3
Installing ri documentation for maruku-0.7.3
Parsing documentation for mini_portile2-2.4.0
Installing ri documentation for mini_portile2-2.4.0
Parsing documentation for nokogiri-1.10.9
Installing ri documentation for nokogiri-1.10.9
Parsing documentation for ast-2.4.0
Installing ri documentation for ast-2.4.0
Parsing documentation for parser-2.7.1.1
Installing ri documentation for parser-2.7.1.1
Parsing documentation for reverse_markdown-1.4.0
Installing ri documentation for reverse_markdown-1.4.0
Parsing documentation for parallel-1.19.1
Installing ri documentation for parallel-1.19.1
Parsing documentation for rainbow-3.0.0
Installing ri documentation for rainbow-3.0.0
Parsing documentation for ruby-progressbar-1.10.1
Installing ri documentation for ruby-progressbar-1.10.1
Parsing documentation for unicode-display_width-1.7.0
Installing ri documentation for unicode-display_width-1.7.0
Parsing documentation for rubocop-0.82.0
Installing ri documentation for rubocop-0.82.0
Parsing documentation for thor-1.0.1
Installing ri documentation for thor-1.0.1
Parsing documentation for tilt-2.0.10
Installing ri documentation for tilt-2.0.10
Parsing documentation for yard-0.9.24
Installing ri documentation for yard-0.9.24
Parsing documentation for solargraph-0.38.6
Installing ri documentation for solargraph-0.38.6
Done installing documentation for backport, benchmark, bundler, jaro_winkler, maruku, mini_portile2, nokogiri, ast, parser, reverse_markdown, parallel, rainbow, ruby-progressbar, unicode-display_width, rubocop, thor, tilt, yard, solargraph after 44 seconds
19 gems installed
Removing intermediate container eea65c73cd97
 ---> 9a37e66b1e61
Step 14/18 : COPY . /ruby-ide/theia-ruby-extension
 ---> 245c2dfc75c6
Step 15/18 : WORKDIR /ruby-ide/theia-ruby-extension
 ---> Running in baccc499e329
Removing intermediate container baccc499e329
 ---> ed4c5b265420
Step 16/18 : RUN yarn
 ---> Running in 1ea7b3f27777
yarn install v1.19.2
[1/4] Resolving packages...
[2/4] Fetching packages...
warning Pattern ["rimraf@latest"] is trying to unpack in the same destination "/usr/local/share/.cache/yarn/v6/npm-rimraf-2.6.3-b2d104fe0d8fb27cf9e0a1cda8262dd3833c6cab-integrity/node_modules/rimraf" as pattern ["rimraf@^2.6.1","rimraf@^2.2.8","rimraf@^2.6.2","rimraf@^2.6.2","rimraf@^2.6.2","rimraf@2","rimraf@^2.6.2","rimraf@^2.5.4","rimraf@2","rimraf@^2.6.2","rimraf@^2.2.8","rimraf@^2.5.4","rimraf@^2.6.1"]. This could result in non-deterministic behavior, skipping.
warning Pattern ["@theia/filesystem@next"] is trying to unpack in the same destination "/usr/local/share/.cache/yarn/v6/npm-@theia-filesystem-0.4.0-next.5967a992-38b3d43518843b2f51d7775f96c093a2d2ad9498-integrity/node_modules/@theia/filesystem" as pattern ["@theia/filesystem@0.4.0-next.5967a992","@theia/filesystem@0.4.0-next.5967a992","@theia/filesystem@0.4.0-next.5967a992","@theia/filesystem@0.4.0-next.5967a992","@theia/filesystem@0.4.0-next.5967a992","@theia/filesystem@0.4.0-next.5967a992","@theia/filesystem@0.4.0-next.5967a992","@theia/filesystem@0.4.0-next.5967a992","@theia/filesystem@0.4.0-next.5967a992","@theia/filesystem@0.4.0-next.5967a992","@theia/filesystem@0.4.0-next.5967a992"]. This could result in non-deterministic behavior, skipping.
warning Pattern ["@theia/workspace@next"] is trying to unpack in the same destination "/usr/local/share/.cache/yarn/v6/npm-@theia-workspace-0.4.0-next.5967a992-542190955e9a7b66a97edf025c9ccbb9a7100230-integrity/node_modules/@theia/workspace" as pattern ["@theia/workspace@0.4.0-next.5967a992","@theia/workspace@0.4.0-next.5967a992","@theia/workspace@0.4.0-next.5967a992","@theia/workspace@0.4.0-next.5967a992","@theia/workspace@0.4.0-next.5967a992","@theia/workspace@0.4.0-next.5967a992","@theia/workspace@0.4.0-next.5967a992","@theia/workspace@0.4.0-next.5967a992","@theia/workspace@0.4.0-next.5967a992","@theia/workspace@0.4.0-next.5967a992"]. This could result in non-deterministic behavior, skipping.
warning Pattern ["@theia/navigator@next"] is trying to unpack in the same destination "/usr/local/share/.cache/yarn/v6/npm-@theia-navigator-0.4.0-next.5967a992-aa28eea7e5e6c61880b2dd7881f701e36aa6d0da-integrity/node_modules/@theia/navigator" as pattern ["@theia/navigator@0.4.0-next.5967a992","@theia/navigator@0.4.0-next.5967a992"]. This could result in non-deterministic behavior, skipping.
warning Pattern ["@theia/process@next"] is trying to unpack in the same destination "/usr/local/share/.cache/yarn/v6/npm-@theia-process-0.4.0-next.5967a992-6d1bd9587a0aef173f6fc6483dbfa53bb5149082-integrity/node_modules/@theia/process" as pattern ["@theia/process@0.4.0-next.5967a992","@theia/process@0.4.0-next.5967a992","@theia/process@0.4.0-next.5967a992"]. This could result in non-deterministic behavior, skipping.
warning Pattern ["@theia/editor@next"] is trying to unpack in the same destination "/usr/local/share/.cache/yarn/v6/npm-@theia-editor-0.4.0-next.5967a992-985106e23a9b6627b11744bd8b88a0cdf8d86b72-integrity/node_modules/@theia/editor" as pattern ["@theia/editor@0.4.0-next.5967a992","@theia/editor@0.4.0-next.5967a992","@theia/editor@0.4.0-next.5967a992"]. This could result in non-deterministic behavior, skipping.
warning Pattern ["@theia/languages@next"] is trying to unpack in the same destination "/usr/local/share/.cache/yarn/v6/npm-@theia-languages-0.4.0-next.5967a992-ad100822e90f3cc4bb31e76f2c4e140da709d809-integrity/node_modules/@theia/languages" as pattern ["@theia/languages@0.4.0-next.5967a992","@theia/languages@0.4.0-next.5967a992","@theia/languages@0.4.0-next.5967a992","@theia/languages@0.4.0-next.5967a992","@theia/languages@0.4.0-next.5967a992"]. This could result in non-deterministic behavior, skipping.
warning Pattern ["@theia/markers@next"] is trying to unpack in the same destination "/usr/local/share/.cache/yarn/v6/npm-@theia-markers-0.4.0-next.5967a992-17ff621e625b21fdf73b1b5eef3b7bf2688bbc30-integrity/node_modules/@theia/markers" as pattern ["@theia/markers@0.4.0-next.5967a992","@theia/markers@0.4.0-next.5967a992"]. This could result in non-deterministic behavior, skipping.
warning monaco-languageclient@0.9.0: The engine "vscode" appears to be invalid.
warning vscode-base-languageclient@4.4.0: The engine "vscode" appears to be invalid.
info fsevents@1.2.7: The platform "linux" is incompatible with this module.
info "fsevents@1.2.7" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "workspace-aggregator-42580b4e-4252-4976-b394-996b9f300c8d > browser-app > @theia/cli > @theia/application-manager > font-awesome-webpack@0.0.5-beta.2" has unmet peer dependency "font-awesome@>=4.3.0".
[4/4] Building fresh packages...
error /ruby-ide/theia-ruby-extension/node_modules/@theia/node-pty: Command failed.
Exit code: 1
Command: node scripts/install.js
Arguments: 
Directory: /ruby-ide/theia-ruby-extension/node_modules/@theia/node-pty
Output:
gyp info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@12.15.0 | linux | x64
gyp http GET https://nodejs.org/download/release/v12.15.0/node-v12.15.0-headers.tar.gz
gyp http 200 https://nodejs.org/download/release/v12.15.0/node-v12.15.0-headers.tar.gz
gyp http GET https://nodejs.org/download/release/v12.15.0/SHASUMS256.txt
gyp http 200 https://nodejs.org/download/release/v12.15.0/SHASUMS256.txt
gyp info spawn /usr/bin/python2
gyp info spawn args [
gyp info spawn args   '/ruby-ide/theia-ruby-extension/node_modules/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   '/ruby-ide/theia-ruby-extension/node_modules/@theia/node-pty/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/ruby-ide/theia-ruby-extension/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/root/.node-gyp/12.15.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/root/.node-gyp/12.15.0',
gyp info spawn args   '-Dnode_gyp_dir=/ruby-ide/theia-ruby-extension/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/root/.node-gyp/12.15.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/ruby-ide/theia-ruby-extension/node_modules/@theia/node-pty',
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 args ]
make: Entering directory '/ruby-ide/theia-ruby-extension/node_modules/@theia/node-pty/build'
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
  CXX(target) Release/obj.target/pty/src/unix/pty.o
In file included from ../node_modules/nan/nan_converters.h:67,
                 from ../node_modules/nan/nan.h:202,
                 from ../src/unix/pty.cc:20:
../node_modules/nan/nan_converters_43_inl.h: In static member function 'static Nan::imp::ToFactoryBase<v8::Boolean>::return_t Nan::imp::ToFactory<v8::Boolean>::convert(v8::Local<v8::Value>)':
../node_modules/nan/nan_converters_43_inl.h:18:51: warning: 'v8::MaybeLocal<v8::Boolean> v8::Value::ToBoolean(v8::Local<v8::Context>) const' is deprecated: ToBoolean can never throw. Use Local version. [-Wdeprecated-declarations]
   18 |       val->To ## TYPE(isolate->GetCurrentContext())                            \
      |                                                   ^
../node_modules/nan/nan_converters_43_inl.h:22:1: note: in expansion of macro 'X'
   22 | X(Boolean)
      | ^
In file included from /root/.node-gyp/12.15.0/include/node/v8-internal.h:14,
                 from /root/.node-gyp/12.15.0/include/node/v8.h:25,
                 from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:2568:59: note: declared here
 2568 |                 V8_WARN_UNUSED_RESULT MaybeLocal<Boolean> ToBoolean(
      |                                                           ^~~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED'
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
In file included from ../node_modules/nan/nan_converters.h:67,
                 from ../node_modules/nan/nan.h:202,
                 from ../src/unix/pty.cc:20:
../node_modules/nan/nan_converters_43_inl.h: In static member function 'static Nan::imp::ValueFactoryBase<bool>::return_t Nan::imp::ToFactory<bool>::convert(v8::Local<v8::Value>)':
../node_modules/nan/nan_converters_43_inl.h:37:57: warning: 'v8::Maybe<bool> v8::Value::BooleanValue(v8::Local<v8::Context>) const' is deprecated: BooleanValue can never throw. Use Isolate version. [-Wdeprecated-declarations]
   37 |   return val->NAME ## Value(isolate->GetCurrentContext());                     \
      |                                                         ^
../node_modules/nan/nan_converters_43_inl.h:40:1: note: in expansion of macro 'X'
   40 | X(bool, Boolean)
      | ^
In file included from /root/.node-gyp/12.15.0/include/node/v8-internal.h:14,
                 from /root/.node-gyp/12.15.0/include/node/v8.h:25,
                 from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:2606:51: note: declared here
 2606 |                 V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(
      |                                                   ^~~~~~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED'
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
In file included from ../node_modules/nan/nan_new.h:189,
                 from ../node_modules/nan/nan.h:203,
                 from ../src/unix/pty.cc:20:
../node_modules/nan/nan_implementation_12_inl.h: In static member function 'static Nan::imp::FactoryBase<v8::Function>::return_t Nan::imp::Factory<v8::Function>::New(Nan::FunctionCallback, v8::Local<v8::Value>)':
../node_modules/nan/nan_implementation_12_inl.h:103:42: error: cannot convert 'v8::Isolate*' to 'v8::Local<v8::Context>'
  103 |   return scope.Escape(v8::Function::New( isolate
      |                                          ^~~~~~~
      |                                          |
      |                                          v8::Isolate*
In file included from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:4171:22: note:   initializing argument 1 of 'static v8::MaybeLocal<v8::Function> v8::Function::New(v8::Local<v8::Context>, v8::FunctionCallback, v8::Local<v8::Value>, int, v8::ConstructorBehavior, v8::SideEffectType)'
 4171 |       Local<Context> context, FunctionCallback callback,
      |       ~~~~~~~~~~~~~~~^~~~~~~
In file included from ../node_modules/nan/nan_new.h:189,
                 from ../node_modules/nan/nan.h:203,
                 from ../src/unix/pty.cc:20:
../node_modules/nan/nan_implementation_12_inl.h: In static member function 'static Nan::imp::FactoryBase<v8::StringObject>::return_t Nan::imp::Factory<v8::StringObject>::New(v8::Local<v8::String>)':
../node_modules/nan/nan_implementation_12_inl.h:337:37: error: no matching function for call to 'v8::StringObject::New(v8::Local<v8::String>&)'
  337 |   return v8::StringObject::New(value).As<v8::StringObject>();
      |                                     ^
In file included from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:5426:23: note: candidate: 'static v8::Local<v8::Value> v8::StringObject::New(v8::Isolate*, v8::Local<v8::String>)'
 5426 |   static Local<Value> New(Isolate* isolate, Local<String> value);
      |                       ^~~
/root/.node-gyp/12.15.0/include/node/v8.h:5426:23: note:   candidate expects 2 arguments, 1 provided
In file included from ../node_modules/nan/nan_new.h:189,
                 from ../node_modules/nan/nan.h:203,
                 from ../src/unix/pty.cc:20:
../node_modules/nan/nan_implementation_12_inl.h:337:58: error: expected primary-expression before '>' token
  337 |   return v8::StringObject::New(value).As<v8::StringObject>();
      |                                                          ^
../node_modules/nan/nan_implementation_12_inl.h:337:60: error: expected primary-expression before ')' token
  337 |   return v8::StringObject::New(value).As<v8::StringObject>();
      |                                                            ^
In file included from ../src/unix/pty.cc:20:
../node_modules/nan/nan.h: In constructor 'Nan::Utf8String::Utf8String(v8::Local<v8::Value>)':
../node_modules/nan/nan.h:1034:53: error: no matching function for call to 'v8::Value::ToString()'
 1034 |       v8::Local<v8::String> string = from->ToString();
      |                                                     ^
In file included from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:2572:44: note: candidate: 'v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const'
 2572 |   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
      |                                            ^~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8.h:2572:44: note:   candidate expects 1 argument, 0 provided
In file included from /root/.node-gyp/12.15.0/include/node/v8-internal.h:14,
                 from /root/.node-gyp/12.15.0/include/node/v8.h:25,
                 from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:2588:31: note: candidate: 'v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const'
 2588 |                 Local<String> ToString(Isolate* isolate) const);
      |                               ^~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED'
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8.h:2588:31: note:   candidate expects 1 argument, 0 provided
 2588 |                 Local<String> ToString(Isolate* isolate) const);
      |                               ^~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED'
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
In file included from ../src/unix/pty.cc:20:
../node_modules/nan/nan.h:1044:37: error: cannot convert 'char*' to 'v8::Isolate*'
 1044 |         length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
      |                                     ^~~~
      |                                     |
      |                                     char*
In file included from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:2782:26: note:   initializing argument 1 of 'int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const'
 2782 |   int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
      |                 ~~~~~~~~~^~~~~~~
In file included from ../src/unix/pty.cc:20:
../node_modules/nan/nan.h: In member function 'void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)':
../node_modules/nan/nan.h:1818:64: warning: 'bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)' is deprecated: Use maybe version [-Wdeprecated-declarations]
 1818 |     New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
      |                                                                ^
In file included from /root/.node-gyp/12.15.0/include/node/v8-internal.h:14,
                 from /root/.node-gyp/12.15.0/include/node/v8.h:25,
                 from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:3403:22: note: declared here
 3403 |                 bool Set(Local<Value> key, Local<Value> value));
      |                      ^~~
/root/.node-gyp/12.15.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED'
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
In file included from ../src/unix/pty.cc:20:
../node_modules/nan/nan.h: In member function 'void Nan::AsyncWorker::SaveToPersistent(const v8::Local<v8::String>&, const v8::Local<v8::Value>&)':
../node_modules/nan/nan.h:1824:42: warning: 'bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)' is deprecated: Use maybe version [-Wdeprecated-declarations]
 1824 |     New(persistentHandle)->Set(key, value);
      |                                          ^
In file included from /root/.node-gyp/12.15.0/include/node/v8-internal.h:14,
                 from /root/.node-gyp/12.15.0/include/node/v8.h:25,
                 from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:3403:22: note: declared here
 3403 |                 bool Set(Local<Value> key, Local<Value> value));
      |                      ^~~
/root/.node-gyp/12.15.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED'
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
In file included from ../src/unix/pty.cc:20:
../node_modules/nan/nan.h: In member function 'void Nan::AsyncWorker::SaveToPersistent(uint32_t, const v8::Local<v8::Value>&)':
../node_modules/nan/nan.h:1830:44: warning: 'bool v8::Object::Set(uint32_t, v8::Local<v8::Value>)' is deprecated: Use maybe version [-Wdeprecated-declarations]
 1830 |     New(persistentHandle)->Set(index, value);
      |                                            ^
In file included from /root/.node-gyp/12.15.0/include/node/v8-internal.h:14,
                 from /root/.node-gyp/12.15.0/include/node/v8.h:25,
                 from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:3412:22: note: declared here
 3412 |                 bool Set(uint32_t index, Local<Value> value));
      |                      ^~~
/root/.node-gyp/12.15.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED'
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
In file included from ../src/unix/pty.cc:20:
../node_modules/nan/nan.h: In member function 'v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const':
../node_modules/nan/nan.h:1836:61: warning: 'v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)' is deprecated: Use maybe version [-Wdeprecated-declarations]
 1836 |         New(persistentHandle)->Get(New(key).ToLocalChecked()));
      |                                                             ^
In file included from /root/.node-gyp/12.15.0/include/node/v8-internal.h:14,
                 from /root/.node-gyp/12.15.0/include/node/v8.h:25,
                 from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:3457:51: note: declared here
 3457 |   V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
      |                                                   ^~~
/root/.node-gyp/12.15.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED'
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
In file included from ../src/unix/pty.cc:20:
../node_modules/nan/nan.h: In member function 'v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const v8::Local<v8::String>&) const':
../node_modules/nan/nan.h:1842:55: warning: 'v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)' is deprecated: Use maybe version [-Wdeprecated-declarations]
 1842 |     return scope.Escape(New(persistentHandle)->Get(key));
      |                                                       ^
In file included from /root/.node-gyp/12.15.0/include/node/v8-internal.h:14,
                 from /root/.node-gyp/12.15.0/include/node/v8.h:25,
                 from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:3457:51: note: declared here
 3457 |   V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
      |                                                   ^~~
/root/.node-gyp/12.15.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED'
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
In file included from ../src/unix/pty.cc:20:
../node_modules/nan/nan.h: In member function 'v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(uint32_t) const':
../node_modules/nan/nan.h:1847:57: warning: 'v8::Local<v8::Value> v8::Object::Get(uint32_t)' is deprecated: Use maybe version [-Wdeprecated-declarations]
 1847 |     return scope.Escape(New(persistentHandle)->Get(index));
      |                                                         ^
In file included from /root/.node-gyp/12.15.0/include/node/v8-internal.h:14,
                 from /root/.node-gyp/12.15.0/include/node/v8.h:25,
                 from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:3461:51: note: declared here
 3461 |   V8_DEPRECATED("Use maybe version", Local<Value> Get(uint32_t index));
      |                                                   ^~~
/root/.node-gyp/12.15.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED'
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
In file included from ../src/unix/pty.cc:20:
../node_modules/nan/nan.h: In function 'void Nan::AsyncQueueWorker(Nan::AsyncWorker*)':
../node_modules/nan/nan.h:2167: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]
 2167 |     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
      |                                                              ^
In file included from /usr/include/c++/9.2.0/cassert:44,
                 from /root/.node-gyp/12.15.0/include/node/node_object_wrap.h:26,
                 from ../node_modules/nan/nan.h:53,
                 from ../src/unix/pty.cc:20:
../node_modules/nan/nan_object_wrap.h: In destructor 'virtual Nan::ObjectWrap::~ObjectWrap()':
../node_modules/nan/nan_object_wrap.h:24:25: error: 'class Nan::Persistent<v8::Object>' has no member named 'IsNearDeath'
   24 |     assert(persistent().IsNearDeath());
      |                         ^~~~~~~~~~~
In file included from ../node_modules/nan/nan.h:2657,
                 from ../src/unix/pty.cc:20:
../node_modules/nan/nan_object_wrap.h: In member function 'void Nan::ObjectWrap::MakeWeak()':
../node_modules/nan/nan_object_wrap.h:67:34: warning: 'void v8::PersistentBase<T>::MarkIndependent() [with T = v8::Object]' is deprecated: Weak objects are always considered independent. Use TracedGlobal when trying to use EmbedderHeapTracer. Use a strong handle when trying to keep an object alive. [-Wdeprecated-declarations]
   67 |     persistent().MarkIndependent();
      |                                  ^
In file included from /root/.node-gyp/12.15.0/include/node/v8-internal.h:14,
                 from /root/.node-gyp/12.15.0/include/node/v8.h:25,
                 from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:567:22: note: declared here
  567 |       V8_INLINE void MarkIndependent());
      |                      ^~~~~~~~~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED'
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
In file included from /usr/include/c++/9.2.0/cassert:44,
                 from /root/.node-gyp/12.15.0/include/node/node_object_wrap.h:26,
                 from ../node_modules/nan/nan.h:53,
                 from ../src/unix/pty.cc:20:
../node_modules/nan/nan_object_wrap.h: In static member function 'static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)':
../node_modules/nan/nan_object_wrap.h:124:26: error: 'class Nan::Persistent<v8::Object>' has no member named 'IsNearDeath'
  124 |     assert(wrap->handle_.IsNearDeath());
      |                          ^~~~~~~~~~~
../src/unix/pty.cc: In function 'Nan::NAN_METHOD_RETURN_TYPE PtyFork(Nan::NAN_METHOD_ARGS_TYPE)':
../src/unix/pty.cc:185:48: error: no matching function for call to 'v8::Value::ToString()'
  185 |   v8::String::Utf8Value file(info[0]->ToString());
      |                                                ^
In file included from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:2572:44: note: candidate: 'v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const'
 2572 |   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
      |                                            ^~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8.h:2572:44: note:   candidate expects 1 argument, 0 provided
In file included from /root/.node-gyp/12.15.0/include/node/v8-internal.h:14,
                 from /root/.node-gyp/12.15.0/include/node/v8.h:25,
                 from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:2588:31: note: candidate: 'v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const'
 2588 |                 Local<String> ToString(Isolate* isolate) const);
      |                               ^~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED'
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8.h:2588:31: note:   candidate expects 1 argument, 0 provided
 2588 |                 Local<String> ToString(Isolate* isolate) const);
      |                               ^~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED'
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
../src/unix/pty.cc:196:66: warning: 'v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)' is deprecated: Use maybe version [-Wdeprecated-declarations]
  196 |     v8::String::Utf8Value arg(argv_->Get(Nan::New<v8::Integer>(i))->ToString());
      |                                                                  ^
In file included from /root/.node-gyp/12.15.0/include/node/v8-internal.h:14,
                 from /root/.node-gyp/12.15.0/include/node/v8.h:25,
                 from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:3457:51: note: declared here
 3457 |   V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
      |                                                   ^~~
/root/.node-gyp/12.15.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED'
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
../src/unix/pty.cc:196:78: error: no matching function for call to 'v8::Value::ToString()'
  196 |     v8::String::Utf8Value arg(argv_->Get(Nan::New<v8::Integer>(i))->ToString());
      |                                                                              ^
In file included from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:2572:44: note: candidate: 'v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const'
 2572 |   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
      |                                            ^~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8.h:2572:44: note:   candidate expects 1 argument, 0 provided
In file included from /root/.node-gyp/12.15.0/include/node/v8-internal.h:14,
                 from /root/.node-gyp/12.15.0/include/node/v8.h:25,
                 from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:2588:31: note: candidate: 'v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const'
 2588 |                 Local<String> ToString(Isolate* isolate) const);
      |                               ^~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED'
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8.h:2588:31: note:   candidate expects 1 argument, 0 provided
 2588 |                 Local<String> ToString(Isolate* isolate) const);
      |                               ^~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED'
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
../src/unix/pty.cc:207:66: warning: 'v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)' is deprecated: Use maybe version [-Wdeprecated-declarations]
  207 |     v8::String::Utf8Value pair(env_->Get(Nan::New<v8::Integer>(i))->ToString());
      |                                                                  ^
In file included from /root/.node-gyp/12.15.0/include/node/v8-internal.h:14,
                 from /root/.node-gyp/12.15.0/include/node/v8.h:25,
                 from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:3457:51: note: declared here
 3457 |   V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
      |                                                   ^~~
/root/.node-gyp/12.15.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED'
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
../src/unix/pty.cc:207:78: error: no matching function for call to 'v8::Value::ToString()'
  207 |     v8::String::Utf8Value pair(env_->Get(Nan::New<v8::Integer>(i))->ToString());
      |                                                                              ^
In file included from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:2572:44: note: candidate: 'v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const'
 2572 |   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
      |                                            ^~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8.h:2572:44: note:   candidate expects 1 argument, 0 provided
In file included from /root/.node-gyp/12.15.0/include/node/v8-internal.h:14,
                 from /root/.node-gyp/12.15.0/include/node/v8.h:25,
                 from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:2588:31: note: candidate: 'v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const'
 2588 |                 Local<String> ToString(Isolate* isolate) const);
      |                               ^~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED'
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8.h:2588:31: note:   candidate expects 1 argument, 0 provided
 2588 |                 Local<String> ToString(Isolate* isolate) const);
      |                               ^~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED'
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
../src/unix/pty.cc:212:48: error: no matching function for call to 'v8::Value::ToString()'
  212 |   v8::String::Utf8Value cwd_(info[3]->ToString());
      |                                                ^
In file included from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:2572:44: note: candidate: 'v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const'
 2572 |   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
      |                                            ^~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8.h:2572:44: note:   candidate expects 1 argument, 0 provided
In file included from /root/.node-gyp/12.15.0/include/node/v8-internal.h:14,
                 from /root/.node-gyp/12.15.0/include/node/v8.h:25,
                 from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:2588:31: note: candidate: 'v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const'
 2588 |                 Local<String> ToString(Isolate* isolate) const);
      |                               ^~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED'
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8.h:2588:31: note:   candidate expects 1 argument, 0 provided
 2588 |                 Local<String> ToString(Isolate* isolate) const);
      |                               ^~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED'
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
../src/unix/pty.cc:217:39: error: no matching function for call to 'v8::Value::IntegerValue()'
  217 |   winp.ws_col = info[4]->IntegerValue();
      |                                       ^
In file included from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:2609:40: note: candidate: 'v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const'
 2609 |   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
      |                                        ^~~~~~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8.h:2609:40: note:   candidate expects 1 argument, 0 provided
../src/unix/pty.cc:218:39: error: no matching function for call to 'v8::Value::IntegerValue()'
  218 |   winp.ws_row = info[5]->IntegerValue();
      |                                       ^
In file included from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:2609:40: note: candidate: 'v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const'
 2609 |   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
      |                                        ^~~~~~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8.h:2609:40: note:   candidate expects 1 argument, 0 provided
../src/unix/pty.cc:226:26: error: no matching function for call to 'v8::Value::ToBoolean()'
  226 |   if (info[8]->ToBoolean()->Value()) {
      |                          ^
In file included from /root/.node-gyp/12.15.0/include/node/v8-internal.h:14,
                 from /root/.node-gyp/12.15.0/include/node/v8.h:25,
                 from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:2568:59: note: candidate: 'v8::MaybeLocal<v8::Boolean> v8::Value::ToBoolean(v8::Local<v8::Context>) const'
 2568 |                 V8_WARN_UNUSED_RESULT MaybeLocal<Boolean> ToBoolean(
      |                                                           ^~~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED'
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8.h:2568:59: note:   candidate expects 1 argument, 0 provided
 2568 |                 V8_WARN_UNUSED_RESULT MaybeLocal<Boolean> ToBoolean(
      |                                                           ^~~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED'
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
In file included from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:2584:18: note: candidate: 'v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const'
 2584 |   Local<Boolean> ToBoolean(Isolate* isolate) const;
      |                  ^~~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8.h:2584:18: note:   candidate expects 1 argument, 0 provided
../src/unix/pty.cc:261:35: error: no matching function for call to 'v8::Value::IntegerValue()'
  261 |   int uid = info[6]->IntegerValue();
      |                                   ^
In file included from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:2609:40: note: candidate: 'v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const'
 2609 |   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
      |                                        ^~~~~~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8.h:2609:40: note:   candidate expects 1 argument, 0 provided
../src/unix/pty.cc:262:35: error: no matching function for call to 'v8::Value::IntegerValue()'
  262 |   int gid = info[7]->IntegerValue();
      |                                   ^
In file included from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:2609:40: note: candidate: 'v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const'
 2609 |   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
      |                                        ^~~~~~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8.h:2609:40: note:   candidate expects 1 argument, 0 provided
../src/unix/pty.cc: In function 'Nan::NAN_METHOD_RETURN_TYPE PtyOpen(Nan::NAN_METHOD_ARGS_TYPE)':
../src/unix/pty.cc:422:39: error: no matching function for call to 'v8::Value::IntegerValue()'
  422 |   winp.ws_col = info[0]->IntegerValue();
      |                                       ^
In file included from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:2609:40: note: candidate: 'v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const'
 2609 |   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
      |                                        ^~~~~~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8.h:2609:40: note:   candidate expects 1 argument, 0 provided
../src/unix/pty.cc:423:39: error: no matching function for call to 'v8::Value::IntegerValue()'
  423 |   winp.ws_row = info[1]->IntegerValue();
      |                                       ^
In file included from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:2609:40: note: candidate: 'v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const'
 2609 |   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
      |                                        ^~~~~~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8.h:2609:40: note:   candidate expects 1 argument, 0 provided
../src/unix/pty.cc: In function 'Nan::NAN_METHOD_RETURN_TYPE PtyResize(Nan::NAN_METHOD_ARGS_TYPE)':
../src/unix/pty.cc:467:34: error: no matching function for call to 'v8::Value::IntegerValue()'
  467 |   int fd = info[0]->IntegerValue();
      |                                  ^
In file included from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:2609:40: note: candidate: 'v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const'
 2609 |   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
      |                                        ^~~~~~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8.h:2609:40: note:   candidate expects 1 argument, 0 provided
../src/unix/pty.cc:470:39: error: no matching function for call to 'v8::Value::IntegerValue()'
  470 |   winp.ws_col = info[1]->IntegerValue();
      |                                       ^
In file included from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:2609:40: note: candidate: 'v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const'
 2609 |   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
      |                                        ^~~~~~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8.h:2609:40: note:   candidate expects 1 argument, 0 provided
../src/unix/pty.cc:471:39: error: no matching function for call to 'v8::Value::IntegerValue()'
  471 |   winp.ws_row = info[2]->IntegerValue();
      |                                       ^
In file included from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:2609:40: note: candidate: 'v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const'
 2609 |   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
      |                                        ^~~~~~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8.h:2609:40: note:   candidate expects 1 argument, 0 provided
../src/unix/pty.cc: In function 'Nan::NAN_METHOD_RETURN_TYPE PtyGetProc(Nan::NAN_METHOD_ARGS_TYPE)':
../src/unix/pty.cc:494:34: error: no matching function for call to 'v8::Value::IntegerValue()'
  494 |   int fd = info[0]->IntegerValue();
      |                                  ^
In file included from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:2609:40: note: candidate: 'v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const'
 2609 |   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
      |                                        ^~~~~~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8.h:2609:40: note:   candidate expects 1 argument, 0 provided
../src/unix/pty.cc:496:48: error: no matching function for call to 'v8::Value::ToString()'
  496 |   v8::String::Utf8Value tty_(info[1]->ToString());
      |                                                ^
In file included from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:2572:44: note: candidate: 'v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const'
 2572 |   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
      |                                            ^~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8.h:2572:44: note:   candidate expects 1 argument, 0 provided
In file included from /root/.node-gyp/12.15.0/include/node/v8-internal.h:14,
                 from /root/.node-gyp/12.15.0/include/node/v8.h:25,
                 from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:2588:31: note: candidate: 'v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const'
 2588 |                 Local<String> ToString(Isolate* isolate) const);
      |                               ^~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED'
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8.h:2588:31: note:   candidate expects 1 argument, 0 provided
 2588 |                 Local<String> ToString(Isolate* isolate) const);
      |                               ^~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED'
  311 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
../src/unix/pty.cc: In function 'void pty_after_waitpid(uv_async_t*)':
../src/unix/pty.cc:595:43: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class Nan::Persistent<v8::Function>' with no trivial copy-assignment [-Wclass-memaccess]
  595 |   memset(&baton->cb, -1, sizeof(baton->cb));
      |                                           ^
In file included from ../node_modules/nan/nan.h:318,
                 from ../src/unix/pty.cc:20:
../node_modules/nan/nan_persistent_12_inl.h:12:40: note: 'class Nan::Persistent<v8::Function>' declared here
   12 | template<typename T, typename M> class Persistent :
      |                                        ^~~~~~~~~~
../src/unix/pty.cc:596:69: warning: 'v8::Local<v8::Value> Nan::Callback::Call(v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
  596 |   Nan::Callback(cb).Call(Nan::GetCurrentContext()->Global(), 2, argv);
      |                                                                     ^
In file included from ../src/unix/pty.cc:20:
../node_modules/nan/nan.h:1596:3: note: declared here
 1596 |   Call(v8::Local<v8::Object> target
      |   ^~~~
../src/unix/pty.cc: In function 'void init(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)':
../src/unix/pty.cc:812:65: error: no matching function for call to 'v8::FunctionTemplate::GetFunction()'
  812 |            Nan::New<v8::FunctionTemplate>(PtyFork)->GetFunction());
      |                                                                 ^
In file included from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:5995:46: note: candidate: 'v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)'
 5995 |   V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
      |                                              ^~~~~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8.h:5995:46: note:   candidate expects 1 argument, 0 provided
../src/unix/pty.cc:815:65: error: no matching function for call to 'v8::FunctionTemplate::GetFunction()'
  815 |            Nan::New<v8::FunctionTemplate>(PtyOpen)->GetFunction());
      |                                                                 ^
In file included from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:5995:46: note: candidate: 'v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)'
 5995 |   V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
      |                                              ^~~~~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8.h:5995:46: note:   candidate expects 1 argument, 0 provided
../src/unix/pty.cc:818:67: error: no matching function for call to 'v8::FunctionTemplate::GetFunction()'
  818 |            Nan::New<v8::FunctionTemplate>(PtyResize)->GetFunction());
      |                                                                   ^
In file included from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:5995:46: note: candidate: 'v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)'
 5995 |   V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
      |                                              ^~~~~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8.h:5995:46: note:   candidate expects 1 argument, 0 provided
../src/unix/pty.cc:821:68: error: no matching function for call to 'v8::FunctionTemplate::GetFunction()'
  821 |            Nan::New<v8::FunctionTemplate>(PtyGetProc)->GetFunction());
      |                                                                    ^
In file included from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.0/include/node/v8.h:5995:46: note: candidate: 'v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)'
 5995 |   V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
      |                                              ^~~~~~~~~~~
/root/.node-gyp/12.15.0/include/node/v8.h:5995:46: note:   candidate expects 1 argument, 0 provided
In file included from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
../src/unix/pty.cc: At global scope:
/root/.node-gyp/12.15.0/include/node/node.h:560:43: warning: cast between incompatible function types from 'void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)' {aka 'void (*)(v8::Local<v8::Object>)'} to 'node::addon_register_func' {aka 'void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)'} [-Wcast-function-type]
  560 |       (node::addon_register_func) (regfunc),                          \
      |                                           ^
/root/.node-gyp/12.15.0/include/node/node.h:594:3: note: in expansion of macro 'NODE_MODULE_X'
  594 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
      |   ^~~~~~~~~~~~~
../src/unix/pty.cc:824:1: note: in expansion of macro 'NODE_MODULE'
  824 | NODE_MODULE(pty, init)
      | ^~~~~~~~~~~
In file included from /root/.node-gyp/12.15.0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/root/.node-gyp/12.15.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>&)]':
/root/.node-gyp/12.15.0/include/node/node_object_wrap.h:84:78:   required from here
/root/.node-gyp/12.15.0/include/node/v8.h:10004: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]
10004 |                reinterpret_cast<Callback>(callback), type);
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/.node-gyp/12.15.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>&)]':
../node_modules/nan/nan_object_wrap.h:66:61:   required from here
/root/.node-gyp/12.15.0/include/node/v8.h:10004: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: *** [pty.target.mk:105: Release/obj.target/pty/src/unix/pty.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/ruby-ide/theia-ruby-extension/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:223:5)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Linux 4.19.0-8-amd64
gyp ERR! command "/usr/bin/node" "/ruby-ide/theia-ruby-extension/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /ruby-ide/theia-ruby-extension/node_modules/@theia/node-pty
gyp ERR! node -v v12.15.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
make: Leaving directory '/ruby-ide/theia-ruby-extension/node_modules/@theia/node-pty/build'
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
The command '/bin/sh -c yarn' returned a non-zero code: 1
digitalshow commented 4 years ago

I tried yarn update, it gave me transcript errors i couldn't solve.

I tried using an older alpine image, FROM alpine:3.8, that way build succeeded. I then had to add RUN apk add ruby-full and remove RUN gem install rdoc --no-document to get solargraph to work again.