zodern / meteor-up

Production Quality Meteor Deployment to Anywhere
http://meteor-up.com/
MIT License
1.27k stars 280 forks source link

1.5.1 Prepare Bundle: FAILED in installing fibers when deploy #1166

Closed yuwiggin closed 4 years ago

yuwiggin commented 4 years ago

Mup version (1.5.1): Meteor version(1.8.1)

Mup config

{
  "servers": {
    "one": {
      "host": "1.2.3.4",
      "username": "root",
      "pem": "~/.ssh/pem"
    }
  },
  "mongo": {
    "port": 27027,
    "oplog": true,
    "version": "4.0.12",
    "servers": {
      "one": {}
    },
    "dbName": "crex"
  },
  "app": {
    "name": "my-app",
    "path": "../",
    "volumes": {
      "/images": "/images"
    },
    "servers": {
      "one": {}
    },
    "buildOptions": {
      "serverOnly": true
    },
    "env": {
      "PORT": 3888,
      "ROOT_URL": "http://subdomain.subdomain.host.com",
      "MONGO_URL": "mongodb://mongodb:27017/my-app"
    },
    "docker": {
      "image": "abernix/meteord:node-12.16.1-base",
      "stopAppDuringPrepareBundle": true,
      "imagePort": 3000,
      "args": [
        "--link=mongodb:mongodb"
      ]
    },
    "deployCheckWaitTime": 1000,
    "enableUploadProgressBar": true,
    "type": "meteor"
  }
}

Output of command

Building App Bundle Locally
Browserslist: caniuse-lite is outdated. Please run next command `npm update caniuse-lite browserslist`

Started TaskList: Pushing Meteor App
[149.28.210.63] - Pushing Meteor App Bundle to the Server
[149.28.210.63] - Pushing Meteor App Bundle to the Server: SUCCESS
[149.28.210.63] - Prepare Bundle
Updating base image
node-12.16.1-base: Pulling from abernix/meteord
Digest: sha256:ce0b262902c9430230fd840fbef52690edcfdb3ba2c96015f83d310715c899f1
Status: Image is up to date for abernix/meteord:node-12.16.1-base
docker.io/abernix/meteord:node-12.16.1-base
Preparing for docker build
Creating Dockerfile
Finished creating Dockerfile
Building image
Sending build context to Docker daemon  239.9MB
Step 1/7 : FROM abernix/meteord:node-12.16.1-base
# Executing 1 build trigger
 ---> Using cache
 ---> f71720b0f6c1
Step 2/7 : RUN mkdir /built_app || true
 ---> Using cache
 ---> fc63051d18ec
Step 3/7 : ARG PORT=3888
 ---> Using cache
 ---> d9b8c513128d
Step 4/7 : ARG ROOT_URL=http://127.0.0.1
 ---> Using cache
 ---> dc32ac727262
Step 5/7 : ARG MONGO_URL=mongodb://mongodb:27017/abcd
 ---> Using cache
 ---> 3b6892b3dfe9
Step 6/7 : COPY ./ /built_app
 ---> Using cache
 ---> f628b0fc909b
Step 7/7 : RUN cd /built_app/programs/server &&     npm install --unsafe-perm
 ---> Running in 90dfc0fbeade
npm WARN deprecated request@2.81.0: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated hawk@3.1.3: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated boom@2.10.1: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated hoek@2.16.3: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated cryptiles@2.0.5: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated sntp@1.0.9: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.

> fibers@3.1.1 install /built_app/programs/server/node_modules/fibers
> node build.js || nodejs build.js

make: Entering directory '/built_app/programs/server/node_modules/fibers/build'
  CXX(target) Release/obj.target/fibers/src/fibers.o
