Skip to content

[Bug] Compilation errors on Linux Mint #37

@arjohansen

Description

@arjohansen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions