Weird "missing hi file" problem with a serializable Core patch
Cheng Shao
cheng.shao at tweag.io
Thu Sep 17 10:17:11 UTC 2020
Hi Ben,
The -ddump-if-trace output is attached here. The error is produced
when compiling GHC.Types in ghc-prim.
> Note that interface files are written after the Core pipeline is run.
Sorry for the confusion, I didn't mean the Core simplifier pipeline. I
mean the "Core -> Iface -> Core" roundtrip I tried to perform using
the output of CorePrep. By the time we do CorePrep, the hi files
should already have been written.
On Wed, Sep 16, 2020 at 11:48 PM Ben Gamari <ben at smart-cactus.org> wrote:
>
> Cheng Shao <cheng.shao at tweag.io> writes:
>
> > Hi all,
> >
> > Following a short chat in #ghc last week, I did a first attempt of
> > reusing existing Iface logic to implement serialization for
> > codegen-related Core. The implementation is included in the attached
> > patch (~100 loc). As a quick and dirty validation of whether it works,
> > I also modified the codegen pipeline logic to do a roundtrip: after
> > CorePrep, the Core bits are converted to Iface, then we immediately
> > convert it back and use it for later compiling.
> >
> > With the patch applied, stage-1 GHC would produce a "missing hi file"
> > error like:
> >
> > : Bad interface file: _build/stage1/libraries/ghc-prim/build/GHC/Types.hi
> > _build/stage1/libraries/ghc-prim/build/GHC/Types.hi:
> > openBinaryFile: does not exist (No such file or directory)
> >
> Hi Cheng,
>
> Which module is being compiled when this error is produced? Could you
> provide -ddump-if-trace output for the failing compilation?
>
> > The error surprises me, since by the time we perform the Core-to-Core
> > roundtrip, the .hi file should already have been written to disk. Is
> > there anything obviously wrong with the implementation? I'd appreciate
> > any pointers or further questions, thanks a lot!
> >
> Note that interface files are written after the Core pipeline is run.
>
> Cheers,
>
> - Ben
>
-------------- next part --------------
| Run Ghc CompileHs Stage1: libraries/ghc-prim/GHC/Types.hs => _build/stage1/libraries/ghc-prim/build/GHC/Types.o
FYI: cannot read old interface file:
_build/stage1/libraries/ghc-prim/build/GHC/Types.hi: openBinaryFile: does not exist (No such file or directory)
loadHiBootInterface GHC.Types
Reading [boot] interface for ghc-prim:GHC.Types;
reason: Need the hi-boot interface for GHC.Types to compare against the Real Thing
readIFace _build/stage1/libraries/ghc-prim/build/GHC/Types.hi-boot
Considering whether to load GHC.Prim
Reading interface for ghc-prim:GHC.Prim;
reason: GHC.Prim is directly imported
updating EPS
updating EPS
newGlobalBinder GHC.Types TyCon libraries/ghc-prim/GHC/Types.hs:(527,1)-(532,26)
TyCon
newGlobalBinder GHC.Types TyCon libraries/ghc-prim/GHC/Types.hs:(527,14)-(532,26)
TyCon
newGlobalBinder GHC.Types TypeLitSort libraries/ghc-prim/GHC/Types.hs:(523,1)-(524,29)
TypeLitSort
newGlobalBinder GHC.Types TypeLitSymbol libraries/ghc-prim/GHC/Types.hs:523:20-32
TypeLitSymbol
newGlobalBinder GHC.Types TypeLitNat libraries/ghc-prim/GHC/Types.hs:524:20-29
TypeLitNat
newGlobalBinder GHC.Types KindRep libraries/ghc-prim/GHC/Types.hs:(515,1)-(521,49)
KindRep
newGlobalBinder GHC.Types KindRepTyConApp libraries/ghc-prim/GHC/Types.hs:515:16-46
KindRepTyConApp
newGlobalBinder GHC.Types KindRepVar libraries/ghc-prim/GHC/Types.hs:516:16-35
KindRepVar
newGlobalBinder GHC.Types KindRepApp libraries/ghc-prim/GHC/Types.hs:517:16-41
KindRepApp
newGlobalBinder GHC.Types KindRepFun libraries/ghc-prim/GHC/Types.hs:518:16-41
KindRepFun
newGlobalBinder GHC.Types KindRepTYPE libraries/ghc-prim/GHC/Types.hs:519:16-38
KindRepTYPE
newGlobalBinder GHC.Types KindRepTypeLitS libraries/ghc-prim/GHC/Types.hs:520:16-48
KindRepTypeLitS
newGlobalBinder GHC.Types KindRepTypeLitD libraries/ghc-prim/GHC/Types.hs:521:16-49
KindRepTypeLitD
newGlobalBinder GHC.Types KindBndr libraries/ghc-prim/GHC/Types.hs:503:1-19
KindBndr
newGlobalBinder GHC.Types TrName libraries/ghc-prim/GHC/Types.hs:(498,1)-(500,18)
TrName
newGlobalBinder GHC.Types TrNameS libraries/ghc-prim/GHC/Types.hs:499:5-17
TrNameS
newGlobalBinder GHC.Types TrNameD libraries/ghc-prim/GHC/Types.hs:500:5-18
TrNameD
newGlobalBinder GHC.Types Module libraries/ghc-prim/GHC/Types.hs:(494,1)-(496,22)
Module
newGlobalBinder GHC.Types Module libraries/ghc-prim/GHC/Types.hs:(494,15)-(496,22)
Module
newGlobalBinder GHC.Types Void# libraries/ghc-prim/GHC/Types.hs:467:1-18
Void#
newGlobalBinder GHC.Types VecElem libraries/ghc-prim/GHC/Types.hs:(454,1)-(463,28)
VecElem
newGlobalBinder GHC.Types Int8ElemRep libraries/ghc-prim/GHC/Types.hs:454:16-26
Int8ElemRep
newGlobalBinder GHC.Types Int16ElemRep libraries/ghc-prim/GHC/Types.hs:455:16-27
Int16ElemRep
newGlobalBinder GHC.Types Int32ElemRep libraries/ghc-prim/GHC/Types.hs:456:16-27
Int32ElemRep
newGlobalBinder GHC.Types Int64ElemRep libraries/ghc-prim/GHC/Types.hs:457:16-27
Int64ElemRep
newGlobalBinder GHC.Types Word8ElemRep libraries/ghc-prim/GHC/Types.hs:458:16-27
Word8ElemRep
newGlobalBinder GHC.Types Word16ElemRep libraries/ghc-prim/GHC/Types.hs:459:16-28
Word16ElemRep
newGlobalBinder GHC.Types Word32ElemRep libraries/ghc-prim/GHC/Types.hs:460:16-28
Word32ElemRep
newGlobalBinder GHC.Types Word64ElemRep libraries/ghc-prim/GHC/Types.hs:461:16-28
Word64ElemRep
newGlobalBinder GHC.Types FloatElemRep libraries/ghc-prim/GHC/Types.hs:462:16-27
FloatElemRep
newGlobalBinder GHC.Types DoubleElemRep libraries/ghc-prim/GHC/Types.hs:463:16-28
DoubleElemRep
newGlobalBinder GHC.Types VecCount libraries/ghc-prim/GHC/Types.hs:(445,1)-(450,21)
VecCount
newGlobalBinder GHC.Types Vec2 libraries/ghc-prim/GHC/Types.hs:445:17-20
Vec2
newGlobalBinder GHC.Types Vec4 libraries/ghc-prim/GHC/Types.hs:446:17-20
Vec4
newGlobalBinder GHC.Types Vec8 libraries/ghc-prim/GHC/Types.hs:447:17-20
Vec8
newGlobalBinder GHC.Types Vec16 libraries/ghc-prim/GHC/Types.hs:448:17-21
Vec16
newGlobalBinder GHC.Types Vec32 libraries/ghc-prim/GHC/Types.hs:449:17-21
Vec32
newGlobalBinder GHC.Types Vec64 libraries/ghc-prim/GHC/Types.hs:450:17-21
Vec64
newGlobalBinder GHC.Types RuntimeRep libraries/ghc-prim/GHC/Types.hs:(421,1)-(438,27)
RuntimeRep
newGlobalBinder GHC.Types VecRep libraries/ghc-prim/GHC/Types.hs:421:19-41
VecRep
newGlobalBinder GHC.Types TupleRep libraries/ghc-prim/GHC/Types.hs:422:19-39
TupleRep
newGlobalBinder GHC.Types SumRep libraries/ghc-prim/GHC/Types.hs:423:19-37
SumRep
newGlobalBinder GHC.Types LiftedRep libraries/ghc-prim/GHC/Types.hs:424:19-27
LiftedRep
newGlobalBinder GHC.Types UnliftedRep libraries/ghc-prim/GHC/Types.hs:425:19-29
UnliftedRep
newGlobalBinder GHC.Types IntRep libraries/ghc-prim/GHC/Types.hs:426:19-24
IntRep
newGlobalBinder GHC.Types Int8Rep libraries/ghc-prim/GHC/Types.hs:427:19-25
Int8Rep
newGlobalBinder GHC.Types Int16Rep libraries/ghc-prim/GHC/Types.hs:428:19-26
Int16Rep
newGlobalBinder GHC.Types Int32Rep libraries/ghc-prim/GHC/Types.hs:429:19-26
Int32Rep
newGlobalBinder GHC.Types Int64Rep libraries/ghc-prim/GHC/Types.hs:430:19-26
Int64Rep
newGlobalBinder GHC.Types WordRep libraries/ghc-prim/GHC/Types.hs:431:19-25
WordRep
newGlobalBinder GHC.Types Word8Rep libraries/ghc-prim/GHC/Types.hs:432:19-26
Word8Rep
newGlobalBinder GHC.Types Word16Rep libraries/ghc-prim/GHC/Types.hs:433:19-27
Word16Rep
newGlobalBinder GHC.Types Word32Rep libraries/ghc-prim/GHC/Types.hs:434:19-27
Word32Rep
newGlobalBinder GHC.Types Word64Rep libraries/ghc-prim/GHC/Types.hs:435:19-27
Word64Rep
newGlobalBinder GHC.Types AddrRep libraries/ghc-prim/GHC/Types.hs:436:19-25
AddrRep
newGlobalBinder GHC.Types FloatRep libraries/ghc-prim/GHC/Types.hs:437:19-26
FloatRep
newGlobalBinder GHC.Types DoubleRep libraries/ghc-prim/GHC/Types.hs:438:19-27
DoubleRep
newGlobalBinder GHC.Types SPEC libraries/ghc-prim/GHC/Types.hs:400:1-24
SPEC
newGlobalBinder GHC.Types SPEC libraries/ghc-prim/GHC/Types.hs:400:13-16
SPEC
newGlobalBinder GHC.Types SPEC2 libraries/ghc-prim/GHC/Types.hs:400:20-24
SPEC2
newGlobalBinder GHC.Types Bool libraries/ghc-prim/GHC/Types.hs:324:1-47
Bool
newGlobalBinder GHC.Types False libraries/ghc-prim/GHC/Types.hs:324:36-40
False
newGlobalBinder GHC.Types True libraries/ghc-prim/GHC/Types.hs:324:44-47
True
newGlobalBinder GHC.Types Coercible libraries/ghc-prim/GHC/Types.hs:315:1-33
Coercible
newGlobalBinder GHC.Types ~~ libraries/ghc-prim/GHC/Types.hs:259:1-12
~~
newGlobalBinder GHC.Types IO libraries/ghc-prim/GHC/Types.hs:224:1-65
IO
newGlobalBinder GHC.Types IO libraries/ghc-prim/GHC/Types.hs:224:16-65
IO
newGlobalBinder GHC.Types Double libraries/ghc-prim/GHC/Types.hs:201:1-49
Double
newGlobalBinder GHC.Types D# libraries/ghc-prim/GHC/Types.hs:201:40-49
D#
newGlobalBinder GHC.Types Float libraries/ghc-prim/GHC/Types.hs:196:1-46
Float
newGlobalBinder GHC.Types F# libraries/ghc-prim/GHC/Types.hs:196:38-46
F#
newGlobalBinder GHC.Types Word libraries/ghc-prim/GHC/Types.hs:191:1-43
Word
newGlobalBinder GHC.Types W# libraries/ghc-prim/GHC/Types.hs:191:36-43
W#
newGlobalBinder GHC.Types Int libraries/ghc-prim/GHC/Types.hs:188:1-40
Int
newGlobalBinder GHC.Types I# libraries/ghc-prim/GHC/Types.hs:188:34-40
I#
newGlobalBinder GHC.Types Char libraries/ghc-prim/GHC/Types.hs:183:1-43
Char
newGlobalBinder GHC.Types C# libraries/ghc-prim/GHC/Types.hs:183:36-43
C#
newGlobalBinder GHC.Types Ordering libraries/ghc-prim/GHC/Types.hs:162:1-28
Ordering
newGlobalBinder GHC.Types LT libraries/ghc-prim/GHC/Types.hs:162:17-18
LT
newGlobalBinder GHC.Types EQ libraries/ghc-prim/GHC/Types.hs:162:22-23
EQ
newGlobalBinder GHC.Types GT libraries/ghc-prim/GHC/Types.hs:162:27-28
GT
newGlobalBinder GHC.Types Any libraries/ghc-prim/GHC/Types.hs:123:1-20
Any
newGlobalBinder GHC.Types Symbol libraries/ghc-prim/GHC/Types.hs:110:1-11
Symbol
newGlobalBinder GHC.Types Nat libraries/ghc-prim/GHC/Types.hs:106:1-8
Nat
newGlobalBinder GHC.Types MultMul libraries/ghc-prim/GHC/Types.hs:93:1-75
MultMul
newGlobalBinder GHC.Types Multiplicity libraries/ghc-prim/GHC/Types.hs:91:1-30
Multiplicity
newGlobalBinder GHC.Types Many libraries/ghc-prim/GHC/Types.hs:91:21-24
Many
newGlobalBinder GHC.Types One libraries/ghc-prim/GHC/Types.hs:91:28-30
One
newGlobalBinder GHC.Types Type libraries/ghc-prim/GHC/Types.hs:89:1-27
Type
newGlobalBinder GHC.Types Constraint libraries/ghc-prim/GHC/Types.hs:86:1-15
Constraint
newGlobalBinder GHC.Types isTrue# libraries/ghc-prim/GHC/Types.hs:330:1-7
isTrue#
Considering whether to load GHC.Prim {- SYSTEM -}
Considering whether to load GHC.Prim {- SYSTEM -}
Considering whether to load GHC.Prim {- SYSTEM -}
Considering whether to load GHC.Prim {- SYSTEM -}
Considering whether to load GHC.Prim {- SYSTEM -}
Considering whether to load GHC.Prim {- SYSTEM -}
Considering whether to load GHC.Prim {- SYSTEM -}
Considering whether to load GHC.Prim {- SYSTEM -}
Considering whether to load GHC.Prim {- SYSTEM -}
Considering whether to load GHC.Prim {- SYSTEM -}
Considering whether to load GHC.Prim {- SYSTEM -}
Considering whether to load GHC.Prim {- SYSTEM -}
Considering whether to load GHC.Prim {- SYSTEM -}
Considering whether to load GHC.Prim {- SYSTEM -}
Considering whether to load GHC.Prim {- SYSTEM -}
Considering whether to load GHC.Prim {- SYSTEM -}
Considering whether to load GHC.Prim {- SYSTEM -}
Considering whether to load GHC.Prim {- SYSTEM -}
Considering whether to load GHC.Prim {- SYSTEM -}
newGlobalBinder GHC.Types D:R:MultMul libraries/ghc-prim/GHC/Types.hs:93:13-19
D:R:MultMul
checkWiredInTyCon []
GHC.Types
newGlobalBinder GHC.Types $tc'LT <no location info>
$tc'LT
newGlobalBinder GHC.Types $WLT libraries/ghc-prim/GHC/Types.hs:162:17-18
$WLT
newGlobalBinder GHC.Types LT libraries/ghc-prim/GHC/Types.hs:162:17-18
LT
buildDataCon 1 LT
buildDataCon 2 LT
newGlobalBinder GHC.Types $tc'EQ <no location info>
$tc'EQ
newGlobalBinder GHC.Types $WEQ libraries/ghc-prim/GHC/Types.hs:162:22-23
$WEQ
newGlobalBinder GHC.Types EQ libraries/ghc-prim/GHC/Types.hs:162:22-23
EQ
buildDataCon 1 EQ
buildDataCon 2 EQ
newGlobalBinder GHC.Types $tc'GT <no location info>
$tc'GT
newGlobalBinder GHC.Types $WGT libraries/ghc-prim/GHC/Types.hs:162:27-28
$WGT
newGlobalBinder GHC.Types GT libraries/ghc-prim/GHC/Types.hs:162:27-28
GT
buildDataCon 1 GT
buildDataCon 2 GT
newGlobalBinder GHC.Types $tcOrdering <no location info>
$tcOrdering
Considering whether to load GHC.Prim {- SYSTEM -}
Considering whether to load GHC.Prim {- SYSTEM -}
Considering whether to load GHC.Prim {- SYSTEM -}
Considering whether to load GHC.Prim {- SYSTEM -}
Considering whether to load GHC.Prim {- SYSTEM -}
Considering whether to load GHC.Prim {- SYSTEM -}
Considering whether to load GHC.Prim {- SYSTEM -}
Considering whether to load GHC.Prim {- SYSTEM -}
newGlobalBinder GHC.Types $tc'IO <no location info>
$tc'IO
newGlobalBinder GHC.Types $WIO libraries/ghc-prim/GHC/Types.hs:224:16-65
$WIO
newGlobalBinder GHC.Types IO libraries/ghc-prim/GHC/Types.hs:224:16-65
IO
buildDataCon 1 IO
buildDataCon 2 IO
newGlobalBinder GHC.Types N:IO libraries/ghc-prim/GHC/Types.hs:224:1-65
N:IO
mkNewTyConRhs N:IO
newGlobalBinder GHC.Types $tcIO <no location info>
$tcIO
newGlobalBinder GHC.Types $tc'SPEC <no location info>
$tc'SPEC
newGlobalBinder GHC.Types $WSPEC libraries/ghc-prim/GHC/Types.hs:400:13-16
$WSPEC
newGlobalBinder GHC.Types SPEC libraries/ghc-prim/GHC/Types.hs:400:13-16
SPEC
buildDataCon 1 SPEC
buildDataCon 2 SPEC
newGlobalBinder GHC.Types $tc'SPEC2 <no location info>
$tc'SPEC2
newGlobalBinder GHC.Types $WSPEC2 libraries/ghc-prim/GHC/Types.hs:400:20-24
$WSPEC2
newGlobalBinder GHC.Types SPEC2 libraries/ghc-prim/GHC/Types.hs:400:20-24
SPEC2
buildDataCon 1 SPEC2
buildDataCon 2 SPEC2
newGlobalBinder GHC.Types $tcSPEC <no location info>
$tcSPEC
Considering whether to load GHC.Prim {- SYSTEM -}
Considering whether to load GHC.Prim {- SYSTEM -}
newGlobalBinder GHC.Types $tc'TrNameS <no location info>
$tc'TrNameS
newGlobalBinder GHC.Types $WTrNameS libraries/ghc-prim/GHC/Types.hs:499:5-17
$WTrNameS
newGlobalBinder GHC.Types TrNameS libraries/ghc-prim/GHC/Types.hs:499:5-17
TrNameS
buildDataCon 1 TrNameS
buildDataCon 2 TrNameS
checkWiredInTyCon []
GHC.Types
newGlobalBinder GHC.Types $tc'TrNameD <no location info>
$tc'TrNameD
newGlobalBinder GHC.Types $WTrNameD libraries/ghc-prim/GHC/Types.hs:500:5-18
$WTrNameD
newGlobalBinder GHC.Types TrNameD libraries/ghc-prim/GHC/Types.hs:500:5-18
TrNameD
buildDataCon 1 TrNameD
buildDataCon 2 TrNameD
newGlobalBinder GHC.Types $tcTrName <no location info>
$tcTrName
newGlobalBinder GHC.Types $tc'Module <no location info>
$tc'Module
newGlobalBinder GHC.Types $WModule libraries/ghc-prim/GHC/Types.hs:(494,15)-(496,22)
$WModule
newGlobalBinder GHC.Types Module libraries/ghc-prim/GHC/Types.hs:(494,15)-(496,22)
Module
buildDataCon 1 Module
buildDataCon 2 Module
newGlobalBinder GHC.Types $tcModule <no location info>
$tcModule
newGlobalBinder GHC.Types $tc'TypeLitSymbol <no location info>
$tc'TypeLitSymbol
newGlobalBinder GHC.Types $WTypeLitSymbol libraries/ghc-prim/GHC/Types.hs:523:20-32
$WTypeLitSymbol
newGlobalBinder GHC.Types TypeLitSymbol libraries/ghc-prim/GHC/Types.hs:523:20-32
TypeLitSymbol
buildDataCon 1 TypeLitSymbol
buildDataCon 2 TypeLitSymbol
newGlobalBinder GHC.Types $tc'TypeLitNat <no location info>
$tc'TypeLitNat
newGlobalBinder GHC.Types $WTypeLitNat libraries/ghc-prim/GHC/Types.hs:524:20-29
$WTypeLitNat
newGlobalBinder GHC.Types TypeLitNat libraries/ghc-prim/GHC/Types.hs:524:20-29
TypeLitNat
buildDataCon 1 TypeLitNat
buildDataCon 2 TypeLitNat
newGlobalBinder GHC.Types $tcTypeLitSort <no location info>
$tcTypeLitSort
Considering whether to load GHC.Prim {- SYSTEM -}
Considering whether to load GHC.Prim {- SYSTEM -}
Considering whether to load GHC.Prim {- SYSTEM -}
newGlobalBinder GHC.Types $tc'TyCon <no location info>
$tc'TyCon
newGlobalBinder GHC.Types $WTyCon libraries/ghc-prim/GHC/Types.hs:(527,14)-(532,26)
$WTyCon
newGlobalBinder GHC.Types TyCon libraries/ghc-prim/GHC/Types.hs:(527,14)-(532,26)
TyCon
buildDataCon 1 TyCon
buildDataCon 2 TyCon
newGlobalBinder GHC.Types $tcTyCon <no location info>
$tcTyCon
checkWiredInTyCon []
GHC.Types
newGlobalBinder GHC.Types $tc'KindRepTyConApp <no location info>
$tc'KindRepTyConApp
newGlobalBinder GHC.Types $WKindRepTyConApp libraries/ghc-prim/GHC/Types.hs:515:16-46
$WKindRepTyConApp
newGlobalBinder GHC.Types KindRepTyConApp libraries/ghc-prim/GHC/Types.hs:515:16-46
KindRepTyConApp
buildDataCon 1 KindRepTyConApp
buildDataCon 2 KindRepTyConApp
newGlobalBinder GHC.Types $tc'KindRepVar <no location info>
$tc'KindRepVar
newGlobalBinder GHC.Types $WKindRepVar libraries/ghc-prim/GHC/Types.hs:516:16-35
$WKindRepVar
newGlobalBinder GHC.Types KindRepVar libraries/ghc-prim/GHC/Types.hs:516:16-35
KindRepVar
buildDataCon 1 KindRepVar
buildDataCon 2 KindRepVar
newGlobalBinder GHC.Types $tc'KindRepApp <no location info>
$tc'KindRepApp
newGlobalBinder GHC.Types $WKindRepApp libraries/ghc-prim/GHC/Types.hs:517:16-41
$WKindRepApp
newGlobalBinder GHC.Types KindRepApp libraries/ghc-prim/GHC/Types.hs:517:16-41
KindRepApp
buildDataCon 1 KindRepApp
buildDataCon 2 KindRepApp
newGlobalBinder GHC.Types $tc'KindRepFun <no location info>
$tc'KindRepFun
newGlobalBinder GHC.Types $WKindRepFun libraries/ghc-prim/GHC/Types.hs:518:16-41
$WKindRepFun
newGlobalBinder GHC.Types KindRepFun libraries/ghc-prim/GHC/Types.hs:518:16-41
KindRepFun
buildDataCon 1 KindRepFun
buildDataCon 2 KindRepFun
newGlobalBinder GHC.Types $tc'KindRepTYPE <no location info>
$tc'KindRepTYPE
newGlobalBinder GHC.Types $WKindRepTYPE libraries/ghc-prim/GHC/Types.hs:519:16-38
$WKindRepTYPE
newGlobalBinder GHC.Types KindRepTYPE libraries/ghc-prim/GHC/Types.hs:519:16-38
KindRepTYPE
buildDataCon 1 KindRepTYPE
buildDataCon 2 KindRepTYPE
Considering whether to load GHC.Prim {- SYSTEM -}
newGlobalBinder GHC.Types $tc'KindRepTypeLitS <no location info>
$tc'KindRepTypeLitS
newGlobalBinder GHC.Types $WKindRepTypeLitS libraries/ghc-prim/GHC/Types.hs:520:16-48
$WKindRepTypeLitS
newGlobalBinder GHC.Types KindRepTypeLitS libraries/ghc-prim/GHC/Types.hs:520:16-48
KindRepTypeLitS
buildDataCon 1 KindRepTypeLitS
buildDataCon 2 KindRepTypeLitS
checkWiredInTyCon []
GHC.Types
newGlobalBinder GHC.Types $tc'KindRepTypeLitD <no location info>
$tc'KindRepTypeLitD
newGlobalBinder GHC.Types $WKindRepTypeLitD libraries/ghc-prim/GHC/Types.hs:521:16-49
$WKindRepTypeLitD
newGlobalBinder GHC.Types KindRepTypeLitD libraries/ghc-prim/GHC/Types.hs:521:16-49
KindRepTypeLitD
buildDataCon 1 KindRepTypeLitD
buildDataCon 2 KindRepTypeLitD
newGlobalBinder GHC.Types $tcKindRep <no location info>
$tcKindRep
Considering whether to load GHC.Prim {- SYSTEM -}
newGlobalBinder GHC.Types $trModule libraries/ghc-prim/GHC/Types.hs:1:1
$trModule
Need decl for $WKindRepVar
Considering whether to load GHC.Types {- SYSTEM -}
Reading interface for ghc-prim:GHC.Types;
reason: Need decl for $WKindRepVar
readIFace _build/stage1/libraries/ghc-prim/build/GHC/Types.hi
updating EPS
: Bad interface file: _build/stage1/libraries/ghc-prim/build/GHC/Types.hi
_build/stage1/libraries/ghc-prim/build/GHC/Types.hi: openBinaryFile: does not exist (No such file or directory)
user error (tcExtCoreBindsDriver)
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/package.conf.d/ghc-bignum-1.0.conf
at apply1, called at src/Development/Shake/Internal/Rules/Oracle.hs:159:32 in shake-0.18.5-dcf2fec5384b4e9a9a7a7726785dce850f9063d30a2e432cf73d0a0cf0079f32:Development.Shake.Internal.Rules.Oracle
* Depends on: OracleQ (ContextDataKey (Context {stage = Stage1, package = Package {pkgType = Library, pkgName = "ghc-bignum", pkgPath = "libraries/ghc-bignum"}, way = v}))
at need, called at src/Hadrian/Oracles/Cabal/Rules.hs:54:9 in main:Hadrian.Oracles.Cabal.Rules
* Depends on: _build/stage1/libraries/ghc-bignum/setup-config
at need, called at src/Rules/Library.hs:157:18 in main:Rules.Library
* Depends on: _build/stage1/libraries/ghc-prim/build/HSghc-prim-0.7.0.o
at need, called at src/Rules/Library.hs:104:5 in main:Rules.Library
* Depends on: _build/stage1/libraries/ghc-prim/build/GHC/Types.o
at &%>, called at src/Rules/Compile.hs:77:9 in main:Rules.Compile
* Depends on: _build/stage1/libraries/ghc-prim/build/GHC/Types.o _build/stage1/libraries/ghc-prim/build/GHC/Types.hi
at cmd', called at src/Builder.hs:293:23 in main:Builder
at cmd, called at src/Builder.hs:380:8 in main:Builder
* Raised the exception:
Development.Shake.cmd, system command failed
Command line: _build/stage0/bin/ghc -Wall -hisuf hi -osuf o -hcsuf hc -static -hide-all-packages -no-user-package-db '-package-db _build/stage1/lib/package.conf.d' '-this-unit-id ghc-prim-0.7.0' '-package-id rts-1.0' -i -i/home/terrorjack/ghc/_build/stage1/libraries/ghc-prim/build -i/home/terrorjack/ghc/_build/stage1/libraries/ghc-prim/build/autogen -i/home/terrorjack/ghc/libraries/ghc-prim -Iincludes -I_build/stage1/lib -I_build/stage1/libraries/ghc-prim/build -I/nix/store/sznfxigwvrvn6ar3nz3f0652zsld9xqj-gmp-6.2.0-dev/include -I/nix/store/sv6f05ngaarba50ybr6fdfc7cciv6nbv-elfutils-0.176/include -I/nix/store/bfrcskjspk9a179xqqf1q9xqafq5s8d2-numactl-2.0.13/include -I/home/terrorjack/ghc/_build/stage1/lib/x86_64-linux-ghc-8.11.0.20200917/rts-1.0/include -I_build/stage1/lib -optc-I_build/stage1/lib -optP-include -optP_build/stage1/libraries/ghc-prim/build/autogen/cabal_macros.h -outputdir _build/stage1/libraries/ghc-prim/build -Wnoncanonical-monad-instances -optc-Wno-error=inline -optP-Wno-nonportable-include-path -c libraries/ghc-prim/GHC/Types.hs -o _build/stage1/libraries/ghc-prim/build/GHC/Types.o -O0 -H64m -this-unit-id ghc-prim -XHaskell2010 -no-global-package-db -package-db=/home/terrorjack/ghc/_build/stage1/lib/package.conf.d -ghcversion-file=/home/terrorjack/ghc/_build/stage1/lib/ghcversion.h -Wno-deprecated-flags -Wno-trustworthy-safe -ddump-to-file -ddump-if-trace
Exit code: 1
More information about the ghc-devs
mailing list