[GHC] #15900: Can't boot with GHC 8.6.2

#15900: Can't boot with GHC 8.6.2 -------------------------------------+------------------------------------- Reporter: osa1 | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.3 Component: Compiler | Version: 8.6.2 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- I just installed GHC 8.6.2 on a fresh Ubuntu 18.04 and cloned the repo. This is what I get when I do `make` without a `build.mk`: {{{ "inplace/bin/ghc-stage2" -hisuf dyn_hi -osuf dyn_o -hcsuf dyn_hc -fPIC -dynamic -H32m -O -Wall -hide-all-packages -i -iutils/haddock/driver -iutils/haddock/haddock-api/src -iutils/haddock/haddock-library/src -iutils/haddock/dist/build -Iutils/haddock/dist/build -iutils/haddock/dist/build/haddock/autogen -Iutils/haddock/dist/build/haddock/autogen -optP-DIN_GHC_TREE -optP- include -optPutils/haddock/dist/build/haddock/autogen/cabal_macros.h -package-id Cabal-2.4.0.1 -package-id array-0.5.2.0 -package-id base-4.12.0.0 -package-id bytestring-0.10.8.2 -package-id containers-0.6.0.1 -package-id deepseq-1.4.4.0 -package-id directory-1.3.3.1 -package-id filepath-1.4.2.1 -package-id ghc-8.7 -package-id ghc-boot-8.7 -package-id parsec-3.1.13.0 -package-id text-1.2.3.1 -package-id transformers-0.5.5.0 -package-id xhtml-3000.2.2.1 -funbox-strict-fields -Wall -fwarn-tabs -O2 -threaded -XHaskell2010 -no- user-package-db -rtsopts -Wno-unused-imports -Wno-deprecations -Wnoncanonical-monad-instances -odir utils/haddock/dist/build -hidir utils/haddock/dist/build -stubdir utils/haddock/dist/build -c utils/haddock/haddock-api/src/Haddock/Types.hs -o utils/haddock/dist/build/Haddock/Types.dyn_o utils/haddock/haddock-api/src/Haddock/Types.hs:385:37: error: • Data constructor not in scope: NotPromoted :: BasicTypes.PromotionFlag • Perhaps you want to add ‘NotPromoted’ to the import list in the import of ‘BasicTypes’ (utils/haddock/haddock-api/src/Haddock/Types.hs:37:1-30). | 385 | tvar = L loc (HsTyVar NoExt NotPromoted (L loc name)) | ^^^^^^^^^^^ utils/haddock/haddock-api/src/Haddock/Types.hs:386:47: error: • Data constructor not in scope: NotPromoted :: BasicTypes.PromotionFlag • Perhaps you want to add ‘NotPromoted’ to the import list in the import of ‘BasicTypes’ (utils/haddock/haddock-api/src/Haddock/Types.hs:37:1-30). | 386 | mkType (UserTyVar _ name) = HsTyVar NoExt NotPromoted name | ^^^^^^^^^^^ utils/haddock/ghc.mk:20: recipe for target 'utils/haddock/dist/build/Haddock/Types.dyn_o' failed make[1]: *** [utils/haddock/dist/build/Haddock/Types.dyn_o] Error 1 Makefile:123: recipe for target 'all' failed make: *** [all] Error 2 }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15900 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15900: Can't boot with GHC 8.6.2 -------------------------------------+------------------------------------- Reporter: osa1 | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.3 Component: Compiler | Version: 8.6.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by osa1): I just tried on another computer with GHC 8.4 and got the same error. It seems like GHC can't be built now. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15900#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15900: Can't boot with GHC 8.6.2 -------------------------------------+------------------------------------- Reporter: osa1 | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.3 Component: Compiler | Version: 8.6.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by osa1): * cc: simonpj (added) Comment: ae2c9b40f5 seems to be the commit that broke haddock. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15900#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15900: Can't boot with GHC 8.6.2 -------------------------------------+------------------------------------- Reporter: osa1 | Owner: (none) Type: bug | Status: patch Priority: normal | Milestone: 8.6.3 Component: Compiler | Version: 8.6.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D5341 Wiki Page: | -------------------------------------+------------------------------------- Changes (by RyanGlScott): * status: new => patch * differential: => Phab:D5341 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15900#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15900: Can't boot with GHC 8.6.2
-------------------------------------+-------------------------------------
Reporter: osa1 | Owner: (none)
Type: bug | Status: patch
Priority: normal | Milestone: 8.6.3
Component: Compiler | Version: 8.6.2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D5341
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Andreas Klebinger

#15900: Can't boot with GHC 8.6.2 -------------------------------------+------------------------------------- Reporter: osa1 | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.8.1 Component: Compiler | Version: 8.7 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D5341 Wiki Page: | -------------------------------------+------------------------------------- Changes (by RyanGlScott): * status: patch => closed * version: 8.6.2 => 8.7 * resolution: => fixed * milestone: 8.6.3 => 8.8.1 Comment: I believe this should be fixed now. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15900#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC