[Bug] Compilation errors on Linux Mint
arjohansen opened this issue · 0 comments
arjohansen commented
Your environment
- OS version: Linux Mint 20.2 Uma
- Node.js version: v10.19.0
- LLVM version: 14.0.6
- G++ version: g++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
Describe the bug
Running npm install --save llvm-bindings
results in an avalanche of errors, the first of which is:
In file included from /home/arj/llvm-js/node_modules/node-addon-api/napi.h:3001,
from /home/arj/llvm-js/node_modules/llvm-bindings/include/ADT/index.h:3,
from /home/arj/llvm-js/node_modules/llvm-bindings/src/ADT/APFloat.cpp:1:
/home/arj/llvm-js/node_modules/node-addon-api/napi-inl.h: In member function ‘T* Napi::Env::GetInstanceData() const’:
/home/arj/llvm-js/node_modules/node-addon-api/napi-inl.h:562:24: error: there are no arguments to ‘napi_get_instance_data’ that depend on a template parameter, so a declaration of ‘napi_get_instance_data’ must be available [-fpermissive]
562 | napi_status status = napi_get_instance_data(_env, &data);
Expected behavior
The library to be installed with no fatal errors.