[GHC] #8546: Panic during cabal build with profiling enabled.