yortus / asyncawait

Callback heaven for Node.js with async/await
MIT License
1.91k stars 77 forks source link

asyncawait fails to build on Ubuntu 16.04.4 LTS #69

Closed lancemitchell closed 6 years ago

lancemitchell commented 6 years ago

Hello. I am completely blocked as asyncawait fails to build on Ubuntu 16.04.4

Can anyone help resolve the core issue?

Build Errors below

spartanlync-mobile!valor [/var/valor/temp/asyncawait]>npm install -g

> fibers@1.0.15 install /var/valor/temp/asyncawait/node_modules/fibers
> node build.js || nodejs build.js

make: Entering directory '/var/valor/temp/asyncawait/node_modules/fibers/build'
  CXX(target) Release/obj.target/fibers/src/fibers.o
../src/fibers.cc: In function ‘v8::Handle uni::NewLatin1String(v8::Isolate*, const char*)’:
../src/fibers.cc:122:64: error: no matching function for call to ‘v8::String::NewFromOneByte(v8::Isolate*&, const uint8_t*)’
   return String::NewFromOneByte(isolate, (const uint8_t*)string);
                                                                ^
In file included from /home/valor/.node-gyp/10.0.0/include/node/node.h:63:0,
                 from ../src/coroutine.h:1,
                 from ../src/fibers.cc:1:
/home/valor/.node-gyp/10.0.0/include/node/v8.h:2736:51: note: candidate: static v8::MaybeLocal v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::NewStringType, int)
   static V8_WARN_UNUSED_RESULT MaybeLocal NewFromOneByte(
                                                   ^
/home/valor/.node-gyp/10.0.0/include/node/v8.h:2736:51: note:   candidate expects 4 arguments, 2 provided
../src/fibers.cc: In function ‘v8::Handle uni::NewLatin1Symbol(v8::Isolate*, const char*)’:
../src/fibers.cc:126:64: error: no matching function for call to ‘v8::String::NewFromOneByte(v8::Isolate*&, const uint8_t*)’
   return String::NewFromOneByte(isolate, (const uint8_t*)string);
                                                                ^
In file included from /home/valor/.node-gyp/10.0.0/include/node/node.h:63:0,
                 from ../src/coroutine.h:1,
                 from ../src/fibers.cc:1:
/home/valor/.node-gyp/10.0.0/include/node/v8.h:2736:51: note: candidate: static v8::MaybeLocal v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::NewStringType, int)
   static V8_WARN_UNUSED_RESULT MaybeLocal NewFromOneByte(
                                                   ^
/home/valor/.node-gyp/10.0.0/include/node/v8.h:2736:51: note:   candidate expects 4 arguments, 2 provided
../src/fibers.cc: In static member function ‘static void Fiber::DestroyOrphans()’:
../src/fibers.cc:406:67: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
      String::Utf8Value stack(uni::Deref(that.isolate, fatal_stack));
                                                                   ^
In file included from /home/valor/.node-gyp/10.0.0/include/node/v8.h:26:0,
                 from /home/valor/.node-gyp/10.0.0/include/node/node.h:63,
                 from ../src/coroutine.h:1,
                 from ../src/fibers.cc:1:
/home/valor/.node-gyp/10.0.0/include/node/v8.h:2822:28: note: declared here
                   explicit Utf8Value(Local obj));
                            ^
/home/valor/.node-gyp/10.0.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^
../src/fibers.cc: In static member function ‘static uni::FunctionType Fiber::New(const Arguments&)’:
../src/fibers.cc:433:99: error: no matching function for call to ‘v8::Function::NewInstance(int, v8::Handle [1])’
     return uni::Return(uni::Deref(Isolate::GetCurrent(), tmpl)->GetFunction()->NewInstance(1, argv), args);
                                                                                                   ^
In file included from /home/valor/.node-gyp/10.0.0/include/node/node.h:63:0,
                 from ../src/coroutine.h:1,
                 from ../src/fibers.cc:1:
/home/valor/.node-gyp/10.0.0/include/node/v8.h:3848:44: note: candidate: v8::MaybeLocal v8::Function::NewInstance(v8::Local, int, v8::Local*) const
   V8_WARN_UNUSED_RESULT MaybeLocal NewInstance(
                                            ^
/home/valor/.node-gyp/10.0.0/include/node/v8.h:3848:44: note:   candidate expects 3 arguments, 2 provided
/home/valor/.node-gyp/10.0.0/include/node/v8.h:3851:44: note: candidate: v8::MaybeLocal v8::Function::NewInstance(v8::Local) const
   V8_WARN_UNUSED_RESULT MaybeLocal NewInstance(
                                            ^
/home/valor/.node-gyp/10.0.0/include/node/v8.h:3851:44: note:   candidate expects 1 argument, 2 provided
../src/fibers.cc:433:106: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return uni::Return(uni::Deref(Isolate::GetCurrent(), tmpl)->GetFunction()->NewInstance(1, argv), args);
                                                                                                          ^
../src/fibers.cc: In static member function ‘static void Fiber::RunFiber(void**)’:
../src/fibers.cc:621:14: error: no matching function for call to ‘v8::TryCatch::TryCatch()’
     TryCatch try_catch;
              ^
In file included from /home/valor/.node-gyp/10.0.0/include/node/node.h:63:0,
                 from ../src/coroutine.h:1,
                 from ../src/fibers.cc:1:
/home/valor/.node-gyp/10.0.0/include/node/v8.h:8271:12: note: candidate: v8::TryCatch::TryCatch(v8::Isolate*)
   explicit TryCatch(Isolate* isolate);
            ^
/home/valor/.node-gyp/10.0.0/include/node/v8.h:8271:12: note:   candidate expects 1 argument, 0 provided
../src/fibers.cc:628:66: warning: ‘static v8::Local v8::Script::Compile(v8::Local, v8::ScriptOrigin*)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
     Script::Compile(uni::NewLatin1String(that.isolate, "void 0;"));
                                                                  ^
In file included from /home/valor/.node-gyp/10.0.0/include/node/v8.h:26:0,
                 from /home/valor/.node-gyp/10.0.0/include/node/node.h:63,
                 from ../src/coroutine.h:1,
                 from ../src/fibers.cc:1:
/home/valor/.node-gyp/10.0.0/include/node/v8.h:1235:38: note: declared here
                        Local Githubissues.
            
  • Githubissues is a development platform for aggregating issues.