[GHC] #15218: HEAD doesn't build without sphinx-build

GHC ghc-devs at haskell.org
Wed Jun 6 20:14:46 UTC 2018


#15218: HEAD doesn't build without sphinx-build
-------------------------------------+-------------------------------------
        Reporter:  jrp               |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  low               |            Milestone:  8.6.1
       Component:  Build System      |              Version:  8.4.3
      Resolution:                    |             Keywords:
Operating System:  Linux             |         Architecture:  x86_64
 Type of failure:  Building GHC      |  (amd64)
  failed                             |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by jrp):

 Well, I'm not sure what I did, but it used to validate without sphinx-
 build.  Now even with sphinx-build, I get

 {{{
 "inplace/bin/ghc-stage2" -hisuf dyn_hi -osuf  dyn_o -hcsuf dyn_hc -fPIC
 -dynamic  -O0 -H64m -Wall  -Werror    -hide-all-packages -i
 -iutils/haddock/driver -iutils/haddock/haddock-api/src -iutils/haddock
 /haddock-library/vendor/attoparsec-0.13.1.0 -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.3.0.0 -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.5.11.0 -package-id deepseq-1.4.4.0 -package-id
 directory-1.3.2.3 -package-id filepath-1.4.2 -package-id ghc-8.5 -package-
 id ghc-boot-8.5 -package-id transformers-0.5.5.0 -package-id
 xhtml-3000.2.2 -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-
 library/vendor/attoparsec-0.13.1.0/Data/Attoparsec/ByteString/Char8.hs -o
 utils/haddock/dist/build/Data/Attoparsec/ByteString/Char8.dyn_o
 "inplace/bin/ghc-stage2" -hisuf dyn_hi -osuf  dyn_o -hcsuf dyn_hc -fPIC
 -dynamic  -O0 -H64m -Wall  -Werror    -hide-all-packages -i
 -iutils/haddock/driver -iutils/haddock/haddock-api/src -iutils/haddock
 /haddock-library/vendor/attoparsec-0.13.1.0 -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.3.0.0 -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.5.11.0 -package-id deepseq-1.4.4.0 -package-id
 directory-1.3.2.3 -package-id filepath-1.4.2 -package-id ghc-8.5 -package-
 id ghc-boot-8.5 -package-id transformers-0.5.5.0 -package-id
 xhtml-3000.2.2 -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-
 library/vendor/attoparsec-0.13.1.0/Data/Attoparsec.hs -o
 utils/haddock/dist/build/Data/Attoparsec.dyn_o
 Warning: -rtsopts and -with-rtsopts have no effect with -shared.
     Call hs_init_ghc() from your main() function to set these options.

 utils/haddock/haddock-api/src/Haddock/Interface/Rename.hs:546:40: error:
     • Couldn't match type ‘GhcPass 'Renamed’ with ‘DocNameI’
       Expected type: Maybe (LDerivStrategy DocNameI)
         Actual type: Maybe (LDerivStrategy GhcRn)
     • In the ‘deriv_strategy’ field of a record
       In the first argument of ‘return’, namely
         ‘(DerivDecl
             {deriv_ext = noExt, deriv_type = ty', deriv_strategy = strat,
              deriv_overlap_mode = omode})’
       In a stmt of a 'do' block:
         return
           (DerivDecl
              {deriv_ext = noExt, deriv_type = ty', deriv_strategy = strat,
               deriv_overlap_mode = omode})
     |
 546 |                     , deriv_strategy = strat
     |                                        ^^^^^
 utils/haddock/ghc.mk:20: recipe for target
 'utils/haddock/dist/build/Haddock/Interface/Rename.dyn_o' failed
 make[1]: *** [utils/haddock/dist/build/Haddock/Interface/Rename.dyn_o]
 Error 1
 make[1]: *** Waiting for unfinished jobs....
 Makefile:122: recipe for target 'all' failed
 }}}

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15218#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list