Skip to content

Plugin-using packages fail to build with stackage lts 24.11 #2453

@shlevy

Description

@shlevy

See https://github.com/shlevy/h.nix-plugin-error-demo

We have a package with a plugin and another package that uses that plugin. Using cabal.project, this builds fine, using stack.yaml, this fails with:

<no location info>: error:
    Failed to load interface for ‘GHC.Driver.Plugins’.
no unit id matching ‘ghc-9.10.2-inplace’ was found

With the stack-based build, configure flags has:

--dependency=ghc=ghc-9.10.2-CwCnWKm7AFqB0NOBlArzcl

Whereas with the cabal-based build, we have:

--dependency=ghc=ghc-9.10.2-inplace

One suspicious aspect is that we need to set custom configure flags for unix and directory (see commercialhaskell/stackage#7847). But setting those flags for the cabal project does nothing, presumably since all of the affected packages are provided by the compiler; why aren't they provided by the compiler for the stack build?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions