Skip to content

Instantly share code, notes, and snippets.

@kenshyx
Created May 5, 2017 15:09
Show Gist options
  • Save kenshyx/08aa6d7df0fd4a23f382a4fd411ff359 to your computer and use it in GitHub Desktop.
Save kenshyx/08aa6d7df0fd4a23f382a4fd411ff359 to your computer and use it in GitHub Desktop.
An unhandled error occurred inside electron-rebuild
make: Entering directory '/projects/desktop-app/node_modules/execSync/build'
CXX(target) Release/obj.target/shell/src/shell.o
../src/shell.cpp:138:26: error: ‘Arguments’ does not name a type
Handle<Value> Exec(const Arguments& args) {
^
In file included from /.electron-gyp/.node-gyp/iojs-1.6.6/src/node.h:42:0,
from ../src/shell.cpp:1:
/.electron-gyp/.node-gyp/iojs-1.6.6/deps/v8/include/v8.h: In function ‘v8::Handle<v8::Value> Exec(const int&)’:
/.electron-gyp/.node-gyp/iojs-1.6.6/deps/v8/include/v8.h:874:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../src/shell.cpp:139:17: error: within this context
HandleScope scope;
^
../src/shell.cpp:141:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 1) {
^
../src/shell.cpp:143:34: error: ‘New’ is not a member of ‘v8::String’
Exception::TypeError(String::New("First argument must be a string"))
^
../src/shell.cpp:144:9: error: ‘ThrowException’ was not declared in this scope
);
^
../src/shell.cpp:147:31: error: invalid types ‘const int[int]’ for array subscript
Local<String> str = args[0]->ToString();
^
../src/shell.cpp:151:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(Integer::New(result));
^
../src/shell.cpp:151:43: error: no matching function for call to ‘v8::Integer::New(int&)’
return scope.Close(Integer::New(result));
^
In file included from /.electron-gyp/.node-gyp/iojs-1.6.6/src/node.h:42:0,
from ../src/shell.cpp:1:
/.electron-gyp/.node-gyp/iojs-1.6.6/deps/v8/include/v8.h:2756:25: note: candidate: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
static Local<Integer> New(Isolate* isolate, int32_t value);
^
/.electron-gyp/.node-gyp/iojs-1.6.6/deps/v8/include/v8.h:2756:25: note: candidate expects 2 arguments, 1 provided
../src/shell.cpp: In function ‘void RegisterModule(v8::Handle<v8::Object>)’:
../src/shell.cpp:155:17: error: ‘NewSymbol’ is not a member of ‘v8::String’
target->Set(String::NewSymbol("exec"),
^
../src/shell.cpp:156:39: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handle<v8::Value> (&)(const int&))’
FunctionTemplate::New(Exec)->GetFunction());
^
In file included from /.electron-gyp/.node-gyp/iojs-1.6.6/src/node.h:42:0,
from ../src/shell.cpp:1:
/.electron-gyp/.node-gyp/iojs-1.6.6/deps/v8/include/v8.h:5090:34: note: candidate: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local<v8::Value>, v8::Local<v8::Signature>, int, v8::ConstructorBehavior)
static Local<FunctionTemplate> New(
^
/.electron-gyp/.node-gyp/iojs-1.6.6/deps/v8/include/v8.h:5090:34: note: no known conversion for argument 1 from ‘v8::Handle<v8::Value>(const int&) {aka v8::Local<v8::Value>(const int&)}’ to ‘v8::Isolate*’
../src/shell.cpp: In function ‘void child(const char*)’:
../src/shell.cpp:69:11: warning: ignoring return value of ‘int dup(int)’, declared with attribute warn_unused_result [-Wunused-result]
dup(1);
^
../src/shell.cpp:71:11: warning: ignoring return value of ‘int dup(int)’, declared with attribute warn_unused_result [-Wunused-result]
dup(2);
^
shell.target.mk:92: recipe for target 'Release/obj.target/shell/src/shell.o' failed
make: Leaving directory '/projects/desktop-app/node_modules/execSync/build'
make: *** [Release/obj.target/shell/src/shell.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/projects/desktop-app/node_modules/node-gyp/lib/build.js:285:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.4.0-53-generic
gyp ERR! command "/usr/local/bin/node" "/projects/desktop-app/node_modules/.bin/node-gyp" "rebuild" "--target=1.6.6" "--arch=x64" "--dist-url=https://atom.io/download/electron" "--build-from-source"
gyp ERR! cwd /projects/desktop-app/node_modules/execSync
gyp ERR! node -v v7.4.0
gyp ERR! node-gyp -v v3.6.1
gyp ERR! not ok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment