Skip to content

Hadrian build failure of 9.0.1 release on Debian 10

Summary

./hadrian/build fails on Debian 10.

Steps to reproduce

./configure cabal update ./hadrian/build

The result is:

# cabal-read (for OracleQ (PackageDataKey (Package {pkgType = Program, pkgName = "unlit", pkgPath = "utils/unlit"})))
Warning: utils/unlit/unlit.cabal:0:0: Unsupported cabal-version 2.1. See
https://github.com/haskell/cabal/issues/4899.
Error when running Shake build system:
  at action, called at src/Rules.hs:40:19 in main:Rules
  at need, called at src/Rules.hs:62:5 in main:Rules
* Depends on: _build/stage1/lib/bin/unlit
  at apply1, called at src/Development/Shake/Internal/Rules/Oracle.hs:159:32 in shake-0.18.5-17b9a5cb10723b7975222e9bbc53e018271a7fce1425b25750a5887a1bb68f68:Development.Shake.Internal.Rules.Oracle
* Depends on: OracleQ (PackageDataKey (Package {pkgType = Program, pkgName = "unlit", pkgPath = "utils/unlit"}))
* Raised the exception:
dieVerbatim: user error (CallStack (from HasCallStack):
  $, called at libraries/Cabal/Cabal/Distribution/Fields/ParseResult.hs:185:13 in Cabal-3.2.1.0:Distribution.Fields.ParseResult
  parseString, called at libraries/Cabal/Cabal/Distribution/Fields/ParseResult.hs:170:5 in Cabal-3.2.1.0:Distribution.Fields.ParseResult
  readAndParseFile, called at libraries/Cabal/Cabal/Distribution/PackageDescription/Parsec.hs:94:33 in Cabal-3.2.1.0:Distribution.PackageDescription.Parsec
  readGenericPackageDescription, called at src/Hadrian/Haskell/Cabal/Parse.hs:65:9 in main:Hadrian.Haskell.Cabal.Parse
hadrian: Failed parsing "utils/unlit/unlit.cabal".
)

Environment

  • GHC version used: GHC 8.10.3

Optional:

  • Operating System: Debian 10 uptodate
  • System Architecture: x64
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information