Skip to content

Instantly share code, notes, and snippets.

@Ponyboy47
Created March 5, 2016 17:42
Show Gist options
  • Save Ponyboy47/d4409c4581af92d56f8f to your computer and use it in GitHub Desktop.
Save Ponyboy47/d4409c4581af92d56f8f to your computer and use it in GitHub Desktop.
NPM update errors in unomp-multi-hashing package
> node-gyp rebuild
make: Entering directory `/home/pool47/unomp/node_modules/merged-pooler/node_modules/unomp-multi-hashing/build'
CXX(target) Release/obj.target/multihashing/multihashing.o
../multihashing.cc: In function ‘v8::Handle<v8::Value> neoscrypt_hash(const v8::Arguments&)’:
../multihashing.cc:153:14: warning: unused variable ‘input_len’ [-Wunused-variable]
uint32_t input_len = Buffer::Length(target);
^
../multihashing.cc: In function ‘v8::Handle<v8::Value> boolberry(const v8::Arguments&)’:
../multihashing.cc:606:7: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if(args.Length() >= 3)
^
../multihashing.cc: In function ‘v8::Handle<v8::Value> c11(const v8::Arguments&)’:
../multihashing.cc:749:14: warning: unused variable ‘input_len’ [-Wunused-variable]
uint32_t input_len = Buffer::Length(target);
^
CC(target) Release/obj.target/multihashing/scryptn.o
CC(target) Release/obj.target/multihashing/yescrypt/sha256_Y.o
CC(target) Release/obj.target/multihashing/yescrypt/yescrypt-best.o
In file included from ../yescrypt/yescrypt-best.c:2:0:
../yescrypt/yescrypt-simd.c:37:2: warning: #warning "Consider enabling SSE4.1, AVX, or XOP in the C compiler for significantly better performance" [-Wcpp]
#warning "Consider enabling SSE4.1, AVX, or XOP in the C compiler for significantly better performance"
^
CC(target) Release/obj.target/multihashing/yescrypt/yescryptcommon.o
CC(target) Release/obj.target/multihashing/keccak.o
CC(target) Release/obj.target/multihashing/skein.o
In file included from ../skein.c:8:0:
../sha256.h:390:1: warning: ‘PBKDF2_SHA256’ defined but not used [-Wunused-function]
PBKDF2_SHA256(const uint8_t * passwd, size_t passwdlen, const uint8_t * salt,
^
CC(target) Release/obj.target/multihashing/x11.o
CC(target) Release/obj.target/multihashing/quark.o
../quark.c:88:1: warning: ‘be32enc_vect’ defined but not used [-Wunused-function]
be32enc_vect(unsigned char *dst, const uint32_t *src, uint32_t len)
^
../quark.c:101:1: warning: ‘be32dec_vect’ defined but not used [-Wunused-function]
be32dec_vect(uint32_t *dst, const unsigned char *src, uint32_t len)
^
CC(target) Release/obj.target/multihashing/bcrypt.o
CC(target) Release/obj.target/multihashing/groestl.o
In file included from ../groestl.c:8:0:
../sha256.h:390:1: warning: ‘PBKDF2_SHA256’ defined but not used [-Wunused-function]
PBKDF2_SHA256(const uint8_t * passwd, size_t passwdlen, const uint8_t * salt,
^
CC(target) Release/obj.target/multihashing/blake.o
CC(target) Release/obj.target/multihashing/fugue.o
CC(target) Release/obj.target/multihashing/qubit.o
CC(target) Release/obj.target/multihashing/hefty1.o
In file included from ../hefty1.c:7:0:
../sha256.h:390:1: warning: ‘PBKDF2_SHA256’ defined but not used [-Wunused-function]
PBKDF2_SHA256(const uint8_t * passwd, size_t passwdlen, const uint8_t * salt,
^
CC(target) Release/obj.target/multihashing/shavite3.o
CC(target) Release/obj.target/multihashing/cryptonight.o
../cryptonight.c: In function ‘do_jh_hash’:
../cryptonight.c:58:5: warning: implicit declaration of function ‘jh_hash_n’ [-Wimplicit-function-declaration]
int r = jh_hash_n(HASH_SIZE * 8, input, 8 * len, (uint8_t*)output);
^
../cryptonight.c: In function ‘cryptonight_hash’:
../cryptonight.c:199:5: warning: pointer targets in passing argument 1 of ‘ExpandAESKey256’ differ in signedness [-Wpointer-sign]
ExpandAESKey256(ExpandedKey);
^
../cryptonight.c:137:20: note: expected ‘char *’ but argument is of type ‘uint8_t *’
static inline void ExpandAESKey256(char *keybuf)
^
../cryptonight.c:275:18: warning: initialization from incompatible pointer type [enabled by default]
uint64_t *dst = &ctx->long_state[c[0] & 0x1FFFF0];
^
../cryptonight.c:287:5: warning: pointer targets in passing argument 1 of ‘ExpandAESKey256’ differ in signedness [-Wpointer-sign]
ExpandAESKey256(ExpandedKey);
^
../cryptonight.c:137:20: note: expected ‘char *’ but argument is of type ‘uint8_t *’
static inline void ExpandAESKey256(char *keybuf)
^
../cryptonight.c:239:47: warning: unused variable ‘b’ [-Wunused-variable]
uint64_t a[2] __attribute((aligned(16))), b[2] __attribute((aligned(16)));
^
../cryptonight.c:265:4: error: inconsistent operand constraints in an ‘asm’
__asm__("mulq %3\n\t"
^
make: *** [Release/obj.target/multihashing/cryptonight.o] Error 1
make: Leaving directory `/home/pool47/unomp/node_modules/merged-pooler/node_modules/unomp-multi-hashing/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/pool47/.nvm/v0.10.43/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267: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.2.0-30-generic
gyp ERR! command "node" "/home/pool47/.nvm/v0.10.43/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pool47/unomp/node_modules/merged-pooler/node_modules/unomp-multi-hashing
gyp ERR! node -v v0.10.43
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the unomp-multi-hashing 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 their info via:
npm ERR! npm owner ls unomp-multi-hashing
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 4.2.0-30-generic
npm ERR! command "/home/pool47/.nvm/v0.10.43/bin/node" "/home/pool47/.nvm/v0.10.43/bin/npm" "update"
npm ERR! cwd /home/pool47/unomp
npm ERR! node -v v0.10.43
npm ERR! npm -v 1.4.29
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment