[120 of 120] Compiling Crypto.Cipher.AES ( Crypto/Cipher/AES.hs, .stack-work/dist/x86_64-osx/Cabal-1.22.4.0/build/Crypto/Cipher/AES.o )
/private/var/folders/4m/5g_wk50n5w78jf8mwnkdgrtw0000gv/T/stack38406/cryptonite-0.24/cbits/cryptonite_rdrand.c:89:0: no such instruction: `rdrand %r8'
/private/var/folders/4m/5g_wk50n5w78jf8mwnkdgrtw0000gv/T/stack38406/cryptonite-0.24/cbits/cryptonite_rdrand.c:89:0: no such instruction: `rdrand %r8'
/private/var/folders/4m/5g_wk50n5w78jf8mwnkdgrtw0000gv/T/stack38406/cryptonite-0.24/cbits/cryptonite_rdrand.c:89:0: no such instruction: `rdrand %r8'
This also fails:
resolver: lts-8.22
[111 of 111] Compiling Crypto.Cipher.AES ( Crypto/Cipher/AES.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Crypto/Cipher/AES.o )
/private/var/folders/4m/5g_wk50n5w78jf8mwnkdgrtw0000gv/T/stack59812/cryptonite-0.21/cbits/cryptonite_rdrand.c:89:0: error:
no such instruction: `rdrand %r8'
/private/var/folders/4m/5g_wk50n5w78jf8mwnkdgrtw0000gv/T/stack59812/cryptonite-0.21/cbits/cryptonite_rdrand.c:89:0: error:
no such instruction: `rdrand %r8'
/private/var/folders/4m/5g_wk50n5w78jf8mwnkdgrtw0000gv/T/stack59812/cryptonite-0.21/cbits/cryptonite_rdrand.c:89:0: error:
no such instruction: `rdrand %r8'
`gcc' failed in phase `Assembler'. (Exit code: 1)
The workaround until this is resolved is to use python's urllib to download files.
See https://github.com/commercialhaskell/stack/issues/234, https://github.com/commercialhaskell/stack/issues/484.
In
stack.yaml
:Default
resolver: lts-5.2
Trying to fix with other resolvers fails to build:
Try
This also fails:
resolver: lts-8.22
The workaround until this is resolved is to use python's urllib to download files.