Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

error In file included from ../src/bufferutil.cc:17: #49

Open
sandea opened this issue Apr 1, 2022 · 0 comments
Open

error In file included from ../src/bufferutil.cc:17: #49

sandea opened this issue Apr 1, 2022 · 0 comments

Comments

@sandea
Copy link

sandea commented Apr 1, 2022

2577 verbose pkgid @web3-js/websocket@1.0.30
2578 verbose cwd /home/project/chain/eth/Vote/app
2579 verbose Linux 3.10.0-1160.31.1.el7.x86_64
2580 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
2581 verbose node v16.14.2
2582 verbose npm v8.5.0
2583 error code 1
2584 error path /home/project/chain/eth/Vote/app/node_modules/@web3-js/websocket
2585 error command failed
2586 error command sh -c node-gyp rebuild
2587 error make: 进入目录“/home/project/chain/eth/Vote/app/node_modules/@web3-js/websocket/build”
2587 error CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
2587 error make: 离开目录“/home/project/chain/eth/Vote/app/node_modules/@web3-js/websocket/build”
2588 error gyp info it worked if it ends with ok
2588 error gyp info using node-gyp@8.4.1
2588 error gyp info using node@16.14.2 | linux | x64
2588 error gyp info find Python using Python version 3.9.5 found at "/usr/bin/python"
2588 error gyp info spawn /usr/bin/python
2588 error gyp info spawn args [
2588 error gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
2588 error gyp info spawn args 'binding.gyp',
2588 error gyp info spawn args '-f',
2588 error gyp info spawn args 'make',
2588 error gyp info spawn args '-I',
2588 error gyp info spawn args '/home/project/chain/eth/Vote/app/node_modules/@web3-js/websocket/build/config.gypi',
2588 error gyp info spawn args '-I',
2588 error gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
2588 error gyp info spawn args '-I',
2588 error gyp info spawn args '/root/.cache/node-gyp/16.14.2/include/node/common.gypi',
2588 error gyp info spawn args '-Dlibrary=shared_library',
2588 error gyp info spawn args '-Dvisibility=default',
2588 error gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/16.14.2',
2588 error gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
2588 error gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/16.14.2/<(target_arch)/node.lib',
2588 error gyp info spawn args '-Dmodule_root_dir=/home/project/chain/eth/Vote/app/node_modules/@web3-js/websocket',
2588 error gyp info spawn args '-Dnode_engine=v8',
2588 error gyp info spawn args '--depth=.',
2588 error gyp info spawn args '--no-parallel',
2588 error gyp info spawn args '--generator-output',
2588 error gyp info spawn args 'build',
2588 error gyp info spawn args '-Goutput_dir=.'
2588 error gyp info spawn args ]
2588 error gyp info spawn make
2588 error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
2588 error In file included from ../src/bufferutil.cc:17:
2588 error ../../../nan/nan.h: 在函数‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’中:
2588 error ../../../nan/nan.h:2298:7: 警告:cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type]
2588 error 2298 | , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
2588 error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2588 error ../src/bufferutil.cc: 在静态成员函数‘static void BufferUtil::Initialize(v8::Localv8::Object)’中:
2588 error ../src/bufferutil.cc:34:85: 错误:no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
2588 error 34 | Nan::Set(target, Nan::New("BufferUtil").ToLocalChecked(), t->GetFunction());
2588 error | ~~~~~~~~~~~~~~^~
2588 error In file included from ../src/bufferutil.cc:8:
2588 error /root/.cache/node-gyp/16.14.2/include/node/v8.h:6802:46: 附注:candidate: ‘v8::MaybeLocalv8::Function v8::FunctionTemplate::GetFunction(v8::Localv8::Context)’
2588 error 6802 | V8_WARN_UNUSED_RESULT MaybeLocal GetFunction(
2588 error | ^~~~~~~~~~~
2588 error /root/.cache/node-gyp/16.14.2/include/node/v8.h:6802:46: 附注: 备选需要 1 实参,但提供了 0 个
2588 error ../src/bufferutil.cc: 在静态成员函数‘static Nan::NAN_METHOD_RETURN_TYPE BufferUtil::Merge(Nan::NAN_METHOD_ARGS_TYPE)’中:
2588 error ../src/bufferutil.cc:50:48: 错误:no matching function for call to ‘v8::Value::ToObject()’
2588 error 50 | Local bufferObj = info[0]->ToObject();
2588 error | ~~~~~~~~~~~~~~~~~^~
2588 error In file included from ../src/bufferutil.cc:8:
2588 error /root/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: 附注:candidate: ‘v8::MaybeLocalv8::Object v8::Value::ToObject(v8::Localv8::Context) const’
2588 error 3060 | V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
2588 error | ^~~~~~~~
2588 error /root/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: 附注: 备选需要 1 实参,但提供了 0 个
2588 error ../src/bufferutil.cc:57:37: 错误:no matching function for call to ‘v8::Array::Get(unsigned int&)’
2588 error 57 | Local src = array->Get(i)->ToObject();
2588 error | ~~~~~~~~~~^~~
2588 error In file included from ../src/bufferutil.cc:8:
2588 error /root/.cache/node-gyp/16.14.2/include/node/v8.h:4007:43: 附注:candidate: ‘v8::MaybeLocalv8::Value v8::Object::Get(v8::Localv8::Context, v8::Localv8::Value)’
2588 error 4007 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
2588 error | ^~~
2588 error /root/.cache/node-gyp/16.14.2/include/node/v8.h:4007:43: 附注: 备选需要 2 实参,但提供了 1 个
2588 error /root/.cache/node-gyp/16.14.2/include/node/v8.h:4010:43: 附注:candidate: ‘v8::MaybeLocalv8::Value v8::Object::Get(v8::Localv8::Context, uint32_t)’
2588 error 4010 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
2588 error | ^~~
2588 error /root/.cache/node-gyp/16.14.2/include/node/v8.h:4010:43: 附注: 备选需要 2 实参,但提供了 1 个
2588 error ../src/bufferutil.cc: 在静态成员函数‘static Nan::NAN_METHOD_RETURN_TYPE BufferUtil::Unmask(Nan::NAN_METHOD_ARGS_TYPE)’中:
2588 error ../src/bufferutil.cc:68:49: 错误:no matching function for call to ‘v8::Value::ToObject()’
2588 error 68 | Local buffer_obj = info[0]->ToObject();
2588 error | ~~~~~~~~~~~~~~~~~^~
2588 error In file included from ../src/bufferutil.cc:8:
2588 error /root/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: 附注:candidate: ‘v8::MaybeLocalv8::Object v8::Value::ToObject(v8::Localv8::Context) const’
2588 error 3060 | V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
2588 error | ^~~~~~~~
2588 error /root/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: 附注: 备选需要 1 实参,但提供了 0 个
2588 error ../src/bufferutil.cc:70:47: 错误:no matching function for call to ‘v8::Value::ToObject()’
2588 error 70 | Local mask_obj = info[1]->ToObject();
2588 error | ~~~~~~~~~~~~~~~~~^~
2588 error In file included from ../src/bufferutil.cc:8:
2588 error /root/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: 附注:candidate: ‘v8::MaybeLocalv8::Object v8::Value::ToObject(v8::Localv8::Context) const’
2588 error 3060 | V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
2588 error | ^~~~~~~~
2588 error /root/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: 附注: 备选需要 1 实参,但提供了 0 个
2588 error ../src/bufferutil.cc: 在静态成员函数‘static Nan::NAN_METHOD_RETURN_TYPE BufferUtil::Mask(Nan::NAN_METHOD_ARGS_TYPE)’中:
2588 error ../src/bufferutil.cc:89:49: 错误:no matching function for call to ‘v8::Value::ToObject()’
2588 error 89 | Local buffer_obj = info[0]->ToObject();
2588 error | ~~~~~~~~~~~~~~~~~^~
2588 error In file included from ../src/bufferutil.cc:8:
2588 error /root/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: 附注:candidate: ‘v8::MaybeLocalv8::Object v8::Value::ToObject(v8::Localv8::Context) const’
2588 error 3060 | V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
2588 error | ^~~~~~~~
2588 error /root/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: 附注: 备选需要 1 实参,但提供了 0 个
2588 error ../src/bufferutil.cc:90:47: 错误:no matching function for call to ‘v8::Value::ToObject()’
2588 error 90 | Local mask_obj = info[1]->ToObject();
2588 error | ~~~~~~~~~~~~~~~~~^~
2588 error In file included from ../src/bufferutil.cc:8:
2588 error /root/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: 附注:candidate: ‘v8::MaybeLocalv8::Object v8::Value::ToObject(v8::Localv8::Context) const’
2588 error 3060 | V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
2588 error | ^~~~~~~~
2588 error /root/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: 附注: 备选需要 1 实参,但提供了 0 个
2588 error ../src/bufferutil.cc:92:49: 错误:no matching function for call to ‘v8::Value::ToObject()’
2588 error 92 | Local output_obj = info[2]->ToObject();
2588 error | ~~~~~~~~~~~~~~~~~^~
2588 error In file included from ../src/bufferutil.cc:8:
2588 error /root/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: 附注:candidate: ‘v8::MaybeLocalv8::Object v8::Value::ToObject(v8::Localv8::Context) const’
2588 error 3060 | V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
2588 error | ^~~~~~~~
2588 error /root/.cache/node-gyp/16.14.2/include/node/v8.h:3060:44: 附注: 备选需要 1 实参,但提供了 0 个
2588 error ../src/bufferutil.cc:93:50: 错误:no matching function for call to ‘v8::Value::Int32Value()’
2588 error 93 | unsigned int dataOffset = info[3]->Int32Value();
2588 error | ~~~~~~~~~~~~~~~~~~~^~
2588 error In file included from ../src/bufferutil.cc:8:
2588 error /root/.cache/node-gyp/16.14.2/include/node/v8.h:3107:40: 附注:candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2588 error 3107 | V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2588 error | ^~~~~~~~~~
2588 error /root/.cache/node-gyp/16.14.2/include/node/v8.h:3107:40: 附注: 备选需要 1 实参,但提供了 0 个
2588 error ../src/bufferutil.cc:94:46: 错误:no matching function for call to ‘v8::Value::Int32Value()’
2588 error 94 | unsigned int length = info[4]->Int32Value();
2588 error | ~~~~~~~~~~~~~~~~~~~^~
2588 error In file included from ../src/bufferutil.cc:8:
2588 error /root/.cache/node-gyp/16.14.2/include/node/v8.h:3107:40: 附注:candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2588 error 3107 | V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2588 error | ^~~~~~~~~~
2588 error /root/.cache/node-gyp/16.14.2/include/node/v8.h:3107:40: 附注: 备选需要 1 实参,但提供了 0 个
2588 error In file included from ../src/bufferutil.cc:9:
2588 error ../src/bufferutil.cc: 在全局域:
2588 error /root/.cache/node-gyp/16.14.2/include/node/node.h:842:7: 警告:cast between incompatible function types from ‘void ()(v8::Localv8::Object)’ to ‘node::addon_register_func’ {aka ‘void ()(v8::Localv8::Object, v8::Localv8::Value, void*)’} [-Wcast-function-type]
2588 error 842 | (node::addon_register_func) (regfunc),
2588 error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2588 error /root/.cache/node-gyp/16.14.2/include/node/node.h:876:3: 附注:in expansion of macro ‘NODE_MODULE_X’
2588 error 876 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
2588 error | ^~~~~~~~~~~~~
2588 error ../src/bufferutil.cc:121:1: 附注:in expansion of macro ‘NODE_MODULE’
2588 error 121 | NODE_MODULE(bufferutil, init)
2588 error | ^~~~~~~~~~~
2588 error ../src/bufferutil.cc: 在静态成员函数‘static Nan::NAN_METHOD_RETURN_TYPE BufferUtil::Mask(Nan::NAN_METHOD_ARGS_TYPE)’中:
2588 error ../src/bufferutil.cc:103:39: 警告:this statement may fall through [-Wimplicit-fallthrough=]
2588 error 103 | case 3: ((unsigned char)to+2) = ((unsigned char)from+2) ^ ((unsigned char)mask+2);
2588 error | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2588 error ../src/bufferutil.cc:104:7: 附注:here
2588 error 104 | case 2: ((unsigned char)to+1) = ((unsigned char)from+1) ^ ((unsigned char)mask+1);
2588 error | ^~~~
2588 error ../src/bufferutil.cc:104:39: 警告:this statement may fall through [-Wimplicit-fallthrough=]
2588 error 104 | case 2: ((unsigned char)to+1) = ((unsigned char)from+1) ^ ((unsigned char)mask+1);
2588 error | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2588 error ../src/bufferutil.cc:105:7: 附注:here
2588 error 105 | case 1: ((unsigned char)to ) = ((unsigned char)from ) ^ ((unsigned char)mask);
2588 error | ^~~~
2588 error ../src/bufferutil.cc: 在静态成员函数‘static Nan::NAN_METHOD_RETURN_TYPE BufferUtil::Unmask(Nan::NAN_METHOD_ARGS_TYPE)’中:
2588 error ../src/bufferutil.cc:78:41: 警告:this statement may fall through [-Wimplicit-fallthrough=]
2588 error 78 | case 3: ((unsigned char)from+2) = ((unsigned char)from+2) ^ ((unsigned char*)mask)[2];
2588 error | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2588 error ../src/bufferutil.cc:79:7: 附注:here
2588 error 79 | case 2: ((unsigned char)from+1) = ((unsigned char)from+1) ^ ((unsigned char*)mask)[1];
2588 error | ^~~~
2588 error ../src/bufferutil.cc:79:41: 警告:this statement may fall through [-Wimplicit-fallthrough=]
2588 error 79 | case 2: ((unsigned char)from+1) = ((unsigned char)from+1) ^ ((unsigned char*)mask)[1];
2588 error | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2588 error ../src/bufferutil.cc:80:7: 附注:here
2588 error 80 | case 1: ((unsigned char)from ) = ((unsigned char)from ) ^ ((unsigned char*)mask)[0];
2588 error | ^~~~
2588 error make: *** [Release/obj.target/bufferutil/src/bufferutil.o] 错误 1
2588 error gyp ERR! build error
2588 error gyp ERR! stack Error: make failed with exit code: 2
2588 error gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
2588 error gyp ERR! stack at ChildProcess.emit (node:events:526:28)
2588 error gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
2588 error gyp ERR! System Linux 3.10.0-1160.31.1.el7.x86_64
2588 error gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2588 error gyp ERR! cwd /home/project/chain/eth/Vote/app/node_modules/@web3-js/websocket
2588 error gyp ERR! node -v v16.14.2
2588 error gyp ERR! node-gyp -v v8.4.1
2588 error gyp ERR! not ok
2589 verbose exit 1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant