zone117x / node-open-mining-portal

A scalable all-in-one easy to setup cryptocurrency mining pool and portal written entirely in Node.js.
GNU General Public License v2.0
1.02k stars 1.03k forks source link

Build Error on Centos 6.5 - boolberry.o Error 1 #301

Open features-not-bugs opened 10 years ago

features-not-bugs commented 10 years ago

Hey all,

Random issue, hoping someone can help.

multi-hashing@0.0.9 install /root/stratum/node_modules/stratum-pool/node_modules/multi-hashing node-gyp rebuild

make: Entering directory `/root/stratum/node_modules/stratum-pool/node_modules/multi-hashing/build'

CXX(target) Release/obj.target/multihashing/multihashing.o

../multihashing.cc: In function âv8::Handlev8::Value boolberry(const v8::Arguments&)â:

../multihashing.cc:468: warning: suggest explicit braces to avoid ambiguous âelseâ

CC(target) Release/obj.target/multihashing/scryptjane.o In file included from ../scryptjane.c:13: ../scryptjane/scrypt-jane-test-vectors.h:9: warning: missing initializer ../scryptjane/scrypt-jane-test-vectors.h:9: warning: (near initialization for âpost_settings[2].saltâ) ../scryptjane/scrypt-jane-romix-basic.h:13: warning: âscrypt_romix_convert_endianâ defined but not used ../scryptjane/scrypt-jane-romix-basic.h:65: warning: âscrypt_blockâ defined but not used CC(target) Release/obj.target/multihashing/scryptn.o CC(target) Release/obj.target/multihashing/keccak.o CC(target) Release/obj.target/multihashing/skein.o ../sha256.h:390: warning: âPBKDF2_SHA256â defined but not used CC(target) Release/obj.target/multihashing/x11.o CC(target) Release/obj.target/multihashing/quark.o ../quark.c:88: warning: âbe32enc_vectâ defined but not used ../quark.c:101: warning: âbe32dec_vectâ defined but not used CC(target) Release/obj.target/multihashing/bcrypt.o CC(target) Release/obj.target/multihashing/groestl.o ../sha256.h:390: warning: âPBKDF2_SHA256â defined but not used 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 ../sha256.h:390: warning: âPBKDF2_SHA256â defined but not used CC(target) Release/obj.target/multihashing/shavite3.o CC(target) Release/obj.target/multihashing/cryptonight.o ../cryptonight.c:60: warning: âmulâ defined but not used ../cryptonight.c:74: warning: âsum_half_blocksâ defined but not used ../cryptonight.c:92: warning: âswap_blocksâ defined but not used CC(target) Release/obj.target/multihashing/x13.o CXX(target) Release/obj.target/multihashing/boolberry.o In file included from ../crypto/cryptonote_core/cryptonote_format_utils.h:7, from ../boolberry.cc:2: ../crypto/cryptonote_core/../wild_keccak.h: In function âint crypto::keccak_generic(const uint8t, size_t, uint8t, size_t)â: ../crypto/cryptonote_core/../wild_keccak.h:63: warning: enumeral and non-enumeral type in conditional expression ../crypto/cryptonote_core/../wild_keccak.h: In function âint crypto::wild_keccak(const uint8t, size_t, uint8t, size_t, callback_t)â: ../crypto/cryptonote_core/../wild_keccak.h:98: warning: enumeral and non-enumeral type in conditional expression In file included from ../boolberry.cc:2: ../crypto/cryptonote_core/cryptonote_format_utils.h: In function âbool cryptonote::get_blob_longhash_bb(const blobdata&, crypto::hash&, uint64_t, callback_t)â: ../crypto/cryptonote_core/cryptonote_format_utils.h:15: error: expected primary-expression before â[â token ../crypto/cryptonote_core/cryptonote_format_utils.h:15: error: expected primary-expression before â]â token ../crypto/cryptonote_core/cryptonote_format_utils.h:15: error: expected primary-expression before â&â token ../crypto/cryptonote_core/cryptonote_format_utils.h:15: error: âstâ was not declared in this scope ../crypto/cryptonote_core/cryptonote_format_utils.h:15: error: expected primary-expression before â&â token ../crypto/cryptonote_core/cryptonote_format_utils.h:15: error: âmixâ was not declared in this scope ../boolberry.cc: In function âvoid boolberryhash(const char, uint32t, const char, uint64_t, char*, uint64_t)â: ../boolberry.cc:8: error: expected primary-expression before â[â token ../boolberry.cc:8: error: expected primary-expression before â]â token ../boolberry.cc:8: error: expected primary-expression before âindexâ ../boolberry.cc:8: error: expected primary-expression before â{â token

../boolberry.cc:7: warning: unused variable âspadâ

make: *\ [Release/obj.target/multihashing/boolberry.o] Error 1

make: Leaving directory /root/stratum/node_modules/stratum-pool/node_modules/multi-hashing/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:267:23) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12) gyp ERR! System Linux 2.6.32-042stab081.3 gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /root/stratum/node_modules/stratum-pool/node_modules/multi-hashing gyp ERR! node -v v0.10.15 gyp ERR! node-gyp -v v0.10.6 gyp ERR! not ok npm ERR! weird error 1 npm ERR! not ok code 0

Not sure what's going on, I have a development packages installed as well as all other dependencies.

features-not-bugs commented 10 years ago

I forked and reverted back to a commit before boolberry and every works fine. Just not that algo for some reason

nova4005 commented 10 years ago

I had an issue with this and and I ended up having to update GCC to a new version because Centos ships with GCC 4.4.7 and boolberry requires 4.5 or newer. https://github.com/zone117x/node-multi-hashing/issues/20

daattaa commented 10 years ago

i was getting a similar error: ./sha1.c:4:25: fatal error: openssl/sha.h: No such file or directory

Make sure libssl-dev is installed. http://www.question-defense.com/2013/09/02/jtr-john-the-ripper-compile-error-sha-h425-fatal-error-opensslsha-h-no-such-file-or-directory

djspacedevil commented 10 years ago

Hy, here you have a complete instruction for it: http://sven-goessling.de/22/07/2014/stratum-pool-node-fuer-altcoins/

Translate it with google when it is not your language

fedaykinofdune commented 10 years ago

I left a comment at your writeup pertaining to MPOS mode, as some of the specified settings weren't quite right, but great writeup though!