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

/node_modules/.bin/electron-rebuild fails with weird errors #704

Open
BenderKev opened this issue Jan 18, 2022 · 0 comments
Open

/node_modules/.bin/electron-rebuild fails with weird errors #704

BenderKev opened this issue Jan 18, 2022 · 0 comments

Comments

@BenderKev
Copy link

electron-rebuild fails.

pi@raspberrypi:~/MagicMirror/modules/MMM-awesome-alexa/snowboy $ uname -a
Linux raspberrypi 5.10.63-v7+ #1496 SMP Wed Dec 1 15:58:11 GMT 2021 armv7l GNU/Linux

pi@raspberrypi:~/MagicMirror/modules/MMM-awesome-alexa/snowboy $ uname -v
#1496 SMP Wed Dec 1 15:58:11 GMT 2021

pi@raspberrypi:/MagicMirror/modules/MMM-awesome-alexa/snowboy $ npm -v
8.1.2
pi@raspberrypi:
/MagicMirror/modules/MMM-awesome-alexa/snowboy $

pi@raspberrypi:/MagicMirror/modules/MMM-awesome-alexa/snowboy $ ./node_modules/.bin/electron-rebuild
⠧ Building module: snowboy, Completed: 0make: Entering directory '/home/pi/MagicMirror/modules/MMM-awesome-alexa/snowboy/build'
CXX(target) Release/obj.target/snowboy/swig/Node/snowboy.o
⠇ Building module: snowboy, Completed: 0: warning: "_GLIBCXX_USE_CXX11_ABI" redefined
: note: this is the location of the previous definition
⠧ Building module: snowboy, Completed: 0In file included from /home/pi/.electron-gyp/16.0.5/include/node/v8-local-handle.h:12,
from /home/pi/.electron-gyp/16.0.5/include/node/v8-array-buffer.h:12,
from /home/pi/.electron-gyp/16.0.5/include/node/v8.h:25,
from /home/pi/.electron-gyp/16.0.5/include/node/node.h:63,
from ../node_modules/nan/nan.h:58,
from ../swig/Node/snowboy.cc:1:
/home/pi/.electron-gyp/16.0.5/include/node/v8-internal.h:113:27: error: static assertion failed: Pointer compression can be enabled only for 64-bit architectures
kApiSystemPointerSize == kApiInt64Size,
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
⠇ Building module: snowboy, Completed: 0/home/pi/.electron-gyp/16.0.5/include/node/v8-internal.h:471:71: warning: left shift count >= width of type [-Wshift-count-overflow]
static constexpr size_t kPtrComprCageReservationSize = size_t{1} << 32;
^

/home/pi/.electron-gyp/16.0.5/include/node/v8-internal.h:471:68: error: right operand of shift expression ‘(1 << 32)’ is >= than the precision of the left operand [-fpermissive]
static constexpr size_t kPtrComprCageReservationSize = size_t{1} << 32;
~~~~~~~~~~^~~~~
/home/pi/.electron-gyp/16.0.5/include/node/v8-internal.h:472:69: warning: left shift count >= width of type [-Wshift-count-overflow]
static constexpr size_t kPtrComprCageBaseAlignment = size_t{1} << 32;
^~
/home/pi/.electron-gyp/16.0.5/include/node/v8-internal.h:472:66: error: right operand of shift expression ‘(1 << 32)’ is >= than the precision of the left operand [-fpermissive]
static constexpr size_t kPtrComprCageBaseAlignment = size_t{1} << 32;
~~~~~~~~~~^~~~~
⠸ Building module: snowboy, Completed: 0In file included from /home/pi/.electron-gyp/16.0.5/include/node/v8.h:53,
from /home/pi/.electron-gyp/16.0.5/include/node/node.h:63,
from ../node_modules/nan/nan.h:58,
from ../swig/Node/snowboy.cc:1:
/home/pi/.electron-gyp/16.0.5/include/node/v8-script.h:230:79: warning: ‘ResolveCallback’ is deprecated [-Wdeprecated-declarations]
ResolveCallback callback);
^
⠸ Building module: snowboy, Completed: 0../swig/Node/snowboy.cc: In constructor ‘SnowboyDetect::SnowboyDetect(const string&, const string&)’:
../swig/Node/snowboy.cc:38:31: warning: catching polymorphic type ‘class std::runtime_error’ by value [-Wcatch-value=]
} catch (std::runtime_error e) {
^
In file included from ../node_modules/nan/nan.h:58,
from ../swig/Node/snowboy.cc:1:
../swig/Node/snowboy.cc: At global scope:
/home/pi/.electron-gyp/16.0.5/include/node/node.h:821:43: warning: cast between incompatible function types from ‘void ()(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void ()(v8::Localv8::Object)’} to ‘node::addon_register_func’ {aka ‘void ()(v8::Localv8::Object, v8::Localv8::Value, void)’} [-Wcast-function-type]
(node::addon_register_func) (regfunc),
^
/home/pi/.electron-gyp/16.0.5/include/node/node.h:855:3: note: in expansion of macro ‘NODE_MODULE_X’
NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
^~~~~~~~~~~~~
../swig/Node/snowboy.cc:183:1: note: in expansion of macro ‘NODE_MODULE’
NODE_MODULE(SnowboyDetect, SnowboyDetect::Init)
^~~~~~~~~~~
⠋ Building module: snowboy, Completed: 0make: *** [snowboy.target.mk:129: Release/obj.target/snowboy/swig/Node/snowboy.o] Error 1
make: Leaving directory '/home/pi/MagicMirror/modules/MMM-awesome-alexa/snowboy/build'
✖ Rebuild Failed

An unhandled error occurred inside electron-rebuild
node-gyp failed to rebuild '/home/pi/MagicMirror/modules/MMM-awesome-alexa/snowboy'.
For more information, rerun with the DEBUG environment variable set to "electron-rebuild".

Error: make failed with exit code: 2

Error: node-gyp failed to rebuild '/home/pi/MagicMirror/modules/MMM-awesome-alexa/snowboy'.
For more information, rerun with the DEBUG environment variable set to "electron-rebuild".

Error: make failed with exit code: 2

at NodeGyp.rebuildModule (/home/pi/MagicMirror/modules/MMM-awesome-alexa/snowboy/node_modules/electron-rebuild/lib/src/module-type/node-gyp.js:117:19)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async ModuleRebuilder.rebuildNodeGypModule (/home/pi/MagicMirror/modules/MMM-awesome-alexa/snowboy/node_modules/electron-rebuild/lib/src/module-rebuilder.js:94:9)
at async ModuleRebuilder.rebuild (/home/pi/MagicMirror/modules/MMM-awesome-alexa/snowboy/node_modules/electron-rebuild/lib/src/module-rebuilder.js:124:14)
at async Rebuilder.rebuildModuleAt (/home/pi/MagicMirror/modules/MMM-awesome-alexa/snowboy/node_modules/electron-rebuild/lib/src/rebuild.js:145:13)
at async Rebuilder.rebuild (/home/pi/MagicMirror/modules/MMM-awesome-alexa/snowboy/node_modules/electron-rebuild/lib/src/rebuild.js:108:17)
at async /home/pi/MagicMirror/modules/MMM-awesome-alexa/snowboy/node_modules/electron-rebuild/lib/src/cli.js:154:9

pi@raspberrypi:~/MagicMirror/modules/MMM-awesome-alexa/snowboy $

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

1 participant