Code Monkey home page Code Monkey logo

Comments (5)

MCrypto avatar MCrypto commented on July 18, 2024

same here on ubuntu 16.04 with same node & npm versions

from z-nomp.

WaveringAna avatar WaveringAna commented on July 18, 2024

First try sudo n stable, if it doesn't work

zone117x/node-open-mining-portal#470 try those dependency versions

from z-nomp.

MCrypto avatar MCrypto commented on July 18, 2024

tried to install nodejs 0.10 with the following command (on ubuntu 16.04)

curl -sL https://deb.nodesource.com/setup_0.10 | sudo -E bash -

and ended up with v4.x because 0.10 is depreciated !!

so looking up some other ways, found this:

sudo npm cache clean -f
sudo npm install -g n
sudo n 0.10.48

and ended up with

node -v
v0.10.48

now, when i build the project using:

rm -r node_modules
npm update

everything starts up well then fails at equihashverify build:

npm WARN engine [email protected]: wanted: {"node":">=7"} (current: {"node":"0.10.48","npm":"2.15.1"})
npm WARN engine [email protected]: wanted: {"node":">=0.12"} (current: {"node":"0.10.48","npm":"2.15.1"})
npm WARN engine [email protected]: wanted: {"node":">=0.12"} (current: {"node":"0.10.48","npm":"2.15.1"})

and then this:

> [email protected] install /home/mylin/ZNOMP/znomp/node_modules/stratum-pool/node_modules/equihashverify
> node-gyp rebuild

make: Entering directory '/home/mylin/ZNOMP/znomp/node_modules/stratum-pool/node_modules/equihashverify/build'
  CC(target) Release/obj.target/libequi/src/equi/equi.o
../src/equi/equi.c: In function ‘isZero’:
../src/equi/equi.c:78:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (int i = 0; i < len; i++) {
                     ^
  CC(target) Release/obj.target/libequi/src/equi/endian.o
  SOLINK(target) Release/obj.target/equi.so
  COPY Release/equi.so
  CXX(target) Release/obj.target/equihashverify/equihashverify.o
../equihashverify.cc:14:23: error: ‘FunctionCallbackInfo’ in namespace ‘v8’ does not name a template type
 void Verify(const v8::FunctionCallbackInfo<Value>& args) {
                       ^
../equihashverify.cc:14:43: error: expected ‘,’ or ‘...’ before ‘<’ token
 void Verify(const v8::FunctionCallbackInfo<Value>& args) {
                                           ^
../equihashverify.cc: In function ‘void Verify(int)’:
../equihashverify.cc:16:28: error: no matching function for call to ‘v8::HandleScope::HandleScope(v8::Isolate*&)’
   HandleScope scope(isolate);
                            ^
In file included from /home/mylin/.node-gyp/0.10.48/include/node/node.h:62:0,
                 from ../node_modules/nan/nan.h:47,
                 from ../equihashverify.cc:1:
/home/mylin/.node-gyp/0.10.48/include/node/v8.h:473:3: note: candidate: v8::HandleScope::HandleScope(const v8::HandleScope&)
   HandleScope(const HandleScope&);
   ^
/home/mylin/.node-gyp/0.10.48/include/node/v8.h:473:3: note:   no known conversion for argument 1 from ‘v8::Isolate*’ to ‘const v8::HandleScope&’
/home/mylin/.node-gyp/0.10.48/include/node/v8.h:448:3: note: candidate: v8::HandleScope::HandleScope()
   HandleScope();
   ^
/home/mylin/.node-gyp/0.10.48/include/node/v8.h:448:3: note:   candidate expects 0 arguments, 1 provided
../equihashverify.cc:18:7: error: ‘args’ was not declared in this scope
   if (args.Length() < 2) {
       ^
../equihashverify.cc:19:12: error: ‘class v8::Isolate’ has no member named ‘ThrowException’
   isolate->ThrowException(Exception::TypeError(
            ^
../equihashverify.cc:20:5: error: ‘NewFromUtf8’ is not a member of ‘v8::String’
     String::NewFromUtf8(isolate, "Wrong number of arguments")));
     ^
../equihashverify.cc:24:26: error: ‘args’ was not declared in this scope
   Local<Object> header = args[0]->ToObject();
                          ^
../equihashverify.cc:28:12: error: ‘class v8::Isolate’ has no member named ‘ThrowException’
   isolate->ThrowException(Exception::TypeError(
            ^
../equihashverify.cc:29:5: error: ‘NewFromUtf8’ is not a member of ‘v8::String’
     String::NewFromUtf8(isolate, "Arguments should be buffer objects.")));
     ^
../equihashverify.cc: In function ‘void Init(v8::Handle<v8::Object>)’:
../equihashverify.cc:43:44: error: no matching function for call to ‘SetMethod(v8::Handle<v8::Object>&, const char [7], void (&)(int))’
   NODE_SET_METHOD(exports, "verify", Verify);
                                            ^
In file included from ../node_modules/nan/nan.h:47:0,
                 from ../equihashverify.cc:1:
/home/mylin/.node-gyp/0.10.48/include/node/node.h:112:6: note: candidate: template<class target_t> void node::SetMethod(target_t, const char*, v8::InvocationCallback)
 void SetMethod(target_t obj, const char* name,
      ^
/home/mylin/.node-gyp/0.10.48/include/node/node.h:112:6: note:   template argument deduction/substitution failed:
../equihashverify.cc:43:44: note:   cannot convert ‘Verify’ (type ‘void(int)’) to type ‘v8::InvocationCallback {aka v8::Handle<v8::Value> (*)(const v8::Arguments&)}’
   NODE_SET_METHOD(exports, "verify", Verify);
                                            ^
In file included from ../equihashverify.cc:8:0:
../src/equi/equi.h: At global scope:
../src/equi/equi.h:22:13: warning: ‘void digestInit(crypto_generichash_blake2b_state*, int, int)’ declared ‘static’ but never defined [-Wunused-function]
 static void digestInit(crypto_generichash_blake2b_state *S, const int n, const int k);
             ^
../src/equi/equi.h:24:13: warning: ‘void expandArray(const unsigned char*, size_t, unsigned char*, size_t, size_t, size_t)’ declared ‘static’ but never defined [-Wunused-function]
 static void expandArray(const unsigned char *in, const size_t in_len,
             ^
../src/equi/equi.h:28:12: warning: ‘int isZero(const uint8_t*, size_t)’ declared ‘static’ but never defined [-Wunused-function]
 static int isZero(const uint8_t *hash, size_t len);
            ^
../src/equi/equi.h:30:13: warning: ‘void generateHash(crypto_generichash_blake2b_state*, uint32_t, uint8_t*, size_t)’ declared ‘static’ but never defined [-Wunused-function]
 static void generateHash(crypto_generichash_blake2b_state *S, const uint32_t g, uint8_t *hash, const size_t hashLen);
             ^
equihashverify.target.mk:100: recipe for target 'Release/obj.target/equihashverify/equihashverify.o' failed
make: *** [Release/obj.target/equihashverify/equihashverify.o] Error 1
make: Leaving directory '/home/mylin/ZNOMP/znomp/node_modules/stratum-pool/node_modules/equihashverify/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:276:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Linux 4.4.0-51-generic
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/mylin/ZNOMP/znomp/node_modules/stratum-pool/node_modules/equihashverify
gyp ERR! node -v v0.10.48
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
npm ERR! Linux 4.4.0-51-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "update"
npm ERR! node v0.10.48
npm ERR! npm  v2.15.1
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the equihashverify package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs equihashverify
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR!     npm owner ls equihashverify
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/mylin/ZNOMP/znomp/npm-debug.log

from what i can read, it needs different versions of nodejs for these 3 modules:

npm WARN engine [email protected]: wanted: {"node":">=7"} (current: {"node":"0.10.48","npm":"2.15.1"})
npm WARN engine [email protected]: wanted: {"node":">=0.12"} (current: {"node":"0.10.48","npm":"2.15.1"})
npm WARN engine [email protected]: wanted: {"node":">=0.12"} (current: {"node":"0.10.48","npm":"2.15.1"})

from z-nomp.

jmprcx avatar jmprcx commented on July 18, 2024

Should be fixed now. Please do a git pull and retry. Thanks! #19

from z-nomp.

MCrypto avatar MCrypto commented on July 18, 2024

reverted back to nodejs 7.2 and did an update, but seems to be an error with equihashverify .... posted it on a new thread #23

the async error does not exist with last git update

from z-nomp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.