DomBlack / php-scrypt

A PHP wrapper fo the scrypt hashing algorithm
Other
209 stars 57 forks source link

Compilation error with GCC 4.9 - inlining fail #34

Closed sergey-dryabzhinsky closed 9 years ago

sergey-dryabzhinsky commented 9 years ago

/home/sergey/debuild/php52/php52-mod-scrypt/php-scrypt/crypto/crypto_scrypt-sse.c: In function ‘blkxor’: /home/sergey/debuild/php52/php52-mod-scrypt/php-scrypt/crypto/crypto_scrypt-sse.c:76:14: warning: SSE vector return without SSE enabled changes the ABI [-Wpsabi] D[i] = _mm_xor_si128(D[i], S[i]); ^ In file included from /home/sergey/debuild/php52/php52-mod-scrypt/php-scrypt/crypto/crypto_scrypt-sse.c:37:0: /usr/lib/gcc/i686-linux-gnu/4.9/include/emmintrin.h:1266:1: error: inlining failed in call to always_inline ‘_mm_xor_si128’: target specific option mismatch _mm_xor_si128 (m128i A, m128i B) ^ /home/sergey/debuild/php52/php52-mod-scrypt/php-scrypt/crypto/crypto_scrypt-sse.c:76:16: error: called from here D[i] = _mm_xor_si128(D[i], S[i]); ^ make: *\ [crypto/crypto_scrypt-sse.lo] Error 1

sergey-dryabzhinsky commented 9 years ago

You need to force GCC 4.9 to use sse instruction

sergey-dryabzhinsky commented 9 years ago

Merge request: https://github.com/DomBlack/php-scrypt/pull/35