Post
Topic
Board Announcements (Altcoins)
Re: [ANN][YAC] yacoin: yet another altcoin. START is now.
by
msm595
on 09/05/2013, 12:50:00 UTC
Tried to compile cpuminer for windows from alex_fun source, but failed at make step.

gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -fno-strict-aliasing -I./compat/jansson -I/u
sr/local/include -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME
  -g -O2 -MT minerd-scrypt-jane.o -MD -MP -MF .deps/minerd-scrypt-jane.Tpo -c -o
 minerd-scrypt-jane.o `test -f 'scrypt-jane.c' || echo './'`scrypt-jane.c
C:\Users\testuser\AppData\Local\Temp\cc4kfJms.s: Assembler messages:
C:\Users\testuser\AppData\Local\Temp\cc4kfJms.s:25: Warning: .type pseudo-op use
d outside of .def/.endef ignored.
C:\Users\testuser\AppData\Local\Temp\cc4kfJms.s:25: Error: junk at end of line,
first unrecognized character is `h'
C:\Users\testuser\AppData\Local\Temp\cc4kfJms.s:26: Warning: .size pseudo-op use
d outside of .def/.endef ignored.
C:\Users\testuser\AppData\Local\Temp\cc4kfJms.s:26: Error: junk at end of line,
first unrecognized character is `h'
make[2]: *** [minerd-scrypt-jane.o] Error 1
make[2]: Leaving directory `/home/testuser/cpuminer-master'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/testuser/cpuminer-master'
make: *** [all] Error 2

Does anyone have any ideas?

make -f makefile.BLAH clean Huh

Didn't help... tried even to delete everyone from make folder and compile from scratch - nothing helped. Also cleaned Temp directory, there's also number of files that cannot be deleted. Will reboot now, cannot understand what's the hell going on that compilation  Huh

Also looked into scrypt-jane.c files, I thought that there is some ASM part of code which can give this error, but no - plain C text. Seems like compiler/flags problem.
Does anyone have the same problem at make step?

My "fix" from the other thread (I don't actually know assembly):

I have to go to bed, but if anyone wants to get a step closer to compiling it on windows, replace line 173 in ./code/scrypt-jane-portable-x86.h with

Code:
#define asm_naked_fn_end(fn) ".att_syntax prefix;\n.def " #fn "; .scl 2; .type 32; .size .-" #fn "; .endef \n"  );

The new error complains about _has_cpuid@0 not being defined (in minerd-scrypt-jane.o, after compiling to asm).