Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,867
    • Issues 4,867
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 456
    • Merge requests 456
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #21634
Closed
Open
Created May 24, 2022 by kgardas@kgardasReporter

ghc-9.4.1-alpha2 does not compile with ghc 9.0.2

Summary

GHC 9.4.1-alpha2 does not compile with GHC 9.0.2 on Ubuntu 20.04, the compilation fails with:

ar: creating _build/stage0/libraries/exceptions/build/libHSexceptions-0.10.5.a
/----------------------------------------------------------------------------\
| Successfully built library 'exceptions' (Stage0, way v).                   |
| Library: _build/stage0/libraries/exceptions/build/libHSexceptions-0.10.5.a |
| Library synopsis: Extensible optionally-pure exceptions.                   |
\----------------------------------------------------------------------------/
| Copy package 'exceptions'
# cabal-copy (for _build/stage0/lib/package.conf.d/exceptions-0.10.5.conf)
| Register package 'exceptions'
# cabal-register (for _build/stage0/lib/package.conf.d/exceptions-0.10.5.conf)
| Run Ar Pack Stage0: _build/stage0/libraries/bytestring/build/c/cbits/fpstring.o (and 32 more) => _build/stage0/libraries/bytestring/build/libHSbytestring-0.11.3.0.a
ar: creating _build/stage0/libraries/bytestring/build/libHSbytestring-0.11.3.0.a
/--------------------------------------------------------------------------------------\
| Successfully built library 'bytestring' (Stage0, way v).                             |
| Library: _build/stage0/libraries/bytestring/build/libHSbytestring-0.11.3.0.a         |
| Library synopsis: Fast, compact, strict and lazy byte strings with a list interface. |
\--------------------------------------------------------------------------------------/
| Configure package 'binary'
| Copy package 'bytestring'
# cabal-copy (for _build/stage0/lib/package.conf.d/bytestring-0.11.3.0.conf)
| Register package 'bytestring'
# cabal-register (for _build/stage0/lib/package.conf.d/bytestring-0.11.3.0.conf)
| Copy package 'bytestring'
# cabal-copy (for _build/stage0/lib/package.conf.d/bytestring-0.10.12.1.conf)
| Register package 'bytestring'
# cabal-register (for _build/stage0/lib/package.conf.d/bytestring-0.10.12.1.conf)
Error, rule finished running but did not produce file:
  _build/stage0/lib/package.conf.d/bytestring-0.10.12.1.conf
Build failed.
karel@silence:/tmp/ghc-9.4.0.20220523$ 

Steps to reproduce

Take Ubuntu 20.04, install GHC 9.0.2 and try to use it hadrian compile GHC 9.4.1-alpha2. This is 100% reproducible. Failed 4 times from 4 attempts (with -j without it, after wiping dir again). etc.

Expected behavior

GHC 9.0.2 should be able to compile 9.4.1-alpha2 as per last 2 major release should be able to bootstrap new GHC, right?

Environment

  • GHC version used: 9.0.2

Optional:

  • Operating System: Ubuntu 20.04.x LTS
  • System Architecture: amd64
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking