Skip to content

"Setting up GHC" slowdown when going from GHC 9.0 to 9.4 #2710

Open
@gergoerdi

Description

@gergoerdi

I'm trying to upgrade Pong to use Clash 1.8 with a recent version of GHC. I've managed to upgrade to Clash 1.8/GHC 9.0, but then when I try to switch to GHC 9.4, I start getting problems in Clashilator.

I'll need to investigate some of them on my side first, but one thing I noticed is that with GHC 9.0, the "Setting up GHC" step takes <1s and on GHC 9.4 it takes almost a minute. You can try it on this temporary branch just running stack build --flag clash-pong:verilator:

clash-pong > GHC: Setting up GHC took: 57.114s
clash-pong > GHC: Compiling and loading modules took: 2.587s
clash-pong > Clash: Parsing and compiling primitives took 0.125s
clash-pong > GHC+Clash: Loading modules cumulatively took 1m0s
clash-pong > Clash: Compiling Pong.topEntity
clash-pong > Clash: Normalization took 0.287s
clash-pong > Clash: Netlist generation took 0.015s
clash-pong > Clash: Compiling Pong.topEntity took 0.414s
clash-pong > Clash: Total compilation took 1m0s

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions