Greetings,
To start with, I'm planing to use cpuminer to mine scrypt jane based coins, I have a relatively new 12 core Windows server, is this a good idea ?
Anyway, since cpuminer is blocked by mcafee I decided to build it from source on my Windows 7 x64 workstation.
I followed the tutorial
https://bitcointalksearch.org/topic/m.3081964 to the letter.
However, I'm having a problem in the make step.
...
./configure --host=x86_64-w64-mingw32 CFLAGS="-O3 -march=core2"
make
I'm getting the following error message:
$ make
make all-recursive
make[1]: Entering directory `/home/lyaf/cpuminer'
Making all in compat
make[2]: Entering directory `/home/lyaf/cpuminer/compat'
Making all in jansson
make[3]: Entering directory `/home/lyaf/cpuminer/compat/jansson'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/lyaf/cpuminer/compat/jansson'
make[3]: Entering directory `/home/lyaf/cpuminer/compat'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/lyaf/cpuminer/compat'
make[2]: Leaving directory `/home/lyaf/cpuminer/compat'
make[2]: Entering directory `/home/lyaf/cpuminer'
gcc -std=gnu99 -O3 -march=core2 -o minerd.exe minerd-cpu-miner.o minerd-util.
o minerd-sha2.o minerd-scrypt.o minerd-sha2-x64.o minerd-scrypt-x64.o -L/mingw
/lib -lcurl -lwldap32 -lws2_32 compat/jansson/libjansson.a -lpthread -lws2_32
minerd-sha2.o:sha2.c:(.text+0x3e74): undefined reference to `sha256_use_4way'
minerd-sha2.o:sha2.c:(.text+0x9789): undefined reference to `sha256d_ms_4way'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: minerd-sha
2.o: bad reloc address 0x20 in section `.eh_frame'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: final link
failed: Invalid operation
collect2.exe: error: ld returned 1 exit status
make[2]: *** [minerd.exe] Error 1
make[2]: Leaving directory `/home/lyaf/cpuminer'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/lyaf/cpuminer'
make: *** [all] Error 2
If I remove the --host flag as seen below compilation works but the resulting executable is 32 bit:
./configure CFLAGS="-O3 -march=core2"
make
$ make
make all-recursive
make[1]: Entering directory `/home/lyaf/cpuminer'
Making all in compat
make[2]: Entering directory `/home/lyaf/cpuminer/compat'
Making all in jansson
make[3]: Entering directory `/home/lyaf/cpuminer/compat/jansson'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/lyaf/cpuminer/compat/jansson'
make[3]: Entering directory `/home/lyaf/cpuminer/compat'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/lyaf/cpuminer/compat'
make[2]: Leaving directory `/home/lyaf/cpuminer/compat'
make[2]: Entering directory `/home/lyaf/cpuminer'
gcc -std=gnu99 -O3 -march=core2 -o minerd.exe minerd-cpu-miner.o minerd-util.
o minerd-sha2.o minerd-scrypt.o minerd-sha2-x86.o minerd-scrypt-x86.o -L/mingw
/lib -lcurl -lwldap32 -lws2_32 compat/jansson/libjansson.a -lpthread -lws2_32
make[2]: Leaving directory `/home/lyaf/cpuminer'
make[1]: Leaving directory `/home/lyaf/cpuminer'
Any suggestions are appreciated.