Skip to content

Instantly share code, notes, and snippets.

@ivucica
Created January 27, 2021 15:12
Show Gist options
  • Save ivucica/aef34af616d481579c2a7fffac8a449d to your computer and use it in GitHub Desktop.
Save ivucica/aef34af616d481579c2a7fffac8a449d to your computer and use it in GitHub Desktop.
broken narwhal+node12+fiber
myusermame@mymachine:~/projects/cappuccino/narwhal/packages/narwhal-node/bin$ ./npm-install
+ npm install fibers synchronize xmldom
> fibers@5.0.0 install /home/myusername/projects/cappuccino/narwhal/node_modules/fibers
> node build.js || nodejs build.js
`linux-x64-72-glibc` exists; testing
Binary is fine; exiting
> fibers@1.0.15 install /home/myusername/projects/cappuccino/narwhal/node_modules/synchronize/node_modules/fibers
> node build.js || nodejs build.js
make: Entering directory '/home/myusername/projects/cappuccino/narwhal/node_modules/synchronize/node_modules/fibers/build'
CXX(target) Release/obj.target/fibers/src/fibers.o
../src/fibers.cc:70:58: error: ‘Handle’ has not been declared
70 | void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
| ^~~~~~
../src/fibers.cc:70:64: error: expected ‘,’ or ‘...’ before ‘<’ token
70 | void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
| ^
../src/fibers.cc: In function ‘void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)’:
../src/fibers.cc:71:29: error: ‘handle’ was not declared in this scope
71 | persistent.Reset(isolate, handle);
| ^~~~~~
../src/fibers.cc: At global scope:
../src/fibers.cc:83:26: error: variable or field ‘SetInternalPointer’ declared void
83 | void SetInternalPointer(Handle<T> handle, int index, void* val) {
| ^~~~~~
../src/fibers.cc:83:26: error: ‘Handle’ was not declared in this scope
../src/fibers.cc:83:34: error: expected primary-expression before ‘>’ token
83 | void SetInternalPointer(Handle<T> handle, int index, void* val) {
| ^
[...snip...]
/home/myusername/.cache/node-gyp/12.19.0/include/node/node.h:727:36: note: in definition of macro ‘NODE_MODULE_X’
727 | (node::addon_register_func) (regfunc), \
| ^~~~~~~
../src/fibers.cc:829:1: note: in expansion of macro ‘NODE_MODULE’
829 | NODE_MODULE(fibers, init)
| ^~~~~~~~~~~
../src/fibers.cc: In instantiation of ‘void uni::Return(v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, uni::GetterCallbackInfo) [with T = v8::Object; uni::GetterCallbackInfo = v8::PropertyCallbackInfo
<v8::Value>]’:
../src/fibers.cc:727:45: required from here
../src/fibers.cc:106:3: warning: ‘void v8::ReturnValue<T>::Set(const v8::Persistent<S>&) [with S = v8::Object; T = v8::Value]’ is deprecated: Use Global<> instead [-Wdeprecated-declarations]
106 | info.GetReturnValue().Set(handle);
| ^~~~
In file included from /home/myusername/.cache/node-gyp/12.19.0/include/node/node.h:67,
from ../src/coroutine.h:1,
from ../src/fibers.cc:1:
/home/myusername/.cache/node-gyp/12.19.0/include/node/v8.h:10424:6: note: declared here
10424 | void ReturnValue<T>::Set(const Persistent<S>& handle) {
| ^~~~~~~~~~~~~~
fibers.target.mk:116: recipe for target 'Release/obj.target/fibers/src/fibers.o' failed
make: *** [Release/obj.target/fibers/src/fibers.o] Error 1
make: Leaving directory '/home/myusername/projects/cappuccino/narwhal/node_modules/synchronize/node_modules/fibers/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/myusername/.config/yarn/global/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Linux 5.6.0-2-amd64
gyp ERR! command "/usr/bin/node" "/home/myusername/.config/yarn/global/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release"
gyp ERR! cwd /home/myusername/projects/cappuccino/narwhal/node_modules/synchronize/node_modules/fibers
gyp ERR! node -v v12.19.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
node-gyp exited with code: 1
Please make sure you are using a supported platform and node version. If you
would like to compile fibers on this machine please make sure you have setup your
build environment--
Windows + OS X instructions here: https://github.com/nodejs/node-gyp
Ubuntu users please run: `sudo apt-get install g++ build-essential`
Alpine users please run: `sudo apk add python make g++`
npm WARN narwhal@0.3.2 No repository field.
npm WARN narwhal@0.3.2 No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! fibers@1.0.15 install: `node build.js || nodejs build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fibers@1.0.15 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/myusername/.npm/_logs/2021-01-27T15_05_24_179Z-debug.log
$ node --version
v12.19.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment