nicehash / nheqminer

Equihash miner for NiceHash
https://www.nicehash.com
MIT License
768 stars 583 forks source link

error: ./fasm: 1: ./fasm: Syntax error: "(" unexpected #71

Open GenTarkin opened 7 years ago

GenTarkin commented 7 years ago

When trying to build in ubuntu linux ...

S74nk0 commented 7 years ago

What version?

danielhaaser commented 7 years ago

Same here, latest Linux branch version, commit dc719a40b3848d0ffab10cee383b20fed32485dc

S74nk0 commented 7 years ago

I mean Ubuntu version :)?

danielhaaser commented 7 years ago

Trying to execute the ./fasm command individually, get this error:

djh@DESKTOP-8VGBMJ2:~/nheqminer/cpu_xenoncat/Linux/asm$ ./fasm -m 1280000 equihash_avx1.asm
bash: ./fasm: cannot execute binary file: Exec format error

Ubuntu version: Ubuntu 14.04.5 LTS running in Bash on Ubuntu on Windows

S74nk0 commented 7 years ago

Ubuntu 64bit?

danielhaaser commented 7 years ago

Yes, 64bit

S74nk0 commented 7 years ago

Ubuntu version: Ubuntu 14.04.5 LTS running in Bash on Ubuntu on Windows Please elaborate on that. What does this mean? Windows part is confusing me...

danielhaaser commented 7 years ago

Yeah, I'm beginning to think that may be the problem...

https://msdn.microsoft.com/en-us/commandline/wsl/about

S74nk0 commented 7 years ago

cannot execute binary file: Exec format error this means that the binary format is not compatible with the system. Now as far as I know Ubuntu for Windows is not native, so the problem lies there. Under a VM it should work and of course on installed on real hardwar. 64bit only

maztheman commented 7 years ago

as a work around run the fasm.exe windows build to create the output files.

jarbro commented 7 years ago

I'll chime in here even though it's been stale for a bit. Download flat assembler 1.71.63 for Linux and install of WSL.

cd ~
wget https://flatassembler.net/fasm-1.71.63.tgz'
tar zxvf fasm-1.71.63.tgz
cd fasm
cp fasm.x64 nheqminer/cpu_xenoncat/Linux/asm/fasm

That should do the trick.