[GH-ISSUE #34] NodeJS 9 build failed. #19

Closed
opened 2026-05-05 11:24:43 -06:00 by gitea-mirror · 0 comments
Owner

Originally created by @AustinBreslinDev on GitHub (Feb 25, 2018).
Original GitHub issue: https://github.com/kusti8/proton-native/issues/34

NodeJS V9 was throwing this error/ very similar error as if in an infinite loop when running npm install.

Bit of research that I did, don't know if it helps.
nbind is a Wrapper that allows JavaScript to run c/c++ code.
libui-node requires nbind.

When I removed NodeJS V9.6.1 and npm V5.6 and installed NodeJS 8.9.4 and Npm V5.6 every worked as expected.

OS: Kubuntu 17.10
NodeV9 Install Type: Package Manager apt
NodeV8 Install Type: Manual from NodeJS downloads.

.node-gyp/9.6.1/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
  CXX(target) Release/obj.target/nbind/src/PointDouble.o
In file included from ../../nbind/include/nbind/BindDefiner.h:20:0,
                 from ../../nbind/include/nbind/nbind.h:8,
                 from ../src/PointDouble.cc:3:
../../nbind/include/nbind/v8/Overloader.h: In static member function ‘static void nbind::Overloader::callNew(const Nan::FunctionCallbackInfo<v8::Value>&)’:
../../nbind/include/nbind/v8/Overloader.h:105:68: warning: ‘v8::Local<v8::Object> v8::Function::NewInstance(int, v8::Local<v8::Value>*) const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   args.GetReturnValue().Set(constructor->NewInstance(argc, &argv[0]));

Update:
Above error says .node-gyp/9.6.1 downgrading to 8.9.4 didn't seem to solve the problem.

.node-gyp/8.9.4/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../node_modules/nbind/include/nbind/BindDefiner.h:22:0,
                 from ../node_modules/nbind/include/nbind/nbind.h:8,
                 from ../src/UiArea/DrawTextFont.cc:3:

Checked the versions I installed using npm install, all dependencies state latest.
Checked the libui-node project on github and build is failing.
After multiple reinstalls npm run build works, npm run demo causes the issues captured above

https://github.com/parro-it/libui-node

Originally created by @AustinBreslinDev on GitHub (Feb 25, 2018). Original GitHub issue: https://github.com/kusti8/proton-native/issues/34 NodeJS V9 was throwing this error/ very similar error as if in an infinite loop when running npm install. Bit of research that I did, don't know if it helps. nbind is a Wrapper that allows JavaScript to run c/c++ code. libui-node requires nbind. When I removed NodeJS V9.6.1 and npm V5.6 and installed NodeJS 8.9.4 and Npm V5.6 every worked as expected. OS: Kubuntu 17.10 NodeV9 Install Type: Package Manager apt NodeV8 Install Type: Manual from NodeJS downloads. ```console .node-gyp/9.6.1/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ CXX(target) Release/obj.target/nbind/src/PointDouble.o In file included from ../../nbind/include/nbind/BindDefiner.h:20:0, from ../../nbind/include/nbind/nbind.h:8, from ../src/PointDouble.cc:3: ../../nbind/include/nbind/v8/Overloader.h: In static member function ‘static void nbind::Overloader::callNew(const Nan::FunctionCallbackInfo<v8::Value>&)’: ../../nbind/include/nbind/v8/Overloader.h:105:68: warning: ‘v8::Local<v8::Object> v8::Function::NewInstance(int, v8::Local<v8::Value>*) const’ is deprecated: Use maybe version [-Wdeprecated-declarations] args.GetReturnValue().Set(constructor->NewInstance(argc, &argv[0])); ``` `Update:` Above error says .node-gyp/9.6.1 downgrading to 8.9.4 didn't seem to solve the problem. ```console .node-gyp/8.9.4/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../node_modules/nbind/include/nbind/BindDefiner.h:22:0, from ../node_modules/nbind/include/nbind/nbind.h:8, from ../src/UiArea/DrawTextFont.cc:3: ``` Checked the versions I installed using npm install, all dependencies state latest. Checked the libui-node project on github and build is failing. After multiple reinstalls npm run build works, npm run demo causes the issues captured above https://github.com/parro-it/libui-node
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/proton-native#19
No description provided.