speedy.js
speedy.js copied to clipboard
npm install --save-dev speedyjs-compiler FAILED
failed when building llvm-node.
OS: Ubuntu 20.04.2 LTS
[100%] Linking CXX executable bin/wasm-opt
[100%] Built target wasm-opt
speedyjs-runtime configuration { BINARYEN: 'tools/binaryen', LLVM_CONFIG: '/usr/bin/llvm-config' }
> [email protected] install /home/xuxiong/dev/node_modules/llvm-node
> cmake-js compile
info TOOL Using Ninja generator, because ninja is available.
info CMD CONFIGURE
info RUN cmake "/home/xuxiong/dev/node_modules/llvm-node" --no-warn-unused-cli -G"Ninja" -DCMAKE_JS_VERSION="4.0.1" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_LIBRARY_OUTPUT_DIRECTORY="/home/xuxiong/dev/node_modules/llvm-node/build/Release" -DCMAKE_JS_INC="/home/xuxiong/.cmake-js/node-x64/v14.17.0/include/node;/home/xuxiong/dev/node_modules/nan" -DNODE_RUNTIME="node" -DNODE_RUNTIMEVERSION="14.17.0" -DNODE_ARCH="x64"
Not searching for unused variables given on the command line.
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found LLVM 10.0.0
-- Using LLVMConfig.cmake in: /usr/lib/llvm-10/cmake
-- Configuring done
-- Generating done
-- Build files have been written to: /home/xuxiong/dev/node_modules/llvm-node/build
info CMD BUILD
info RUN cmake --build "/home/xuxiong/dev/node_modules/llvm-node/build" --config Release
[5/42] Building CXX object CMakeFiles/llvm-node.dir/src/ir/struct-type.cc.o
FAILED: CMakeFiles/llvm-node.dir/src/ir/struct-type.cc.o
/usr/bin/c++ -Dllvm_node_EXPORTS -I/home/xuxiong/.cmake-js/node-x64/v14.17.0/include/node -I/home/xuxiong/dev/node_modules/nan -I.././node_modules/nan -I/usr/lib/llvm-10/include -O3 -DNDEBUG -fPIC -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -std=gnu++14 -MD -MT CMakeFiles/llvm-node.dir/src/ir/struct-type.cc.o -MF CMakeFiles/llvm-node.dir/src/ir/struct-type.cc.o.d -o CMakeFiles/llvm-node.dir/src/ir/struct-type.cc.o -c ../src/ir/struct-type.cc
../src/ir/struct-type.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE StructTypeWrapper::get(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/ir/struct-type.cc:58:36: error: no matching function for call to ‘v8::Array::Get(size_t&)’
58 | auto element = array->Get(i);
| ^
In file included from /home/xuxiong/.cmake-js/node-x64/v14.17.0/include/node/node.h:67,
from /home/xuxiong/dev/node_modules/nan/nan.h:56,
from ../src/ir/struct-type.h:8,
from ../src/ir/struct-type.cc:5:
/home/xuxiong/.cmake-js/node-x64/v14.17.0/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
3717 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
| ^~~
/home/xuxiong/.cmake-js/node-x64/v14.17.0/include/node/v8.h:3717:43: note: candidate expects 2 arguments, 1 provided
/home/xuxiong/.cmake-js/node-x64/v14.17.0/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
3720 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
| ^~~
/home/xuxiong/.cmake-js/node-x64/v14.17.0/include/node/v8.h:3720:43: note: candidate expects 2 arguments, 1 provided
../src/ir/struct-type.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE StructTypeWrapper::setBody(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/ir/struct-type.cc:143:36: error: no matching function for call to ‘v8::Array::Get(size_t&)’
143 | auto element = array->Get(i);
| ^
In file included from /home/xuxiong/.cmake-js/node-x64/v14.17.0/include/node/node.h:67,
from /home/xuxiong/dev/node_modules/nan/nan.h:56,
from ../src/ir/struct-type.h:8,
from ../src/ir/struct-type.cc:5:
/home/xuxiong/.cmake-js/node-x64/v14.17.0/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
3717 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
| ^~~
/home/xuxiong/.cmake-js/node-x64/v14.17.0/include/node/v8.h:3717:43: note: candidate expects 2 arguments, 1 provided
/home/xuxiong/.cmake-js/node-x64/v14.17.0/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
3720 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
| ^~~
/home/xuxiong/.cmake-js/node-x64/v14.17.0/include/node/v8.h:3720:43: note: candidate expects 2 arguments, 1 provided
[6/42] Building CXX object CMakeFiles/llvm-node.dir/src/ir/type.cc.o
FAILED: CMakeFiles/llvm-node.dir/src/ir/type.cc.o
/usr/bin/c++ -Dllvm_node_EXPORTS -I/home/xuxiong/.cmake-js/node-x64/v14.17.0/include/node -I/home/xuxiong/dev/node_modules/nan -I.././node_modules/nan -I/usr/lib/llvm-10/include -O3 -DNDEBUG -fPIC -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -std=gnu++14 -MD -MT CMakeFiles/llvm-node.dir/src/ir/type.cc.o -MF CMakeFiles/llvm-node.dir/src/ir/type.cc.o.d -o CMakeFiles/llvm-node.dir/src/ir/type.cc.o -c ../src/ir/type.cc
../src/ir/type.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE TypeWrapper::getPrimitiveSizeInBits(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/ir/type.cc:234:70: error: call of overloaded ‘New(llvm::TypeSize)’ is ambiguous
234 | info.GetReturnValue().Set(Nan::New(type->getPrimitiveSizeInBits()));
| ^
In file included from /home/xuxiong/dev/node_modules/nan/nan.h:290,
from ../src/ir/type.h:8,
from ../src/ir/type.cc:7:
/home/xuxiong/dev/node_modules/nan/nan_new.h:270:1: note: candidate: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t Nan::New(bool)’
270 | New(bool value) {
| ^~~
/home/xuxiong/dev/node_modules/nan/nan_new.h:276:1: note: candidate: ‘Nan::imp::IntegerFactory<v8::Int32>::return_t Nan::New(int32_t)’
276 | New(int32_t value) {
| ^~~
/home/xuxiong/dev/node_modules/nan/nan_new.h:282:1: note: candidate: ‘Nan::imp::FactoryBase<v8::Uint32>::return_t Nan::New(uint32_t)’
282 | New(uint32_t value) {
| ^~~
/home/xuxiong/dev/node_modules/nan/nan_new.h:288:1: note: candidate: ‘Nan::imp::FactoryBase<v8::Number>::return_t Nan::New(double)’
288 | New(double value) {
| ^~~
[9/42] Building CXX object CMakeFiles/llvm-node.dir/src/ir/function-type.cc.o