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

Does not compile on ubuntu #140

Open
MoffKalast opened this issue Dec 25, 2019 · 3 comments
Open

Does not compile on ubuntu #140

MoffKalast opened this issue Dec 25, 2019 · 3 comments

Comments

@MoffKalast
Copy link

MoffKalast commented Dec 25, 2019

As you can see in the log below, node-gyp seems to fail at compiling the native part of the library. There seems to be a very excessive amount of warnings and errors that make me wonder if gyp somehow has an extremely old incompatible version of gcc or something.

This is running on Ubuntu 16.04 LTS.

Node: v12.13.1 ARMv7
Npm: v6.12.1


ubuntu@roscar:~/ros/roscar/src/driver$ npm install speaker

> speaker@0.4.2 install /home/ubuntu/ros/roscar/src/driver/node_modules/speaker
> node-gyp rebuild

make: Entering directory '/home/ubuntu/ros/roscar/src/driver/node_modules/speake                                                                                                                                                             r/build'
  CC(target) Release/obj.target/output/deps/mpg123/src/output/alsa.o
../deps/mpg123/src/output/alsa.c: In function ‘rates_match’:
../deps/mpg123/src/output/alsa.c:53:22: warning: comparison between signed and u                                                                                                                                                             nsigned integer expressions [-Wsign-compare]
  return actual * 100 > desired * (100 - AUDIO_RATE_TOLERANCE) &&
                      ^
../deps/mpg123/src/output/alsa.c:54:22: warning: comparison between signed and u                                                                                                                                                             nsigned integer expressions [-Wsign-compare]
         actual * 100 < desired * (100 + AUDIO_RATE_TOLERANCE);
                      ^
