Post
Topic
Board Announcements (Altcoins)
Re: Official Anoncoin chat thread (including history)
by
lunokhod2
on 09/06/2015, 18:40:42 UTC
Hi,
I'm trying to compile the develop-themes on debian testing (stretch), and I have some errors related to sse2 as much as I can tell.
I did 2 or 3 hours of research, no luck, so I'm turning to you because I can't acces IRC for the moment Wink

what I did:
After succesfully running autogen.sh and configure, make stops and gives these particular errors (I'm giving interestings chunks of logs only):

Code:
CXX      libanoncoin_common_a-scrypt-sse2.o
scrypt-sse2.cpp: In function ‘void scrypt_1024_1_1_256_sp_sse2(const char*, char*, char*)’:
scrypt-sse2.cpp:124:50: warning: SSE vector return without SSE enabled changes the ABI [-Wpsabi]
    X.i128[k] = _mm_xor_si128(X.i128[k], V[j + k]);
                                                  ^


then many times this same error, repeatedly:

Code:
In file included from scrypt-sse2.cpp:36:0:
/usr/lib/gcc/i586-linux-gnu/4.9/include/emmintrin.h:1282:1: error: inlining failed in call to always_inline ‘__m128i _mm_xor_si128(__m128i, __m128i)’: target specific option mismatch
 _mm_xor_si128 (__m128i __A, __m128i __B)
 ^

and it all finishes like that:

Code:
scrypt-sse2.cpp:92:31: error: called from here
  B[3] = _mm_add_epi32(B[3], X3);
                               ^
Makefile:2674: recipe for target 'libanoncoin_common_a-scrypt-sse2.o' failed
make[2]: *** [libanoncoin_common_a-scrypt-sse2.o] Error 1
make[2]: Leaving directory '/home/user/Code/anoncoin-develop-themes/src'
Makefile:5136: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/user/Code/anoncoin-develop-themes/src'
Makefile:573: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

I tried to add -msse2 flags to the makefile on the CPPFLAGS  CXXFLAGS lines, but none of these work (nothing changed, and I did run "make clean" after every try).
Is it really an sse2 related error? where can I make sure the -msse2 option is passed to the compiler?
And yes my CPU has the sse2 flag (as far as cat /proc/cpuinfo can tell).

Hope anyone of you can help me

Did you follow the instructions here: https://wiki.anoncoin.net/How_to_build_Anoncoin_develop, and build everything in the depends directory?