Hadrian doesn't know about Win32's dependency on hsc2hs
Attempting to build the test
target without having first built the default target reveals a missing dependency:
$ hadrian/build-cabal -j4 --flavour=release+no_split_sections test --only=linker_error1 -V
...
Error when running Shake build system:
at want, called at src\Main.hs:124:44 in main:Main
* Depends on: test
at need, called at src\Rules\Test.hs:193:9 in main:Rules.Test
* Depends on: test:ghc
at need, called at src\Rules\Test.hs:325:3 in main:Rules.Test
* Depends on: _build/stage1/lib/package.conf.d/Cabal-syntax-3.11.0.0-inplace.conf
at apply1, called at src\Development\Shake\Internal\Rules\Oracle.hs:159:32 in shake-0.19.7-a8ff2e84f3e931ad6e29f5858555241515f0ff62:Development.Shake.Internal.Rules.Oracle
* Depends on: OracleQ (ContextDataKey (Context {stage = Stage1, package = Package {pkgType = Library, pkgName = "Cabal-syntax", pkgPath = "libraries/Cabal/Cabal-syntax"}, way = v, iplace = Final}))
at need, called at src\Hadrian\Oracles\Cabal\Rules.hs:54:9 in main:Hadrian.Oracles.Cabal.Rules
* Depends on: _build/stage1/libraries/Cabal/Cabal-syntax/setup-config
at need, called at src\Hadrian\Haskell\Cabal\Parse.hs:144:5 in main:Hadrian.Haskell.Cabal.Parse
* Depends on: _build/stage1/inplace/package.conf.d/Win32-2.13.4.0-inplace.conf
at apply1, called at src\Development\Shake\Internal\Rules\Oracle.hs:159:32 in shake-0.19.7-a8ff2e84f3e931ad6e29f5858555241515f0ff62:Development.Shake.Internal.Rules.Oracle
* Depends on: OracleQ (ContextDataKey (Context {stage = Stage1, package = Package {pkgType = Library, pkgName = "Win32", pkgPath = "libraries/Win32"}, way = v, iplace = Inplace}))
at need, called at src\Hadrian\Oracles\Cabal\Rules.hs:54:9 in main:Hadrian.Oracles.Cabal.Rules
* Depends on: _build/stage1/libraries/Win32/setup-config
* Raised the exception:
ExitFailure 1