This repository was archived by the owner on Jun 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
This repository was archived by the owner on Jun 6, 2021. It is now read-only.
node-gyp cannot rebuild on Node 12 on Mac/Linux #100
Copy link
Copy link
Closed
Description
It fails with following message:
warning Error running install script for optional dependency: "/Users/dis/Sites/web/node_modules/iltorb: Command failed.
Exit code: 1
Command: detect-libc prebuild-install || node-gyp rebuild
Arguments:
Directory: /Users/dis/Sites/web/node_modules/iltorb
Output:
prebuild-install WARN install No prebuilt binaries found (target=12.11.1 runtime=node arch=x64 platform=darwin)
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info spawn /usr/bin/python2
gyp info spawn args [
gyp info spawn args '/Users/dis/Sites/web/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/Users/dis/Sites/web/node_modules/iltorb/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/dis/Sites/web/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/dis/.node-gyp/12.11.1/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/dis/.node-gyp/12.11.1',
gyp info spawn args '-Dnode_gyp_dir=/Users/dis/Sites/web/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/dis/.node-gyp/12.11.1/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/dis/Sites/web/node_modules/iltorb',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
CC(target) Release/obj.target/iltorb/brotli/common/dictionary.o
CC(target) Release/obj.target/iltorb/brotli/dec/bit_reader.o
CC(target) Release/obj.target/iltorb/brotli/dec/decode.o
CC(target) Release/obj.target/iltorb/brotli/dec/huffman.o
CC(target) Release/obj.target/iltorb/brotli/dec/state.o
CC(target) Release/obj.target/iltorb/brotli/enc/backward_references.o
CC(target) Release/obj.target/iltorb/brotli/enc/backward_references_hq.o
CC(target) Release/obj.target/iltorb/brotli/enc/bit_cost.o
CC(target) Release/obj.target/iltorb/brotli/enc/block_splitter.o
CC(target) Release/obj.target/iltorb/brotli/enc/brotli_bit_stream.o
CC(target) Release/obj.target/iltorb/brotli/enc/cluster.o
CC(target) Release/obj.target/iltorb/brotli/enc/compress_fragment.o
CC(target) Release/obj.target/iltorb/brotli/enc/compress_fragment_two_pass.o
CC(target) Release/obj.target/iltorb/brotli/enc/dictionary_hash.o
CC(target) Release/obj.target/iltorb/brotli/enc/encode.o
CC(target) Release/obj.target/iltorb/brotli/enc/entropy_encode.o
CC(target) Release/obj.target/iltorb/brotli/enc/histogram.o
CC(target) Release/obj.target/iltorb/brotli/enc/literal_cost.o
CC(target) Release/obj.target/iltorb/brotli/enc/memory.o
CC(target) Release/obj.target/iltorb/brotli/enc/metablock.o
CC(target) Release/obj.target/iltorb/brotli/enc/static_dict.o
CC(target) Release/obj.target/iltorb/brotli/enc/utf8_util.o
CXX(target) Release/obj.target/iltorb/src/common/allocator.o
CXX(target) Release/obj.target/iltorb/src/common/stream_coder.o
CXX(target) Release/obj.target/iltorb/src/dec/stream_decode.o
../src/dec/stream_decode.cc:14:72: error: no matching member function for call to 'ToObject'
Local<Object> dictionary = Nan::Get(params, key).ToLocalChecked()->ToObject();
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/Users/dis/.node-gyp/12.11.1/include/node/v8.h:2576:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
^
/Users/dis/.node-gyp/12.11.1/include/node/v8.h:2590:31: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
Local<Object> ToObject(Isolate* isolate) const);
^
../src/dec/stream_decode.cc:40:49: error: no matching member function for call to 'ToObject'
StreamDecode* obj = new StreamDecode(info[0]->ToObject());
~~~~~~~~~^~~~~~~~
/Users/dis/.node-gyp/12.11.1/include/node/v8.h:2576:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
^
/Users/dis/.node-gyp/12.11.1/include/node/v8.h:2590:31: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
Local<Object> ToObject(Isolate* isolate) const);
^
../src/dec/stream_decode.cc:48:35: error: no matching member function for call to 'ToObject'
Local<Object> buffer = info[0]->ToObject();
~~~~~~~~~^~~~~~~~
/Users/dis/.node-gyp/12.11.1/include/node/v8.h:2576:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
^
/Users/dis/.node-gyp/12.11.1/include/node/v8.h:2590:31: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
Local<Object> ToObject(Isolate* isolate) const);
^
../src/dec/stream_decode.cc:54:16: error: no matching member function for call to 'BooleanValue'
if (info[2]->BooleanValue()) {
~~~~~~~~~^~~~~~~~~~~~
/Users/dis/.node-gyp/12.11.1/include/node/v8.h:2603:8: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
bool BooleanValue(Isolate* isolate) const;
^
/Users/dis/.node-gyp/12.11.1/include/node/v8.h:2606:51: note: candidate function not viable: requires single argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(
^
../src/dec/stream_decode.cc:70:16: error: no matching member function for call to 'BooleanValue'
if (info[1]->BooleanValue()) {
~~~~~~~~~^~~~~~~~~~~~
/Users/dis/.node-gyp/12.11.1/include/node/v8.h:2603:8: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
bool BooleanValue(Isolate* isolate) const;
^
/Users/dis/.node-gyp/12.11.1/include/node/v8.h:2606:51: note: candidate function not viable: requires single argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(
^
5 errors generated.
make: *** [Release/obj.target/iltorb/src/dec/stream_decode.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/dis/Sites/web/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:210:5)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Darwin 19.0.0
gyp ERR! command \"/usr/local/bin/node\" \"/Users/dis/Sites/web/node_modules/iltorb/node_modules/.bin/node-gyp\" \"rebuild\"
gyp ERR! cwd /Users/dis/Sites/web/node_modules/iltorb
gyp ERR! node -v v12.11.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok"
Metadata
Metadata
Assignees
Labels
No labels