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

#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 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: -------------------------------------+------------------------------------- If you git clone HEAD and run ./validate the system should build without further ado. It doesn't. The make all fails, complaining about an absence of sphinx-build. Using the mk .sample files doesn't help. Installing sphinx-bulid resolves the issue. So the documentation here and/or the default build are out of sync with each other. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15218 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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 bgamari): I'm not sure I agree that `validate` should pass if sphinx-build is missing. `Validate` is intended to serve as a comprehensive check of the tree; this includes checking that the documentation is buildable. If you want to build without documentation, I would suggest not using `validate` and configure `mk/build.mk` appropriately: {{{ BUILD_SPHINX_HTML = NO BUILD_SPHINX_PDF = NO }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15218#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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

#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 bgamari): Is it possible that you pulled without running `git submodule update`? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15218#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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): Thanks. Yes. That was it. I don't think that that was mentioned in the build instructions. Now I just get: {{{ Unexpected failures: /tmp/ghctest-0sj8fd43/test spaces/./dependent/should_compile/dynamic- paper.run dynamic-paper [stderr mismatch] (normal) }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15218#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15218: HEAD doesn't build without sphinx-build -------------------------------------+------------------------------------- Reporter: jrp | Owner: (none) Type: bug | Status: closed Priority: low | Milestone: 8.6.1 Component: Build System | Version: 8.4.3 Resolution: fixed | 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: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: new => closed * resolution: => fixed Comment: Indeed that testsuite failure should now be resolved as well. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15218#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC