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
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