Skip to content

ghc -S test.cmm panics

$ cat hi.cmm
test(bits64 x) {
    return (x);
}
$ /opt/exp/ghc/ghc-landing/_build/stage1/bin/ghc hi.cmm -S
ghc: panic! (the 'impossible' happened)
  GHC version 9.9.20230701:
        CMM pipeline - produced no .o file
  CallStack (from HasCallStack):
    panic, called at compiler/GHC/Driver/Pipeline.hs:863:16 in ghc-9.9-inplace:GHC.Driver.Pipeline


Please report this as a GHC bug:  https://www.haskell.org/ghc/reportabug

This breaks ghc/test-primops> usage.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information