Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Compilation errors on Linux Mint #37

Open
arjohansen opened this issue Nov 16, 2022 · 0 comments
Open

[Bug] Compilation errors on Linux Mint #37

arjohansen opened this issue Nov 16, 2022 · 0 comments

Comments

@arjohansen
Copy link

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);

See the complete output here.

Expected behavior
The library to be installed with no fatal errors.

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

No branches or pull requests

1 participant