Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiler-nix-name = "ghc945" causes Hadrian build failures #2093

Closed
JackKelly-Bellroy opened this issue Oct 17, 2023 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@JackKelly-Bellroy
Copy link
Contributor

Describe the bug

The attached tarball fails to build Hadrian with compiler-nix-name = "ghc945", failing with the following error:

src/Hadrian/Haskell/Cabal/Parse.hs:319:26: error: [GHC-76037]
    Not in scope: ‘C.readHookedBuildInfo’
    NB: neither ‘Distribution.Simple’, ‘Distribution.Simple.Build’,
                ‘Distribution.Simple.Compiler’, ‘Distribution.Simple.Configure’,
                ‘Distribution.Simple.PackageIndex’,
                ‘Distribution.Simple.Program.Builtin’,
                ‘Distribution.Simple.Program.Db’,
                ‘Distribution.Simple.Program.Types’, ‘Distribution.Simple.Utils’,
                ‘Distribution.Types.ComponentLocalBuildInfo’,
                ‘Distribution.Types.LocalBuildInfo’, ‘Distribution.Verbosity’,
                ‘Distribution.ModuleName’, ‘Distribution.Package’,
                ‘Distribution.PackageDescription’,
                ‘Distribution.PackageDescription.Configuration’,
                ‘Distribution.PackageDescription.Parsec’, ‘Distribution.Text’,
                ‘Distribution.Types.MungedPackageId’,
                ‘Distribution.Utils.Path’ nor ‘Distribution.Utils.ShortText’ export ‘readHookedBuildInfo’.
    Suggested fix:
      Perhaps use one of these:
        ‘C.emptyHookedBuildInfo’ (imported from Distribution.PackageDescription),
        ‘C.parseHookedBuildInfo’ (imported from Distribution.PackageDescription.Parsec)
    |
319 |         Just infoFile -> C.readHookedBuildInfo C.silent infoFile
    |                          ^^^^^^^^^^^^^^^^^^^^^
  • Built on: x86_64-linux
  • haskell.nix commit: e2d31e63796dd24e9093f3cdcf9807b46dea9c25

Steps To Reproduce

Download the attached
ghc-945-failure.tar.gz, unpack it, and run nix build -L inside. Observe the error.

Expected behavior

I expect it to successfully build Hadrian, and then compile GHC 9.4.5 using it.

Additional context

I bisected the master branch from a commit I knew worked with GHC 9.4.5, and found that f4cdb22 (PR #2088) is the first bad commit. I haven't been able to dig into the PR branch itself.

@JackKelly-Bellroy JackKelly-Bellroy added the bug Something isn't working label Oct 17, 2023
@hamishmack
Copy link
Collaborator

Should be fixed by #2095

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants