Skip to content

clash-dev needs clash-lib to be compiled #486

Open
@leonschoorl

Description

@leonschoorl

When using the clash-dev script I occasionally run into:

*** Exception: Encountered compilation errors while compiling blackbox template function "BBFN<Clash.Primitives.Intel.ClockGen.altpllTF>" for function "Clash.Intel.ClockGen.altpll". Compilation reported: 

<no location info>: error:
    module ‘Clash.Primitives.Intel.ClockGen’ cannot be found locally
CallStack (from HasCallStack):
  error, called at clash-lib/src/Clash/Driver.hs:470:5 in main:Clash.Driver

This can be fixed with a cabal new-build clash-lib.
But it's kind of frustrating because the point of clash-dev is to not have to do the whole cabal build.
And also I'm not even using the ClockGen primitives.

Maybe we could lazily compile primitives?

Metadata

Metadata

Assignees

No one assigned

    Labels

    papercutSmall quality-of-life issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions