haskell-crypto / cryptonite

lowlevel set of cryptographic primitives for haskell
Other
226 stars 139 forks source link

compiling version 0.27 failed #332

Closed paolino closed 4 years ago

paolino commented 4 years ago

Version 0.27 failed to compile on our systems (centos 7) We are trying ghc 8.10.1 using stackage nightly build resolver: nightly-2020-08-11

Version 0.26 OTOH is compiling fine

cryptonite> /tmp/stack-f99b0b6c698da785/cryptonite-0.27/In file included from cbits/aes/x86ni.h:38:0: error:
cryptonite>     0,
cryptonite>                      from cbits/aes/gf.c:35:
cryptonite> 
cryptonite> /tmp/stack-f99b0b6c698da785/cryptonite-0.27//usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/wmmintrin.h:34:3: error:
cryptonite>      error: #error "AES/PCLMUL instructions not enabled"
cryptonite>      # error "AES/PCLMUL instructions not enabled"
cryptonite>        ^
cryptonite>    |
cryptonite> 34 | # error "AES/PCLMUL instructions not enabled"
cryptonite>    |   ^
cryptonite> 
cryptonite> /tmp/stack-f99b0b6c698da785/cryptonite-0.27/In file included from cbits/aes/x86ni.h:39:0: error:
cryptonite>     0,
cryptonite>                      from cbits/aes/gf.c:35:
cryptonite> 
cryptonite> /tmp/stack-f99b0b6c698da785/cryptonite-0.27//usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/tmmintrin.h:31:3: error:
cryptonite>      error: #error "SSSE3 instruction set not enabled"
cryptonite>      # error "SSSE3 instruction set not enabled"
cryptonite>        ^
cryptonite>    |
cryptonite> 31 | # error "SSSE3 instruction set not enabled"
cryptonite>    |   ^
cryptonite> `gcc' failed in phase `C Compiler'. (Exit code: 1)
ocheron commented 4 years ago

The readme file, #326 and #324 have information about this.

paolino commented 4 years ago

Thanks, I will close this then.