../deps/mpg123/src/output/alsa.c: In function ‘initialize_device’:
../deps/mpg123/src/output/alsa.c:78:16: warning: comparison between signed and u                                                                                                                                                             nsigned integer expressions [-Wsign-compare]
  for (i = 0; i < NUM_FORMATS; ++i) {
                ^
../deps/mpg123/src/output/alsa.c: In function ‘get_formats_alsa’:
../deps/mpg123/src/output/alsa.c:201:16: warning: comparison between signed and                                                                                                                                                              unsigned integer expressions [-Wsign-compare]
  for (i = 0; i < NUM_FORMATS; ++i) {
                ^
  AR(target) Release/obj.target/deps/mpg123/liboutput.a
  COPY Release/liboutput.a
  CXX(target) Release/obj.target/binding/src/binding.o
../src/binding.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Open(Na                                                                                                                                                             n::NAN_METHOD_ARGS_TYPE)’:
../src/binding.cc:30:38: error: no matching function for call to ‘v8::Value::Int                                                                                                                                                             32Value()’
   ao->channels = info[1]->Int32Value(); /* channels */
                                      ^
In file included from /home/ubuntu/.cache/node-gyp/12.13.1/include/node/node.h:6                                                                                                                                                             3:0,
                 from ../../nan/nan.h:54,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
/home/ubuntu/.cache/node-gyp/12.13.1/include/node/v8.h:2613:40: note: candidate:                                                                                                                                                              v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const
                                        ^
/home/ubuntu/.cache/node-gyp/12.13.1/include/node/v8.h:2613:40: note:   candidat                                                                                                                                                             e expects 1 argument, 0 provided
../src/binding.cc:31:34: error: no matching function for call to ‘v8::Value::Int                                                                                                                                                             32Value()’
   ao->rate = info[2]->Int32Value(); /* sample rate */
                                  ^
In file included from /home/ubuntu/.cache/node-gyp/12.13.1/include/node/node.h:6                                                                                                                                                             3:0,
                 from ../../nan/nan.h:54,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
/home/ubuntu/.cache/node-gyp/12.13.1/include/node/v8.h:2613:40: note: candidate:                                                                                                                                                              v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const
                                        ^
/home/ubuntu/.cache/node-gyp/12.13.1/include/node/v8.h:2613:40: note:   candidat                                                                                                                                                             e expects 1 argument, 0 provided
../src/binding.cc:32:36: error: no matching function for call to ‘v8::Value::Int                                                                                                                                                             32Value()’
   ao->format = info[3]->Int32Value(); /* MPG123_ENC_* format */
                                    ^
In file included from /home/ubuntu/.cache/node-gyp/12.13.1/include/node/node.h:6                                                                                                                                                             3:0,
                 from ../../nan/nan.h:54,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
/home/ubuntu/.cache/node-gyp/12.13.1/include/node/v8.h:2613:40: note: candidate:                                                                                                                                                              v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const
                                        ^
/home/ubuntu/.cache/node-gyp/12.13.1/include/node/v8.h:2613:40: note:   candidat                                                                                                                                                             e expects 1 argument, 0 provided
../src/binding.cc:35:60: error: no matching function for call to ‘v8::Value::ToS                                                                                                                                                             tring()’
     v8::Local<v8::String> deviceString = info[4]->ToString();
                                                            ^
In file included from /home/ubuntu/.cache/node-gyp/12.13.1/include/node/node.h:6                                                                                                                                                             3:0,
                 from ../../nan/nan.h:54,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
/home/ubuntu/.cache/node-gyp/12.13.1/include/node/v8.h:2572:44: note: candidate:                                                                                                                                                              v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                            ^
/home/ubuntu/.cache/node-gyp/12.13.1/include/node/v8.h:2572:44: note:   candidat                                                                                                                                                             e expects 1 argument, 0 provided
In file included from /home/ubuntu/.cache/node-gyp/12.13.1/include/node/v8-inter                                                                                                                                                             nal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.13.1/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.13.1/include/node/node.h:6                                                                                                                                                             3,
                 from ../../nan/nan.h:54,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
/home/ubuntu/.cache/node-gyp/12.13.1/include/node/v8.h:2588:31: note: candidate:                                                                                                                                                              v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/ubuntu/.cache/node-gyp/12.13.1/include/node/v8config.h:311:3: note: in def                                                                                                                                                             inition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^
/home/ubuntu/.cache/node-gyp/12.13.1/include/node/v8.h:2588:31: note:   candidat                                                                                                                                                             e expects 1 argument, 0 provided
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/ubuntu/.cache/node-gyp/12.13.1/include/node/v8config.h:311:3: note: in def                                                                                                                                                             inition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^
../src/binding.cc:37:71: error: no matching function for call to ‘v8::String::Wr                                                                                                                                                             iteOneByte(uint8_t*)’
     deviceString->WriteOneByte(reinterpret_cast<uint8_t *>(ao->device));
                                                                       ^
In file included from /home/ubuntu/.cache/node-gyp/12.13.1/include/node/node.h:6                                                                                                                                                             3:0,
                 from ../../nan/nan.h:54,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
/home/ubuntu/.cache/node-gyp/12.13.1/include/node/v8.h:2779:7: note: candidate:                                                                                                                                                              int v8::String::WriteOneByte(v8::Isolate*, uint8_t*, int, int, int) const
   int WriteOneByte(Isolate* isolate, uint8_t* buffer, int start = 0,
       ^
/home/ubuntu/.cache/node-gyp/12.13.1/include/node/v8.h:2779:7: note:   candidate                                                                                                                                                              expects 5 arguments, 1 provided
../src/binding.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Write(N                                                                                                                                                             an::NAN_METHOD_ARGS_TYPE)’:
../src/binding.cc:57:33: error: no matching function for call to ‘v8::Value::Int                                                                                                                                                             32Value()’
   int len = info[2]->Int32Value();
                                 ^
In file included from /home/ubuntu/.cache/node-gyp/12.13.1/include/node/node.h:6                                                                                                                                                             3:0,
                 from ../../nan/nan.h:54,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
/home/ubuntu/.cache/node-gyp/12.13.1/include/node/v8.h:2613:40: note: candidate:                                                                                                                                                              v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const
                                        ^
/home/ubuntu/.cache/node-gyp/12.13.1/include/node/v8.h:2613:40: note:   candidat                                                                                                                                                             e expects 1 argument, 0 provided
../src/binding.cc: In function ‘void {anonymous}::write_after(uv_work_t*)’:
../src/binding.cc:86:31: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int,                                                                                                                                                              v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   wreq->callback->Call(1, argv);
                               ^
In file included from ../src/node_pointer.h:6:0,
                 from ../src/binding.cc:5:
../../nan/nan.h:1740:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^
../src/binding.cc: In function ‘void {anonymous}::Initialize(v8::Local<v8::Objec                                                                                                                                                             t>)’:
../src/binding.cc:117:8: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::                                                                                                                                                             Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target,
        ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:117:8: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::                                                                                                                                                             Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target,
        ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:119:64: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8:                                                                                                                                                             :Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
                 Nan::New(mpg123_output_module_info.api_version));
                                                                ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:120:8: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::                                                                                                                                                             Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target,
        ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:120:8: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::                                                                                                                                                             Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target,
        ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:122:74: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8:                                                                                                                                                             :Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
                 Nan::New(mpg123_output_module_info.name).ToLocalChecked());
                                                                          ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:123:8: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::                                                                                                                                                             Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target,
        ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:123:8: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::                                                                                                                                                             Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target,
        ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:125:81: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8:                                                                                                                                                             :Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
              Nan::New(mpg123_output_module_info.description).ToLocalChecked());
                                                                              ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:126:8: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::                                                                                                                                                             Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target,
        ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:126:8: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::                                                                                                                                                             Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target,
        ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:128:78: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8:                                                                                                                                                             :Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
                 Nan::New(mpg123_output_module_info.revision).ToLocalChecked());
                                                                              ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:137:8: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::                                                                                                                                                             Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New("formats").ToLocalChecked(), Nan::New(ao.get_f
        ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:137:8: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::                                                                                                                                                             Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New("formats").ToLocalChecked(), Nan::New(ao.get_f
        ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:137:92: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8:                                                                                                                                                             :Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
 t(target, Nan::New("formats").ToLocalChecked(), Nan::New(ao.get_formats(&ao)));
                                                                              ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:141:70: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v                                                                                                                                                             8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declaration                                                                                                                                                             s]
               Nan::New(static_cast<uint32_t>(sizeof(audio_output_t))));
                                                                      ^
In file included from /home/ubuntu/.cache/node-gyp/12.13.1/include/node/v8-inter                                                                                                                                                             nal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.13.1/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.13.1/include/node/node.h:6                                                                                                                                                             3,
                 from ../../nan/nan.h:54,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
/home/ubuntu/.cache/node-gyp/12.13.1/include/node/v8.h:3403:22: note: declared h                                                                                                                                                             ere
                 bool Set(Local<Value> key, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.13.1/include/node/v8config.h:311:3: note: in def                                                                                                                                                             inition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^
../src/binding.cc:144:8: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::                                                                                                                                                             Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \
        ^
../src/binding.cc:147:3: note: in expansion of macro ‘CONST_INT’
   CONST_INT(MPG123_ENC_FLOAT_32);
   ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:144:8: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::                                                                                                                                                             Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \
        ^
../src/binding.cc:147:3: note: in expansion of macro ‘CONST_INT’
   CONST_INT(MPG123_ENC_FLOAT_32);
   ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:145:58: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8:                                                                                                                                                             :Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
       static_cast<PropertyAttribute>(ReadOnly|DontDelete));
                                                          ^
../src/binding.cc:147:3: note: in expansion of macro ‘CONST_INT’
   CONST_INT(MPG123_ENC_FLOAT_32);
   ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:144:8: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::                                                                                                                                                             Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \
        ^
../src/binding.cc:148:3: note: in expansion of macro ‘CONST_INT’
   CONST_INT(MPG123_ENC_FLOAT_64);
   ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:144:8: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::                                                                                                                                                             Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \
        ^
../src/binding.cc:148:3: note: in expansion of macro ‘CONST_INT’
   CONST_INT(MPG123_ENC_FLOAT_64);
   ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:145:58: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8:                                                                                                                                                             :Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
       static_cast<PropertyAttribute>(ReadOnly|DontDelete));
                                                          ^
../src/binding.cc:148:3: note: in expansion of macro ‘CONST_INT’
   CONST_INT(MPG123_ENC_FLOAT_64);
   ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:144:8: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::                                                                                                                                                             Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \
        ^
../src/binding.cc:149:3: note: in expansion of macro ‘CONST_INT’
   CONST_INT(MPG123_ENC_SIGNED_8);
   ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:144:8: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::                                                                                                                                                             Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \
        ^
../src/binding.cc:149:3: note: in expansion of macro ‘CONST_INT’
   CONST_INT(MPG123_ENC_SIGNED_8);
   ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:145:58: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8:                                                                                                                                                             :Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
       static_cast<PropertyAttribute>(ReadOnly|DontDelete));
                                                          ^
../src/binding.cc:149:3: note: in expansion of macro ‘CONST_INT’
   CONST_INT(MPG123_ENC_SIGNED_8);
   ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:144:8: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::                                                                                                                                                             Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \
        ^
../src/binding.cc:150:3: note: in expansion of macro ‘CONST_INT’
   CONST_INT(MPG123_ENC_UNSIGNED_8);
   ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:144:8: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::                                                                                                                                                             Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \
        ^
../src/binding.cc:150:3: note: in expansion of macro ‘CONST_INT’
   CONST_INT(MPG123_ENC_UNSIGNED_8);
   ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:145:58: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8:                                                                                                                                                             :Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
       static_cast<PropertyAttribute>(ReadOnly|DontDelete));
                                                          ^
../src/binding.cc:150:3: note: in expansion of macro ‘CONST_INT’
   CONST_INT(MPG123_ENC_UNSIGNED_8);
   ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:144:8: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::                                                                                                                                                             Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \
        ^
../src/binding.cc:151:3: note: in expansion of macro ‘CONST_INT’
   CONST_INT(MPG123_ENC_SIGNED_16);
   ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:144:8: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::                                                                                                                                                             Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \
        ^
../src/binding.cc:151:3: note: in expansion of macro ‘CONST_INT’
   CONST_INT(MPG123_ENC_SIGNED_16);
   ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:145:58: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8:                                                                                                                                                             :Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
       static_cast<PropertyAttribute>(ReadOnly|DontDelete));
                                                          ^
../src/binding.cc:151:3: note: in expansion of macro ‘CONST_INT’
   CONST_INT(MPG123_ENC_SIGNED_16);
   ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:144:8: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::                                                                                                                                                             Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \
        ^
../src/binding.cc:152:3: note: in expansion of macro ‘CONST_INT’
   CONST_INT(MPG123_ENC_UNSIGNED_16);
   ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:144:8: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::                                                                                                                                                             Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \
        ^
../src/binding.cc:152:3: note: in expansion of macro ‘CONST_INT’
   CONST_INT(MPG123_ENC_UNSIGNED_16);
   ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:145:58: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8:                                                                                                                                                             :Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
       static_cast<PropertyAttribute>(ReadOnly|DontDelete));
                                                          ^
../src/binding.cc:152:3: note: in expansion of macro ‘CONST_INT’
   CONST_INT(MPG123_ENC_UNSIGNED_16);
   ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:144:8: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::                                                                                                                                                             Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \
        ^
../src/binding.cc:153:3: note: in expansion of macro ‘CONST_INT’
   CONST_INT(MPG123_ENC_SIGNED_24);
   ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:144:8: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::                                                                                                                                                             Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \
        ^
../src/binding.cc:153:3: note: in expansion of macro ‘CONST_INT’
   CONST_INT(MPG123_ENC_SIGNED_24);
   ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:145:58: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8:                                                                                                                                                             :Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
       static_cast<PropertyAttribute>(ReadOnly|DontDelete));
                                                          ^
../src/binding.cc:153:3: note: in expansion of macro ‘CONST_INT’
   CONST_INT(MPG123_ENC_SIGNED_24);
   ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:144:8: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::                                                                                                                                                             Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \
        ^
../src/binding.cc:154:3: note: in expansion of macro ‘CONST_INT’
   CONST_INT(MPG123_ENC_UNSIGNED_24);
   ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:144:8: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::                                                                                                                                                             Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \
        ^
../src/binding.cc:154:3: note: in expansion of macro ‘CONST_INT’
   CONST_INT(MPG123_ENC_UNSIGNED_24);
   ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:145:58: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8:                                                                                                                                                             :Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
       static_cast<PropertyAttribute>(ReadOnly|DontDelete));
                                                          ^
../src/binding.cc:154:3: note: in expansion of macro ‘CONST_INT’
   CONST_INT(MPG123_ENC_UNSIGNED_24);
   ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:144:8: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::                                                                                                                                                             Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \
        ^
../src/binding.cc:155:3: note: in expansion of macro ‘CONST_INT’
   CONST_INT(MPG123_ENC_SIGNED_32);
   ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:144:8: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::                                                                                                                                                             Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \
        ^
../src/binding.cc:155:3: note: in expansion of macro ‘CONST_INT’
   CONST_INT(MPG123_ENC_SIGNED_32);
   ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:145:58: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8:                                                                                                                                                             :Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
       static_cast<PropertyAttribute>(ReadOnly|DontDelete));
                                                          ^
../src/binding.cc:155:3: note: in expansion of macro ‘CONST_INT’
   CONST_INT(MPG123_ENC_SIGNED_32);
   ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:144:8: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::                                                                                                                                                             Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \
        ^
../src/binding.cc:156:3: note: in expansion of macro ‘CONST_INT’
   CONST_INT(MPG123_ENC_UNSIGNED_32);
   ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:144:8: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::                                                                                                                                                             Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \
        ^
../src/binding.cc:156:3: note: in expansion of macro ‘CONST_INT’
   CONST_INT(MPG123_ENC_UNSIGNED_32);
   ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/binding.cc:145:58: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8:                                                                                                                                                             :Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is                                                                                                                                                              deprecated [-Wdeprecated-declarations]
       static_cast<PropertyAttribute>(ReadOnly|DontDelete));
                                                          ^
../src/binding.cc:156:3: note: in expansion of macro ‘CONST_INT’
   CONST_INT(MPG123_ENC_UNSIGNED_32);
   ^
In file included from ../../nan/nan.h:282:0,
                 from ../src/node_pointer.h:6,
                 from ../src/binding.cc:5:
../../nan/nan_maybe_43_inl.h:117:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
binding.target.mk:118: recipe for target 'Release/obj.target/binding/src/binding                                                                                                                                                             .o' failed
make: *** [Release/obj.target/binding/src/binding.o] Error 1
make: Leaving directory '/home/ubuntu/ros/roscar/src/driver/node_modules/speaker                                                                                                                                                             /build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_                                                                                                                                                             modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:210:5)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_proces                                                                                                                                                             s.js:272:12)
gyp ERR! System Linux 4.19.50-v7l+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_mod                                                                                                                                                             ules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/ubuntu/ros/roscar/src/driver/node_modules/speaker
gyp ERR! node -v v12.13.1
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! speaker@0.4.2 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the speaker@0.4.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional log                                                                                                                                                             ging output above.

@karen-pal
Copy link

Error still in Ubuntu 20, with node v17.3.0 and npm v8.3.0.

@tcollinsworth
Copy link

Works for me on Ubuntu 20.04.3 LTS, node v16.13.2, npm 8.1.2.

@dhdaines
Copy link

dhdaines commented Jun 27, 2022

Does not work on Ubuntu 20.04.4 LTS, node v14.18.2, npm 6.14.15. There's a lot of atrocious C++ junk in the error messages that I refuse to understand but it looks like this is the first error:

../src/binding.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Open(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/binding.cc:30:38: error: no matching function for call to ‘v8::Value::Int32Value()’
   30 |   ao->channels = info[1]->Int32Value(); /* channels */

and this is the second one:

../src/binding.cc: At global scope:
../src/binding.cc:104:17: error: variable or field ‘Initialize’ declared void
  104 | void Initialize(Handle<Object> target) {
      |                 ^~~~~~
../src/binding.cc:104:17: error: ‘Handle’ was not declared in this scope
../src/binding.cc:104:30: error: expected primary-expression before ‘>’ token
  104 | void Initialize(Handle<Object> target) {
      |                              ^
../src/binding.cc:104:32: error: ‘target’ was not declared in this scope
  104 | void Initialize(Handle<Object> target) {
      |                                ^~~~~~

Upgrading npm to 8.13.1 seems to have solved the problem, though. So perhaps this should be noted in the README

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

4 participants