[BUG] Don't understand library
Summary
When trying to import a static library (originally Rust code), I get a panic from the compiler:
ghc-9.2.5: panic! (the 'impossible' happened)
(GHC version 9.2.5:
Don't understand library name sha3_bindings
Please report this as a GHC bug: https://www.haskell.org/ghc/reportabug
Steps to reproduce
To reproduce the error one should clone the cardano-base repo, and checkout to the testing-rust
branch.
Running cabal test cardano-crypto-tests --test-options '-p "Crypto.Hash"'
should reproduce the error.
I tried reproducing the error on a smaller project, but the tests ran correctly.
Expected behavior
Succeed in running tests, or get an error that does not request to open a GHC bug.
Environment
- GHC version used:
Build profile: -w ghc-9.2.5 -O1
Optional:
- Operating System: MacOS Monterey 12.6 running on a Apple M1 Pro