Closed rbrito closed 11 years ago
I've compiled it by locally reverting this commit:
https://github.com/jgarzik/cpuminer/commit/7d7dba7d9d84404b397501bac1e4bc3f783f0bd4
I can't confirm whether it will have broken something or not...
I'm also getting this error "conflicting types for ‘scanhash_asm32’"
Thank you
@lostence, just kill the extra argument as I mentioned below and you're ready to go.
Hi.
I am trying to compile
cpuminer
on my Debian unstable system (amd64 kernel, i386 userland) and I have a problem with conflicting types forscanhash_asm32
:(...) gcc -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -DHAS_YASM -Ofast -Wall -march=native -MT minerd-sha256_cryptopp.o -MD -MP -MF .deps/minerd-sha256_cryptopp.Tpo -c -o minerd-sha256_cryptopp.o
test -f 'sha256_cryptopp.c' || echo './'
sha256_cryptopp.c sha256_cryptopp.c:582:7: error: conflicting types for ‘scanhash_asm32’ In file included from sha256_cryptopp.c:9:0: miner.h:166:14: note: previous declaration of ‘scanhash_asm32’ was here make[2]: * [minerd-sha256_cryptopp.o] Error 1 make[2]: Leaving directory `/tmp/cpuminer' make[1]: * [all-recursive] Error 1 make[1]: Leaving directory`/tmp/cpuminer' make: *\ [all] Error 2Upon inspecting, the code, indeed, there prototype in miner.h has an argument (
unsigned char *hash1
) that the code in function definition in sha256_cryptopp.c lacks.