Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 5,398
    • Issues 5,398
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 590
    • Merge requests 590
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell CompilerGlasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #22564
Closed
Open
Issue created Dec 06, 2022 by iquerejeta@iquerejeta

[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
Edited Dec 06, 2022 by iquerejeta
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking