haskell-crypto / cryptonite

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

AES-NI linking errors #294

Closed ysangkok closed 5 years ago

ysangkok commented 5 years ago

With the most recent commit 65643a3b I get the following error:

Linking /home/janus/cacophony/cryptonite/dist-newstyle/build/x86_64-linux/ghc-8.6.5/cryptonite-0.26/t/test-cryptonite/build/test-cryptonite/test-cryptonite ...
/home/janus/cacophony/cryptonite/dist-newstyle/build/x86_64-linux/ghc-8.6.5/cryptonite-0.26/build/libHScryptonite-0.26-inplace.a(cryptonite_aes.o):cryptonite_aes.c:function initialize_table_ni: error: undefined reference to 'cryptonite_aesni_encrypt_c32_128'
/home/janus/cacophony/cryptonite/dist-newstyle/build/x86_64-linux/ghc-8.6.5/cryptonite-0.26/build/libHScryptonite-0.26-inplace.a(cryptonite_aes.o):cryptonite_aes.c:function initialize_table_ni: error: undefined reference to 'cryptonite_aesni_encrypt_c32_256'
ocheron commented 5 years ago

Could you try touch cbits/aes/x86ni.c or anything to make sure the files are all recompiled?

ocheron commented 5 years ago

Closing, the project builds fine with 4 combinations of flags { support_aesni, support_pclmuldq }.