Post
Topic
Board Mining (Altcoins)
Re: [ANN]: cpuminer-opt v3.3.6, optimized X11evo, hmq1725 & HOdl
by
thanhhx
on 20/06/2016, 13:34:51 UTC
Hi all,
I've encountered an error as follows:
Code:
In file included from ./algo/sha3/sha3-defs.h:4:0,
                 from ./algo/sha3/sha3_common.h:13,
                 from algo/echo/aes_ni/hash_api.h:25,
                 from algo/echo/aes_ni/hash.c:20:
/usr/lib/gcc/x86_64-linux-gnu/4.8/include/emmintrin.h:1264:1: note: expected ‘__m128i’ but argument is of type ‘int’
 _mm_xor_si128 (__m128i __A, __m128i __B)
 ^
algo/echo/aes_ni/hash.c:342:4: error: incompatible type for argument 2 of ‘_mm_xor_si128’
    ECHO_SUB_AND_MIX(_state2, 3, 3, _state, 0, 3, 0, 1, 2);
    ^
In file included from ./algo/sha3/sha3-defs.h:4:0,
                 from ./algo/sha3/sha3_common.h:13,
                 from algo/echo/aes_ni/hash_api.h:25,
                 from algo/echo/aes_ni/hash.c:20:
/usr/lib/gcc/x86_64-linux-gnu/4.8/include/emmintrin.h:1264:1: note: expected ‘__m128i’ but argument is of type ‘int’
 _mm_xor_si128 (__m128i __A, __m128i __B)
 ^
algo/echo/aes_ni/hash.c:342:4: error: incompatible type for argument 2 of ‘_mm_xor_si128’
    ECHO_SUB_AND_MIX(_state2, 3, 3, _state, 0, 3, 0, 1, 2);
    ^
In file included from ./algo/sha3/sha3-defs.h:4:0,
                 from ./algo/sha3/sha3_common.h:13,
                 from algo/echo/aes_ni/hash_api.h:25,
                 from algo/echo/aes_ni/hash.c:20:
/usr/lib/gcc/x86_64-linux-gnu/4.8/include/emmintrin.h:1264:1: note: expected ‘__m128i’ but argument is of type ‘int’
 _mm_xor_si128 (__m128i __A, __m128i __B)
 ^
In file included from algo/echo/aes_ni/hash.c:21:0:
algo/echo/aes_ni/vperm.h:52:5: error: incompatible types when assigning to type ‘__m128i’ from type ‘int’
  t1 = _mm_shuffle_epi8(*((__m128i*)table + 1), t1);\
     ^
algo/echo/aes_ni/hash.c:126:5: note: in expansion of macro ‘TRANSFORM’
     TRANSFORM(ktemp, _k_ipt, t1, t4);\
     ^
algo/echo/aes_ni/hash.c:342:4: note: in expansion of macro ‘ECHO_SUB_AND_MIX’
    ECHO_SUB_AND_MIX(_state2, 3, 3, _state, 0, 3, 0, 1, 2);
    ^
algo/echo/aes_ni/vperm.h:53:5: error: incompatible types when assigning to type ‘__m128i’ from type ‘int’
  x  = _mm_shuffle_epi8(*((__m128i*)table + 0), x);\
     ^
algo/echo/aes_ni/hash.c:126:5: note: in expansion of macro ‘TRANSFORM’
     TRANSFORM(ktemp, _k_ipt, t1, t4);\
     ^
algo/echo/aes_ni/hash.c:342:4: note: in expansion of macro ‘ECHO_SUB_AND_MIX’
    ECHO_SUB_AND_MIX(_state2, 3, 3, _state, 0, 3, 0, 1, 2);
    ^
algo/echo/aes_ni/vperm.h:68:5: error: incompatible types when assigning to type ‘__m128i’ from type ‘int’
  t2 = _mm_shuffle_epi8(*((__m128i*)_k_inv + 1), x);\
     ^
algo/echo/aes_ni/vperm.h:100:2: note: in expansion of macro ‘SUBSTITUTE_VPERM_CORE’
  SUBSTITUTE_VPERM_CORE(x, t1, t2, t3, t4);\
  ^
algo/echo/aes_ni/hash.c:128:5: note: in expansion of macro ‘AES_ROUND_VPERM_CORE’
     AES_ROUND_VPERM_CORE(state[i][j], t1, t2, t3, t4, s1, s2, s3);\
     ^
algo/echo/aes_ni/hash.c:342:4: note: in expansion of macro ‘ECHO_SUB_AND_MIX’
    ECHO_SUB_AND_MIX(_state2, 3, 3, _state, 0, 3, 0, 1, 2);
    ^
algo/echo/aes_ni/vperm.h:70:5: error: incompatible types when assigning to type ‘__m128i’ from type ‘int’
  t3 = _mm_shuffle_epi8(*((__m128i*)_k_inv + 0), t1);\
     ^
algo/echo/aes_ni/vperm.h:100:2: note: in expansion of macro ‘SUBSTITUTE_VPERM_CORE’
  SUBSTITUTE_VPERM_CORE(x, t1, t2, t3, t4);\
  ^
algo/echo/aes_ni/hash.c:128:5: note: in expansion of macro ‘AES_ROUND_VPERM_CORE’
     AES_ROUND_VPERM_CORE(state[i][j], t1, t2, t3, t4, s1, s2, s3);\
     ^
algo/echo/aes_ni/hash.c:342:4: note: in expansion of macro ‘ECHO_SUB_AND_MIX’
    ECHO_SUB_AND_MIX(_state2, 3, 3, _state, 0, 3, 0, 1, 2);
    ^
algo/echo/aes_ni/vperm.h:72:5: error: incompatible types when assigning to type ‘__m128i’ from type ‘int’
  t4 = _mm_shuffle_epi8(*((__m128i*)_k_inv + 0), x);\
     ^
algo/echo/aes_ni/vperm.h:100:2: note: in expansion of macro ‘SUBSTITUTE_VPERM_CORE’
  SUBSTITUTE_VPERM_CORE(x, t1, t2, t3, t4);\
  ^
algo/echo/aes_ni/hash.c:128:5: note: in expansion of macro ‘AES_ROUND_VPERM_CORE’
     AES_ROUND_VPERM_CORE(state[i][j], t1, t2, t3, t4, s1, s2, s3);\
     ^
algo/echo/aes_ni/hash.c:342:4: note: in expansion of macro ‘ECHO_SUB_AND_MIX’
    ECHO_SUB_AND_MIX(_state2, 3, 3, _state, 0, 3, 0, 1, 2);
    ^
algo/echo/aes_ni/vperm.h:74:5: error: incompatible types when assigning to type ‘__m128i’ from type ‘int’
  t2 = _mm_shuffle_epi8(*((__m128i*)_k_inv + 0), t3);\
     ^
algo/echo/aes_ni/vperm.h:100:2: note: in expansion of macro ‘SUBSTITUTE_VPERM_CORE’
  SUBSTITUTE_VPERM_CORE(x, t1, t2, t3, t4);\
  ^
algo/echo/aes_ni/hash.c:128:5: note: in expansion of macro ‘AES_ROUND_VPERM_CORE’
     AES_ROUND_VPERM_CORE(state[i][j], t1, t2, t3, t4, s1, s2, s3);\
     ^
algo/echo/aes_ni/hash.c:342:4: note: in expansion of macro ‘ECHO_SUB_AND_MIX’
    ECHO_SUB_AND_MIX(_state2, 3, 3, _state, 0, 3, 0, 1, 2);
    ^
algo/echo/aes_ni/vperm.h:76:5: error: incompatible types when assigning to type ‘__m128i’ from type ‘int’
  t3 = _mm_shuffle_epi8(*((__m128i*)_k_inv + 0), t4);\
     ^
algo/echo/aes_ni/vperm.h:100:2: note: in expansion of macro ‘SUBSTITUTE_VPERM_CORE’
  SUBSTITUTE_VPERM_CORE(x, t1, t2, t3, t4);\
  ^
algo/echo/aes_ni/hash.c:128:5: note: in expansion of macro ‘AES_ROUND_VPERM_CORE’
     AES_ROUND_VPERM_CORE(state[i][j], t1, t2, t3, t4, s1, s2, s3);\
     ^
algo/echo/aes_ni/hash.c:342:4: note: in expansion of macro ‘ECHO_SUB_AND_MIX’
    ECHO_SUB_AND_MIX(_state2, 3, 3, _state, 0, 3, 0, 1, 2);
    ^
algo/echo/aes_ni/vperm.h:83:4: error: incompatible types when assigning to type ‘__m128i’ from type ‘int’
  t = _mm_shuffle_epi8(*((__m128i*)table + 0), x1);\
    ^
algo/echo/aes_ni/vperm.h:101:2: note: in expansion of macro ‘VPERM_LOOKUP’
  VPERM_LOOKUP(t2, t3, _k_sb1, s1, t1);\
  ^
algo/echo/aes_ni/hash.c:128:5: note: in expansion of macro ‘AES_ROUND_VPERM_CORE’
     AES_ROUND_VPERM_CORE(state[i][j], t1, t2, t3, t4, s1, s2, s3);\
     ^
algo/echo/aes_ni/hash.c:342:4: note: in expansion of macro ‘ECHO_SUB_AND_MIX’
    ECHO_SUB_AND_MIX(_state2, 3, 3, _state, 0, 3, 0, 1, 2);
    ^
algo/echo/aes_ni/vperm.h:84:4: error: incompatible types when assigning to type ‘__m128i’ from type ‘int’
  y = _mm_shuffle_epi8(*((__m128i*)table + 1), x2);\
    ^
algo/echo/aes_ni/vperm.h:101:2: note: in expansion of macro ‘VPERM_LOOKUP’
  VPERM_LOOKUP(t2, t3, _k_sb1, s1, t1);\
  ^
algo/echo/aes_ni/hash.c:128:5: note: in expansion of macro ‘AES_ROUND_VPERM_CORE’
     AES_ROUND_VPERM_CORE(state[i][j], t1, t2, t3, t4, s1, s2, s3);\
     ^
algo/echo/aes_ni/hash.c:342:4: note: in expansion of macro ‘ECHO_SUB_AND_MIX’
    ECHO_SUB_AND_MIX(_state2, 3, 3, _state, 0, 3, 0, 1, 2);
    ^
algo/echo/aes_ni/vperm.h:83:4: error: incompatible types when assigning to type ‘__m128i’ from type ‘int’
  t = _mm_shuffle_epi8(*((__m128i*)table + 0), x1);\
    ^
algo/echo/aes_ni/vperm.h:102:2: note: in expansion of macro ‘VPERM_LOOKUP’
  VPERM_LOOKUP(t2, t3, _k_sb2, s2, t1);\
  ^
algo/echo/aes_ni/hash.c:128:5: note: in expansion of macro ‘AES_ROUND_VPERM_CORE’
     AES_ROUND_VPERM_CORE(state[i][j], t1, t2, t3, t4, s1, s2, s3);\
     ^
algo/echo/aes_ni/hash.c:342:4: note: in expansion of macro ‘ECHO_SUB_AND_MIX’
    ECHO_SUB_AND_MIX(_state2, 3, 3, _state, 0, 3, 0, 1, 2);
    ^
algo/echo/aes_ni/vperm.h:84:4: error: incompatible types when assigning to type ‘__m128i’ from type ‘int’
  y = _mm_shuffle_epi8(*((__m128i*)table + 1), x2);\
    ^
algo/echo/aes_ni/vperm.h:102:2: note: in expansion of macro ‘VPERM_LOOKUP’
  VPERM_LOOKUP(t2, t3, _k_sb2, s2, t1);\
  ^
algo/echo/aes_ni/hash.c:128:5: note: in expansion of macro ‘AES_ROUND_VPERM_CORE’
     AES_ROUND_VPERM_CORE(state[i][j], t1, t2, t3, t4, s1, s2, s3);\
     ^
algo/echo/aes_ni/hash.c:342:4: note: in expansion of macro ‘ECHO_SUB_AND_MIX’
    ECHO_SUB_AND_MIX(_state2, 3, 3, _state, 0, 3, 0, 1, 2);
    ^
algo/echo/aes_ni/vperm.h:104:4: error: incompatible types when assigning to type ‘__m128i’ from type ‘int’
  x = _mm_shuffle_epi8(s2, M128(_k_aesmix1));\
    ^
algo/echo/aes_ni/hash.c:128:5: note: in expansion of macro ‘AES_ROUND_VPERM_CORE’
     AES_ROUND_VPERM_CORE(state[i][j], t1, t2, t3, t4, s1, s2, s3);\
     ^
algo/echo/aes_ni/hash.c:342:4: note: in expansion of macro ‘ECHO_SUB_AND_MIX’
    ECHO_SUB_AND_MIX(_state2, 3, 3, _state, 0, 3, 0, 1, 2);
    ^
algo/echo/aes_ni/hash.c:342:4: error: incompatible type for argument 2 of ‘_mm_xor_si128’
In file included from ./algo/sha3/sha3-defs.h:4:0,
                 from ./algo/sha3/sha3_common.h:13,
                 from algo/echo/aes_ni/hash_api.h:25,
                 from algo/echo/aes_ni/hash.c:20:
/usr/lib/gcc/x86_64-linux-gnu/4.8/include/emmintrin.h:1264:1: note: expected ‘__m128i’ but argument is of type ‘int’
 _mm_xor_si128 (__m128i __A, __m128i __B)
 ^
algo/echo/aes_ni/hash.c:342:4: error: incompatible type for argument 2 of ‘_mm_xor_si128’
    ECHO_SUB_AND_MIX(_state2, 3, 3, _state, 0, 3, 0, 1, 2);
    ^
In file included from ./algo/sha3/sha3-defs.h:4:0,
                 from ./algo/sha3/sha3_common.h:13,
                 from algo/echo/aes_ni/hash_api.h:25,
                 from algo/echo/aes_ni/hash.c:20:
/usr/lib/gcc/x86_64-linux-gnu/4.8/include/emmintrin.h:1264:1: note: expected ‘__m128i’ but argument is of type ‘int’
 _mm_xor_si128 (__m128i __A, __m128i __B)
 ^
algo/echo/aes_ni/hash.c:342:4: error: incompatible type for argument 2 of ‘_mm_xor_si128’
    ECHO_SUB_AND_MIX(_state2, 3, 3, _state, 0, 3, 0, 1, 2);
    ^
In file included from ./algo/sha3/sha3-defs.h:4:0,
                 from ./algo/sha3/sha3_common.h:13,
                 from algo/echo/aes_ni/hash_api.h:25,
                 from algo/echo/aes_ni/hash.c:20:
/usr/lib/gcc/x86_64-linux-gnu/4.8/include/emmintrin.h:1264:1: note: expected ‘__m128i’ but argument is of type ‘int’
 _mm_xor_si128 (__m128i __A, __m128i __B)
 ^
In file included from algo/echo/aes_ni/hash.c:21:0:
algo/echo/aes_ni/vperm.h:52:5: error: incompatible types when assigning to type ‘__m128i’ from type ‘int’
  t1 = _mm_shuffle_epi8(*((__m128i*)table + 1), t1);\
     ^
algo/echo/aes_ni/hash.c:132:5: note: in expansion of macro ‘TRANSFORM’
     TRANSFORM(s2, mul2ipt, t1, t2);\
     ^
algo/echo/aes_ni/hash.c:342:4: note: in expansion of macro ‘ECHO_SUB_AND_MIX’
    ECHO_SUB_AND_MIX(_state2, 3, 3, _state, 0, 3, 0, 1, 2);
    ^
algo/echo/aes_ni/vperm.h:53:5: error: incompatible types when assigning to type ‘__m128i’ from type ‘int’
  x  = _mm_shuffle_epi8(*((__m128i*)table + 0), x);\
     ^
algo/echo/aes_ni/hash.c:132:5: note: in expansion of macro ‘TRANSFORM’
     TRANSFORM(s2, mul2ipt, t1, t2);\
     ^
algo/echo/aes_ni/hash.c:342:4: note: in expansion of macro ‘ECHO_SUB_AND_MIX’
    ECHO_SUB_AND_MIX(_state2, 3, 3, _state, 0, 3, 0, 1, 2);
    ^
algo/echo/aes_ni/vperm.h:52:5: error: incompatible types when assigning to type ‘__m128i’ from type ‘int’
  t1 = _mm_shuffle_epi8(*((__m128i*)table + 1), t1);\
     ^
algo/echo/aes_ni/hash.c:385:4: note: in expansion of macro ‘TRANSFORM’
    TRANSFORM(_state[i][j], _k_opt, t1, t2);
    ^
algo/echo/aes_ni/vperm.h:53:5: error: incompatible types when assigning to type ‘__m128i’ from type ‘int’
  x  = _mm_shuffle_epi8(*((__m128i*)table + 0), x);\
     ^
algo/echo/aes_ni/hash.c:385:4: note: in expansion of macro ‘TRANSFORM’
    TRANSFORM(_state[i][j], _k_opt, t1, t2);
    ^
In file included from algo/echo/aes_ni/hash.c:19:0:
algo/echo/aes_ni/hash.c: At top level:
./miner.h:496:20: warning: ‘algo_names’ defined but not used [-Wunused-variable]
 static const char *algo_names[] = {
                    ^
make[2]: *** [algo/echo/aes_ni/cpuminer-hash.o] Error 1
make[2]: Leaving directory `/root/cpuminer-opt-3.3.6'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/cpuminer-opt-3.3.6'
make: *** [all] Error 2

I follow the instructions below:
Code:
./autogen.sh
CFLAGS="-O3 -march=native -Wall" CXXFLAGS="$CFLAGS -std=gnu++11" ./configure --with-curl
make

CPU Info:
Code:
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 13
model name      : QEMU Virtual CPU version (cpu64-rhel6)
stepping        : 3
microcode       : 0x1
cpu MHz         : 2659.998
cache size      : 4096 KB
physical id     : 0
siblings        : 1
core id         : 0
cpu cores       : 1
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 4
wp              : yes
flags           : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm nopl pni cx16 hypervisor lahf_lm
bogomips        : 5319.99
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual

Please tell me or guide me how i can handle this problem. Thanks!