-
Notifications
You must be signed in to change notification settings - Fork 51
Description
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info ok
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info find Python using Python version 3.9.1 found at "/usr/local/opt/[email protected]/bin/python3.9"
gyp info spawn /usr/local/opt/[email protected]/bin/python3.9
gyp info spawn args [
gyp info spawn args '/usr/local/lib/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/shealtiel/CodeBase/Personal/Basic-Recording/On-Premise-Recording-Nodejs/record/src/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/shealtiel/Library/Caches/node-gyp/14.17.0/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/shealtiel/Library/Caches/node-gyp/14.17.0',
gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/shealtiel/Library/Caches/node-gyp/14.17.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/shealtiel/CodeBase/Personal/Basic-Recording/On-Premise-Recording-Nodejs/record/src',
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 ok
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
CXX(target) Release/obj.target/agorasdk/agora_node_ext/AgoraSdk.o
In file included from ../agora_node_ext/AgoraSdk.cpp:11:
In file included from ../agora_node_ext/AgoraSdk.h:14:
../sdk/include/base/atomic.h:4:5: error: function-like macro '__GNUC_PREREQ' is not defined
#if __GNUC_PREREQ(4, 6)
^
../sdk/include/base/atomic.h:8:7: error: function-like macro 'GNUC_PREREQ' is not defined
#elif GNUC_PREREQ(4, 4)
^
../sdk/include/base/atomic.h:65:2: error: "version should be at least 4.4"
#error "version should be at least 4.4"
^
In file included from ../agora_node_ext/AgoraSdk.cpp:11:
../agora_node_ext/AgoraSdk.h:160:9: error: unknown type name 'atomic_bool_t'; did you mean 'std::atomic_bool'?
atomic_bool_t m_stopped;
^~~~~~~~~~~~~
std::atomic_bool
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/atomic:2387:36: note: 'std::atomic_bool' declared here
typedef atomic atomic_bool;
^
../agora_node_ext/AgoraSdk.cpp:226:9: error: too few arguments to function call, expected 4, have 3
MAKE_JS_CALL_2(REC_EVENT_ERROR, int32, error, int32, stat_code);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../agora_node_ext/AgoraSdk.cpp:47:76: note: expanded from macro 'MAKE_JS_CALL_2'
cb.callback.Get(isolate)->Call(cb.js_this.Get(isolate), 2, argv);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8.h:4468:3: note: 'Call' declared here
V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context,
^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8config.h:431:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
../agora_node_ext/AgoraSdk.cpp:239:9: error: too few arguments to function call, expected 4, have 3
MAKE_JS_CALL_2(REC_EVENT_JOIN_CHANNEL, string, channelName.c_str(), uid, uid);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../agora_node_ext/AgoraSdk.cpp:47:76: note: expanded from macro 'MAKE_JS_CALL_2'
cb.callback.Get(isolate)->Call(cb.js_this.Get(isolate), 2, argv);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8.h:4468:3: note: 'Call' declared here
V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context,
^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8config.h:431:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
../agora_node_ext/AgoraSdk.cpp:246:9: error: too few arguments to function call, expected 4, have 3
MAKE_JS_CALL_0(REC_EVENT_LEAVE_CHANNEL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../agora_node_ext/AgoraSdk.cpp:24:79: note: expanded from macro 'MAKE_JS_CALL_0'
cb.callback.Get(isolate)->Call(cb.js_this.Get(isolate), 0, nullptr);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8.h:4468:3: note: 'Call' declared here
V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context,
^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8config.h:431:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
../agora_node_ext/AgoraSdk.cpp:264:9: error: too few arguments to function call, expected 4, have 3
MAKE_JS_CALL_1(REC_EVENT_USER_JOIN, uid, uid);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../agora_node_ext/AgoraSdk.cpp:35:76: note: expanded from macro 'MAKE_JS_CALL_1'
cb.callback.Get(isolate)->Call(cb.js_this.Get(isolate), 1, argv);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8.h:4468:3: note: 'Call' declared here
V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context,
^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8config.h:431:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
../agora_node_ext/AgoraSdk.cpp:277:9: error: too few arguments to function call, expected 4, have 3
MAKE_JS_CALL_1(REC_EVENT_USER_LEAVE, uid, uid);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../agora_node_ext/AgoraSdk.cpp:35:76: note: expanded from macro 'MAKE_JS_CALL_1'
cb.callback.Get(isolate)->Call(cb.js_this.Get(isolate), 1, argv);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8.h:4468:3: note: 'Call' declared here
V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context,
^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8config.h:431:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
../agora_node_ext/AgoraSdk.cpp:283:9: error: too few arguments to function call, expected 4, have 3
MAKE_JS_CALL_1(REC_EVENT_ACTIVE_SPEAKER, uid, uid);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../agora_node_ext/AgoraSdk.cpp:35:76: note: expanded from macro 'MAKE_JS_CALL_1'
cb.callback.Get(isolate)->Call(cb.js_this.Get(isolate), 1, argv);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8.h:4468:3: note: 'Call' declared here
V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context,
^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8config.h:431:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
../agora_node_ext/AgoraSdk.cpp:406:9: error: too few arguments to function call, expected 4, have 3
MAKE_JS_CALL_2(REC_EVENT_ERROR, int32, err, int32, stat_code);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../agora_node_ext/AgoraSdk.cpp:47:76: note: expanded from macro 'MAKE_JS_CALL_2'
cb.callback.Get(isolate)->Call(cb.js_this.Get(isolate), 2, argv);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8.h:4468:3: note: 'Call' declared here
V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context,
^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8config.h:431:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
../agora_node_ext/AgoraSdk.cpp:419:18: error: no matching member function for call to 'Set'
obj->Set(napi_create_string(isolate, "uid"), napi_create_uid(isolate, speakers[i].uid));
~~~~~^~~
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8.h:3670:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
V8_WARN_UNUSED_RESULT Maybe Set(Local context,
^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8.h:3673:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index,
^
../agora_node_ext/AgoraSdk.cpp:420:18: error: no matching member function for call to 'Set'
obj->Set(napi_create_string(isolate, "volume"), napi_create_uint32(isolate, speakers[i].volume));
~~~~~^~~
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8.h:3670:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
V8_WARN_UNUSED_RESULT Maybe Set(Local context,
^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8.h:3673:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index,
^
../agora_node_ext/AgoraSdk.cpp:421:26: error: no matching member function for call to 'Set'
arrSpeakers->Set(i, obj);
~~~~~~~~~~~~~^~~
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8.h:3670:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
V8_WARN_UNUSED_RESULT Maybe Set(Local context,
^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8.h:3673:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index,
^
../agora_node_ext/AgoraSdk.cpp:428:72: error: too few arguments to function call, expected 4, have 3
cb.callback.Get(isolate)->Call(cb.js_this.Get(isolate), 2, argv);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8.h:4468:3: note: 'Call' declared here
V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context,
^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8config.h:431:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
../agora_node_ext/AgoraSdk.cpp:417:26: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
for(int i = 0; i < speakerNumber; i++) {
~ ^ ~~~~~~~~~~~~~
../agora_node_ext/AgoraSdk.cpp:435:26: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
for(int i = 0; i < speakerNum; i++) {
~ ^ ~~~~~~~~~~
../agora_node_ext/AgoraSdk.cpp:449:9: error: too few arguments to function call, expected 4, have 3
MAKE_JS_CALL_4(REC_EVENT_FIRST_VIDEO_FRAME, uid, uid, int32, width, int32, height, int32, elapsed);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../agora_node_ext/AgoraSdk.cpp:74:76: note: expanded from macro 'MAKE_JS_CALL_4'
cb.callback.Get(isolate)->Call(cb.js_this.Get(isolate), 4, argv);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8.h:4468:3: note: 'Call' declared here
V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context,
^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8config.h:431:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
../agora_node_ext/AgoraSdk.cpp:455:9: error: too few arguments to function call, expected 4, have 3
MAKE_JS_CALL_2(REC_EVENT_FIRST_AUDIO_FRAME, uid, uid, int32, elapsed);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../agora_node_ext/AgoraSdk.cpp:47:76: note: expanded from macro 'MAKE_JS_CALL_2'
cb.callback.Get(isolate)->Call(cb.js_this.Get(isolate), 2, argv);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8.h:4468:3: note: 'Call' declared here
V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context,
^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8config.h:431:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
../agora_node_ext/AgoraSdk.cpp:461:9: error: too few arguments to function call, expected 4, have 3
MAKE_JS_CALL_2(REC_EVENT_STREAM_CHANGED, bool, receivingAudio, bool, receivingVideo);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../agora_node_ext/AgoraSdk.cpp:47:76: note: expanded from macro 'MAKE_JS_CALL_2'
cb.callback.Get(isolate)->Call(cb.js_this.Get(isolate), 2, argv);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8.h:4468:3: note: 'Call' declared here
V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context,
^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8config.h:431:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
../agora_node_ext/AgoraSdk.cpp:467:9: error: too few arguments to function call, expected 4, have 3
MAKE_JS_CALL_0(REC_EVENT_CONN_LOST);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../agora_node_ext/AgoraSdk.cpp:24:79: note: expanded from macro 'MAKE_JS_CALL_0'
cb.callback.Get(isolate)->Call(cb.js_this.Get(isolate), 0, nullptr);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8.h:4468:3: note: 'Call' declared here
V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context,
^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8config.h:431:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 warnings and 20 errors generated.
make: *** [Release/obj.target/agorasdk/agora_node_ext/AgoraSdk.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/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:376:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Darwin 20.4.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/bin/node-gyp" "build"
gyp ERR! cwd /Users/shealtiel/CodeBase/Personal/Basic-Recording/On-Premise-Recording-Nodejs/record/src
gyp ERR! node -v v14.17.0
gyp ERR! node-gyp -v v7.1.0
gyp ERR! not ok
cp: build/Release/agorasdk.node: No such file or directory