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

Compilation warning on newer node versions: v8 has a new ArrayBuffer BackingStore API #735

Closed
felixdivo opened this issue Nov 21, 2020 · 8 comments · Fixed by #825
Closed

Comments

@felixdivo
Copy link
Contributor

I get this output by node-gyp rebuild (invoked using scripts/build.sh) on Node version v14.10.1:

../src/rcl_bindings.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE rclnodejs::CreateArrayBufferFromAddress(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/rcl_bindings.cpp:1330:70: warning: ‘static v8::Local<v8::ArrayBuffer> v8::ArrayBuffer::New(v8::Isolate*, void*, size_t, v8::ArrayBufferCreationMode)’ is deprecated: Use the version that takes a BackingStore. See http://crbug.com/v8/9908. [-Wdeprecated-declarations]
 1330 |                            v8::ArrayBufferCreationMode::kInternalized);
      |                                                                      ^
In file included from /home/felix/.cache/node-gyp/14.10.1/include/node/node.h:67,
                 from ../node_modules/nan/nan.h:56,
                 from ../src/rcl_bindings.hpp:18,
                 from ../src/rcl_bindings.cpp:15:
/home/felix/.cache/node-gyp/14.10.1/include/node/v8.h:5169:29: note: declared here
 5169 |   static Local<ArrayBuffer> New(
      |                             ^~~
../src/rcl_bindings.cpp:1330:70: warning: ‘static v8::Local<v8::ArrayBuffer> v8::ArrayBuffer::New(v8::Isolate*, void*, size_t, v8::ArrayBufferCreationMode)’ is deprecated: Use the version that takes a BackingStore. See http://crbug.com/v8/9908. [-Wdeprecated-declarations]
 1330 |                            v8::ArrayBufferCreationMode::kInternalized);
      |                                                                      ^
In file included from /home/felix/.cache/node-gyp/14.10.1/include/node/node.h:67,
                 from ../node_modules/nan/nan.h:56,
                 from ../src/rcl_bindings.hpp:18,
                 from ../src/rcl_bindings.cpp:15:
/home/felix/.cache/node-gyp/14.10.1/include/node/v8.h:5169:29: note: declared here
 5169 |   static Local<ArrayBuffer> New(
      |                             ^~~```

I didn't include it in #734 as I don't really know any v8 internals.

@minggangw
Copy link
Member

#723 is supposed to solve the compiling error on Node.js >= 14

@minggangw
Copy link
Member

@felixdivo thanks for your contributions recently, we have a small group of teams where developers could plan/discuss for the rclnodejs project, and if you are interested in and want to contact others closely, I'd like to invite you to join the teams, thanks!

@wayneparrott
Copy link
Collaborator

@felixdivo Join rclnodejs developers on Slack — Sign up here, from any device: https://join.slack.com/t/rclnodejsdev/shared_invite/zt-jjukoa3l-zZ5VeAeo~YD11vmUC2Mdnw

@minggangw
Copy link
Member

Oops, sorry I mean slack, Teams is used in Intel...

@felixdivo
Copy link
Contributor Author

#723 is supposed to solve the compiling error on Node.js >= 14

Ah great, so we can just add "closes # 635" to that PR. Nice that it's already being tackled!

I've kinda used up my current free time with a few contributions the last days :P but when I'm feeling like doing some more in this project, I'm happy to join! Thanks! :)

@minggangw
Copy link
Member

Never mind, none of us works on the project full-time, so welcome 🚀

@minggangw
Copy link
Member

Hi @felixdivo I haven't seen you in the slack channel of rclnodejs, if you met any problem, please send me your email address and I will send the invitation again.

@felixdivo
Copy link
Contributor Author

Hey @minggangw, sorry for not writing about this, but I retreated to other projects.

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

Successfully merging a pull request may close this issue.

3 participants