node-lapack icon indicating copy to clipboard operation
node-lapack copied to clipboard

Install failing for node V9.11.1 on ubuntu?

Open jloveric opened this issue 6 years ago • 1 comments

I'm using node V9.11.1 and am using ubuntu with lapack and libblas installed using

sudo apt-get install libblas-dev liblapack-dev

I see the error below, which looks like a Nan error, probably due to changes in Nan. So at any rate, I can't yet install the tool.

../src/ffi.cc:40:54: warning: ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’ is deprecated [-Wdeprecated-declarations] static_cast<PropertyAttribute>(ReadOnly|DontDelete)) ^ ../src/ffi.cc:103:3: note: in expansion of macro ‘SET_ENUM_VALUE’ SET_ENUM_VALUE(RTLD_NODELETE); ^~~~~~~~~~~~~~ In file included from ../../nan/nan.h:197:0, from ../src/ffi.h:23, from ../src/ffi.cc:3: ../../nan/nan_maybe_43_inl.h:130:35: note: declared here NAN_DEPRECATED inline Maybe ForceSet( ^~~~~~~~ ../src/ffi.cc:111:153: error: no matching function for call to ‘v8::Object::ForceSet(v8::Localv8::String, v8::Localv8::Value, v8::PropertyAttribute)’ XT").ToLocalChecked(), WrapPointer((char *)RTLD_NEXT), static_cast<PropertyAttribute>(ReadOnly | DontDelete));

jloveric avatar Jul 29 '18 23:07 jloveric

Not sure if it would help to use n-api (looks like you are using ffi) https://www.nearform.com/blog/the-future-of-native-modules-in-node-js/ .

jloveric avatar Jul 30 '18 00:07 jloveric