Open ahmet-cetinkaya opened 3 years ago
Bumping this issue, same error
21420 error ../src/common.cc:37:15: error: redefinition of ‘std::string sharp::AttrAsStr’
21420 error 37 | std::string AttrAsStr(v8::Handle<v8::Object> obj, std::string attr) {
21420 error | ^~~~~~~~~
21420 error In file included from ../src/common.cc:27:
21420 error ../src/common.h:83:15: note: ‘std::string sharp::AttrAsStr’ previously declared here
21420 error 83 | std::string AttrAsStr(v8::Handle<v8::Object> obj, std::string attr);
21420 error | ^~~~~~~~~
21420 error ../src/common.cc:37:29: error: ‘Handle’ is not a member of ‘v8’; did you mean ‘JobHandle’?
21420 error 37 | std::string AttrAsStr(v8::Handle<v8::Object> obj, std::string attr) {
21420 error | ^~~~~~
21420 error | JobHandle
21420 error ../src/common.cc:37:46: error: expected primary-expression before ‘>’ token
21420 error 37 | std::string AttrAsStr(v8::Handle<v8::Object> obj, std::string attr) {
21420 error | ^
21420 error ../src/common.cc:37:48: error: ‘obj’ was not declared in this scope
21420 error 37 | std::string AttrAsStr(v8::Handle<v8::Object> obj, std::string attr) {
21420 error | ^~~
21420 error ../src/common.cc:37:65: error: expected primary-expression before ‘attr’
21420 error 37 | std::string AttrAsStr(v8::Handle<v8::Object> obj, std::string attr) {
21420 error | ^~~~
21420 error ../src/common.cc:42:20: error: redefinition of ‘sharp::InputDescriptor* sharp::CreateInputDescriptor’
21420 error 42 | InputDescriptor* CreateInputDescriptor(
21420 error | ^~~~~~~~~~~~~~~~~~~~~
21420 error In file included from ../src/common.cc:27:
21420 error ../src/common.h:95:20: note: ‘sharp::InputDescriptor* sharp::CreateInputDescriptor’ previously defined here
21420 error 95 | InputDescriptor* CreateInputDescriptor(
21420 error | ^~~~~~~~~~~~~~~~~~~~~
21420 error ../src/common.cc:43:9: error: ‘Handle’ is not a member of ‘v8’; did you mean ‘JobHandle’?
21420 error 43 | v8::Handle<v8::Object> input, std::vector<v8::Local<v8::Object>> &buffersToPersist
21420 error | ^~~~~~
21420 error | JobHandle
21420 error ../src/common.cc:43:26: error: expected primary-expression before ‘>’ token
21420 error 43 | v8::Handle<v8::Object> input, std::vector<v8::Local<v8::Object>> &buffersToPersist
21420 error | ^
21420 error ../src/common.cc:43:28: error: ‘input’ was not declared in this scope
21420 error 43 | v8::Handle<v8::Object> input, std::vector<v8::Local<v8::Object>> &buffersToPersist
21420 error | ^~~~~
21420 error ../src/common.cc:43:70: error: expected primary-expression before ‘&’ token
21420 error 43 | v8::Handle<v8::Object> input, std::vector<v8::Local<v8::Object>> &buffersToPersist
21420 error | ^
21420 error ../src/common.cc:43:71: error: ‘buffersToPersist’ was not declared in this scope
21420 error 43 | v8::Handle<v8::Object> input, std::vector<v8::Local<v8::Object>> &buffersToPersist
21420 error | ^~~~~~~~~~~~~~~~
21420 error make: *** [sharp.target.mk:138: Release/obj.target/sharp/src/common.o] Error 1
21420 error gyp ERR! build error
21420 error gyp ERR! stack Error: `make` failed with exit code: 2
21420 error gyp ERR! stack at ChildProcess.onExit (/home/gitpod/.nvm/versions/node/v16.13.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
21420 error gyp ERR! stack at ChildProcess.emit (node:events:390:28)
21420 error gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
21420 error gyp ERR! System Linux 5.13.0-1007-gcp
21420 error gyp ERR! command "/home/gitpod/.nvm/versions/node/v16.13.0/bin/node" "/home/gitpod/.nvm/versions/node/v16.13.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
21420 error gyp ERR! cwd /workspace/gatsby-starter-personal-blog/node_modules/sharp
21420 error gyp ERR! node -v v16.13.0
21420 error gyp ERR! node-gyp -v v8.2.0
21420 error gyp ERR! not ok
21421 verbose exit 1
me too
Node version: v14.18.0 NPM version: 6.14.15
full.log