You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. Got the following error on the in-line asm in <cryptonight_aesni.c>:
cryptonight_aesni.c:162:4: error: inconsistent operand constraints in an âasmâ asm("mulq %3\n\t"
^
together with a number of warnings on earlier lines - see below for complete output.
Help would be apreciated!
Regards, Menno
make[2]: Entering directory /home/server/cpuminer-multi' gcc -std=gnu99 -DHAVE_CONFIG_H -I. -pthread -I./compat/jansson -falign-loops=16 -falign-functions=16 -falign-jumps=16 -falign-labels=16 -Ofast -flto -fuse-linker-plugin -funroll-loops -fvariable-expansion-in-unroller -ftree-loop-if-convert-stores -fmerge-all-constants -fbranch-target-load-optimize2 -fsched2-use-superblocks -maes -march=native -MT minerd-cryptonight_aesni.o -MD -MP -MF .deps/minerd-cryptonight_aesni.Tpo -c -o minerd-cryptonight_aesni.otest -f 'cryptonight_aesni.c' || echo './'cryptonight_aesni.c In file included from cryptonight.h:6:0, from cryptonight_aesni.c:2: miner.h:188:58: warning: âstruct cryptonight_ctxâ declared inside parameter list [enabled by default] uint32_t max_nonce, unsigned long *hashes_done, struct cryptonight_ctx *persistentctx); ^ miner.h:188:58: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] cryptonight_aesni.c: In function âcryptonight_hash_ctxâ: cryptonight_aesni.c:90:2: warning: passing argument 3 of âkeccakâ from incompatible pointer type [enabled by default] keccak((const uint8_t *)input, 76, &ctx->state.hs, 200); ^ In file included from cryptonight_aesni.c:2:0: cryptonight.h:64:6: note: expected âuint8_t *â but argument is of type âunion hash_state *â void keccak(const uint8_t *in, int inlen, uint8_t *md, int mdlen); ^ cryptonight_aesni.c:94:5: warning: implicit declaration of function âmemcpyâ [-Wimplicit-function-declaration] memcpy(ctx->text, ctx->state.init, INIT_SIZE_BYTE); ^ cryptonight_aesni.c:94:5: warning: incompatible implicit declaration of built-in function âmemcpyâ [enabled by default] cryptonight_aesni.c:172:18: warning: initialization from incompatible pointer type [enabled by default] uint64_t *dst = &ctx->long_state[c[0] & 0x1FFFF0]; ^ cryptonight_aesni.c:215:2: warning: passing argument 1 of âkeccakfâ from incompatible pointer type [enabled by default] keccakf(&ctx->state.hs, 24); ^ In file included from cryptonight_aesni.c:2:0: cryptonight.h:65:6: note: expected âuint64_t *â but argument is of type âunion hash_state *â void keccakf(uint64_t st[25], int rounds); ^ cryptonight_aesni.c:162:4: error: inconsistent operand constraints in an âasmâ __asm__("mulq %3\n\t" ^ make[2]: *** [minerd-cryptonight_aesni.o] Error 1 make[2]: Leaving directory/home/server/cpuminer-multi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/server/cpuminer-multi'
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered:
Ouch. I guess that explains why I'm not able to get this to compile on a P4. Any updates on whether this is ever going to be resolved, or if it's a wontfix?
Also, this is kind of out of the realm of a comment on here, I guess, but does anybody have any suggestions for a cryptonight algorithm miner that will compile on i686?
Hi. Got the following error on the in-line asm in <cryptonight_aesni.c>:
cryptonight_aesni.c:162:4: error: inconsistent operand constraints in an âasmâ
asm("mulq %3\n\t"
^
together with a number of warnings on earlier lines - see below for complete output.
Help would be apreciated!
Regards, Menno
make[2]: Entering directory
/home/server/cpuminer-multi' gcc -std=gnu99 -DHAVE_CONFIG_H -I. -pthread -I./compat/jansson -falign-loops=16 -falign-functions=16 -falign-jumps=16 -falign-labels=16 -Ofast -flto -fuse-linker-plugin -funroll-loops -fvariable-expansion-in-unroller -ftree-loop-if-convert-stores -fmerge-all-constants -fbranch-target-load-optimize2 -fsched2-use-superblocks -maes -march=native -MT minerd-cryptonight_aesni.o -MD -MP -MF .deps/minerd-cryptonight_aesni.Tpo -c -o minerd-cryptonight_aesni.o
test -f 'cryptonight_aesni.c' || echo './'cryptonight_aesni.c In file included from cryptonight.h:6:0, from cryptonight_aesni.c:2: miner.h:188:58: warning: âstruct cryptonight_ctxâ declared inside parameter list [enabled by default] uint32_t max_nonce, unsigned long *hashes_done, struct cryptonight_ctx *persistentctx); ^ miner.h:188:58: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] cryptonight_aesni.c: In function âcryptonight_hash_ctxâ: cryptonight_aesni.c:90:2: warning: passing argument 3 of âkeccakâ from incompatible pointer type [enabled by default] keccak((const uint8_t *)input, 76, &ctx->state.hs, 200); ^ In file included from cryptonight_aesni.c:2:0: cryptonight.h:64:6: note: expected âuint8_t *â but argument is of type âunion hash_state *â void keccak(const uint8_t *in, int inlen, uint8_t *md, int mdlen); ^ cryptonight_aesni.c:94:5: warning: implicit declaration of function âmemcpyâ [-Wimplicit-function-declaration] memcpy(ctx->text, ctx->state.init, INIT_SIZE_BYTE); ^ cryptonight_aesni.c:94:5: warning: incompatible implicit declaration of built-in function âmemcpyâ [enabled by default] cryptonight_aesni.c:172:18: warning: initialization from incompatible pointer type [enabled by default] uint64_t *dst = &ctx->long_state[c[0] & 0x1FFFF0]; ^ cryptonight_aesni.c:215:2: warning: passing argument 1 of âkeccakfâ from incompatible pointer type [enabled by default] keccakf(&ctx->state.hs, 24); ^ In file included from cryptonight_aesni.c:2:0: cryptonight.h:65:6: note: expected âuint64_t *â but argument is of type âunion hash_state *â void keccakf(uint64_t st[25], int rounds); ^ cryptonight_aesni.c:162:4: error: inconsistent operand constraints in an âasmâ __asm__("mulq %3\n\t" ^ make[2]: *** [minerd-cryptonight_aesni.o] Error 1 make[2]: Leaving directory
/home/server/cpuminer-multi'make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/server/cpuminer-multi'
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: