xmr-node-proxy icon indicating copy to clipboard operation
xmr-node-proxy copied to clipboard

build error on clean install

Open NightHouse opened this issue 5 years ago • 3 comments

While running install.sh I get:

SOLINK_MODULE(target) Release/obj.target/cryptonight-hashing.node

/usr/bin/ld: Release/obj.target/cryptonight-hashing/xmrig/crypto/asm/CryptonightR_template.o: relocation R_X86_64_PC32 against Symbol `CryptonightWOW_template_mainloop' can not be used when making a shared object; recompile with -fPIC

/usr/bin/ld: final link failed: Ung▒ltiger Wert

collect2: error: ld returned 1 exit status

make: *** [Release/obj.target/cryptonight-hashing.node] Fehler 1

make: Verzeichnis ▒/home/nodeproxy/xmr-node-proxy/node_modules/cryptonight-hashing/build▒ wird verlassen

gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/home/nodeproxy/.nvm/versions/node/v8.11.3/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23) gyp ERR! stack at emitTwo (events.js:126:13) gyp ERR! stack at ChildProcess.emit (events.js:214:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12) gyp ERR! System Linux 3.13.0-142-generic gyp ERR! command "/home/nodeproxy/.nvm/versions/node/v8.11.3/bin/node" "/home/nodeproxy/.nvm/versions/node/v8.11.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/nodeproxy/xmr-node-proxy/node_modules/cryptonight-hashing gyp ERR! node -v v8.11.3 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 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 probably not a problem with npm. There is likely additional logging output above.

I can find

relocation R_X86_64_PC32 against Symbol `CryptonightWOW_template_mainloop' can not be used when making a shared object; recompile with -fPIC

and I did an

export CFLAGS="-fPIC" export CXXFLAGS="$CFLAGS"

and rerun. Same error again.

After the run, there ist no directory cryptonight-hashing in xmr-node-proxy/node_modules/

Any hints? What am I doing wrong?

NightHouse avatar Mar 12 '19 13:03 NightHouse

Update: I downloaded an Edubuntu 14.04 ISO and booted a LiveSystem from a 32 GB MemStick.

Same error!

NightHouse avatar Mar 12 '19 18:03 NightHouse

Is 14.04 really needed? It's quite old and build tools will be outdated, too. So it's maybe something with gcc (not sure which version is there).

djfinch avatar Mar 12 '19 19:03 djfinch

Yes, I got it... 14.04 not working.

Did try with 16.04 LiveSystem and no errors.

NightHouse avatar Mar 12 '19 21:03 NightHouse