Open ghost opened 6 years ago
It took me a while to figure out the node-gyp thing before I could even try manually fixing the problem and recompiling.
I have applied this patch here https://github.com/monero-project/monero/commit/0f7956d0e4d811941cebfa088113e28452ec6d5c
Now I have gotten past that error and the new error when compiling node-cryptonote-utils is:
xmrproxy@pizone:~/xmr-node-proxy/node_modules/cryptonote-util$ node-gyp rebuild gyp info it worked if it ends with ok gyp info using node-gyp@3.7.0 gyp info using node@6.9.2 | linux | x64 gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR gyp info spawn /usr/bin/python2 gyp info spawn args [ '/home/xmrproxy/.nvm/versions/node/v6.9.2/lib/node_modules/node-gyp/gyp/gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'make', gyp info spawn args '-I', gyp info spawn args '/home/xmrproxy/xmr-node-proxy/node_modules/cryptonote-util/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/home/xmrproxy/.nvm/versions/node/v6.9.2/lib/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/home/xmrproxy/.node-gyp/6.9.2/include/node/common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=/home/xmrproxy/.node-gyp/6.9.2', gyp info spawn args '-Dnode_gyp_dir=/home/xmrproxy/.nvm/versions/node/v6.9.2/lib/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=/home/xmrproxy/.node-gyp/6.9.2/<(target_arch)/node.lib', gyp info spawn args '-Dmodule_root_dir=/home/xmrproxy/xmr-node-proxy/node_modules/cryptonote-util', gyp info spawn args '-Dnode_engine=v8', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'build', gyp info spawn args '-Goutput_dir=.' ] gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR gyp info spawn make gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] make: Entering directory '/home/xmrproxy/xmr-node-proxy/node_modules/cryptonote-util/build' CXX(target) Release/obj.target/cryptonote/src/main.o CXX(target) Release/obj.target/cryptonote/src/cryptonote_core/cryptonote_format_utils.o ../src/cryptonote_core/cryptonote_format_utils.cpp: In function ‘bool cryptonote::check_proof_of_work(const cryptonote::block&, cryptonote::difficulty_type, crypto::hash&)’: ../src/cryptonote_core/cryptonote_format_utils.cpp:938:3: warning: no return statement in function returning non-void [-Wreturn-type] } ^ CC(target) Release/obj.target/cryptonote/src/crypto/tree-hash.o CXX(target) Release/obj.target/cryptonote/src/crypto/crypto.o ../src/crypto/crypto.cpp: In function ‘std::size_t crypto::rs_comm_size(std::size_t)’: ../src/crypto/crypto.cpp:224:58: error: value-initialization of incomplete type ‘crypto::rs_comm::
[]’ return sizeof(rs_comm) + pubs_count * sizeof(rs_comm().ab[0]); ^ cryptonote.target.mk:120: recipe for target 'Release/obj.target/cryptonote/src/crypto/crypto.o' failed make: *** [Release/obj.target/cryptonote/src/crypto/crypto.o] Error 1 make: Leaving directory '/home/xmrproxy/xmr-node-proxy/node_modules/cryptonote-util/build' gyp ERR! build error gyp ERR! stack Error: make
failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/home/xmrproxy/.nvm/versions/node/v6.9.2/lib/node_modules/node-gyp/lib/build.js:262: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.9.0-6-amd64 gyp ERR! command "/home/xmrproxy/.nvm/versions/node/v6.9.2/bin/node" "/home/xmrproxy/.nvm/versions/node/v6.9.2/bin/node-gyp" "rebuild" gyp ERR! cwd /home/xmrproxy/xmr-node-proxy/node_modules/cryptonote-util gyp ERR! node -v v6.9.2 gyp ERR! node-gyp -v v3.7.0 gyp ERR! not ok
I am looking for fixes to this error now....
So I have been testing out different fixes for this specific error (the second one) and I think the fix for this error was to update to Node v10.6.0
I am pretty sure those commands are the right ones in order but feel free to correct me.
Finally got it compiled :)
Nevermind....
It shows ok in pm2 status but pm2 log shows:
1|proxy | 2018-07-04 21:00 -04:00: Error: Cannot find module 'cryptonote-util' 1|proxy | at Function.Module._resolveFilename (module.js:469:15) 1|proxy | at Function.Module._load (module.js:417:25) 1|proxy | at Module.require (module.js:497:17) 1|proxy | at require (internal/module.js:20:19) 1|proxy | at Object.
(/home/xmrproxy/xmr-node-proxy/lib/xmr.js:3:16) 1|proxy | at Module._compile (module.js:570:32) 1|proxy | at Object.Module._extensions..js (module.js:579:10) 1|proxy | at Module.load (module.js:487:32) 1|proxy | at tryModuleLoad (module.js:446:12) 1|proxy | at Function.Module._load (module.js:438:3)
Please go to https://github.com/MoneroOcean/xmr-node-proxy
Hi
I have common build error inside cryptonote-util that I cannot find a fix to. It is preventing install/run proxy:
This is an error inside one of the dependancies, cryptonote-util v0.0.3 it prevents installation/startup of proxy
I have tried node.js 0.10.13
Please help thanks