../src/fibers.cc:68:2: error: 'Handle' does not name a type
  Handle<String> NewLatin1String(Isolate* isolate, const char* string) {
  ^~~~~~
../src/fibers.cc:72:2: error: 'Handle' does not name a type
  Handle<String> NewLatin1Symbol(Isolate* isolate, const char* string) {
  ^~~~~~
../src/fibers.cc:94:2: error: 'Handle' does not name a type
  Handle<Object> NewInstance(Isolate* isolate, Local<Function> fn, int argc, Local<Value> argv[]) {
  ^~~~~~
../src/fibers.cc:104:2: error: 'Handle' does not name a type
  Handle<Number> ToNumber(Local<Value> value) {
  ^~~~~~
../src/fibers.cc:114:50: error: 'Handle' has not been declared
  Local<Value> GetStackTrace(TryCatch* try_catch, Handle<Context> context) {
                                                  ^~~~~~
../src/fibers.cc:114:56: error: expected ',' or '...' before '<' token
  Local<Value> GetStackTrace(TryCatch* try_catch, Handle<Context> context) {
                                                        ^
../src/fibers.cc: In function 'v8::Local<v8::Value> uni::GetStackTrace(uni::TryCatch*, int)':
../src/fibers.cc:115:32: error: 'context' was not declared in this scope
   return try_catch->StackTrace(context).ToLocalChecked();
                                ^~~~~~~
../src/fibers.cc: At global scope:
../src/fibers.cc:127:39: error: 'Handle' has not been declared
  void fixStackLimit(Isolate* isolate, Handle<Context> context) {
                                       ^~~~~~
../src/fibers.cc:127:45: error: expected ',' or '...' before '<' token
  void fixStackLimit(Isolate* isolate, Handle<Context> context) {
                                             ^
../src/fibers.cc: In function 'void uni::fixStackLimit(v8::Isolate*, int)':
../src/fibers.cc:128:19: error: 'context' was not declared in this scope
   Script::Compile(context, uni::NewLatin1String(isolate, "void 0;")).ToLocalChecked();
                   ^~~~~~~
../src/fibers.cc:128:28: error: 'NewLatin1String' is not a member of 'uni'
   Script::Compile(context, uni::NewLatin1String(isolate, "void 0;")).ToLocalChecked();
                            ^~~
../src/fibers.cc: At global scope:
../src/fibers.cc:149:58: error: 'Handle' has not been declared
  void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
                                                          ^~~~~~
../src/fibers.cc:149:64: error: expected ',' or '...' before '<' token
  void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
                                                                ^
../src/fibers.cc: In function 'void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)':
../src/fibers.cc:150:29: error: 'handle' was not declared in this scope
   persistent.Reset(isolate, handle);
                             ^~~~~~
../src/fibers.cc: At global scope:
../src/fibers.cc:162:26: error: variable or field 'SetInternalPointer' declared void
  void SetInternalPointer(Handle<T> handle, int index, void* val) {
                          ^~~~~~
../src/fibers.cc:162:26: error: 'Handle' was not declared in this scope
../src/fibers.cc:162:34: error: expected primary-expression before '>' token
  void SetInternalPointer(Handle<T> handle, int index, void* val) {
                                  ^
../src/fibers.cc:162:36: error: 'handle' was not declared in this scope
  void SetInternalPointer(Handle<T> handle, int index, void* val) {
                                    ^~~~~~
../src/fibers.cc:162:44: error: expected primary-expression before 'int'
  void SetInternalPointer(Handle<T> handle, int index, void* val) {
                                            ^~~
../src/fibers.cc:162:55: error: expected primary-expression before 'void'
  void SetInternalPointer(Handle<T> handle, int index, void* val) {
                                                       ^~~~
../src/fibers.cc:166:27: error: 'Handle' was not declared in this scope
  void* GetInternalPointer(Handle<T> handle, int index) {
                           ^~~~~~
../src/fibers.cc:166:35: error: expected primary-expression before '>' token
  void* GetInternalPointer(Handle<T> handle, int index) {
                                   ^
../src/fibers.cc:166:37: error: 'handle' was not declared in this scope
  void* GetInternalPointer(Handle<T> handle, int index) {
                                     ^~~~~~
../src/fibers.cc:166:45: error: expected primary-expression before 'int'
  void* GetInternalPointer(Handle<T> handle, int index) {
                                             ^~~
../src/fibers.cc:166:54: error: expression list treated as compound expression in initializer [-fpermissive]
  void* GetInternalPointer(Handle<T> handle, int index) {
                                                      ^
../src/fibers.cc:166:56: error: expected ';' before '{' token
  void* GetInternalPointer(Handle<T> handle, int index) {
                                                        ^
../src/fibers.cc:171:2: error: 'Handle' does not name a type
  Handle<T> Deref(Isolate* isolate, Persistent<T>& handle) {
  ^~~~~~
../src/fibers.cc:176:14: error: variable or field 'Return' declared void
  void Return(Handle<T> handle, const Arguments& args) {
              ^~~~~~
../src/fibers.cc:176:14: error: 'Handle' was not declared in this scope
../src/fibers.cc:176:22: error: expected primary-expression before '>' token
  void Return(Handle<T> handle, const Arguments& args) {
                      ^
../src/fibers.cc:176:24: error: 'handle' was not declared in this scope
  void Return(Handle<T> handle, const Arguments& args) {
                        ^~~~~~
../src/fibers.cc:176:32: error: expected primary-expression before 'const'
  void Return(Handle<T> handle, const Arguments& args) {
                                ^~~~~
../src/fibers.cc:180:14: error: variable or field 'Return' declared void
  void Return(Handle<T> handle, GetterCallbackInfo info) {
              ^~~~~~
../src/fibers.cc:180:14: error: 'Handle' was not declared in this scope
../src/fibers.cc:180:22: error: expected primary-expression before '>' token
  void Return(Handle<T> handle, GetterCallbackInfo info) {
                      ^
../src/fibers.cc:180:24: error: 'handle' was not declared in this scope
  void Return(Handle<T> handle, GetterCallbackInfo info) {
                        ^~~~~~
../src/fibers.cc:180:51: error: expected primary-expression before 'info'
  void Return(Handle<T> handle, GetterCallbackInfo info) {
                                                   ^~~~
../src/fibers.cc:188:2: error: 'Handle' does not name a type
  Handle<Value> ThrowException(Isolate* isolate, Handle<Value> exception) {
  ^~~~~~
../src/fibers.cc:192:2: error: 'Handle' does not name a type
  Handle<Context> GetCurrentContext(Isolate* isolate) {
  ^~~~~~
../src/fibers.cc:196:2: error: 'Handle' does not name a type
  Handle<Primitive> Undefined(Isolate* isolate) {
  ^~~~~~
../src/fibers.cc:200:2: error: 'Handle' does not name a type
  Handle<Boolean> NewBoolean(Isolate* isolate, bool value) {
  ^~~~~~
../src/fibers.cc:204:2: error: 'Handle' does not name a type
  Handle<Number> NewNumber(Isolate* isolate, double value) {
  ^~~~~~
../src/fibers.cc:208:2: error: 'Handle' does not name a type
  Handle<FunctionTemplate> NewFunctionTemplate(
  ^~~~~~
../src/fibers.cc:218:2: error: 'Handle' does not name a type
  Handle<Signature> NewSignature(
  ^~~~~~
../src/fibers.cc:408:17: error: expected ';' at end of member declaration
   static Fiber& Unwrap(Handle<Object> handle) {
                 ^~~~~~
../src/fibers.cc:408:30: error: expected ')' before '<' token
   static Fiber& Unwrap(Handle<Object> handle) {
                              ^
../src/fibers.cc:414:15: error: expected ')' before '<' token
   Fiber(Handle<Object> handle, Handle<Function> cb, Handle<Context> v8_context) :
               ^
../src/fibers.cc:680:3: error: 'Handle' does not name a type
   Handle<Value> ReturnYielded() {
   ^~~~~~
../src/fibers.cc:842:20: error: 'Handle' has not been declared
   static void Init(Handle<Object> target) {
                    ^~~~~~
../src/fibers.cc:842:26: error: expected ',' or '...' before '<' token
   static void Init(Handle<Object> target) {
                          ^
In file included from ../src/fibers.cc:3:0:
../src/fibers.cc: In static member function 'static void Fiber::WeakCallback(void*)':
../src/fibers.cc:458:23: error: 'class v8::Persistent<v8::Object>' has no member named 'IsNearDeath'
    assert(that.handle.IsNearDeath());
                       ^
../src/fibers.cc: In static member function 'static void Fiber::DestroyOrphans()':
../src/fibers.cc:495:17: error: 'Deref' is not a member of 'uni'
      auto stack(uni::Deref(that.isolate, fatal_stack));
                 ^~~
../src/fibers.cc: In static member function 'static uni::FunctionType Fiber::New(const Arguments&)':
../src/fibers.cc:10:40: error: 'ThrowException' is not a member of 'uni'
 #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
                                        ^
../src/fibers.cc:517:5: note: in expansion of macro 'THROW'
     THROW(Exception::TypeError, "Fiber expects 1 argument");
     ^~~~~
../src/fibers.cc:10:85: error: 'NewLatin1String' is not a member of 'uni'
 #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
                                                                                     ^
../src/fibers.cc:517:5: note: in expansion of macro 'THROW'
     THROW(Exception::TypeError, "Fiber expects 1 argument");
     ^~~~~
../src/fibers.cc:10:139: error: return-statement with a value, in function returning 'void' [-fpermissive]
 #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
                                                                                                                                           ^
../src/fibers.cc:517:5: note: in expansion of macro 'THROW'
     THROW(Exception::TypeError, "Fiber expects 1 argument");
     ^~~~~
../src/fibers.cc:10:40: error: 'ThrowException' is not a member of 'uni'
 #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
                                        ^
../src/fibers.cc:519:5: note: in expansion of macro 'THROW'
     THROW(Exception::TypeError, "Fiber expects a function");
     ^~~~~
../src/fibers.cc:10:85: error: 'NewLatin1String' is not a member of 'uni'
 #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
                                                                                     ^
../src/fibers.cc:519:5: note: in expansion of macro 'THROW'
     THROW(Exception::TypeError, "Fiber expects a function");
     ^~~~~
../src/fibers.cc:10:139: error: return-statement with a value, in function returning 'void' [-fpermissive]
 #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
                                                                                                                                           ^
../src/fibers.cc:519:5: note: in expansion of macro 'THROW'
     THROW(Exception::TypeError, "Fiber expects a function");
     ^~~~~
../src/fibers.cc:521:5: error: 'Handle' was not declared in this scope
     Handle<Value> argv[1] = { args[0] };
     ^~~~~~
../src/fibers.cc:521:17: error: expected primary-expression before '>' token
     Handle<Value> argv[1] = { args[0] };
                 ^
../src/fibers.cc:521:19: error: 'argv' was not declared in this scope
     Handle<Value> argv[1] = { args[0] };
                   ^~~~
../src/fibers.cc:522:24: error: 'NewInstance' is not a member of 'uni'
     return uni::Return(uni::NewInstance(Isolate::GetCurrent(), uni::Deref(Isolate::GetCurrent(), tmpl)->GetFunction(), 1, argv), args);
                        ^~~
../src/fibers.cc:522:64: error: 'Deref' is not a member of 'uni'
     return uni::Return(uni::NewInstance(Isolate::GetCurrent(), uni::Deref(Isolate::GetCurrent(), tmpl)->GetFunction(), 1, argv), args);
                                                                ^~~
../src/fibers.cc:522:134: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return uni::Return(uni::NewInstance(Isolate::GetCurrent(), uni::Deref(Isolate::GetCurrent(), tmpl)->GetFunction(), 1, argv), args);
                                                                                                                                      ^
../src/fibers.cc:525:4: error: 'Handle' was not declared in this scope
    Handle<Function> fn = Handle<Function>::Cast(args[0]);
    ^~~~~~
../src/fibers.cc:525:19: error: expected primary-expression before '>' token
    Handle<Function> fn = Handle<Function>::Cast(args[0]);
                   ^
../src/fibers.cc:525:21: error: 'fn' was not declared in this scope
    Handle<Function> fn = Handle<Function>::Cast(args[0]);
                     ^~
../src/fibers.cc:525:41: error: expected primary-expression before '>' token
    Handle<Function> fn = Handle<Function>::Cast(args[0]);
                                         ^
../src/fibers.cc:525:42: error: '::Cast' has not been declared
    Handle<Function> fn = Handle<Function>::Cast(args[0]);
                                          ^~
../src/fibers.cc:526:31: error: 'GetCurrentContext' is not a member of 'uni'
    new Fiber(args.This(), fn, uni::GetCurrentContext(Isolate::GetCurrent()));
                               ^~~
../src/fibers.cc:527:40: error: no matching function for call to 'Return(v8::Local<v8::Object>, const Arguments&)'
    return uni::Return(args.This(), args);
                                        ^
../src/fibers.cc:184:7: note: candidate: template<class T> void uni::Return(v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, uni::GetterCallbackInfo)
  void Return(Persistent<T>& handle, GetterCallbackInfo info) {
       ^~~~~~
../src/fibers.cc:184:7: note:   template argument deduction/substitution failed:
../src/fibers.cc:527:40: note:   'v8::Local<v8::Object>' is not derived from 'v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >'
    return uni::Return(args.This(), args);
                                        ^
../src/fibers.cc:527:40: error: return-statement with a value, in function returning 'void' [-fpermissive]
../src/fibers.cc: In static member function 'static uni::FunctionType Fiber::Run(const Arguments&)':
../src/fibers.cc:535:38: error: no match for call to '(Fiber) (v8::Local<v8::Object>)'
    Fiber& that = Unwrap(args.Holder());
                                      ^
../src/fibers.cc:10:40: error: 'ThrowException' is not a member of 'uni'
 #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
                                        ^
../src/fibers.cc:541:5: note: in expansion of macro 'THROW'
     THROW(Exception::Error, "This Fiber is already running");
     ^~~~~
../src/fibers.cc:10:85: error: 'NewLatin1String' is not a member of 'uni'
 #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
                                                                                     ^
../src/fibers.cc:541:5: note: in expansion of macro 'THROW'
     THROW(Exception::Error, "This Fiber is already running");
     ^~~~~
../src/fibers.cc:10:139: error: return-statement with a value, in function returning 'void' [-fpermissive]
 #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
                                                                                                                                           ^
../src/fibers.cc:541:5: note: in expansion of macro 'THROW'
     THROW(Exception::Error, "This Fiber is already running");
     ^~~~~
../src/fibers.cc:10:40: error: 'ThrowException' is not a member of 'uni'
 #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
                                        ^
../src/fibers.cc:543:5: note: in expansion of macro 'THROW'
     THROW(Exception::TypeError, "run() excepts 1 or no arguments");
     ^~~~~
../src/fibers.cc:10:85: error: 'NewLatin1String' is not a member of 'uni'
 #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
                                                                                     ^
../src/fibers.cc:543:5: note: in expansion of macro 'THROW'
     THROW(Exception::TypeError, "run() excepts 1 or no arguments");
     ^~~~~
../src/fibers.cc:10:139: error: return-statement with a value, in function returning 'void' [-fpermissive]
 #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
                                                                                                                                           ^
../src/fibers.cc:543:5: note: in expansion of macro 'THROW'
     THROW(Exception::TypeError, "run() excepts 1 or no arguments");
     ^~~~~
../src/fibers.cc:10:40: error: 'ThrowException' is not a member of 'uni'
 #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
                                        ^
../src/fibers.cc:554:6: note: in expansion of macro 'THROW'
      THROW(Exception::RangeError, "Out of memory");
      ^~~~~
../src/fibers.cc:10:85: error: 'NewLatin1String' is not a member of 'uni'
 #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
                                                                                     ^
../src/fibers.cc:554:6: note: in expansion of macro 'THROW'
      THROW(Exception::RangeError, "Out of memory");
      ^~~~~
../src/fibers.cc:10:139: error: return-statement with a value, in function returning 'void' [-fpermissive]
 #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
                                                                                                                                           ^
../src/fibers.cc:554:6: note: in expansion of macro 'THROW'
      THROW(Exception::RangeError, "Out of memory");
      ^~~~~
../src/fibers.cc:564:52: error: no matching function for call to 'Reset(v8::Isolate*&, v8::Persistent<v8::Value>&, v8::Local<v8::Value>)'
      uni::Reset(that.isolate, that.yielded, args[0]);
                                                    ^
../src/fibers.cc:149:7: note: candidate: template<class T> void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)
  void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
       ^~~~~
../src/fibers.cc:149:7: note:   template argument deduction/substitution failed:
../src/fibers.cc:564:51: note:   cannot convert '(& args)->v8::FunctionCallbackInfo<T>::operator[]<v8::Value>(0)' (type 'v8::Local<v8::Value>') to type 'int'
      uni::Reset(that.isolate, that.yielded, args[0]);
                                             ~~~~~~^
../src/fibers.cc:566:52: error: 'Undefined' is not a member of 'uni'
      uni::Reset<Value>(that.isolate, that.yielded, uni::Undefined(that.isolate));
                                                    ^~~
../src/fibers.cc:566:52: note: suggested alternatives:
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63:0,
                 from ../src/coroutine.h:1,
                 from ../src/fibers.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:11272:18: note:   'v8::Undefined'
 Local<Primitive> Undefined(Isolate* isolate) {
                  ^~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:11272:18: note:   'v8::Undefined'
../src/fibers.cc:570:28: error: 'class Fiber' has no member named 'ReturnYielded'
    return uni::Return(that.ReturnYielded(), args);
                            ^~~~~~~~~~~~~
../src/fibers.cc:570:49: error: return-statement with a value, in function returning 'void' [-fpermissive]
    return uni::Return(that.ReturnYielded(), args);
                                                 ^
../src/fibers.cc: In static member function 'static uni::FunctionType Fiber::ThrowInto(const Arguments&)':
../src/fibers.cc:577:38: error: no match for call to '(Fiber) (v8::Local<v8::Object>)'
    Fiber& that = Unwrap(args.Holder());
                                      ^
../src/fibers.cc:10:40: error: 'ThrowException' is not a member of 'uni'
 #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
                                        ^
../src/fibers.cc:580:5: note: in expansion of macro 'THROW'
     THROW(Exception::Error, "This Fiber is not yielding");
     ^~~~~
../src/fibers.cc:10:85: error: 'NewLatin1String' is not a member of 'uni'
 #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
                                                                                     ^
../src/fibers.cc:580:5: note: in expansion of macro 'THROW'
     THROW(Exception::Error, "This Fiber is not yielding");
     ^~~~~
../src/fibers.cc:10:139: error: return-statement with a value, in function returning 'void' [-fpermissive]
 #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
                                                                                                                                           ^
../src/fibers.cc:580:5: note: in expansion of macro 'THROW'
     THROW(Exception::Error, "This Fiber is not yielding");
     ^~~~~
../src/fibers.cc:582:51: error: 'Undefined' is not a member of 'uni'
     uni::Reset<Value>(that.isolate, that.yielded, uni::Undefined(that.isolate));
                                                   ^~~
../src/fibers.cc:582:51: note: suggested alternatives:
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63:0,
                 from ../src/coroutine.h:1,
                 from ../src/fibers.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:11272:18: note:   'v8::Undefined'
 Local<Primitive> Undefined(Isolate* isolate) {
                  ^~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:11272:18: note:   'v8::Undefined'
../src/fibers.cc:584:51: error: no matching function for call to 'Reset(v8::Isolate*&, v8::Persistent<v8::Value>&, v8::Local<v8::Value>)'
     uni::Reset(that.isolate, that.yielded, args[0]);
                                                   ^
../src/fibers.cc:149:7: note: candidate: template<class T> void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)
  void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
       ^~~~~
../src/fibers.cc:149:7: note:   template argument deduction/substitution failed:
../src/fibers.cc:584:50: note:   cannot convert '(& args)->v8::FunctionCallbackInfo<T>::operator[]<v8::Value>(0)' (type 'v8::Local<v8::Value>') to type 'int'
     uni::Reset(that.isolate, that.yielded, args[0]);
                                            ~~~~~~^
../src/fibers.cc:10:40: error: 'ThrowException' is not a member of 'uni'
 #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
                                        ^
../src/fibers.cc:586:5: note: in expansion of macro 'THROW'
     THROW(Exception::TypeError, "throwInto() expects 1 or no arguments");
     ^~~~~
../src/fibers.cc:10:85: error: 'NewLatin1String' is not a member of 'uni'
 #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
                                                                                     ^
../src/fibers.cc:586:5: note: in expansion of macro 'THROW'
     THROW(Exception::TypeError, "throwInto() expects 1 or no arguments");
     ^~~~~
../src/fibers.cc:10:139: error: return-statement with a value, in function returning 'void' [-fpermissive]
 #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
                                                                                                                                           ^
../src/fibers.cc:586:5: note: in expansion of macro 'THROW'
     THROW(Exception::TypeError, "throwInto() expects 1 or no arguments");
     ^~~~~
../src/fibers.cc:590:28: error: 'class Fiber' has no member named 'ReturnYielded'
    return uni::Return(that.ReturnYielded(), args);
                            ^~~~~~~~~~~~~
../src/fibers.cc:590:49: error: return-statement with a value, in function returning 'void' [-fpermissive]
    return uni::Return(that.ReturnYielded(), args);
                                                 ^
../src/fibers.cc: In static member function 'static uni::FunctionType Fiber::Reset(const Arguments&)':
../src/fibers.cc:598:38: error: no match for call to '(Fiber) (v8::Local<v8::Object>)'
    Fiber& that = Unwrap(args.Holder());
                                      ^
../src/fibers.cc:601:24: error: 'Undefined' is not a member of 'uni'
     return uni::Return(uni::Undefined(that.isolate), args);
                        ^~~
../src/fibers.cc:601:24: note: suggested alternatives:
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63:0,
                 from ../src/coroutine.h:1,
                 from ../src/fibers.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:11272:18: note:   'v8::Undefined'
 Local<Primitive> Undefined(Isolate* isolate) {
                  ^~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:11272:18: note:   'v8::Undefined'
../src/fibers.cc:601:58: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return uni::Return(uni::Undefined(that.isolate), args);
                                                          ^
../src/fibers.cc:10:40: error: 'ThrowException' is not a member of 'uni'
 #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
                                        ^
../src/fibers.cc:603:5: note: in expansion of macro 'THROW'
     THROW(Exception::Error, "This Fiber is not yielding");
     ^~~~~
../src/fibers.cc:10:85: error: 'NewLatin1String' is not a member of 'uni'
 #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
                                                                                     ^
../src/fibers.cc:603:5: note: in expansion of macro 'THROW'
     THROW(Exception::Error, "This Fiber is not yielding");
     ^~~~~
../src/fibers.cc:10:139: error: return-statement with a value, in function returning 'void' [-fpermissive]
 #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
                                                                                                                                           ^
../src/fibers.cc:603:5: note: in expansion of macro 'THROW'
     THROW(Exception::Error, "This Fiber is not yielding");
     ^~~~~
../src/fibers.cc:10:40: error: 'ThrowException' is not a member of 'uni'
 #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
                                        ^
../src/fibers.cc:605:5: note: in expansion of macro 'THROW'
     THROW(Exception::TypeError, "reset() expects no arguments");
     ^~~~~
../src/fibers.cc:10:85: error: 'NewLatin1String' is not a member of 'uni'
 #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
                                                                                     ^
../src/fibers.cc:605:5: note: in expansion of macro 'THROW'
     THROW(Exception::TypeError, "reset() expects no arguments");
     ^~~~~
../src/fibers.cc:10:139: error: return-statement with a value, in function returning 'void' [-fpermissive]
 #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
                                                                                                                                           ^
../src/fibers.cc:605:5: note: in expansion of macro 'THROW'
     THROW(Exception::TypeError, "reset() expects no arguments");
     ^~~~~
../src/fibers.cc:613:4: error: 'Handle' was not declared in this scope
    Handle<Value> val = uni::Deref(that.isolate, that.yielded);
    ^~~~~~
../src/fibers.cc:613:16: error: expected primary-expression before '>' token
    Handle<Value> val = uni::Deref(that.isolate, that.yielded);
                ^
../src/fibers.cc:613:18: error: 'val' was not declared in this scope
    Handle<Value> val = uni::Deref(that.isolate, that.yielded);
                  ^~~
../src/fibers.cc:613:24: error: 'Deref' is not a member of 'uni'
    Handle<Value> val = uni::Deref(that.isolate, that.yielded);
                        ^~~
../src/fibers.cc:616:24: error: 'ThrowException' is not a member of 'uni'
     return uni::Return(uni::ThrowException(that.isolate, val), args);
                        ^~~
../src/fibers.cc:616:68: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return uni::Return(uni::ThrowException(that.isolate, val), args);
                                                                    ^
../src/fibers.cc:618:33: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return uni::Return(val, args);
                                 ^
../src/fibers.cc: In member function 'void Fiber::UnwindStack()':
../src/fibers.cc:635:4: error: 'Handle' was not declared in this scope
    Handle<Value> zombie_exception = Exception::Error(uni::NewLatin1String(isolate, "This Fiber is a zombie"));
    ^~~~~~
../src/fibers.cc:635:16: error: expected primary-expression before '>' token
    Handle<Value> zombie_exception = Exception::Error(uni::NewLatin1String(isolate, "This Fiber is a zombie"));
                ^
../src/fibers.cc:635:54: error: 'NewLatin1String' is not a member of 'uni'
    Handle<Value> zombie_exception = Exception::Error(uni::NewLatin1String(isolate, "This Fiber is a zombie"));
                                                      ^~~
../src/fibers.cc:636:64: error: no matching function for call to 'Reset(v8::Isolate*&, v8::Persistent<v8::Value>&, v8::Persistent<v8::Value>&)'
    uni::Reset(isolate, this->zombie_exception, zombie_exception);
                                                                ^
../src/fibers.cc:149:7: note: candidate: template<class T> void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)
  void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
       ^~~~~
../src/fibers.cc:149:7: note:   template argument deduction/substitution failed:
../src/fibers.cc:636:48: note:   cannot convert '((Fiber*)this)->Fiber::zombie_exception' (type 'v8::Persistent<v8::Value>') to type 'int'
    uni::Reset(isolate, this->zombie_exception, zombie_exception);
                                                ^~~~~~~~~~~~~~~~
../src/fibers.cc:637:49: error: no matching function for call to 'Reset(v8::Isolate*&, v8::Persistent<v8::Value>&, v8::Persistent<v8::Value>&)'
    uni::Reset(isolate, yielded, zombie_exception);
                                                 ^
../src/fibers.cc:149:7: note: candidate: template<class T> void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)
  void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
       ^~~~~
../src/fibers.cc:149:7: note:   template argument deduction/substitution failed:
../src/fibers.cc:637:33: note:   cannot convert '((Fiber*)this)->Fiber::zombie_exception' (type 'v8::Persistent<v8::Value>') to type 'int'
    uni::Reset(isolate, yielded, zombie_exception);
                                 ^~~~~~~~~~~~~~~~
../src/fibers.cc:650:41: error: 'Undefined' is not a member of 'uni'
     uni::Reset<Value>(isolate, yielded, uni::Undefined(isolate));
                                         ^~~
../src/fibers.cc:650:41: note: suggested alternatives:
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63:0,
                 from ../src/coroutine.h:1,
                 from ../src/fibers.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:11272:18: note:   'v8::Undefined'
 Local<Primitive> Undefined(Isolate* isolate) {
                  ^~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:11272:18: note:   'v8::Undefined'
../src/fibers.cc: In static member function 'static void Fiber::RunFiber(void**)':
../src/fibers.cc:712:5: error: 'Handle' was not declared in this scope
     Handle<Context> v8_context = uni::Deref(that.isolate, that.v8_context);
     ^~~~~~
../src/fibers.cc:712:19: error: expected primary-expression before '>' token
     Handle<Context> v8_context = uni::Deref(that.isolate, that.v8_context);
                   ^
../src/fibers.cc:712:21: error: invalid use of member 'Fiber::v8_context' in static member function
     Handle<Context> v8_context = uni::Deref(that.isolate, that.v8_context);
                     ^~~~~~~~~~
../src/fibers.cc:397:23: note: declared here
   Persistent<Context> v8_context;
                       ^~~~~~~~~~
../src/fibers.cc:712:34: error: 'Deref' is not a member of 'uni'
     Handle<Context> v8_context = uni::Deref(that.isolate, that.v8_context);
                                  ^~~
../src/fibers.cc:713:5: error: invalid use of member 'Fiber::v8_context' in static member function
     v8_context->Enter();
     ^~~~~~~~~~
../src/fibers.cc:397:23: note: declared here
   Persistent<Context> v8_context;
                       ^~~~~~~~~~
../src/fibers.cc:715:38: error: invalid use of member 'Fiber::v8_context' in static member function
     uni::fixStackLimit(that.isolate, v8_context);
                                      ^~~~~~~~~~
../src/fibers.cc:397:23: note: declared here
   Persistent<Context> v8_context;
                       ^~~~~~~~~~
../src/fibers.cc:717:17: error: expected primary-expression before '>' token
     Handle<Value> yielded;
                 ^
../src/fibers.cc:717:19: error: invalid use of member 'Fiber::yielded' in static member function
     Handle<Value> yielded;
                   ^~~~~~~
../src/fibers.cc:399:21: note: declared here
   Persistent<Value> yielded;
                     ^~~~~~~
../src/fibers.cc:719:18: error: expected primary-expression before '>' token
      Handle<Value> argv[1] = { (*args)[0] };
                  ^
../src/fibers.cc:719:20: error: 'argv' was not declared in this scope
      Handle<Value> argv[1] = { (*args)[0] };
                    ^~~~
../src/fibers.cc:720:6: error: invalid use of member 'Fiber::yielded' in static member function
      yielded = uni::Deref(that.isolate, that.cb)->Call(v8_context->Global(), 1, argv);
      ^~~~~~~
../src/fibers.cc:399:21: note: declared here
   Persistent<Value> yielded;
                     ^~~~~~~
../src/fibers.cc:720:16: error: 'Deref' is not a member of 'uni'
      yielded = uni::Deref(that.isolate, that.cb)->Call(v8_context->Global(), 1, argv);
                ^~~
../src/fibers.cc:720:56: error: invalid use of member 'Fiber::v8_context' in static member function
      yielded = uni::Deref(that.isolate, that.cb)->Call(v8_context->Global(), 1, argv);
                                                        ^~~~~~~~~~
../src/fibers.cc:397:23: note: declared here
   Persistent<Context> v8_context;
                       ^~~~~~~~~~
../src/fibers.cc:722:6: error: invalid use of member 'Fiber::yielded' in static member function
      yielded = uni::Deref(that.isolate, that.cb)->Call(v8_context->Global(), 0, NULL);
      ^~~~~~~
../src/fibers.cc:399:21: note: declared here
   Persistent<Value> yielded;
                     ^~~~~~~
../src/fibers.cc:722:16: error: 'Deref' is not a member of 'uni'
      yielded = uni::Deref(that.isolate, that.cb)->Call(v8_context->Global(), 0, NULL);
                ^~~
../src/fibers.cc:722:56: error: invalid use of member 'Fiber::v8_context' in static member function
      yielded = uni::Deref(that.isolate, that.cb)->Call(v8_context->Global(), 0, NULL);
                                                        ^~~~~~~~~~
../src/fibers.cc:397:23: note: declared here
   Persistent<Context> v8_context;
                       ^~~~~~~~~~
../src/fibers.cc:726:66: error: no matching function for call to 'Reset(v8::Isolate*&, v8::Persistent<v8::Value>&, v8::Local<v8::Value>)'
      uni::Reset(that.isolate, that.yielded, try_catch.Exception());
                                                                  ^
../src/fibers.cc:149:7: note: candidate: template<class T> void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)
  void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
       ^~~~~
../src/fibers.cc:149:7: note:   template argument deduction/substitution failed:
../src/fibers.cc:726:64: note:   cannot convert 'try_catch.uni::TryCatch::<anonymous>.v8::TryCatch::Exception()' (type 'v8::Local<v8::Value>') to type 'int'
      uni::Reset(that.isolate, that.yielded, try_catch.Exception());
                                             ~~~~~~~~~~~~~~~~~~~^~
../src/fibers.cc:728:45: error: 'Deref' is not a member of 'uni'
      if (that.zombie && !that.resetting && !uni::Deref(that.isolate, that.yielded)->StrictEquals(uni::Deref(that.isolate, that.zombie_exception))) {
                                             ^~~
../src/fibers.cc:728:98: error: 'Deref' is not a member of 'uni'
      if (that.zombie && !that.resetting && !uni::Deref(that.isolate, that.yielded)->StrictEquals(uni::Deref(that.isolate, that.zombie_exception))) {
                                                                                                  ^~~
../src/fibers.cc:730:76: error: invalid use of member 'Fiber::v8_context' in static member function
       uni::Reset(that.isolate, fatal_stack, uni::GetStackTrace(&try_catch, v8_context));
                                                                            ^~~~~~~~~~
../src/fibers.cc:397:23: note: declared here
   Persistent<Context> v8_context;
                       ^~~~~~~~~~
../src/fibers.cc:733:45: error: invalid use of member 'Fiber::yielded' in static member function
      uni::Reset(that.isolate, that.yielded, yielded);
                                             ^~~~~~~
../src/fibers.cc:399:21: note: declared here
   Persistent<Value> yielded;
                     ^~~~~~~
../src/fibers.cc:748:5: error: invalid use of member 'Fiber::v8_context' in static member function
     v8_context->Exit();
     ^~~~~~~~~~
../src/fibers.cc:397:23: note: declared here
   Persistent<Context> v8_context;
                       ^~~~~~~~~~
../src/fibers.cc: In static member function 'static uni::FunctionType Fiber::Yield_(const Arguments&)':
../src/fibers.cc:10:40: error: 'ThrowException' is not a member of 'uni'
 #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
                                        ^
../src/fibers.cc:763:5: note: in expansion of macro 'THROW'
     THROW(Exception::Error, "yield() called with no fiber running");
     ^~~~~
../src/fibers.cc:10:85: error: 'NewLatin1String' is not a member of 'uni'
 #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
                                                                                     ^
../src/fibers.cc:763:5: note: in expansion of macro 'THROW'
     THROW(Exception::Error, "yield() called with no fiber running");
     ^~~~~
../src/fibers.cc:10:139: error: return-statement with a value, in function returning 'void' [-fpermissive]
 #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
                                                                                                                                           ^
../src/fibers.cc:763:5: note: in expansion of macro 'THROW'
     THROW(Exception::Error, "yield() called with no fiber running");
     ^~~~~
../src/fibers.cc:769:24: error: 'ThrowException' is not a member of 'uni'
     return uni::Return(uni::ThrowException(that.isolate, uni::Deref(that.isolate, that.zombie_exception)), args);
                        ^~~
../src/fibers.cc:769:58: error: 'Deref' is not a member of 'uni'
     return uni::Return(uni::ThrowException(that.isolate, uni::Deref(that.isolate, that.zombie_exception)), args);
                                                          ^~~
../src/fibers.cc:769:112: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return uni::Return(uni::ThrowException(that.isolate, uni::Deref(that.isolate, that.zombie_exception)), args);
                                                                                                                ^
../src/fibers.cc:771:74: error: no matching function for call to 'Reset(v8::Isolate*&, v8::Persistent<v8::Value>&, v8::Local<v8::Primitive>)'
     uni::Reset<Value>(that.isolate, that.yielded, Undefined(that.isolate));
                                                                          ^
../src/fibers.cc:149:7: note: candidate: template<class T> void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)
  void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
       ^~~~~
../src/fibers.cc:149:7: note:   template argument deduction/substitution failed:
../src/fibers.cc:771:60: note:   cannot convert 'v8::Undefined(that.Fiber::isolate)' (type 'v8::Local<v8::Primitive>') to type 'int'
     uni::Reset<Value>(that.isolate, that.yielded, Undefined(that.isolate));
                                                   ~~~~~~~~~^~~~~~~~~~~~~~
../src/fibers.cc:773:51: error: no matching function for call to 'Reset(v8::Isolate*&, v8::Persistent<v8::Value>&, v8::Local<v8::Value>)'
     uni::Reset(that.isolate, that.yielded, args[0]);
                                                   ^
../src/fibers.cc:149:7: note: candidate: template<class T> void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)
  void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
       ^~~~~
../src/fibers.cc:149:7: note:   template argument deduction/substitution failed:
../src/fibers.cc:773:50: note:   cannot convert '(& args)->v8::FunctionCallbackInfo<T>::operator[]<v8::Value>(0)' (type 'v8::Local<v8::Value>') to type 'int'
     uni::Reset(that.isolate, that.yielded, args[0]);
                                            ~~~~~~^
../src/fibers.cc:10:40: error: 'ThrowException' is not a member of 'uni'
 #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
                                        ^
../src/fibers.cc:775:5: note: in expansion of macro 'THROW'
     THROW(Exception::TypeError, "yield() expects 1 or no arguments");
     ^~~~~
../src/fibers.cc:10:85: error: 'NewLatin1String' is not a member of 'uni'
 #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
                                                                                     ^
../src/fibers.cc:775:5: note: in expansion of macro 'THROW'
     THROW(Exception::TypeError, "yield() expects 1 or no arguments");
     ^~~~~
../src/fibers.cc:10:139: error: return-statement with a value, in function returning 'void' [-fpermissive]
 #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
                                                                                                                                           ^
../src/fibers.cc:775:5: note: in expansion of macro 'THROW'
     THROW(Exception::TypeError, "yield() expects 1 or no arguments");
     ^~~~~
../src/fibers.cc:798:28: error: 'class Fiber' has no member named 'ReturnYielded'
    return uni::Return(that.ReturnYielded(), args);
                            ^~~~~~~~~~~~~
../src/fibers.cc:798:49: error: return-statement with a value, in function returning 'void' [-fpermissive]
    return uni::Return(that.ReturnYielded(), args);
                                                 ^
../src/fibers.cc: In static member function 'static uni::FunctionType Fiber::GetStarted(v8::Local<v8::String>, const GetterCallbackInfo&)':
../src/fibers.cc:806:24: error: 'Undefined' is not a member of 'uni'
     return uni::Return(uni::Undefined(Isolate::GetCurrent()), info);
                        ^~~
../src/fibers.cc:806:24: note: suggested alternatives:
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63:0,
                 from ../src/coroutine.h:1,
                 from ../src/fibers.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:304:27: note:   'v8::Undefined'
   friend Local<Primitive> Undefined(Isolate* isolate);
                           ^~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:304:27: note:   'v8::Undefined'
../src/fibers.cc:806:67: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return uni::Return(uni::Undefined(Isolate::GetCurrent()), info);
                                                                   ^
../src/fibers.cc:808:36: error: no match for call to '(Fiber) (v8::Local<v8::Object>)'
    Fiber& that = Unwrap(info.This());
                                    ^
../src/fibers.cc:809:23: error: 'NewBoolean' is not a member of 'uni'
    return uni::Return(uni::NewBoolean(that.isolate, that.started), info);
                       ^~~
../src/fibers.cc:809:72: error: return-statement with a value, in function returning 'void' [-fpermissive]
    return uni::Return(uni::NewBoolean(that.isolate, that.started), info);
                                                                        ^
../src/fibers.cc: In static member function 'static uni::FunctionType Fiber::GetCurrent(v8::Local<v8::String>, const GetterCallbackInfo&)':
../src/fibers.cc:816:24: error: 'Undefined' is not a member of 'uni'
     return uni::Return(uni::Undefined(Isolate::GetCurrent()), info);
                        ^~~
../src/fibers.cc:816:24: note: suggested alternatives:
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63:0,
                 from ../src/coroutine.h:1,
                 from ../src/fibers.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:304:27: note:   'v8::Undefined'
   friend Local<Primitive> Undefined(Isolate* isolate);
                           ^~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:304:27: note:   'v8::Undefined'
../src/fibers.cc:816:67: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return uni::Return(uni::Undefined(Isolate::GetCurrent()), info);
                                                                   ^
../src/fibers.cc: In static member function 'static uni::FunctionType Fiber::GetPoolSize(v8::Local<v8::String>, const GetterCallbackInfo&)':
../src/fibers.cc:824:23: error: 'NewNumber' is not a member of 'uni'
    return uni::Return(uni::NewNumber(Isolate::GetCurrent(), Coroutine::pool_size), info);
                       ^~~
../src/fibers.cc:824:88: error: return-statement with a value, in function returning 'void' [-fpermissive]
    return uni::Return(uni::NewNumber(Isolate::GetCurrent(), Coroutine::pool_size), info);
                                                                                        ^
../src/fibers.cc: In static member function 'static void Fiber::SetPoolSize(v8::Local<v8::String>, v8::Local<v8::Value>, const SetterCallbackInfo&)':
../src/fibers.cc:828:27: error: 'ToNumber' is not a member of 'uni'
    Coroutine::pool_size = uni::ToNumber(value)->Value();
                           ^~~
../src/fibers.cc: In static member function 'static uni::FunctionType Fiber::GetFibersCreated(v8::Local<v8::String>, const GetterCallbackInfo&)':
../src/fibers.cc:835:23: error: 'NewNumber' is not a member of 'uni'
    return uni::Return(uni::NewNumber(Isolate::GetCurrent(), Coroutine::coroutines_created()), info);
                       ^~~
../src/fibers.cc:835:99: error: return-statement with a value, in function returning 'void' [-fpermissive]
    return uni::Return(uni::NewNumber(Isolate::GetCurrent(), Coroutine::coroutines_created()), info);
                                                                                                   ^
../src/fibers.cc: In static member function 'static void Fiber::Init(int)':
../src/fibers.cc:853:4: error: 'Handle' was not declared in this scope
    Handle<FunctionTemplate> tmpl = uni::NewFunctionTemplate(isolate, New);
    ^~~~~~
../src/fibers.cc:853:27: error: expected primary-expression before '>' token
    Handle<FunctionTemplate> tmpl = uni::NewFunctionTemplate(isolate, New);
                           ^
../src/fibers.cc:853:36: error: 'NewFunctionTemplate' is not a member of 'uni'
    Handle<FunctionTemplate> tmpl = uni::NewFunctionTemplate(isolate, New);
                                    ^~~
../src/fibers.cc:854:41: error: no matching function for call to 'Reset(v8::Isolate*&, v8::Persistent<v8::FunctionTemplate>&, v8::Persistent<v8::FunctionTemplate>&)'
    uni::Reset(isolate, Fiber::tmpl, tmpl);
                                         ^
../src/fibers.cc:149:7: note: candidate: template<class T> void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)
  void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
       ^~~~~
../src/fibers.cc:149:7: note:   template argument deduction/substitution failed:
../src/fibers.cc:854:41: note:   cannot convert 'Fiber::tmpl' (type 'v8::Persistent<v8::FunctionTemplate>') to type 'int'
    uni::Reset(isolate, Fiber::tmpl, tmpl);
                                         ^
../src/fibers.cc:855:8: error: base operand of '->' has non-pointer type 'v8::Persistent<v8::FunctionTemplate>'
    tmpl->SetClassName(uni::NewLatin1Symbol(isolate, "Fiber"));
        ^~
../src/fibers.cc:855:23: error: 'NewLatin1Symbol' is not a member of 'uni'
    tmpl->SetClassName(uni::NewLatin1Symbol(isolate, "Fiber"));
                       ^~~
../src/fibers.cc:859:20: error: expected primary-expression before '>' token
    Handle<Signature> sig = uni::NewSignature(isolate, tmpl);
                    ^
../src/fibers.cc:859:22: error: 'sig' was not declared in this scope
    Handle<Signature> sig = uni::NewSignature(isolate, tmpl);
                      ^~~
../src/fibers.cc:859:28: error: 'NewSignature' is not a member of 'uni'
    Handle<Signature> sig = uni::NewSignature(isolate, tmpl);
                            ^~~
../src/fibers.cc:860:8: error: base operand of '->' has non-pointer type 'v8::Persistent<v8::FunctionTemplate>'
    tmpl->InstanceTemplate()->SetInternalFieldCount(1);
        ^~
../src/fibers.cc:863:25: error: expected primary-expression before '>' token
    Handle<ObjectTemplate> proto = tmpl->PrototypeTemplate();
                         ^
../src/fibers.cc:863:27: error: 'proto' was not declared in this scope
    Handle<ObjectTemplate> proto = tmpl->PrototypeTemplate();
                           ^~~~~
../src/fibers.cc:863:39: error: base operand of '->' has non-pointer type 'v8::Persistent<v8::FunctionTemplate>'
    Handle<ObjectTemplate> proto = tmpl->PrototypeTemplate();
                                       ^~
../src/fibers.cc:864:15: error: 'NewLatin1Symbol' is not a member of 'uni'
    proto->Set(uni::NewLatin1Symbol(isolate, "reset"),
               ^~~
../src/fibers.cc:865:5: error: 'NewFunctionTemplate' is not a member of 'uni'
     uni::NewFunctionTemplate(isolate, Reset, Handle<Value>(), sig));
     ^~~
../src/fibers.cc:865:58: error: expected primary-expression before '>' token
     uni::NewFunctionTemplate(isolate, Reset, Handle<Value>(), sig));
                                                          ^
../src/fibers.cc:865:60: error: expected primary-expression before ')' token
     uni::NewFunctionTemplate(isolate, Reset, Handle<Value>(), sig));
                                                            ^
../src/fibers.cc:866:15: error: 'NewLatin1Symbol' is not a member of 'uni'
    proto->Set(uni::NewLatin1Symbol(isolate, "run"),
               ^~~
../src/fibers.cc:867:5: error: 'NewFunctionTemplate' is not a member of 'uni'
     uni::NewFunctionTemplate(isolate, Run, Handle<Value>(), sig));
     ^~~
../src/fibers.cc:867:56: error: expected primary-expression before '>' token
     uni::NewFunctionTemplate(isolate, Run, Handle<Value>(), sig));
                                                        ^
../src/fibers.cc:867:58: error: expected primary-expression before ')' token
     uni::NewFunctionTemplate(isolate, Run, Handle<Value>(), sig));
                                                          ^
../src/fibers.cc:868:15: error: 'NewLatin1Symbol' is not a member of 'uni'
    proto->Set(uni::NewLatin1Symbol(isolate, "throwInto"),
               ^~~
../src/fibers.cc:869:5: error: 'NewFunctionTemplate' is not a member of 'uni'
     uni::NewFunctionTemplate(isolate, ThrowInto, Handle<Value>(), sig));
     ^~~
../src/fibers.cc:869:62: error: expected primary-expression before '>' token
     uni::NewFunctionTemplate(isolate, ThrowInto, Handle<Value>(), sig));
                                                              ^
../src/fibers.cc:869:64: error: expected primary-expression before ')' token
     uni::NewFunctionTemplate(isolate, ThrowInto, Handle<Value>(), sig));
                                                                ^
../src/fibers.cc:870:23: error: 'NewLatin1Symbol' is not a member of 'uni'
    proto->SetAccessor(uni::NewLatin1Symbol(isolate, "started"), GetStarted);
                       ^~~
../src/fibers.cc:873:19: error: expected primary-expression before '>' token
    Handle<Function> yield = uni::NewFunctionTemplate(isolate, Yield_)->GetFunction();
                   ^
../src/fibers.cc:873:21: error: 'yield' was not declared in this scope
    Handle<Function> yield = uni::NewFunctionTemplate(isolate, Yield_)->GetFunction();
                     ^~~~~
../src/fibers.cc:873:29: error: 'NewFunctionTemplate' is not a member of 'uni'
    Handle<Function> yield = uni::NewFunctionTemplate(isolate, Yield_)->GetFunction();
                             ^~~
../src/fibers.cc:874:17: error: expected primary-expression before '>' token
    Handle<String> sym_yield = uni::NewLatin1Symbol(isolate, "yield");
                 ^
../src/fibers.cc:874:19: error: 'sym_yield' was not declared in this scope
    Handle<String> sym_yield = uni::NewLatin1Symbol(isolate, "yield");
                   ^~~~~~~~~
../src/fibers.cc:874:31: error: 'NewLatin1Symbol' is not a member of 'uni'
    Handle<String> sym_yield = uni::NewLatin1Symbol(isolate, "yield");
                               ^~~
../src/fibers.cc:875:4: error: 'target' was not declared in this scope
    target->Set(sym_yield, yield);
    ^~~~~~
../src/fibers.cc:878:19: error: expected primary-expression before '>' token
    Handle<Function> fn = tmpl->GetFunction();
                   ^
../src/fibers.cc:878:21: error: 'fn' was not declared in this scope
    Handle<Function> fn = tmpl->GetFunction();
                     ^~
../src/fibers.cc:878:30: error: base operand of '->' has non-pointer type 'v8::Persistent<v8::FunctionTemplate>'
    Handle<Function> fn = tmpl->GetFunction();
                              ^~
../src/fibers.cc:880:34: error: 'NewLatin1Symbol' is not a member of 'uni'
    uni::SetAccessor(isolate, fn, uni::NewLatin1Symbol(isolate, "current"), GetCurrent);
                                  ^~~
../src/fibers.cc:881:34: error: 'NewLatin1Symbol' is not a member of 'uni'
    uni::SetAccessor(isolate, fn, uni::NewLatin1Symbol(isolate, "poolSize"), GetPoolSize, SetPoolSize);
                                  ^~~
../src/fibers.cc:882:34: error: 'NewLatin1Symbol' is not a member of 'uni'
    uni::SetAccessor(isolate, fn, uni::NewLatin1Symbol(isolate, "fibersCreated"), GetFibersCreated);
                                  ^~~
../src/fibers.cc:885:16: error: 'NewLatin1Symbol' is not a member of 'uni'
    target->Set(uni::NewLatin1Symbol(isolate, "Fiber"), fn);
                ^~~
../src/fibers.cc: At global scope:
../src/fibers.cc:901:11: error: variable or field 'init' declared void
 void init(Handle<Object> target) {
           ^~~~~~
../src/fibers.cc:901:11: error: 'Handle' was not declared in this scope
../src/fibers.cc:901:24: error: expected primary-expression before '>' token
 void init(Handle<Object> target) {
                        ^
../src/fibers.cc:901:26: error: 'target' was not declared in this scope
 void init(Handle<Object> target) {
                          ^~~~~~
../src/fibers.cc: In instantiation of 'void uni::Return(v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, uni::GetterCallbackInfo) [with T = v8::Object; uni::GetterCallbackInfo = v8::PropertyCallbackInfo<v8::Value>]':
../src/fibers.cc:814:45:   required from here
../src/fibers.cc:185:3: warning: 'void v8::ReturnValue<T>::Set(const v8::Persistent<S>&) [with S = v8::Object; T = v8::Value]' is deprecated: Use Global<> instead [-Wdeprecated-declarations]
   info.GetReturnValue().Set(handle);
   ^~~~
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63:0,
                 from ../src/coroutine.h:1,
                 from ../src/fibers.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:10424:6: note: declared here
 void ReturnValue<T>::Set(const Persistent<S>& handle) {
      ^~~~~~~~~~~~~~
fibers.target.mk:120: recipe for target 'Release/obj.target/fibers/src/fibers.o' failed
make: *** [Release/obj.target/fibers/src/fibers.o] Error 1
make: Leaving directory '/built_app/programs/server/node_modules/fibers/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/opt/nodejs/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:311:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Linux 4.15.0-60-generic
gyp ERR! command "/opt/nodejs/bin/node" "/opt/nodejs/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release"
gyp ERR! cwd /built_app/programs/server/node_modules/fibers
gyp ERR! node -v v12.16.1
gyp ERR! node-gyp -v v5.0.7
gyp ERR! not ok 
node-gyp exited with code: 1
Please make sure you are using a supported platform and node version. If you
would like to compile fibers on this machine please make sure you have setup your
build environment--
Windows + OS X instructions here: https://github.com/nodejs/node-gyp
Ubuntu users please run: `sudo apt-get install g++ build-essential`
RHEL users please run: `yum install gcc-c++` and `yum groupinstall 'Development Tools'` 
Alpine users please run: `sudo apk add python make g++`
sh: 1: nodejs: not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! fibers@3.1.1 install: `node build.js || nodejs build.js`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the fibers@3.1.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-06-14T17_52_41_827Z-debug.log
The command '/bin/sh -c cd /built_app/programs/server &&     npm install --unsafe-perm' returned a non-zero code: 1

real    0m50.849s
user    0m2.847s
sys 0m4.422s
[149.28.210.63] x Prepare Bundle: FAILED

          ------------------------------------STDERR------------------------------------
          The command '/bin/sh -c cd /built_app/programs/server &&     npm install --unsafe-perm' returned a non-zero code: 1

    real    0m50.849s
    user    0m2.847s
    sys 0m4.422s

          ------------------------------------STDOUT------------------------------------
          16: error: 'NewLatin1Symbol' is not a member of 'uni'
        target->Set(uni::NewLatin1Symbol(isolate, "Fiber"), fn);
                    ^~~
    ../src/fibers.cc: At global scope:
    ../src/fibers.cc:901:11: error: variable or field 'init' declared void
     void init(Handle<Object> target) {
               ^~~~~~
    ../src/fibers.cc:901:11: error: 'Handle' was not declared in this scope
    ../src/fibers.cc:901:24: error: expected primary-expression before '>' token
     void init(Handle<Object> target) {
                            ^
    ../src/fibers.cc:901:26: error: 'target' was not declared in this scope
     void init(Handle<Object> target) {
                              ^~~~~~
    ../src/fibers.cc: In instantiation of 'void uni::Return(v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, uni::GetterCallbackInfo) [with T = v8::Object; uni::GetterCallbackInfo = v8::PropertyCallbackInfo<v8::Value>]':
    ../src/fibers.cc:814:45:   required from here
    ../src/fibers.cc:185:3: warning: 'void v8::ReturnValue<T>::Set(const v8::Persistent<S>&) [with S = v8::Object; T = v8::Value]' is deprecated: Use Global<> instead [-Wdeprecated-declarations]
       info.GetReturnValue().Set(handle);
       ^~~~
    In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63:0,
                     from ../src/coroutine.h:1,
                     from ../src/fibers.cc:1:
    /root/.cache/node-gyp/12.16.1/include/node/v8.h:10424:6: note: declared here
     void ReturnValue<T>::Set(const Persistent<S>& handle) {
          ^~~~~~~~~~~~~~
    fibers.target.mk:120: recipe for target 'Release/obj.target/fibers/src/fibers.o' failed
    make: *** [Release/obj.target/fibers/src/fibers.o] Error 1
    make: Leaving directory '/built_app/programs/server/node_modules/fibers/build'
    gyp ERR! build error 
    gyp ERR! stack Error: `make` failed with exit code: 2
    gyp ERR! stack     at ChildProcess.onExit (/opt/nodejs/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
    gyp ERR! stack     at ChildProcess.emit (events.js:311:20)
    gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
    gyp ERR! System Linux 4.15.0-60-generic
    gyp ERR! command "/opt/nodejs/bin/node" "/opt/nodejs/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release"
    gyp ERR! cwd /built_app/programs/server/node_modules/fibers
    gyp ERR! node -v v12.16.1
    gyp ERR! node-gyp -v v5.0.7
    gyp ERR! not ok 
    node-gyp exited with code: 1
    Please make sure you are using a supported platform and node version. If you
    would like to compile fibers on this machine please make sure you have setup your
    build environment--
    Windows + OS X instructions here: https://github.com/nodejs/node-gyp
    Ubuntu users please run: `sudo apt-get install g++ build-essential`
    RHEL users please run: `yum install gcc-c++` and `yum groupinstall 'Development Tools'` 
    Alpine users please run: `sudo apk add python make g++`
    sh: 1: nodejs: not found
    npm ERR! code ELIFECYCLE
    npm ERR! syscall spawn
    npm ERR! file sh
    npm ERR! errno ENOENT
    npm ERR! fibers@3.1.1 install: `node build.js || nodejs build.js`
    npm ERR! spawn ENOENT
    npm ERR! 
    npm ERR! Failed at the fibers@3.1.1 install script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    npm ERR! A complete log of this run can be found in:
    npm ERR!     /root/.npm/_logs/2020-06-14T17_52_41_827Z-debug.log

          ------------------------------------------------------------------------------
zodern commented 4 years ago

@yuwiggin you need to change the docker image in your config to one that is compatible with Meteor 1.8: http://meteor-up.com/docs.html#meteor-support