Skip to content

Instantly share code, notes, and snippets.

@SebastienElet
Last active September 25, 2018 08:04
Show Gist options
  • Save SebastienElet/388191e2f2c05d4d7aaaa79ebb094182 to your computer and use it in GitHub Desktop.
Save SebastienElet/388191e2f2c05d4d7aaaa79ebb094182 to your computer and use it in GitHub Desktop.
Libxl build on node 8.9.3
Sending build context to Docker daemon 77.69MB
Step 1/3 : FROM node:8.9.3 as tools
---> 2eeae8debf3d
Step 2/3 : COPY package.json ./
---> Using cache
---> 4aee5ff49e6c
Step 3/3 : RUN npm install --non-interactive --production=false
---> Running in 3926c2b13dc1
npm WARN notice [SECURITY] libxl has the following vulnerability: 1 high. Go here for more details: https://nodesecurity.io/advisories?search=libxl&version=0.3.1 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
> libxl@0.3.1 install /node_modules/libxl
> node install-libxl.js && node-gyp rebuild
Downloading http://www.libxl.com/download/libxl-lin-latest.tar.gz
successfully downloaded /node_modules/libxl/tmp-19Y9sDzedMHBXWlibxl-lin-latest.tar.gz, MD5: 28d23a24ab488ea9e379b0e1b6fac013
Extracting /node_modules/libxl/tmp-19Y9sDzedMHBXWlibxl-lin-latest.tar.gz ...
Renaming deps/libxl-3.8.3.0 to deps/libxl ...
All done!
make: Entering directory '/node_modules/libxl/build'
CXX(target) Release/obj.target/liblibxl/src/bindings.o
CXX(target) Release/obj.target/liblibxl/src/book.o
In file included from ../src/common.h:29:0,
from ../src/book.h:28,
from ../src/book.cc:27:
../src/book.cc: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE node_libxl::Book::LoadSync(Nan::NAN_METHOD_ARGS_TYPE)':
../src/csnan.h:46:96: error: no matching function for call to 'v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)'
#define CSNanUtf8Value(name, value) String::Utf8Value name(v8::Isolate::GetCurrent(), value)
^
../src/book.cc:126:5: note: in expansion of macro 'CSNanUtf8Value'
CSNanUtf8Value(filename, arguments.GetString(0));
^
../src/csnan.h:46:96: note: candidate is:
#define CSNanUtf8Value(name, value) String::Utf8Value name(v8::Isolate::GetCurrent(), value)
^
../src/book.cc:126:5: note: in expansion of macro 'CSNanUtf8Value'
CSNanUtf8Value(filename, arguments.GetString(0));
^
In file included from /root/.node-gyp/8.9.3/include/node/node.h:63:0,
from ../../nan/nan.h:51,
from ../src/common.h:28,
from ../src/book.h:28,
from ../src/book.cc:27:
/root/.node-gyp/8.9.3/include/node/v8.h:2764:14: note: v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)
explicit Utf8Value(Local<v8::Value> obj);
^
/root/.node-gyp/8.9.3/include/node/v8.h:2764:14: note: candidate expects 1 argument, 2 provided
In file included from ../src/common.h:29:0,
from ../src/book.h:28,
from ../src/book.cc:27:
../src/book.cc: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE node_libxl::Book::WriteSync(Nan::NAN_METHOD_ARGS_TYPE)':
../src/csnan.h:46:96: error: no matching function for call to 'v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)'
#define CSNanUtf8Value(name, value) String::Utf8Value name(v8::Isolate::GetCurrent(), value)
^
../src/book.cc:180:5: note: in expansion of macro 'CSNanUtf8Value'
CSNanUtf8Value(filename, arguments.GetString(0));
^
../src/csnan.h:46:96: note: candidate is:
#define CSNanUtf8Value(name, value) String::Utf8Value name(v8::Isolate::GetCurrent(), value)
^
../src/book.cc:180:5: note: in expansion of macro 'CSNanUtf8Value'
CSNanUtf8Value(filename, arguments.GetString(0));
^
In file included from /root/.node-gyp/8.9.3/include/node/node.h:63:0,
from ../../nan/nan.h:51,
from ../src/common.h:28,
from ../src/book.h:28,
from ../src/book.cc:27:
/root/.node-gyp/8.9.3/include/node/v8.h:2764:14: note: v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)
explicit Utf8Value(Local<v8::Value> obj);
^
/root/.node-gyp/8.9.3/include/node/v8.h:2764:14: note: candidate expects 1 argument, 2 provided
In file included from ../src/common.h:29:0,
from ../src/book.h:28,
from ../src/book.cc:27:
../src/book.cc: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE node_libxl::Book::AddSheet(Nan::NAN_METHOD_ARGS_TYPE)':
../src/csnan.h:46:96: error: no matching function for call to 'v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)'
#define CSNanUtf8Value(name, value) String::Utf8Value name(v8::Isolate::GetCurrent(), value)
^
../src/book.cc:363:5: note: in expansion of macro 'CSNanUtf8Value'
CSNanUtf8Value(name, arguments.GetString(0));
^
../src/csnan.h:46:96: note: candidate is:
#define CSNanUtf8Value(name, value) String::Utf8Value name(v8::Isolate::GetCurrent(), value)
^
../src/book.cc:363:5: note: in expansion of macro 'CSNanUtf8Value'
CSNanUtf8Value(name, arguments.GetString(0));
^
In file included from /root/.node-gyp/8.9.3/include/node/node.h:63:0,
from ../../nan/nan.h:51,
from ../src/common.h:28,
from ../src/book.h:28,
from ../src/book.cc:27:
/root/.node-gyp/8.9.3/include/node/v8.h:2764:14: note: v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)
explicit Utf8Value(Local<v8::Value> obj);
^
/root/.node-gyp/8.9.3/include/node/v8.h:2764:14: note: candidate expects 1 argument, 2 provided
In file included from ../src/common.h:29:0,
from ../src/book.h:28,
from ../src/book.cc:27:
../src/book.cc: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE node_libxl::Book::InsertSheet(Nan::NAN_METHOD_ARGS_TYPE)':
../src/csnan.h:46:96: error: no matching function for call to 'v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)'
#define CSNanUtf8Value(name, value) String::Utf8Value name(v8::Isolate::GetCurrent(), value)
^
../src/book.cc:393:5: note: in expansion of macro 'CSNanUtf8Value'
CSNanUtf8Value(name, arguments.GetString(1));
^
../src/csnan.h:46:96: note: candidate is:
#define CSNanUtf8Value(name, value) String::Utf8Value name(v8::Isolate::GetCurrent(), value)
^
../src/book.cc:393:5: note: in expansion of macro 'CSNanUtf8Value'
CSNanUtf8Value(name, arguments.GetString(1));
^
In file included from /root/.node-gyp/8.9.3/include/node/node.h:63:0,
from ../../nan/nan.h:51,
from ../src/common.h:28,
from ../src/book.h:28,
from ../src/book.cc:27:
/root/.node-gyp/8.9.3/include/node/v8.h:2764:14: note: v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)
explicit Utf8Value(Local<v8::Value> obj);
^
/root/.node-gyp/8.9.3/include/node/v8.h:2764:14: note: candidate expects 1 argument, 2 provided
In file included from ../src/common.h:29:0,
from ../src/book.h:28,
from ../src/book.cc:27:
../src/book.cc: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE node_libxl::Book::AddCustomNumFormat(Nan::NAN_METHOD_ARGS_TYPE)':
../src/csnan.h:46:96: error: no matching function for call to 'v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)'
#define CSNanUtf8Value(name, value) String::Utf8Value name(v8::Isolate::GetCurrent(), value)
^
../src/book.cc:542:5: note: in expansion of macro 'CSNanUtf8Value'
CSNanUtf8Value(description, arguments.GetString(0));
^
../src/csnan.h:46:96: note: candidate is:
#define CSNanUtf8Value(name, value) String::Utf8Value name(v8::Isolate::GetCurrent(), value)
^
../src/book.cc:542:5: note: in expansion of macro 'CSNanUtf8Value'
CSNanUtf8Value(description, arguments.GetString(0));
^
In file included from /root/.node-gyp/8.9.3/include/node/node.h:63:0,
from ../../nan/nan.h:51,
from ../src/common.h:28,
from ../src/book.h:28,
from ../src/book.cc:27:
/root/.node-gyp/8.9.3/include/node/v8.h:2764:14: note: v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)
explicit Utf8Value(Local<v8::Value> obj);
^
/root/.node-gyp/8.9.3/include/node/v8.h:2764:14: note: candidate expects 1 argument, 2 provided
In file included from ../src/common.h:29:0,
from ../src/book.h:28,
from ../src/book.cc:27:
../src/book.cc: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE node_libxl::Book::AddPicture(Nan::NAN_METHOD_ARGS_TYPE)':
../src/csnan.h:46:96: error: no matching function for call to 'v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)'
#define CSNanUtf8Value(name, value) String::Utf8Value name(v8::Isolate::GetCurrent(), value)
^
../src/book.cc:868:9: note: in expansion of macro 'CSNanUtf8Value'
CSNanUtf8Value(filename, arguments.GetString(0));
^
../src/csnan.h:46:96: note: candidate is:
#define CSNanUtf8Value(name, value) String::Utf8Value name(v8::Isolate::GetCurrent(), value)
^
../src/book.cc:868:9: note: in expansion of macro 'CSNanUtf8Value'
CSNanUtf8Value(filename, arguments.GetString(0));
^
In file included from /root/.node-gyp/8.9.3/include/node/node.h:63:0,
from ../../nan/nan.h:51,
from ../src/common.h:28,
from ../src/book.h:28,
from ../src/book.cc:27:
/root/.node-gyp/8.9.3/include/node/v8.h:2764:14: note: v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)
explicit Utf8Value(Local<v8::Value> obj);
^
/root/.node-gyp/8.9.3/include/node/v8.h:2764:14: note: candidate expects 1 argument, 2 provided
In file included from ../src/common.h:29:0,
from ../src/book.h:28,
from ../src/book.cc:27:
../src/book.cc: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE node_libxl::Book::SetDefaultFont(Nan::NAN_METHOD_ARGS_TYPE)':
../src/csnan.h:46:96: error: no matching function for call to 'v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)'
#define CSNanUtf8Value(name, value) String::Utf8Value name(v8::Isolate::GetCurrent(), value)
^
../src/book.cc:1014:5: note: in expansion of macro 'CSNanUtf8Value'
CSNanUtf8Value(name, arguments.GetString(0));
^
../src/csnan.h:46:96: note: candidate is:
#define CSNanUtf8Value(name, value) String::Utf8Value name(v8::Isolate::GetCurrent(), value)
^
../src/book.cc:1014:5: note: in expansion of macro 'CSNanUtf8Value'
CSNanUtf8Value(name, arguments.GetString(0));
^
In file included from /root/.node-gyp/8.9.3/include/node/node.h:63:0,
from ../../nan/nan.h:51,
from ../src/common.h:28,
from ../src/book.h:28,
from ../src/book.cc:27:
/root/.node-gyp/8.9.3/include/node/v8.h:2764:14: note: v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)
explicit Utf8Value(Local<v8::Value> obj);
^
/root/.node-gyp/8.9.3/include/node/v8.h:2764:14: note: candidate expects 1 argument, 2 provided
In file included from ../src/common.h:29:0,
from ../src/book.h:28,
from ../src/book.cc:27:
../src/book.cc: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE node_libxl::Book::SetKey(Nan::NAN_METHOD_ARGS_TYPE)':
../src/csnan.h:46:96: error: no matching function for call to 'v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)'
#define CSNanUtf8Value(name, value) String::Utf8Value name(v8::Isolate::GetCurrent(), value)
^
../src/book.cc:1149:5: note: in expansion of macro 'CSNanUtf8Value'
CSNanUtf8Value(name, arguments.GetString(0));
^
../src/csnan.h:46:96: note: candidate is:
#define CSNanUtf8Value(name, value) String::Utf8Value name(v8::Isolate::GetCurrent(), value)
^
../src/book.cc:1149:5: note: in expansion of macro 'CSNanUtf8Value'
CSNanUtf8Value(name, arguments.GetString(0));
^
In file included from /root/.node-gyp/8.9.3/include/node/node.h:63:0,
from ../../nan/nan.h:51,
from ../src/common.h:28,
from ../src/book.h:28,
from ../src/book.cc:27:
/root/.node-gyp/8.9.3/include/node/v8.h:2764:14: note: v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)
explicit Utf8Value(Local<v8::Value> obj);
^
/root/.node-gyp/8.9.3/include/node/v8.h:2764:14: note: candidate expects 1 argument, 2 provided
In file included from ../src/common.h:29:0,
from ../src/book.h:28,
from ../src/book.cc:27:
../src/csnan.h:46:96: error: no matching function for call to 'v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)'
#define CSNanUtf8Value(name, value) String::Utf8Value name(v8::Isolate::GetCurrent(), value)
^
../src/book.cc:1150:5: note: in expansion of macro 'CSNanUtf8Value'
CSNanUtf8Value(key, arguments.GetString(1));
^
../src/csnan.h:46:96: note: candidate is:
#define CSNanUtf8Value(name, value) String::Utf8Value name(v8::Isolate::GetCurrent(), value)
^
../src/book.cc:1150:5: note: in expansion of macro 'CSNanUtf8Value'
CSNanUtf8Value(key, arguments.GetString(1));
^
In file included from /root/.node-gyp/8.9.3/include/node/node.h:63:0,
from ../../nan/nan.h:51,
from ../src/common.h:28,
from ../src/book.h:28,
from ../src/book.cc:27:
/root/.node-gyp/8.9.3/include/node/v8.h:2764:14: note: v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)
explicit Utf8Value(Local<v8::Value> obj);
^
/root/.node-gyp/8.9.3/include/node/v8.h:2764:14: note: candidate expects 1 argument, 2 provided
liblibxl.target.mk:106: recipe for target 'Release/obj.target/liblibxl/src/book.o' failed
make: Leaving directory '/node_modules/libxl/build'
make: *** [Release/obj.target/liblibxl/src/book.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Linux 4.9.93-linuxkit-aufs
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /node_modules/libxl
gyp ERR! node -v v8.9.3
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN bug-libxl@1.0.0 No description
npm WARN bug-libxl@1.0.0 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! libxl@0.3.1 install: `node install-libxl.js && node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the libxl@0.3.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/2018-09-25T08_00_55_792Z-debug.log
FROM node:8.9.3 as tools
COPY package.json ./
RUN npm install --non-interactive --production=false
{
"name": "bug-libxl",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"libxl": "^0.3.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment