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

broken on dbus nodejs 13 #209

Closed
p3x-robot opened this issue Oct 23, 2019 · 5 comments
Closed

broken on dbus nodejs 13 #209

p3x-robot opened this issue Oct 23, 2019 · 5 comments

Comments

@p3x-robot
Copy link

https://travis-ci.com/patrikx3/systemd-manager/builds/133191750?utm_medium=notification&utm_source=email

@p3x-robot
Copy link
Author

> [email protected] install /home/travis/build/patrikx3/systemd-manager/node_modules/dbus
> npm run build:release
npm WARN npm npm does not support Node.js v13.0.1
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11, 12.
npm WARN npm You can find the latest version at https://nodejs.org/
> [email protected] build:release /home/travis/build/patrikx3/systemd-manager/node_modules/dbus
> node-gyp configure build
make: Entering directory '/home/travis/build/patrikx3/systemd-manager/node_modules/dbus/build'
  CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlparse.o
../deps/libexpat/lib/xmlparse.c: In function ‘gather_time_entropy’:
../deps/libexpat/lib/xmlparse.c:709:7: warning: variable ‘gettimeofday_res’ set but not used [-Wunused-but-set-variable]
   int gettimeofday_res;
       ^
  CC(target) Release/obj.target/expat/deps/libexpat/lib/xmltok.o
  CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlrole.o
  AR(target) Release/obj.target/deps/libexpat/libexpat.a
  COPY Release/libexpat.a
  CXX(target) Release/obj.target/dbus/src/dbus.o
  CXX(target) Release/obj.target/dbus/src/connection.o
  CXX(target) Release/obj.target/dbus/src/signal.o
../src/signal.cc: In function ‘void Signal::DispatchSignal(v8::Local<v8::Value>*)’:
../src/signal.cc:29:25: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated (declared at ../../nan/nan.h:1024) [-Wdeprecated-declarations]
                     info);
                         ^
../src/signal.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE Signal::EmitSignal(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/signal.cc:104:40: error: no matching function for call to ‘v8::Array::Get(unsigned int&)’
     Local<Value> arg = arguments->Get(i);
                                        ^
../src/signal.cc:104:40: note: candidates are:
In file included from /home/travis/.cache/node-gyp/13.0.1/include/node/node.h:63:0,
                 from ../../nan/nan.h:54,
                 from ../src/signal.cc:2:
/home/travis/.cache/node-gyp/13.0.1/include/node/v8.h:3463:43: note: v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                           ^
/home/travis/.cache/node-gyp/13.0.1/include/node/v8.h:3463:43: note:   candidate expects 2 arguments, 1 provided
/home/travis/.cache/node-gyp/13.0.1/include/node/v8.h:3466:43: note: v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                           ^
/home/travis/.cache/node-gyp/13.0.1/include/node/v8.h:3466:43: note:   candidate expects 2 arguments, 1 provided
../src/signal.cc:109:26: error: no matching function for call to ‘v8::Array::Get(unsigned int&)’
         signatures->Get(i)->
                          ^
../src/signal.cc:109:26: note: candidates are:
In file included from /home/travis/.cache/node-gyp/13.0.1/include/node/node.h:63:0,
                 from ../../nan/nan.h:54,
                 from ../src/signal.cc:2:
/home/travis/.cache/node-gyp/13.0.1/include/node/v8.h:3463:43: note: v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                           ^
/home/travis/.cache/node-gyp/13.0.1/include/node/v8.h:3463:43: note:   candidate expects 2 arguments, 1 provided
/home/travis/.cache/node-gyp/13.0.1/include/node/v8.h:3466:43: note: v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                           ^
/home/travis/.cache/node-gyp/13.0.1/include/node/v8.h:3466:43: note:   candidate expects 2 arguments, 1 provided
dbus.target.mk:130: recipe for target 'Release/obj.target/dbus/src/signal.o' failed
make: *** [Release/obj.target/dbus/src/signal.o] Error 1
make: Leaving directory '/home/travis/build/patrikx3/systemd-manager/node_modules/dbus/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/travis/.nvm/versions/node/v13.0.1/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_process.js:272:12)
gyp ERR! System Linux 4.15.0-1028-gcp
gyp ERR! command "/home/travis/.nvm/versions/node/v13.0.1/bin/node" "/home/travis/.nvm/versions/node/v13.0.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
gyp ERR! cwd /home/travis/build/patrikx3/systemd-manager/node_modules/dbus
gyp ERR! node -v v13.0.1
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build:release: `node-gyp configure build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] build:release script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR!     /home/travis/.npm/_logs/2019-10-23T12_53_01_347Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `npm run build:release`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /home/travis/.npm/_logs/2019-10-23T12_53_01_783Z-debug.log

I think it is at signatures->Get(i)

@grapereader
Copy link

I wonder if this is related?

nodejs/nan#849

Shouqun added a commit that referenced this issue Jan 8, 2020
@Shouqun
Copy link
Owner

Shouqun commented Jan 20, 2020

#214 fixed the build broken. However, there are still some test failures.

@Shouqun Shouqun closed this as completed Jan 20, 2020
@p3x-robot
Copy link
Author

so is it released that works with node 13 or not? thanks!

@p3x-robot
Copy link
Author

ok it works, thanks!

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

3 participants