Master is broken using hadrian and 8.10
It seems we somehow pick up the wrong package(db?).
$ winpty bash hadrian/build -j4 --no-colour -o_quick --flavour=quick -j1 -V
Warning: Unknown/unsupported 'ghc' version detected (Cabal 3.1.0.0 supports
'ghc' version < 8.10): E:\ghc-8.10.1\bin\ghc.exe is version 8.10.1
Up to date
Warning: Unknown/unsupported 'ghc' version detected (Cabal 3.1.0.0 supports
'ghc' version < 8.10): E:\ghc-8.10.1\bin\ghc.exe is version 8.10.1
| Building Stage1 libraries: binary, Cabal, ghc, ghc-boot, ghc-boot-th, ghc-heap, ghci, hpc, mtl, parsec, template-haskell, text, transformers, array, base, bytestring, containers, deepseq, directory, exceptions, filepath, ghc-compact, ghc-prim, haskeline, integer-gmp, pretty, proc
ess, rts, stm, time, xhtml, libiserv, Win32
| Building Stage1 programs: ghc, ghc-pkg, hp2ps, hsc2hs, unlit, haddock, hpc, ghc-iserv, runghc, touchy
| Building Stage2 libraries: binary, Cabal, ghc, ghc-boot, ghc-boot-th, ghc-heap, ghci, hpc, mtl, parsec, template-haskell, text, transformers, array, base, bytestring, containers, deepseq, directory, exceptions, filepath, ghc-compact, ghc-prim, haskeline, integer-gmp, pretty, proc
ess, rts, stm, time, xhtml, libiserv, Win32
| Building Stage2 programs: ghc, ghc-pkg, hp2ps, hsc2hs, unlit, haddock, hpc, ghc-iserv, runghc, touchy
| Building Stage3 libraries:
| Building Stage3 programs:
| ContextData oracle: resolving data for 'Win32' (Stage1, v)...
| ContextData oracle: resolving data for 'libiserv' (Stage1, v)...
| ContextData oracle: resolving data for 'time' (Stage1, v)...
| ContextData oracle: resolving data for 'stm' (Stage1, v)...
| ContextData oracle: resolving data for 'process' (Stage1, v)...
| ContextData oracle: resolving data for 'pretty' (Stage1, v)...
| ContextData oracle: resolving data for 'haskeline' (Stage1, v)...
| ContextData oracle: resolving data for 'ghc-compact' (Stage1, v)...
| ContextData oracle: resolving data for 'exceptions' (Stage1, v)...
| ContextData oracle: resolving data for 'directory' (Stage1, v)...
| ContextData oracle: resolving data for 'deepseq' (Stage1, v)...
| ContextData oracle: resolving data for 'containers' (Stage1, v)...
| ContextData oracle: resolving data for 'bytestring' (Stage1, v)...
| ContextData oracle: resolving data for 'text' (Stage1, v)...
| ContextData oracle: resolving data for 'template-haskell' (Stage1, v)...
| ContextData oracle: resolving data for 'parsec' (Stage1, v)...
| ContextData oracle: resolving data for 'mtl' (Stage1, v)...
| ContextData oracle: resolving data for 'hpc' (Stage1, v)...
| ContextData oracle: resolving data for 'ghci' (Stage1, v)...
| ContextData oracle: resolving data for 'ghc-boot' (Stage1, v)...
| ContextData oracle: resolving data for 'Cabal' (Stage1, v)...
| ContextData oracle: resolving data for 'binary' (Stage1, v)...
| ContextData oracle: resolving data for 'ghc' (Stage1, v)...
| Run Ghc CompileHs Stage1: libraries/transformers/Control/Monad/Trans/Class.hs => _quick/stage1/libraries/transformers/build/Control/Monad/Trans/Class.o
_quick/stage0/bin/ghc.exe -Wall -hisuf hi -osuf o -hcsuf hc -static -hide-all-packages -no-user-package-db "-package-db _quick/stage1/lib/package.conf.d" "-this-unit-id transformers-0.5.6.2" "-package-id base-4.14.0.0" -i -i_quick/stage1/libraries/transformers/build -i_quick/stage1
/libraries/transformers/build/autogen -ilibraries/transformers/. -Iincludes -I_quick/stage1/lib -I_quick/stage1/libraries/transformers/build -IE:/ghc_head/_quick/stage1/lib/x86_64-windows-ghc-8.11.0.20200329/base-4.14.0.0/include -IE:/ghc_head/_quick/stage1/lib/x86_64-windows-ghc-8
.11.0.20200329/integer-gmp-1.0.2.0/include -IE:/ghc_head/_quick/stage1/lib/x86_64-windows-ghc-8.11.0.20200329/rts-1.0/include -I_quick/stage1/lib -optc-I_quick/stage1/lib -optP-include -optP_quick/stage1/libraries/transformers/build/autogen/cabal_macros.h -outputdir _quick/stage1/l
ibraries/transformers/build -Wnoncanonical-monad-instances -optc-Wno-error=inline -c libraries/transformers/Control/Monad/Trans/Class.hs -o _quick/stage1/libraries/transformers/build/Control/Monad/Trans/Class.o -O0 -H64m -XHaskell98 -ghcversion-file=E:/ghc_head/_quick/stage1/lib/gh
cversion.h -O -Wno-deprecated-flags -Wno-unused-matches -Wno-unused-imports -Wno-redundant-constraints -Wno-orphans
ghc.exe: panic! (the 'impossible' happened)
(GHC version 8.11.0.20200329:
lookupGlobal
Bad interface file: E:\ghc-8.10.1\lib\integer-gmp-1.0.3.0\GHC\Integer\Type.hi
mismatched interface file versions (wanted "811020200329", got "8101")
Call stack:
CallStack (from HasCallStack):
callStackDoc, called at compiler\utils\Outputable.hs:1228:37 in ghc:Outputable
pprPanic, called at compiler\\typecheck\\TcEnv.hs:132:32 in ghc:TcEnv
Please report this as a GHC bug: https://www.haskell.org/ghc/reportabug
Error when running Shake build system:
at action, called at src\Rules.hs:71:19 in main:Rules
at need, called at src\Rules.hs:93:5 in main:Rules
* Depends on: _quick/stage1/lib/package.conf.d/mtl-2.2.2.conf
at apply1, called at src\Development\Shake\Internal\Rules\Oracle.hs:159:32 in shake-0.18.3-341a3cb8c022506daf295603ac0d8fbd8cc93da9:Development.Shake.Internal.Rules.Oracle
* Depends on: OracleQ (ContextDataKey (Context {stage = Stage1, package = Package {pkgType = Library, pkgName = "mtl", pkgPath = "libraries/mtl"}, way = v}))
at need, called at src\Hadrian\Oracles\Cabal\Rules.hs:53:9 in main:Hadrian.Oracles.Cabal.Rules
* Depends on: _quick/stage1/libraries/mtl/setup-config
at need, called at src\Rules\Library.hs:151:18 in main:Rules.Library
* Depends on: _quick/stage1/libraries/transformers/build/HStransformers-0.5.6.2.o
at need, called at src\Rules\Library.hs:102:5 in main:Rules.Library
* Depends on: _quick/stage1/libraries/transformers/build/Control/Monad/Trans/Class.o
at &%>, called at src\Rules\Compile.hs:62:9 in main:Rules.Compile
* Depends on: _quick/stage1/libraries/transformers/build/Control/Monad/Trans/Class.o _quick/stage1/libraries/transformers/build/Control/Monad/Trans/Class.hi
* Raised the exception:
user error (Development.Shake.cmd, system command failed
Command line: _quick/stage0/bin/ghc.exe -Wall -hisuf hi -osuf o -hcsuf hc -static -hide-all-packages -no-user-package-db "-package-db _quick/stage1/lib/package.conf.d" "-this-unit-id transformers-0.5.6.2" "-package-id base-4.14.0.0" -i -i_quick/stage1/libraries/transformers/build -
i_quick/stage1/libraries/transformers/build/autogen -ilibraries/transformers/. -Iincludes -I_quick/stage1/lib -I_quick/stage1/libraries/transformers/build -IE:/ghc_head/_quick/stage1/lib/x86_64-windows-ghc-8.11.0.20200329/base-4.14.0.0/include -IE:/ghc_head/_quick/stage1/lib/x86_64
-windows-ghc-8.11.0.20200329/integer-gmp-1.0.2.0/include -IE:/ghc_head/_quick/stage1/lib/x86_64-windows-ghc-8.11.0.20200329/rts-1.0/include -I_quick/stage1/lib -optc-I_quick/stage1/lib -optP-include -optP_quick/stage1/libraries/transformers/build/autogen/cabal_macros.h -outputdir _
quick/stage1/libraries/transformers/build -Wnoncanonical-monad-instances -optc-Wno-error=inline -c libraries/transformers/Control/Monad/Trans/Class.hs -o _quick/stage1/libraries/transformers/build/Control/Monad/Trans/Class.o -O0 -H64m -XHaskell98 -ghcversion-file=E:/ghc_head/_quick
/stage1/lib/ghcversion.h -O -Wno-deprecated-flags -Wno-unused-matches -Wno-unused-imports -Wno-redundant-constraints -Wno-orphans
Exit code: 1
Stderr:
ghc.exe: panic! (the 'impossible' happened)
(GHC version 8.11.0.20200329:
lookupGlobal
Bad interface file: E:\ghc-8.10.1\lib\integer-gmp-1.0.3.0\GHC\Integer\Type.hi
mismatched interface file versions (wanted "811020200329", got "8101")
Call stack:
CallStack (from HasCallStack):
callStackDoc, called at compiler\utils\Outputable.hs:1228:37 in ghc:Outputable
pprPanic, called at compiler\\typecheck\\TcEnv.hs:132:32 in ghc:TcEnv
Please report this as a GHC bug: https://www.haskell.org/ghc/reportabug
)