Closed bmillwood closed 1 year ago
I don't think it has anything to do with cryptonite, since there's no arm lowlevel instructions whatsoever.
so my best guess (from the error message and a 1min google) is that ghc is producing the eor3
instructions indiscriminately whether sha3
instructions are enabled or not, and maybe some more lowlevel assembler/linker is now being more pedantic on whether it accept eor3
.
Maybe you need to specify some extra options to linkers that is currently being assumed.
Also as far as I heard, the ghc arm backend is not quite production ready ~now, and older versions are extremely bad in arm generation.
I suggest you see with ghc upstream
I'm experiencing the exact same issue. @bmillwood were you able to solve this?
EDIT: Not exactly the same issue, I was using stack instead of cabal.
No, sorry, I just took the upgrading GHC route.
To anyone wondering how to fix this, upgrading to llvm@13 worked for me. This is odd because stack specifically instructed to use versions [9, 13).
I've started seeing this error recently on my M1 Macbook on GHC 8.10.7:
This only started happening recently. I don't know why, but my guess is it's related to either an OS upgrade or an upgrade of some other library. I'm on macOS Ventura 13.0.1.
Switching to GHC 9.2.5 seems to fix it, although that's not an ideal solution for me for other reasons. 9.0.2 seems to reproduce the
instruction requires: sha3
issue once I've worked around this unrelated GHC-on-M1 issue.Using
cabal build -v
, it seems like this is the command that fails:This happens both with the released
cryptonite-0.30
and with the git master branch (at time of writing, d163f69512a3d162baa69a95927f3d6369833f7d).