[GHC] #10763: Failure to build GHC HEAD with 7.8 due to lint error

#10763: Failure to build GHC HEAD with 7.8 due to lint error
-------------------------------------+-------------------------------------
Reporter: nomeata | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.10.2
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: None/Unknown
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Revisions: |
-------------------------------------+-------------------------------------
I’m trying to build GHC HEAD, but it fails for me:
{{{
~/build/haskell/ghc $ make -j4
===--- building phase 0
make --no-print-directory -f ghc.mk phase=0 phase_0_builds
make[1]: Nothing to be done for 'phase_0_builds'.
===--- building phase 1
make --no-print-directory -f ghc.mk phase=1 phase_1_builds
HC [stage 0] compiler/stage1/build/Coercion.o
ghc: panic! (the 'impossible' happened)
(GHC version 7.8.4 for x86_64-unknown-linux):
Iface Lint failure
In interface for ghc-7.11:CoAxiom
Unfolding of ghc-7.11:CoAxiom.$fTypeableCoAxiom{v ryD}
<no location info>: Warning:
[in an imported unfolding]
Ill-kinded result
in type or kind ‘ghc-7.11:CoAxiom.BranchFlag{tc rgu}
-> ghc-prim:GHC.Prim.*{(w) tc 34d}’
type or kind ‘ghc-7.11:CoAxiom.BranchFlag{tc rgu}
-> ghc-prim:GHC.Prim.*{(w) tc 34d}’ kind: ghc-
prim:GHC.Prim.BOX{(w) tc 347}
<no location info>: Warning:
[in an imported unfolding]
Bad axiom application (check_ki2

#10763: Failure to build GHC HEAD with 7.8 due to lint error -------------------------------------+------------------------------------- Reporter: nomeata | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by nomeata): Removing `-dcore-lint` from `GhcStage1HcOpts` allows the build to continue. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10763#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10763: Failure to build GHC HEAD with 7.8 due to lint error -------------------------------------+------------------------------------- Reporter: nomeata | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by goldfire): Are you sure you have a clean build? And what are your build settings? There ''was'' a recent change to `CoAxiom`, but of course this shouldn't happen. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10763#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10763: Failure to build GHC HEAD with 7.8 due to lint error -------------------------------------+------------------------------------- Reporter: nomeata | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by nomeata): I did run `make distclean`, but did not yet try with a fresh checkout. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10763#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10763: Failure to build GHC HEAD with 7.8 due to lint error -------------------------------------+------------------------------------- Reporter: nomeata | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Resolution: wontfix | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by goldfire): * status: new => closed * resolution: => wontfix Comment: I can reproduce. This indeed appears to be a bug in 7.8.4. But I'm not motivated to really get to the bottom of it. I think the correct behavior is to turn off `-dcore-lint`. It does seem to me that the bug is in the process of reading an iface file and setting kinds appropriately... although such a bad bug should have been more prominent. In any case, I think the current codebase for GHC is fine, so I'm closing this as wontfix, given that it relates to a no-longer-supported version of GHC. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10763#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC