Created
December 27, 2019 03:09
-
-
Save goddessfreya/90babde3d51401c51ef9e3d717bd5f05 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ npm install | |
npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen) | |
npm WARN deprecated coffee-script@1.8.0: CoffeeScript on NPM has moved to "coffeescript" (no hyphen) | |
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue | |
npm WARN deprecated minimatch@0.4.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue | |
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue | |
> ejs@2.7.4 postinstall /home/gentz/Documents/gfx/node-spellchecker/node_modules/ejs | |
> node ./postinstall.js | |
Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/) | |
> spellchecker@3.7.0 install /home/gentz/Documents/gfx/node-spellchecker | |
> node-gyp rebuild | |
make: Entering directory '/home/gentz/Documents/gfx/node-spellchecker/build' | |
CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/affentry.o | |
In file included from ../vendor/hunspell/src/hunspell/affentry.cxx:9: | |
../vendor/hunspell/src/hunspell/affentry.hxx:30:105: warning: converting to non-pointer type ‘short unsigned int’ from NULL [-Wconversion-null] | |
30 | struct hentry * check_twosfx(const char * word, int len, char in_compound, const FLAG needflag = NULL); | |
| ^~~~ | |
../vendor/hunspell/src/hunspell/affentry.hxx:93:114: warning: converting to non-pointer type ‘short unsigned int’ from NULL [-Wconversion-null] | |
93 | struct hentry * check_twosfx(const char * word, int len, int optflags, PfxEntry* ppfx, const FLAG needflag = NULL); | |
| ^~~~ | |
../vendor/hunspell/src/hunspell/affentry.cxx: In member function ‘int PfxEntry::test_condition(const char*)’: | |
../vendor/hunspell/src/hunspell/affentry.cxx:113:20: warning: this statement may fall through [-Wimplicit-fallthrough=] | |
113 | case '.': if (!pos) { // dots are not metacharacters in groups: [.] | |
| ^~ | |
../vendor/hunspell/src/hunspell/affentry.cxx:120:5: note: here | |
120 | default: { | |
| ^~~~~~~ | |
../vendor/hunspell/src/hunspell/affentry.cxx: In member function ‘int SfxEntry::test_condition(const char*, const char*)’: | |
../vendor/hunspell/src/hunspell/affentry.cxx:501:19: warning: this statement may fall through [-Wimplicit-fallthrough=] | |
501 | case '.': if (!pos) { // dots are not metacharacters in groups: [.] | |
| ^~ | |
../vendor/hunspell/src/hunspell/affentry.cxx:516:5: note: here | |
516 | default: { | |
| ^~~~~~~ | |
CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/affixmgr.o | |
In file included from ../vendor/hunspell/src/hunspell/affixmgr.cxx:12: | |
../vendor/hunspell/src/hunspell/affentry.hxx:30:105: warning: converting to non-pointer type ‘short unsigned int’ from NULL [-Wconversion-null] | |
30 | struct hentry * check_twosfx(const char * word, int len, char in_compound, const FLAG needflag = NULL); | |
| ^~~~ | |
../vendor/hunspell/src/hunspell/affentry.hxx:93:114: warning: converting to non-pointer type ‘short unsigned int’ from NULL [-Wconversion-null] | |
93 | struct hentry * check_twosfx(const char * word, int len, int optflags, PfxEntry* ppfx, const FLAG needflag = NULL); | |
| ^~~~ | |
../vendor/hunspell/src/hunspell/affixmgr.cxx: In member function ‘int AffixMgr::parse_convtable(char*, FileMgr*, RepList**, const char*)’: | |
../vendor/hunspell/src/hunspell/affixmgr.cxx:3654:58: warning: argument to ‘sizeof’ in ‘int strncmp(const char*, const char*, size_t)’ call is the same expression as the second source; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess] | |
3654 | if (strncmp(piece, keyword, sizeof(keyword)) != 0) { | |
| ^~~~~~~~~~~~~~~ | |
../vendor/hunspell/src/hunspell/affixmgr.cxx: In member function ‘int AffixMgr::encodeit(affentry&, char*)’: | |
../vendor/hunspell/src/hunspell/affixmgr.cxx:1075:12: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 20 equals destination size [-Wstringop-truncation] | |
1075 | strncpy(entry.c.conds, cs, MAXCONDLEN); | |
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/csutil.o | |
../vendor/hunspell/src/hunspell/csutil.cxx: In function ‘void strlinecat(char*, const char*)’: | |
../vendor/hunspell/src/hunspell/csutil.cxx:411:24: warning: ‘char* strncpy(char*, const char*, size_t)’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] | |
411 | strncpy(dest, s, len); | |
| ~~~~~~~^~~~~~~~~~~~~~ | |
../vendor/hunspell/src/hunspell/csutil.cxx:407:21: note: length computed here | |
407 | int len = strlen(s); | |
| ~~~~~~^~~ | |
../vendor/hunspell/src/hunspell/csutil.cxx: In function ‘char* mystrrep(char*, const char*, const char*)’: | |
../vendor/hunspell/src/hunspell/csutil.cxx:567:16: warning: ‘char* strncpy(char*, const char*, size_t)’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] | |
567 | strncpy(pos, rep, replen); | |
| ~~~~~~~^~~~~~~~~~~~~~~~~~ | |
../vendor/hunspell/src/hunspell/csutil.cxx:552:26: note: length computed here | |
552 | int replen = strlen(rep); | |
| ~~~~~~^~~~~ | |
CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/dictmgr.o | |
../vendor/hunspell/src/hunspell/dictmgr.cxx: In member function ‘int DictMgr::parse_file(const char*, const char*)’: | |
../vendor/hunspell/src/hunspell/dictmgr.cxx:102:37: warning: this statement may fall through [-Wimplicit-fallthrough=] | |
102 | pdict->region=NULL; | |
| ^ | |
../vendor/hunspell/src/hunspell/dictmgr.cxx:103:21: note: here | |
103 | case 2: //deliberate fallthrough | |
| ^~~~ | |
CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/filemgr.o | |
CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/hashmgr.o | |
CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/hunspell.o | |
../vendor/hunspell/src/hunspell/hunspell.cxx: In member function ‘int Hunspell::spell(const char*, int*, char**)’: | |
../vendor/hunspell/src/hunspell/hunspell.cxx:369:19: warning: this statement may fall through [-Wimplicit-fallthrough=] | |
369 | *info += SPELL_ORIGCAP; | |
../vendor/hunspell/src/hunspell/hunspell.cxx:370:6: note: here | |
370 | case NOCAP: { | |
| ^~~~ | |
../vendor/hunspell/src/hunspell/hunspell.cxx:439:13: warning: this statement may fall through [-Wimplicit-fallthrough=] | |
439 | } | |
| ^ | |
../vendor/hunspell/src/hunspell/hunspell.cxx:441:6: note: here | |
441 | case INITCAP: { | |
| ^~~~ | |
../vendor/hunspell/src/hunspell/hunspell.cxx: In member function ‘int Hunspell::suggest(char***, const char*)’: | |
../vendor/hunspell/src/hunspell/hunspell.cxx:741:30: warning: this statement may fall through [-Wimplicit-fallthrough=] | |
741 | capwords = 1; | |
| ~~~~~~~~~^~~ | |
../vendor/hunspell/src/hunspell/hunspell.cxx:742:6: note: here | |
742 | case HUHCAP: { | |
| ^~~~ | |
../vendor/hunspell/src/hunspell/hunspell.cxx:865:24: warning: this statement may fall through [-Wimplicit-fallthrough=] | |
865 | capwords = 1; | |
| ~~~~~~~~~^~~ | |
../vendor/hunspell/src/hunspell/hunspell.cxx:866:11: note: here | |
866 | case HUHCAP: { | |
| ^~~~ | |
CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/hunzip.o | |
CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/phonet.o | |
CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/replist.o | |
CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/suggestmgr.o | |
../vendor/hunspell/src/hunspell/suggestmgr.cxx: In member function ‘char* SuggestMgr::suggest_gen(char**, int, char*)’: | |
../vendor/hunspell/src/hunspell/suggestmgr.cxx:1723:12: warning: ‘char* strncpy(char*, const char*, size_t)’ output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation] | |
1723 | strncpy(ds, MORPH_TERM_SFX, MORPH_TAG_LEN); | |
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/parsers/textparser.o | |
AR(target) Release/obj.target/hunspell.a | |
COPY Release/hunspell.a | |
CXX(target) Release/obj.target/spellchecker/src/main.o | |
In file included from ../src/main.cc:3: | |
../node_modules/nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’: | |
../node_modules/nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] | |
2298 | , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete) | |
| ^ | |
In file included from ../node_modules/nan/nan.h:54, | |
from ../src/main.cc:3: | |
../src/main.cc: At global scope: | |
/home/gentz/.cache/node-gyp/13.5.0/include/node/node.h:611:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type] | |
611 | (node::addon_register_func) (regfunc), \ | |
| ^ | |
/home/gentz/.cache/node-gyp/13.5.0/include/node/node.h:645:3: note: in expansion of macro ‘NODE_MODULE_X’ | |
645 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) | |
| ^~~~~~~~~~~~~ | |
../src/main.cc:328:1: note: in expansion of macro ‘NODE_MODULE’ | |
328 | NODE_MODULE(spellchecker, Init) | |
| ^~~~~~~~~~~ | |
In file included from /home/gentz/.cache/node-gyp/13.5.0/include/node/node.h:63, | |
from ../node_modules/nan/nan.h:54, | |
from ../src/main.cc:3: | |
/home/gentz/.cache/node-gyp/13.5.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’: | |
/home/gentz/.cache/node-gyp/13.5.0/include/node/node_object_wrap.h:84:78: required from here | |
/home/gentz/.cache/node-gyp/13.5.0/include/node/v8.h:10400:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] | |
10400 | reinterpret_cast<Callback>(callback), type); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/home/gentz/.cache/node-gyp/13.5.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’: | |
../node_modules/nan/nan_object_wrap.h:65:61: required from here | |
/home/gentz/.cache/node-gyp/13.5.0/include/node/v8.h:10400:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] | |
CXX(target) Release/obj.target/spellchecker/src/worker.o | |
In file included from ../src/worker.h:4, | |
from ../src/worker.cc:1: | |
../node_modules/nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’: | |
../node_modules/nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] | |
2298 | , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete) | |
| ^ | |
In file included from /home/gentz/.cache/node-gyp/13.5.0/include/node/node.h:63, | |
from ../node_modules/nan/nan.h:54, | |
from ../src/worker.h:4, | |
from ../src/worker.cc:1: | |
/home/gentz/.cache/node-gyp/13.5.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’: | |
/home/gentz/.cache/node-gyp/13.5.0/include/node/node_object_wrap.h:84:78: required from here | |
/home/gentz/.cache/node-gyp/13.5.0/include/node/v8.h:10400:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] | |
10400 | reinterpret_cast<Callback>(callback), type); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/home/gentz/.cache/node-gyp/13.5.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’: | |
../node_modules/nan/nan_object_wrap.h:65:61: required from here | |
/home/gentz/.cache/node-gyp/13.5.0/include/node/v8.h:10400:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] | |
CXX(target) Release/obj.target/spellchecker/src/spellchecker_hunspell.o | |
CXX(target) Release/obj.target/spellchecker/src/spellchecker_linux.o | |
CXX(target) Release/obj.target/spellchecker/src/transcoder_posix.o | |
SOLINK_MODULE(target) Release/obj.target/spellchecker.node | |
COPY Release/spellchecker.node | |
make: Leaving directory '/home/gentz/Documents/gfx/node-spellchecker/build' | |
npm notice created a lockfile as package-lock.json. You should commit this file. | |
added 317 packages from 241 contributors and audited 970 packages in 28.05s | |
2 packages are looking for funding | |
run `npm fund` for details | |
found 3 high severity vulnerabilities | |
run `npm audit fix` to fix them, or `npm audit` for details | |
$ HOME=~/.electron-gyp node-gyp rebuild --target=8.0.0-beta.5 --arch=x64 --dist- url=https://electronjs.org/headers | |
gyp info it worked if it ends with ok | |
gyp info using node-gyp@6.0.1 | |
gyp info using node@13.5.0 | linux | x64 | |
gyp ERR! UNCAUGHT EXCEPTION | |
gyp ERR! stack TypeError: Class constructor Range cannot be invoked without 'new' | |
gyp ERR! stack at PythonFinder.<anonymous> (/usr/lib/node_modules/node-gyp/lib/find-python.js:229:28) | |
gyp ERR! stack at PythonFinder.execFileCallback (/usr/lib/node_modules/node-gyp/lib/find-python.js:274:7) | |
gyp ERR! stack at ChildProcess.exithandler (child_process.js:293:7) | |
gyp ERR! stack at ChildProcess.emit (events.js:305:20) | |
gyp ERR! stack at maybeClose (internal/child_process.js:1028:16) | |
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5) | |
gyp ERR! System Linux 5.3.18.a-1-hardened | |
gyp ERR! command "/home/gentz/.nvm/versions/node/v13.5.0/bin/node" "/usr/bin/node-gyp" "rebuild" "--target=8.0.0-beta.5" "--arch=x64" "--dist-" "url=https://electronjs.org/headers" | |
gyp ERR! cwd /home/gentz/Documents/gfx/node-spellchecker | |
gyp ERR! node -v v13.5.0 | |
gyp ERR! node-gyp -v v6.0.1 | |
gyp ERR! This is a bug in `node-gyp`. | |
gyp ERR! Try to update node-gyp and file an Issue if it does not help: | |
gyp ERR! <https://github.com/nodejs/node-gyp/issues> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment