Skip to content

Failed to build docker image #1380

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
limitMe opened this issue Feb 29, 2020 · 4 comments · Fixed by #1338
Closed

Failed to build docker image #1380

limitMe opened this issue Feb 29, 2020 · 4 comments · Fixed by #1338
Labels
bug Something isn't working

Comments

@limitMe
Copy link

limitMe commented Feb 29, 2020

  • code-server version: 2.1698
  • OS Version: macOS 10.15.3

Description

I tried to build my own docker image by running

docker image build -t my-code-server:0.1 .

When it runs

RUN yarn \
	&& DRONE_TAG="2.1698" MINIFY=true BINARY=true GITHUB_TOKEN="MY_PERSONAL_GITHUB_TOKEN" ./scripts/ci.bash \
	&& rm -r /src/build \
	&& rm -r /src/source

I always get this error:

...Earlier Output overflowed...
In file included from /root/.cache/node-gyp/6.1.6/include/node/node.h:63:0,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/v8.h:15:0: error: unterminated #ifndef
 #ifndef INCLUDE_V8_H_
 
In file included from /root/.cache/node-gyp/6.1.6/include/node/node_buffer.h:26:0,
                 from ../../nan/nan.h:55,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/v8.h:5767:1: error: unterminated comment
 /**
 ^
/root/.cache/node-gyp/6.1.6/include/node/v8.h:15:0: error: unterminated #ifndef
 #ifndef INCLUDE_V8_H_
 
In file included from /root/.cache/node-gyp/6.1.6/include/node/node_object_wrap.h:25:0,
                 from ../../nan/nan.h:56,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/v8.h:5767:1: error: unterminated comment
 /**
 ^
/root/.cache/node-gyp/6.1.6/include/node/v8.h:15:0: error: unterminated #ifndef
 #ifndef INCLUDE_V8_H_
 
In file included from ../src/unix/pty.cc:20:0:
../../nan/nan.h:141:0: warning: "TYPE_CHECK" redefined
 #define TYPE_CHECK(T, S)                                                       \
 
In file included from /root/.cache/node-gyp/6.1.6/include/node/node.h:63:0,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/v8.h:145:0: note: this is the location of the previous definition
 #define TYPE_CHECK(T, S)                                       \
 
In file included from ../../nan/nan.h:54:0,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/node.h:116:17: error: 'Local' in namespace 'v8::v8' does not name a template type
 NODE_EXTERN v8::Local<v8::Value> ErrnoException(v8::Isolate* isolate,
                 ^~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:121:17: error: 'Local' in namespace 'v8::v8' does not name a template type
 NODE_EXTERN v8::Local<v8::Value> UVException(v8::Isolate* isolate,
                 ^~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:129:28: error: 'Local' in namespace 'v8::v8' does not name a template type
                 inline v8::Local<v8::Value> ErrnoException(
                            ^
/root/.cache/node-gyp/6.1.6/include/node/node.h:93:42: note: in definition of macro 'NODE_DEPRECATED'
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:142:28: error: 'Local' in namespace 'v8::v8' does not name a template type
                 inline v8::Local<v8::Value> UVException(int errorno,
                            ^
/root/.cache/node-gyp/6.1.6/include/node/node.h:93:42: note: in definition of macro 'NODE_DEPRECATED'
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:161:33: error: 'Local' in namespace 'v8::v8' does not name a template type
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                 ^
/root/.cache/node-gyp/6.1.6/include/node/node.h:93:42: note: in definition of macro 'NODE_DEPRECATED'
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:168:33: error: 'Local' in namespace 'v8::v8' does not name a template type
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                 ^
/root/.cache/node-gyp/6.1.6/include/node/node.h:93:42: note: in definition of macro 'NODE_DEPRECATED'
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:175:33: error: 'Local' in namespace 'v8::v8' does not name a template type
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                 ^
/root/.cache/node-gyp/6.1.6/include/node/node.h:93:42: note: in definition of macro 'NODE_DEPRECATED'
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../../nan/nan.h:54:0,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/node.h:234:53: error: 'v8::v8::ArrayBuffer' has not been declared
 class NODE_EXTERN ArrayBufferAllocator : public v8::ArrayBuffer::Allocator {
                                                     ^~~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:234:66: error: expected '{' before 'Allocator'
 class NODE_EXTERN ArrayBufferAllocator : public v8::ArrayBuffer::Allocator {
                                                                  ^~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:235:2: error: expected primary-expression before 'public'
  public:
  ^~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:235:2: error: expected '}' before 'public'
/root/.cache/node-gyp/6.1.6/include/node/node.h:243:2: error: expected unqualified-id before 'private'
  private:
  ^~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:246:3: error: 'friend' used outside of class
   friend class IsolateData;
   ^~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:250:13: error: 'ArrayBufferAllocator' does not name a type
 NODE_EXTERN ArrayBufferAllocator* CreateArrayBufferAllocator();
             ^~~~~~~~~~~~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:251:43: error: variable or field 'FreeArrayBufferAllocator' declared void
 NODE_EXTERN void FreeArrayBufferAllocator(ArrayBufferAllocator* allocator);
                                           ^~~~~~~~~~~~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:251:43: error: 'ArrayBufferAllocator' was not declared in this scope
/root/.cache/node-gyp/6.1.6/include/node/node.h:251:43: note: suggested alternative:
/root/.cache/node-gyp/6.1.6/include/node/node.h:234:19: note:   'v8::node::ArrayBufferAllocator'
 class NODE_EXTERN ArrayBufferAllocator : public v8::ArrayBuffer::Allocator {
                   ^~~~~~~~~~~~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:251:65: error: 'allocator' was not declared in this scope
 NODE_EXTERN void FreeArrayBufferAllocator(ArrayBufferAllocator* allocator);
                                                                 ^~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:251:65: note: suggested alternative:
In file included from /usr/include/c++/6/bits/allocator.h:47:0,
                 from /usr/include/c++/6/memory:63,
                 from /root/.cache/node-gyp/6.1.6/include/node/v8.h:21,
                 from /root/.cache/node-gyp/6.1.6/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/usr/include/c++/6/bits/memoryfwd.h:64:11: note:   'std::allocator'
     class allocator;
           ^~~~~~~~~
In file included from ../../nan/nan.h:54:0,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/node.h:284:54: error: variable or field 'SetIsolateCreateParams' declared void
 NODE_EXTERN void SetIsolateCreateParams(v8::Isolate::CreateParams* params,
                                                      ^~~~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:284:41: error: incomplete type 'v8::v8::Isolate' used in nested name specifier
 NODE_EXTERN void SetIsolateCreateParams(v8::Isolate::CreateParams* params,
                                         ^~
/root/.cache/node-gyp/6.1.6/include/node/node.h:284:68: error: 'params' was not declared in this scope
 NODE_EXTERN void SetIsolateCreateParams(v8::Isolate::CreateParams* params,
                                                                    ^~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:285:41: error: 'ArrayBufferAllocator' was not declared in this scope
                                         ArrayBufferAllocator* allocator
                                         ^~~~~~~~~~~~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:285:41: note: suggested alternative:
/root/.cache/node-gyp/6.1.6/include/node/node.h:234:19: note:   'v8::node::ArrayBufferAllocator'
 class NODE_EXTERN ArrayBufferAllocator : public v8::ArrayBuffer::Allocator {
                   ^~~~~~~~~~~~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:285:63: error: 'allocator' was not declared in this scope
                                         ArrayBufferAllocator* allocator
                                                               ^~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:285:63: note: suggested alternative:
In file included from /usr/include/c++/6/bits/allocator.h:47:0,
                 from /usr/include/c++/6/memory:63,
                 from /root/.cache/node-gyp/6.1.6/include/node/v8.h:21,
                 from /root/.cache/node-gyp/6.1.6/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/usr/include/c++/6/bits/memoryfwd.h:64:11: note:   'std::allocator'
     class allocator;
           ^~~~~~~~~
In file included from ../../nan/nan.h:54:0,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/node.h:294:37: error: 'ArrayBufferAllocator' was not declared in this scope
 NODE_EXTERN v8::Isolate* NewIsolate(ArrayBufferAllocator* allocator,
                                     ^~~~~~~~~~~~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:294:37: note: suggested alternative:
/root/.cache/node-gyp/6.1.6/include/node/node.h:234:19: note:   'v8::node::ArrayBufferAllocator'
 class NODE_EXTERN ArrayBufferAllocator : public v8::ArrayBuffer::Allocator {
                   ^~~~~~~~~~~~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:294:59: error: 'allocator' was not declared in this scope
 NODE_EXTERN v8::Isolate* NewIsolate(ArrayBufferAllocator* allocator,
                                                           ^~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:294:59: note: suggested alternative:
In file included from /usr/include/c++/6/bits/allocator.h:47:0,
                 from /usr/include/c++/6/memory:63,
                 from /root/.cache/node-gyp/6.1.6/include/node/v8.h:21,
                 from /root/.cache/node-gyp/6.1.6/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/usr/include/c++/6/bits/memoryfwd.h:64:11: note:   'std::allocator'
     class allocator;
           ^~~~~~~~~
In file included from ../../nan/nan.h:54:0,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/node.h:295:37: error: expected primary-expression before 'struct'
                                     struct uv_loop_s* event_loop);
                                     ^~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:295:65: error: expression list treated as compound expression in initializer [-fpermissive]
                                     struct uv_loop_s* event_loop);
                                                                 ^
/root/.cache/node-gyp/6.1.6/include/node/node.h:296:37: error: redefinition of 'v8::v8::Isolate* v8::NewIsolate'
 NODE_EXTERN v8::Isolate* NewIsolate(ArrayBufferAllocator* allocator,
                                     ^~~~~~~~~~~~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:294:26: note: 'v8::v8::Isolate* v8::NewIsolate' previously defined here
 NODE_EXTERN v8::Isolate* NewIsolate(ArrayBufferAllocator* allocator,
                          ^~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:296:37: error: 'ArrayBufferAllocator' was not declared in this scope
 NODE_EXTERN v8::Isolate* NewIsolate(ArrayBufferAllocator* allocator,
                                     ^~~~~~~~~~~~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:296:37: note: suggested alternative:
/root/.cache/node-gyp/6.1.6/include/node/node.h:234:19: note:   'v8::node::ArrayBufferAllocator'
 class NODE_EXTERN ArrayBufferAllocator : public v8::ArrayBuffer::Allocator {
                   ^~~~~~~~~~~~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:296:59: error: 'allocator' was not declared in this scope
 NODE_EXTERN v8::Isolate* NewIsolate(ArrayBufferAllocator* allocator,
                                                           ^~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:296:59: note: suggested alternative:
In file included from /usr/include/c++/6/bits/allocator.h:47:0,
                 from /usr/include/c++/6/memory:63,
                 from /root/.cache/node-gyp/6.1.6/include/node/v8.h:21,
                 from /root/.cache/node-gyp/6.1.6/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/usr/include/c++/6/bits/memoryfwd.h:64:11: note:   'std::allocator'
     class allocator;
           ^~~~~~~~~
In file included from ../../nan/nan.h:54:0,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/node.h:297:37: error: expected primary-expression before 'struct'
                                     struct uv_loop_s* event_loop,
                                     ^~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:298:57: error: expected primary-expression before '*' token
                                     MultiIsolatePlatform* platform);
                                                         ^
/root/.cache/node-gyp/6.1.6/include/node/node.h:298:59: error: 'platform' was not declared in this scope
                                     MultiIsolatePlatform* platform);
                                                           ^~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:301:17: error: 'Local' in namespace 'v8::v8' does not name a template type
 NODE_EXTERN v8::Local<v8::Context> NewContext(
                 ^~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:309:17: error: 'Local' in namespace 'v8::v8' does not name a template type
 NODE_EXTERN v8::Local<v8::Context> MaybeInitializeContext(
                 ^~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:317:13: error: 'IsolateData' does not name a type
 NODE_EXTERN IsolateData* CreateIsolateData(
             ^~~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:322:34: error: variable or field 'FreeIsolateData' declared void
 NODE_EXTERN void FreeIsolateData(IsolateData* isolate_data);
                                  ^~~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:322:34: error: 'IsolateData' was not declared in this scope
/root/.cache/node-gyp/6.1.6/include/node/node.h:322:34: note: suggested alternative:
/root/.cache/node-gyp/6.1.6/include/node/node.h:205:7: note:   'v8::node::IsolateData'
 class IsolateData;
       ^~~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:322:47: error: 'isolate_data' was not declared in this scope
 NODE_EXTERN void FreeIsolateData(IsolateData* isolate_data);
                                               ^~~~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:328:13: error: 'Environment' does not name a type
 NODE_EXTERN Environment* CreateEnvironment(IsolateData* isolate_data,
             ^~~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:335:39: error: 'Environment' was not declared in this scope
 NODE_EXTERN bool BootstrapEnvironment(Environment* env);
                                       ^~~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:335:39: note: suggested alternative:
/root/.cache/node-gyp/6.1.6/include/node/node.h:206:7: note:   'v8::node::Environment'
 class Environment;
       ^~~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:335:52: error: 'env' was not declared in this scope
 NODE_EXTERN bool BootstrapEnvironment(Environment* env);
                                                    ^~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:337:34: error: variable or field 'LoadEnvironment' declared void
 NODE_EXTERN void LoadEnvironment(Environment* env);
                                  ^~~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:337:34: error: 'Environment' was not declared in this scope
/root/.cache/node-gyp/6.1.6/include/node/node.h:337:34: note: suggested alternative:
/root/.cache/node-gyp/6.1.6/include/node/node.h:206:7: note:   'v8::node::Environment'
 class Environment;
       ^~~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:337:47: error: 'env' was not declared in this scope
 NODE_EXTERN void LoadEnvironment(Environment* env);
                                               ^~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:338:34: error: variable or field 'FreeEnvironment' declared void
 NODE_EXTERN void FreeEnvironment(Environment* env);
                                  ^~~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:338:34: error: 'Environment' was not declared in this scope
/root/.cache/node-gyp/6.1.6/include/node/node.h:338:34: note: suggested alternative:
/root/.cache/node-gyp/6.1.6/include/node/node.h:206:7: note:   'v8::node::Environment'
 class Environment;
       ^~~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:338:47: error: 'env' was not declared in this scope
 NODE_EXTERN void FreeEnvironment(Environment* env);
                                               ^~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:341:13: error: 'Environment' does not name a type
 NODE_EXTERN Environment* GetCurrentEnvironment(v8::Local<v8::Context> context);
             ^~~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:356:33: error: variable or field 'EmitBeforeExit' declared void
 NODE_EXTERN void EmitBeforeExit(Environment* env);
                                 ^~~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:356:33: error: 'Environment' was not declared in this scope
/root/.cache/node-gyp/6.1.6/include/node/node.h:356:33: note: suggested alternative:
/root/.cache/node-gyp/6.1.6/include/node/node.h:206:7: note:   'v8::node::Environment'
 class Environment;
       ^~~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:356:46: error: 'env' was not declared in this scope
 NODE_EXTERN void EmitBeforeExit(Environment* env);
                                              ^~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:357:26: error: 'Environment' was not declared in this scope
 NODE_EXTERN int EmitExit(Environment* env);
                          ^~~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:357:26: note: suggested alternative:
/root/.cache/node-gyp/6.1.6/include/node/node.h:206:7: note:   'v8::node::Environment'
 class Environment;
       ^~~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:357:39: error: 'env' was not declared in this scope
 NODE_EXTERN int EmitExit(Environment* env);
                                       ^~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:358:28: error: variable or field 'RunAtExit' declared void
 NODE_EXTERN void RunAtExit(Environment* env);
                            ^~~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:358:28: error: 'Environment' was not declared in this scope
/root/.cache/node-gyp/6.1.6/include/node/node.h:358:28: note: suggested alternative:
/root/.cache/node-gyp/6.1.6/include/node/node.h:206:7: note:   'v8::node::Environment'
 class Environment;
       ^~~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:358:41: error: 'env' was not declared in this scope
 NODE_EXTERN void RunAtExit(Environment* env);
                                         ^~~
In file included from ../../nan/nan.h:54:0,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/node.h:366:28: error: 'Local' in namespace 'v8::v8' does not name a template type
                 inline v8::Local<v8::Value> NODE_UNIXTIME_V8(double time) {
                            ^
/root/.cache/node-gyp/6.1.6/include/node/node.h:93:42: note: in definition of macro 'NODE_DEPRECATED'
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:374:52: error: 'v8::NODE_V8_UNIXTIME' declared as an 'inline' variable
                 inline double NODE_V8_UNIXTIME(v8::Local<v8::Date> date) {
                                                    ^
/root/.cache/node-gyp/6.1.6/include/node/node.h:93:42: note: in definition of macro 'NODE_DEPRECATED'
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:374:48: error: 'Local' is not a member of 'v8::v8'
                 inline double NODE_V8_UNIXTIME(v8::Local<v8::Date> date) {
                                                ^
/root/.cache/node-gyp/6.1.6/include/node/node.h:93:42: note: in definition of macro 'NODE_DEPRECATED'
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:374:48: note: suggested alternative:
                 inline double NODE_V8_UNIXTIME(v8::Local<v8::Date> date) {
                                                ^
/root/.cache/node-gyp/6.1.6/include/node/node.h:93:42: note: in definition of macro 'NODE_DEPRECATED'
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from /root/.cache/node-gyp/6.1.6/include/node/node.h:63:0,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/v8.h:86:26: note:   'v8::Local'
 template <class T> class Local;
                          ^~~~~
In file included from ../../nan/nan.h:54:0,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/node.h:374:58: error: 'Date' is not a member of 'v8::v8'
                 inline double NODE_V8_UNIXTIME(v8::Local<v8::Date> date) {
                                                          ^
/root/.cache/node-gyp/6.1.6/include/node/node.h:93:42: note: in definition of macro 'NODE_DEPRECATED'
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:374:58: note: suggested alternative:
                 inline double NODE_V8_UNIXTIME(v8::Local<v8::Date> date) {
                                                          ^
/root/.cache/node-gyp/6.1.6/include/node/node.h:93:42: note: in definition of macro 'NODE_DEPRECATED'
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from /root/.cache/node-gyp/6.1.6/include/node/node.h:63:0,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/v8.h:5253:17: note:   'v8::Date'
 class V8_EXPORT Date : public Object {
                 ^~~~
In file included from ../../nan/nan.h:54:0,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/node.h:374:68: error: 'date' was not declared in this scope
                 inline double NODE_V8_UNIXTIME(v8::Local<v8::Date> date) {
                                                                    ^
/root/.cache/node-gyp/6.1.6/include/node/node.h:93:42: note: in definition of macro 'NODE_DEPRECATED'
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../../nan/nan.h:54:0,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/node.h:419:33: error: variable or field 'NODE_SET_METHOD' declared void
 inline void NODE_SET_METHOD(v8::Local<v8::Template> recv,
                                 ^~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:419:29: error: 'Local' is not a member of 'v8::v8'
 inline void NODE_SET_METHOD(v8::Local<v8::Template> recv,
                             ^~
/root/.cache/node-gyp/6.1.6/include/node/node.h:419:29: note: suggested alternative:
In file included from /root/.cache/node-gyp/6.1.6/include/node/node.h:63:0,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/v8.h:86:26: note:   'v8::Local'
 template <class T> class Local;
                          ^~~~~
In file included from ../../nan/nan.h:54:0,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/node.h:419:39: error: 'Template' is not a member of 'v8::v8'
 inline void NODE_SET_METHOD(v8::Local<v8::Template> recv,
                                       ^~
/root/.cache/node-gyp/6.1.6/include/node/node.h:419:39: note: suggested alternative:
In file included from /root/.cache/node-gyp/6.1.6/include/node/node.h:63:0,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/v8.h:5436:17: note:   'v8::Template'
 class V8_EXPORT Template : public Data {
                 ^~~~~~~~
In file included from ../../nan/nan.h:54:0,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/node.h:420:29: error: expected primary-expression before 'const'
                             const char* name,
                             ^~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:421:29: error: 'FunctionCallback' is not a member of 'v8::v8'
                             v8::FunctionCallback callback) {
                             ^~
/root/.cache/node-gyp/6.1.6/include/node/node.h:421:29: note: suggested alternative:
In file included from /root/.cache/node-gyp/6.1.6/include/node/node.h:63:0,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/v8.h:4081:16: note:   'v8::FunctionCallback'
 typedef void (*FunctionCallback)(const FunctionCallbackInfo<Value>& info);
                ^~~~~~~~~~~~~~~~
In file included from ../../nan/nan.h:54:0,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/node.h:433:33: error: variable or field 'NODE_SET_METHOD' declared void
 inline void NODE_SET_METHOD(v8::Local<v8::Object> recv,
                                 ^~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:433:29: error: 'Local' is not a member of 'v8::v8'
 inline void NODE_SET_METHOD(v8::Local<v8::Object> recv,
                             ^~
/root/.cache/node-gyp/6.1.6/include/node/node.h:433:29: note: suggested alternative:
In file included from /root/.cache/node-gyp/6.1.6/include/node/node.h:63:0,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/v8.h:86:26: note:   'v8::Local'
 template <class T> class Local;
                          ^~~~~
In file included from ../../nan/nan.h:54:0,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/node.h:433:39: error: 'Object' is not a member of 'v8::v8'
 inline void NODE_SET_METHOD(v8::Local<v8::Object> recv,
                                       ^~
/root/.cache/node-gyp/6.1.6/include/node/node.h:433:39: note: suggested alternative:
In file included from /root/.cache/node-gyp/6.1.6/include/node/node.h:63:0,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/v8.h:3328:17: note:   'v8::Object'
 class V8_EXPORT Object : public Value {
                 ^~~~~~
In file included from ../../nan/nan.h:54:0,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/node.h:434:29: error: expected primary-expression before 'const'
                             const char* name,
                             ^~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:435:29: error: 'FunctionCallback' is not a member of 'v8::v8'
                             v8::FunctionCallback callback) {
                             ^~
/root/.cache/node-gyp/6.1.6/include/node/node.h:435:29: note: suggested alternative:
In file included from /root/.cache/node-gyp/6.1.6/include/node/node.h:63:0,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/v8.h:4081:16: note:   'v8::FunctionCallback'
 typedef void (*FunctionCallback)(const FunctionCallbackInfo<Value>& info);
                ^~~~~~~~~~~~~~~~
In file included from ../../nan/nan.h:54:0,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/node.h:451:43: error: variable or field 'NODE_SET_PROTOTYPE_METHOD' declared void
 inline void NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate> recv,
                                           ^~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:451:39: error: 'Local' is not a member of 'v8::v8'
 inline void NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate> recv,
                                       ^~
/root/.cache/node-gyp/6.1.6/include/node/node.h:451:39: note: suggested alternative:
In file included from /root/.cache/node-gyp/6.1.6/include/node/node.h:63:0,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/v8.h:86:26: note:   'v8::Local'
 template <class T> class Local;
                          ^~~~~
In file included from ../../nan/nan.h:54:0,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/node.h:451:49: error: 'FunctionTemplate' is not a member of 'v8::v8'
 inline void NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate> recv,
                                                 ^~
/root/.cache/node-gyp/6.1.6/include/node/node.h:451:49: note: suggested alternative:
In file included from /root/.cache/node-gyp/6.1.6/include/node/node.h:63:0,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/v8.h:49:7: note:   'v8::FunctionTemplate'
 class FunctionTemplate;
       ^~~~~~~~~~~~~~~~
In file included from ../../nan/nan.h:54:0,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/node.h:452:39: error: expected primary-expression before 'const'
                                       const char* name,
                                       ^~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:453:39: error: 'FunctionCallback' is not a member of 'v8::v8'
                                       v8::FunctionCallback callback) {
                                       ^~
/root/.cache/node-gyp/6.1.6/include/node/node.h:453:39: note: suggested alternative:
In file included from /root/.cache/node-gyp/6.1.6/include/node/node.h:63:0,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/v8.h:4081:16: note:   'v8::FunctionCallback'
 typedef void (*FunctionCallback)(const FunctionCallbackInfo<Value>& info);
                ^~~~~~~~~~~~~~~~
In file included from ../../nan/nan.h:54:0,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/node.h:471:9: error: 'v8::v8::Local' has not been declared
     v8::Local<v8::Value> encoding_v,
         ^~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:471:14: error: expected ',' or '...' before '<' token
     v8::Local<v8::Value> encoding_v,
              ^
/root/.cache/node-gyp/6.1.6/include/node/node.h:475:43: error: 'TryCatch' in namespace 'v8::v8' does not name a type
                                 const v8::TryCatch& try_catch);
                                           ^~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:477:17: error: 'Local' in namespace 'v8::v8' does not name a template type
 NODE_EXTERN v8::Local<v8::Value> Encode(v8::Isolate* isolate,
                 ^~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:484:17: error: 'Local' in namespace 'v8::v8' does not name a template type
 NODE_EXTERN v8::Local<v8::Value> Encode(v8::Isolate* isolate,
                 ^~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:490:37: error: 'v8::v8::Local' has not been declared
                                 v8::Local<v8::Value>,
                                     ^~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:490:42: error: expected ',' or '...' before '<' token
                                 v8::Local<v8::Value>,
                                          ^
/root/.cache/node-gyp/6.1.6/include/node/node.h:496:37: error: 'v8::v8::Local' has not been declared
                                 v8::Local<v8::Value>,
                                     ^~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:496:42: error: expected ',' or '...' before '<' token
                                 v8::Local<v8::Value>,
                                          ^
/root/.cache/node-gyp/6.1.6/include/node/node.h:511:9: error: typedef 'v8::addon_register_func' is initialized (use decltype instead)
     v8::Local<v8::Object> exports,
         ^~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:511:5: error: 'Local' is not a member of 'v8::v8'
     v8::Local<v8::Object> exports,
     ^~
/root/.cache/node-gyp/6.1.6/include/node/node.h:511:5: note: suggested alternative:
In file included from /root/.cache/node-gyp/6.1.6/include/node/node.h:63:0,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/v8.h:86:26: note:   'v8::Local'
 template <class T> class Local;
                          ^~~~~
In file included from ../../nan/nan.h:54:0,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/node.h:511:15: error: 'Object' is not a member of 'v8::v8'
     v8::Local<v8::Object> exports,
               ^~
/root/.cache/node-gyp/6.1.6/include/node/node.h:511:15: note: suggested alternative:
In file included from /root/.cache/node-gyp/6.1.6/include/node/node.h:63:0,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/v8.h:3328:17: note:   'v8::Object'
 class V8_EXPORT Object : public Value {
                 ^~~~~~
In file included from ../../nan/nan.h:54:0,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/node.h:511:27: error: 'exports' was not declared in this scope
     v8::Local<v8::Object> exports,
                           ^~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:512:5: error: 'Local' is not a member of 'v8::v8'
     v8::Local<v8::Value> module,
     ^~
/root/.cache/node-gyp/6.1.6/include/node/node.h:512:5: note: suggested alternative:
In file included from /root/.cache/node-gyp/6.1.6/include/node/node.h:63:0,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/v8.h:86:26: note:   'v8::Local'
 template <class T> class Local;
                          ^~~~~
In file included from ../../nan/nan.h:54:0,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/node.h:512:15: error: 'Value' is not a member of 'v8::v8'
     v8::Local<v8::Value> module,
               ^~
/root/.cache/node-gyp/6.1.6/include/node/node.h:512:15: note: suggested alternative:
In file included from /root/.cache/node-gyp/6.1.6/include/node/node.h:63:0,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/v8.h:2219:17: note:   'v8::Value'
 class V8_EXPORT Value : public Data {
                 ^~~~~
In file included from ../../nan/nan.h:54:0,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/node.h:512:26: error: 'module' was not declared in this scope
     v8::Local<v8::Value> module,
                          ^~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:513:5: error: expected primary-expression before 'void'
     void* priv);
     ^~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:516:9: error: typedef 'v8::addon_context_register_func' is initialized (use decltype instead)
     v8::Local<v8::Object> exports,
         ^~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:516:5: error: 'Local' is not a member of 'v8::v8'
     v8::Local<v8::Object> exports,
     ^~
/root/.cache/node-gyp/6.1.6/include/node/node.h:516:5: note: suggested alternative:
In file included from /root/.cache/node-gyp/6.1.6/include/node/node.h:63:0,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/v8.h:86:26: note:   'v8::Local'
 template <class T> class Local;
                          ^~~~~
In file included from ../../nan/nan.h:54:0,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/node.h:516:15: error: 'Object' is not a member of 'v8::v8'
     v8::Local<v8::Object> exports,
               ^~
/root/.cache/node-gyp/6.1.6/include/node/node.h:516:15: note: suggested alternative:
In file included from /root/.cache/node-gyp/6.1.6/include/node/node.h:63:0,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/v8.h:3328:17: note:   'v8::Object'
 class V8_EXPORT Object : public Value {
                 ^~~~~~
In file included from ../../nan/nan.h:54:0,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/node.h:516:27: error: 'exports' was not declared in this scope
     v8::Local<v8::Object> exports,
                           ^~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:517:5: error: 'Local' is not a member of 'v8::v8'
     v8::Local<v8::Value> module,
     ^~
/root/.cache/node-gyp/6.1.6/include/node/node.h:517:5: note: suggested alternative:
In file included from /root/.cache/node-gyp/6.1.6/include/node/node.h:63:0,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/v8.h:86:26: note:   'v8::Local'
 template <class T> class Local;
                          ^~~~~
In file included from ../../nan/nan.h:54:0,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/node.h:517:15: error: 'Value' is not a member of 'v8::v8'
     v8::Local<v8::Value> module,
               ^~
/root/.cache/node-gyp/6.1.6/include/node/node.h:517:15: note: suggested alternative:
In file included from /root/.cache/node-gyp/6.1.6/include/node/node.h:63:0,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/v8.h:2219:17: note:   'v8::Value'
 class V8_EXPORT Value : public Data {
                 ^~~~~
In file included from ../../nan/nan.h:54:0,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/node.h:517:26: error: 'module' was not declared in this scope
     v8::Local<v8::Value> module,
                          ^~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:518:5: error: 'Local' is not a member of 'v8::v8'
     v8::Local<v8::Context> context,
     ^~
/root/.cache/node-gyp/6.1.6/include/node/node.h:518:5: note: suggested alternative:
In file included from /root/.cache/node-gyp/6.1.6/include/node/node.h:63:0,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/v8.h:86:26: note:   'v8::Local'
 template <class T> class Local;
                          ^~~~~
In file included from ../../nan/nan.h:54:0,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/node.h:518:15: error: 'Context' is not a member of 'v8::v8'
     v8::Local<v8::Context> context,
               ^~
/root/.cache/node-gyp/6.1.6/include/node/node.h:518:15: note: suggested alternative:
In file included from /root/.cache/node-gyp/6.1.6/include/node/v8.h:25:0,
                 from /root/.cache/node-gyp/6.1.6/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/v8-internal.h:18:7: note:   'v8::Context'
 class Context;
       ^~~~~~~
In file included from ../../nan/nan.h:54:0,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/node.h:518:28: error: 'context' was not declared in this scope
     v8::Local<v8::Context> context,
                            ^~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:519:5: error: expected primary-expression before 'void'
     void* priv);
     ^~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:530:9: error: 'addon_register_func' in namespace 'v8::node' does not name a type
   node::addon_register_func nm_register_func;
         ^~~~~~~~~~~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:531:9: error: 'addon_context_register_func' in namespace 'v8::node' does not name a type
   node::addon_context_register_func nm_context_register_func;
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:656:25: error: variable or field 'AtExit' declared void
 NODE_EXTERN void AtExit(Environment* env,
                         ^~~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:656:25: error: 'Environment' was not declared in this scope
/root/.cache/node-gyp/6.1.6/include/node/node.h:656:25: note: suggested alternative:
/root/.cache/node-gyp/6.1.6/include/node/node.h:206:7: note:   'v8::node::Environment'
 class Environment;
       ^~~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:656:38: error: 'env' was not declared in this scope
 NODE_EXTERN void AtExit(Environment* env,
                                      ^~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:657:32: error: 'cb' was not declared in this scope
                         void (*cb)(void* arg),
                                ^~
/root/.cache/node-gyp/6.1.6/include/node/node.h:657:36: error: expected primary-expression before 'void'
                         void (*cb)(void* arg),
                                    ^~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:658:25: error: expected primary-expression before 'void'
                         void* arg = nullptr);
                         ^~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:662:5: error: 'node' in namespace '::' does not name a type
   ::node::async_id async_id;
     ^~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:663:5: error: 'node' in namespace '::' does not name a type
   ::node::async_id trigger_async_id;
     ^~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:695:45: error: 'v8::v8::Local' has not been declared
                                         v8::Local<v8::Object> resource,
                                             ^~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:695:50: error: expected ',' or '...' before '<' token
                                         v8::Local<v8::Object> resource,
                                                  ^
/root/.cache/node-gyp/6.1.6/include/node/node.h:700:45: error: 'v8::v8::Local' has not been declared
                                         v8::Local<v8::Object> resource,
                                             ^~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:700:50: error: expected ',' or '...' before '<' token
                                         v8::Local<v8::Object> resource,
                                                  ^
/root/.cache/node-gyp/6.1.6/include/node/node.h:712:35: error: variable or field 'EmitAsyncDestroy' declared void
 NODE_EXTERN void EmitAsyncDestroy(Environment* env,
                                   ^~~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:712:35: error: 'Environment' was not declared in this scope
/root/.cache/node-gyp/6.1.6/include/node/node.h:712:35: note: suggested alternative:
/root/.cache/node-gyp/6.1.6/include/node/node.h:206:7: note:   'v8::node::Environment'
 class Environment;
       ^~~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:712:48: error: 'env' was not declared in this scope
 NODE_EXTERN void EmitAsyncDestroy(Environment* env,
                                                ^~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:713:49: error: expected primary-expression before 'asyncContext'
                                   async_context asyncContext);
                                                 ^~~~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:735:21: error: 'v8::v8::Local' has not been declared
                 v8::Local<v8::Object> resource,
                     ^~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:735:26: error: expected ',' or '...' before '<' token
                 v8::Local<v8::Object> resource,
                          ^
/root/.cache/node-gyp/6.1.6/include/node/node.h:746:7: error: 'TryCatch' in namespace 'v8::v8' does not name a type
   v8::TryCatch try_catch_;
       ^~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:760:5: error: 'MaybeLocal' in namespace 'v8::v8' does not name a template type
 v8::MaybeLocal<v8::Value> MakeCallback(v8::Isolate* isolate,
     ^~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:767:5: error: 'MaybeLocal' in namespace 'v8::v8' does not name a template type
 v8::MaybeLocal<v8::Value> MakeCallback(v8::Isolate* isolate,
     ^~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:774:5: error: 'MaybeLocal' in namespace 'v8::v8' does not name a template type
 v8::MaybeLocal<v8::Value> MakeCallback(v8::Isolate* isolate,
     ^~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:787:21: error: 'v8::v8::Local' has not been declared
                 v8::Local<v8::Object> resource,
                     ^~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:787:26: error: expected ',' or '...' before '<' token
                 v8::Local<v8::Object> resource,
                          ^
/root/.cache/node-gyp/6.1.6/include/node/node.h:796:7: error: 'MaybeLocal' in namespace 'v8::v8' does not name a template type
   v8::MaybeLocal<v8::Value> MakeCallback(
       ^~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:801:7: error: 'MaybeLocal' in namespace 'v8::v8' does not name a template type
   v8::MaybeLocal<v8::Value> MakeCallback(
       ^~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:806:7: error: 'MaybeLocal' in namespace 'v8::v8' does not name a template type
   v8::MaybeLocal<v8::Value> MakeCallback(
       ^~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:811:7: error: 'Local' in namespace 'v8::v8' does not name a template type
   v8::Local<v8::Object> get_resource();
       ^~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:816:64: error: expected class-name before '{' token
   class NODE_EXTERN CallbackScope : public node::CallbackScope {
                                                                ^
/root/.cache/node-gyp/6.1.6/include/node/node.h:822:3: error: 'Environment' does not name a type
   Environment* env_;
   ^~~~~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node.h:823:7: error: 'Persistent' in namespace 'v8::v8' does not name a template type
   v8::Persistent<v8::Object> resource_;
       ^~~~~~~~~~
In file included from ../../nan/nan.h:55:0,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/node_buffer.h:54:49: error: use of enum 'encoding' without previous declaration
                                            enum encoding enc = UTF8);
                                                 ^~~~~~~~
/root/.cache/node-gyp/6.1.6/include/node/node_buffer.h:54:64: error: 'UTF8' was not declared in this scope
                                            enum encoding enc = UTF8);
                                                                ^~~~
/root/.cache/node-gyp/6.1.6/include/node/node_buffer.h:54:64: note: suggested alternative:
In file included from ../../nan/nan.h:54:0,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/node.h:467:23: note:   'UTF8'
 enum encoding {ASCII, UTF8, BASE64, UCS2, BINARY, HEX, BUFFER, LATIN1 = BINARY};
                       ^~~~
In file included from ../../nan/nan.h:56:0,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/node_object_wrap.h: In member function 'v8::Local<v8::Object> node::ObjectWrap::handle()':
/root/.cache/node-gyp/6.1.6/include/node/node_object_wrap.h:59:19: error: incomplete type 'v8::Isolate' used in nested name specifier
     return handle(v8::Isolate::GetCurrent());
                   ^~
In file included from /usr/include/c++/6/cassert:44:0,
                 from /root/.cache/node-gyp/6.1.6/include/node/node_object_wrap.h:26,
                 from ../../nan/nan.h:56,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/node_object_wrap.h: In member function 'void node::ObjectWrap::Wrap(v8::Local<v8::Object>)':
/root/.cache/node-gyp/6.1.6/include/node/node_object_wrap.h:75:5: error: '__assert_fail' was not declared in this scope
     assert(persistent().IsEmpty());
     ^
/root/.cache/node-gyp/6.1.6/include/node/node_object_wrap.h:75:5: note: suggested alternative:
In file included from /usr/include/c++/6/cassert:44:0,
                 from /root/.cache/node-gyp/6.1.6/include/node/node.h:184,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/usr/include/assert.h:69:13: note:   'v8::__assert_fail'
 extern void __assert_fail (const char *__assertion, const char *__file,
             ^~~~~~~~~~~~~
In file included from ../../nan/nan.h:56:0,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/node_object_wrap.h:78:24: error: incomplete type 'v8::Isolate' used in nested name specifier
     persistent().Reset(v8::Isolate::GetCurrent(), handle);
                        ^~
In file included from /usr/include/c++/6/cassert:44:0,
                 from /root/.cache/node-gyp/6.1.6/include/node/node_object_wrap.h:26,
                 from ../../nan/nan.h:56,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/node_object_wrap.h: In member function 'virtual void node::ObjectWrap::Ref()':
/root/.cache/node-gyp/6.1.6/include/node/node_object_wrap.h:92:5: error: '__assert_fail' was not declared in this scope
     assert(!persistent().IsEmpty());
     ^
/root/.cache/node-gyp/6.1.6/include/node/node_object_wrap.h:92:5: note: suggested alternative:
In file included from /usr/include/c++/6/cassert:44:0,
                 from /root/.cache/node-gyp/6.1.6/include/node/node.h:184,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/usr/include/assert.h:69:13: note:   'v8::__assert_fail'
 extern void __assert_fail (const char *__assertion, const char *__file,
             ^~~~~~~~~~~~~
In file included from /usr/include/c++/6/cassert:44:0,
                 from /root/.cache/node-gyp/6.1.6/include/node/node_object_wrap.h:26,
                 from ../../nan/nan.h:56,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/node_object_wrap.h: In member function 'virtual void node::ObjectWrap::Unref()':
/root/.cache/node-gyp/6.1.6/include/node/node_object_wrap.h:107:5: error: '__assert_fail' was not declared in this scope
     assert(!persistent().IsEmpty());
     ^
/root/.cache/node-gyp/6.1.6/include/node/node_object_wrap.h:107:5: note: suggested alternative:
In file included from /usr/include/c++/6/cassert:44:0,
                 from /root/.cache/node-gyp/6.1.6/include/node/node.h:184,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/usr/include/assert.h:69:13: note:   'v8::__assert_fail'
 extern void __assert_fail (const char *__assertion, const char *__file,
             ^~~~~~~~~~~~~
In file included from /usr/include/c++/6/cassert:44:0,
                 from /root/.cache/node-gyp/6.1.6/include/node/node_object_wrap.h:26,
                 from ../../nan/nan.h:56,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/node_object_wrap.h: In static member function 'static void node::ObjectWrap::WeakCallback(const v8::WeakCallbackInfo<node::ObjectWrap>&)':
/root/.cache/node-gyp/6.1.6/include/node/node_object_wrap.h:120:5: error: '__assert_fail' was not declared in this scope
     assert(wrap->refs_ == 0);
     ^
/root/.cache/node-gyp/6.1.6/include/node/node_object_wrap.h:120:5: note: suggested alternative:
In file included from /usr/include/c++/6/cassert:44:0,
                 from /root/.cache/node-gyp/6.1.6/include/node/node.h:184,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/usr/include/assert.h:69:13: note:   'v8::__assert_fail'
 extern void __assert_fail (const char *__assertion, const char *__file,
             ^~~~~~~~~~~~~
In file included from ../../nan/nan.h:282:0,
                 from ../src/unix/pty.cc:20:
../../nan/nan_maybe_43_inl.h: In function 'Nan::MaybeLocal<v8::String> Nan::ToDetailString(v8::Local<v8::Value>)':
../../nan/nan_maybe_43_inl.h:17:26: error: incomplete type 'v8::Isolate' used in nested name specifier
   v8::Isolate *isolate = v8::Isolate::GetCurrent();
                          ^~
../../nan/nan_maybe_43_inl.h:19:50: error: invalid use of incomplete type 'class v8::Isolate'
   return scope.Escape(val->ToDetailString(isolate->GetCurrentContext())
                                                  ^~
In file included from /root/.cache/node-gyp/6.1.6/include/node/v8.h:25:0,
                 from /root/.cache/node-gyp/6.1.6/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/v8-internal.h:20:7: note: forward declaration of 'class v8::Isolate'
 class Isolate;
       ^~~~~~~
In file included from ../../nan/nan.h:282:0,
                 from ../src/unix/pty.cc:20:
../../nan/nan_maybe_43_inl.h: In function 'Nan::MaybeLocal<v8::Uint32> Nan::ToArrayIndex(v8::Local<v8::Value>)':
../../nan/nan_maybe_43_inl.h:25:26: error: incomplete type 'v8::Isolate' used in nested name specifier
   v8::Isolate *isolate = v8::Isolate::GetCurrent();
                          ^~
../../nan/nan_maybe_43_inl.h:27:48: error: invalid use of incomplete type 'class v8::Isolate'
   return scope.Escape(val->ToArrayIndex(isolate->GetCurrentContext())
                                                ^~
In file included from /root/.cache/node-gyp/6.1.6/include/node/v8.h:25:0,
                 from /root/.cache/node-gyp/6.1.6/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/v8-internal.h:20:7: note: forward declaration of 'class v8::Isolate'
 class Isolate;
       ^~~~~~~
In file included from ../../nan/nan.h:282:0,
                 from ../src/unix/pty.cc:20:
../../nan/nan_maybe_43_inl.h: In function 'Nan::Maybe<bool> Nan::Equals(v8::Local<v8::Value>, v8::Local<v8::Value>)':
../../nan/nan_maybe_43_inl.h:33:26: error: incomplete type 'v8::Isolate' used in nested name specifier
   v8::Isolate *isolate = v8::Isolate::GetCurrent();
                          ^~
../../nan/nan_maybe_43_inl.h:35:27: error: invalid use of incomplete type 'class v8::Isolate'
   return a->Equals(isolate->GetCurrentContext(), b);
                           ^~
In file included from /root/.cache/node-gyp/6.1.6/include/node/v8.h:25:0,
                 from /root/.cache/node-gyp/6.1.6/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/v8-internal.h:20:7: note: forward declaration of 'class v8::Isolate'
 class Isolate;
       ^~~~~~~
In file included from ../../nan/nan.h:282:0,
                 from ../src/unix/pty.cc:20:
../../nan/nan_maybe_43_inl.h: In function 'Nan::MaybeLocal<v8::Object> Nan::NewInstance(v8::Local<v8::Function>)':
../../nan/nan_maybe_43_inl.h:40:26: error: incomplete type 'v8::Isolate' used in nested name specifier
   v8::Isolate *isolate = v8::Isolate::GetCurrent();
                          ^~
../../nan/nan_maybe_43_inl.h:42:45: error: invalid use of incomplete type 'class v8::Isolate'
   return scope.Escape(h->NewInstance(isolate->GetCurrentContext())
                                             ^~
In file included from /root/.cache/node-gyp/6.1.6/include/node/v8.h:25:0,
                 from /root/.cache/node-gyp/6.1.6/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/v8-internal.h:20:7: note: forward declaration of 'class v8::Isolate'
 class Isolate;
       ^~~~~~~
In file included from ../../nan/nan.h:282:0,
                 from ../src/unix/pty.cc:20:
../../nan/nan_maybe_43_inl.h: In function 'Nan::MaybeLocal<v8::Object> Nan::NewInstance(v8::Local<v8::Function>, int, v8::Local<v8::Value>*)':
../../nan/nan_maybe_43_inl.h:51:26: error: incomplete type 'v8::Isolate' used in nested name specifier
   v8::Isolate *isolate = v8::Isolate::GetCurrent();
                          ^~
../../nan/nan_maybe_43_inl.h:53:45: error: invalid use of incomplete type 'class v8::Isolate'
   return scope.Escape(h->NewInstance(isolate->GetCurrentContext(), argc, argv)
                                             ^~
In file included from /root/.cache/node-gyp/6.1.6/include/node/v8.h:25:0,
                 from /root/.cache/node-gyp/6.1.6/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/v8-internal.h:20:7: note: forward declaration of 'class v8::Isolate'
 class Isolate;
       ^~~~~~~
In file included from ../../nan/nan.h:282:0,
                 from ../src/unix/pty.cc:20:
../../nan/nan_maybe_43_inl.h: In function 'Nan::MaybeLocal<v8::Object> Nan::NewInstance(v8::Local<v8::ObjectTemplate>)':
../../nan/nan_maybe_43_inl.h:59:26: error: incomplete type 'v8::Isolate' used in nested name specifier
   v8::Isolate *isolate = v8::Isolate::GetCurrent();
                          ^~
../../nan/nan_maybe_43_inl.h:61:24: error: invalid use of incomplete type 'class v8::ObjectTemplate'
   return scope.Escape(h->NewInstance(isolate->GetCurrentContext())
                        ^~
In file included from /root/.cache/node-gyp/6.1.6/include/node/node.h:63:0,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/v8.h:63:7: note: forward declaration of 'class v8::ObjectTemplate'
 class ObjectTemplate;
       ^~~~~~~~~~~~~~
In file included from ../../nan/nan.h:282:0,
                 from ../src/unix/pty.cc:20:
../../nan/nan_maybe_43_inl.h:61:45: error: invalid use of incomplete type 'class v8::Isolate'
   return scope.Escape(h->NewInstance(isolate->GetCurrentContext())
                                             ^~
In file included from /root/.cache/node-gyp/6.1.6/include/node/v8.h:25:0,
                 from /root/.cache/node-gyp/6.1.6/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/v8-internal.h:20:7: note: forward declaration of 'class v8::Isolate'
 class Isolate;
       ^~~~~~~
In file included from ../../nan/nan.h:282:0,
                 from ../src/unix/pty.cc:20:
../../nan/nan_maybe_43_inl.h: In function 'Nan::MaybeLocal<v8::Function> Nan::GetFunction(v8::Local<v8::FunctionTemplate>)':
../../nan/nan_maybe_43_inl.h:68:26: error: incomplete type 'v8::Isolate' used in nested name specifier
   v8::Isolate *isolate = v8::Isolate::GetCurrent();
                          ^~
../../nan/nan_maybe_43_inl.h:70:24: error: invalid use of incomplete type 'class v8::FunctionTemplate'
   return scope.Escape(t->GetFunction(isolate->GetCurrentContext())
                        ^~
In file included from /root/.cache/node-gyp/6.1.6/include/node/node.h:63:0,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/v8.h:49:7: note: forward declaration of 'class v8::FunctionTemplate'
 class FunctionTemplate;
       ^~~~~~~~~~~~~~~~
In file included from ../../nan/nan.h:282:0,
                 from ../src/unix/pty.cc:20:
../../nan/nan_maybe_43_inl.h:70:45: error: invalid use of incomplete type 'class v8::Isolate'
   return scope.Escape(t->GetFunction(isolate->GetCurrentContext())
                                             ^~
In file included from /root/.cache/node-gyp/6.1.6/include/node/v8.h:25:0,
                 from /root/.cache/node-gyp/6.1.6/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/v8-internal.h:20:7: note: forward declaration of 'class v8::Isolate'
 class Isolate;
       ^~~~~~~
In file included from ../../nan/nan.h:282:0,
                 from ../src/unix/pty.cc:20:
../../nan/nan_maybe_43_inl.h: In function 'Nan::Maybe<bool> Nan::Set(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>)':
../../nan/nan_maybe_43_inl.h:78:26: error: incomplete type 'v8::Isolate' used in nested name specifier
   v8::Isolate *isolate = v8::Isolate::GetCurrent();
                          ^~
../../nan/nan_maybe_43_inl.h:80:26: error: invalid use of incomplete type 'class v8::Isolate'
   return obj->Set(isolate->GetCurrentContext(), key, value);
                          ^~
In file included from /root/.cache/node-gyp/6.1.6/include/node/v8.h:25:0,
                 from /root/.cache/node-gyp/6.1.6/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/root/.cache/node-gyp/6.1.6/include/node/v8-internal.h:20:7: note: forward declaration of 'class v8::Isolate'
 class Isolate;
       ^~~~~~~
In file included from ../../nan/nan.h:282:0,
                 from ../src/unix/pty.cc:20:
../../nan/nan_maybe_43_inl.h: In function 'Nan::Maybe<bool> Nan::Set(v8::Local<v8::Object>, uint32_t, v8::Local<v8::Value>)':
../../nan/nan_maybe_43_inl.h:87:26: error: incomplete type 'v8::Isolate' used in nested name specifier
   v8::Isolate *isolate = v8::Isolate::GetCurrent();
                          ^~
../../nan/nan_maybe_43_inl.h:89:26: error: invalid use of incomplete type 'class v8::Isolate'
   return obj->Set(isolate->GetCurrentContext(), index, value);
                          ^~
In file included from /root/.cache/node-gyp/6.1.6/include/node/v8.h:25:0,
                 from /root/.cache/node-gyp/6.1.6/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../src/unix/pty.cc:20:
/root/.cache/nerror Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
@limitMe limitMe added the bug Something isn't working label Feb 29, 2020
@kylecarbs
Copy link
Member

Pretty weird. @code-asher could will be able to point you in the right direction!

@limitMe
Copy link
Author

limitMe commented Mar 1, 2020

Thanks for replying @kylecarbs. I can always use a centos or ubuntu base image and download the binary to build my own docker image. So if this bug doesn't effect much you can ignore. I'm using Docker Desktop for macOS 2.2.0.3 FYI.

@knaou
Copy link

knaou commented Mar 1, 2020

+1

@nhooyr
Copy link
Contributor

nhooyr commented Mar 2, 2020

I fixed in restructure as well. We really gotta merge that soon. #1338

@code-asher code-asher mentioned this issue Mar 3, 2020
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants