Skip to content

Master fails to build because of haddock when using the perf flavour.

Current master (ddbdec41) fails to build haddock (commit a917dfd29f3103b69378138477514cbfa38558a9) during the stage0 build.

I'm using 8.10.2 as a boot compiler.

It seems to be important that I used the perf flavour. As the default build flavour seems to work so far.

# Pastebin Mi69C8Qf
andi@DESKTOP-USSC1Q2 MINGW64 ~/ghc_inline
$ winpty bash hadrian/build -j30 --flavour=perf -o_perf
Up to date
| Configure package 'rts'
| Run Ghc LinkHs Stage0: _perf/stage0/ghc/build/c/hschooks.o (and 1 more) => _perf/stage0/bin/ghc.exe
| Run Ghc CompileHs Stage0: utils/haddock/haddock-library/src/Documentation/Haddock/Parser/Monad.hs => _perf/stage0/utils/haddock/build/Documentation/Haddock/Parser/Monad.o
| Run Ghc CompileHs Stage0: utils/haddock/haddock-api/src/Haddock/Types.hs => _perf/stage0/utils/haddock/build/Haddock/Types.o

utils\haddock\haddock-api\src\Haddock\Types.hs:682:43: error:
    Not in scope: type constructor or class `HsCoreTy'
    |
682 | type instance XXType           DocNameI = HsCoreTy
    |                                           ^^^^^^^^
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: _perf/stage0/bin/haddock.exe
  at need, called at src\Rules\Program.hs:123:5 in main:Rules.Program
* Depends on: _perf/stage0/utils/haddock/build/Haddock/Types.o
* Depends on: _perf/stage0/utils/haddock/build/Haddock/Types.o _perf/stage0/utils/haddock/build/Haddock/Types.hi
  at cmd', called at src\Builder.hs:312:23 in main:Builder
  at cmd, called at src\Builder.hs:408:8 in main:Builder
* Raised the exception:
Development.Shake.cmd, system command failed
Command line: C:/ghc/msys64/opt/ghc-8.10.2/bin/ghc.exe -Wall -hisuf hi -osuf o -hcsuf hc -static -hide-all-packages -no-user-package-db "-package-env -" "-package-db _perf/stage0/lib/package.conf.d" "-package-id Cabal-3.5.0.0" "-package-id array-0.5.4.0"
 "-package-id base-4.14.1.0" "-package-id bytestring-0.10.10.0" "-package-id containers-0.6.2.1" "-package-id deepseq-1.4.4.0" "-package-id directory-1.3.6.0" "-package-id exceptions-0.10.4" "-package-id filepath-1.4.2.1" "-package-id ghc-9.1.0.20210112"
 "-package-id ghc-boot-9.1" "-package-id ghc-boot-th-9.1" "-package-id mtl-2.2.2" "-package-id parsec-3.1.14.0" "-package-id text-1.2.4.0" "-package-id transformers-0.5.6.2" "-package-id xhtml-3000.2.2.1" -i -iC:\ghc\msys64\home\andi\ghc_inline\_perf\sta
ge0\utils\haddock\build -iC:\ghc\msys64\home\andi\ghc_inline\_perf\stage0\utils\haddock\build\haddock\autogen -iC:\ghc\msys64\home\andi\ghc_inline\utils\haddock\driver -iC:\ghc\msys64\home\andi\ghc_inline\utils\haddock\haddock-api\src -iC:\ghc\msys64\hom
e\andi\ghc_inline\utils\haddock\haddock-library\src -I_perf/stage0/lib -I_perf/stage0/utils/haddock/build -IC:/ghc/msys64/home/andi/ghc_inline/_perf/stage0/lib/x86_64-windows-ghc-8.10.2/ghc-9.1.0.20210112/include -IC:/ghc/msys64/opt/ghc-8.10.2/lib/proces
s-1.6.9.0/include -IC:/ghc/msys64/opt/ghc-8.10.2/lib/time-1.9.3/include -IC:/ghc/msys64/opt/ghc-8.10.2/lib/Win32-2.6.1.0/include -IC:/ghc/msys64/opt/ghc-8.10.2/lib/bytestring-0.10.10.0/include -IC:/ghc/msys64/opt/ghc-8.10.2/lib/base-4.14.1.0/include -IC:
/ghc/msys64/opt/ghc-8.10.2/lib/integer-gmp-1.0.3.0/include -IC:/ghc/msys64/opt/ghc-8.10.2/lib/include -I_perf/stage0/lib -optc-I_perf/stage0/lib -optP-include -optP_perf/stage0/utils/haddock/build/haddock/autogen/cabal_macros.h -optP-DIN_GHC_TREE -output
dir _perf/stage0/utils/haddock/build -optc-Wno-error=inline -optP-Wno-nonportable-include-path -c utils/haddock/haddock-api/src/Haddock/Types.hs -o _perf/stage0/utils/haddock/build/Haddock/Types.o -O -H64m -funbox-strict-fields -Wall -fwarn-tabs -Wincomp
lete-uni-patterns -Wincomplete-record-updates -O2 -threaded -XHaskell2010
Exit code: 1
Stderr and Stdout:
utils\haddock\haddock-api\src\Haddock\Types.hs:682:43: error:
    Not in scope: type constructor or class `HsCoreTy'
    |
682 | type instance XXType           DocNameI = HsCoreTy
    |                                           ^^^^^^^^
Edited by Andreas Klebinger
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information