hypercore-protocol / hyperdrive-daemon

Hyperdrive, batteries included.
MIT License
156 stars 23 forks source link

fuse-native fails to compile when npm-installing hyperdrive-daemon on centos 7 #33

Open beingalink opened 4 years ago

beingalink commented 4 years ago
make: Entering directory `/home/thelink/.npm-global/lib/node_modules/hyperdrive-daemon/node_modules/fuse-native/build'
  CC(target) Release/obj.target/fuse/fuse-native.o
../fuse-native.c: In function ‘fuse_native_signal_readdir’:
../node_modules/napi-macros/napi-macros.h:192:3: error: ‘for’ loop initial declarations are only allowed in C99 mode
   for (uint32_t i = 0; i < arr##_len && napi_get_element(env, arr, i, &element) == napi_ok; i++)
...
In file included from ../fuse-native.c:5:0:
../node_modules/napi-macros/napi-macros.h:192:17: error: conflicting types for ‘i’
   for (uint32_t i = 0; i < arr##_len && napi_get_element(env, arr, i, &element) == napi_ok; i++)
...
make: *** [Release/obj.target/fuse/fuse-native.o] Error 1
make: Leaving directory `/home/thelink/.npm-global/lib/node_modules/hyperdrive-daemon/node_modules/fuse-native/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:223:5)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Linux 3.10.0-327.3.1.el7.x86_64
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/thelink/.npm-global/lib/node_modules/hyperdrive-daemon/node_modules/fuse-native
gyp ERR! node -v v12.14.1
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok 
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules/hyperdrive-daemon/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fuse-native@2.1.0 (node_modules/hyperdrive-daemon/node_modules/fuse-native):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fuse-native@2.1.0 install: `node-gyp-build`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1