Skip to content

Panic "Can't find slot" while building primitive-unlifted with 9.0.2

$ git clone https://github.com/haskell-primitive/primitive-unlifted
$ cd primitive-unlifted
$ git checkout a896a0ed1a9801fce8c7b49bd2aca9a71a0dd861
$ cabal build -w ghc-9.0.2 --allow-newer
[ 7 of 18] Compiling Data.Primitive.Unlifted.MVar.Primops ( src/Data/Primitive/Unlifted/MVar/Primops.hs, /home/zubin/primitive-unlifted/dist-newstyle/build/x86_64-linux/ghc-9.0.2/primitive-unlifted-1.0.0.0/build/Data/Primitive/Unlifted/MVar/Primops.o, /home/zubin/primitive-unlifted/dist-newstyle/build/x86_64-linux/ghc-9.0.2/primitive-unlifted-1.0.0.0/build/Data/Primitive/Unlifted/MVar/Primops.dyn_o )
ghc: panic! (the 'impossible' happened)
  (GHC version 9.0.2:
	findSlot
  Can't find slot
  [PtrUnliftedSlot]
  [PtrLiftedSlot]
  Call stack:
      CallStack (from HasCallStack):
        callStackDoc, called at compiler/GHC/Utils/Outputable.hs:1230:37 in ghc:GHC.Utils.Outputable
        pprPanic, called at compiler/GHC/Types/RepType.hs:217:9 in ghc:GHC.Types.RepType
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information