[GHC] #12058: Documentation will not build on platforms where GNU make is not called make

#12058: Documentation will not build on platforms where GNU make is not called make -------------------------------------+------------------------------------- Reporter: pgj | Owner: Type: bug | Status: new Priority: highest | Milestone: 8.0.1 Component: Build System | Version: 8.0.1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: Building GHC Unknown/Multiple | failed Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- I have tried to build the source tarball on FreeBSD, but it always stops somewhere around the documentation bits with the following error message: {{{ [..] make -C utils/haddock/doc html SPHINX_BUILD=/usr/local/bin/sphinx-build make: illegal option -- - usage: make [-BPSXeiknpqrstv] [-C directory] [-D variable] [-d flags] [-E variable] [-f makefile] [-I directory] [-j max_jobs] [-m directory] [-V variable] [variable=value] [target ...] utils/haddock/doc/ghc.mk:22: recipe for target 'html_utils/haddock/doc' failed gmake[1]: *** [html_utils/haddock/doc] Error 2 Makefile:129: recipe for target 'all' failed gmake: *** [all] Error 2 }}} That is probably because FreeBSD has GNU make(1) as {{{gmake}}}, it should be invoked with that name, that is, the value of the {{{$(MAKE)}}} variable is not respected at the recursive invocation of make(1). I have attached a patch for the {{{haddock}}} repository that fixes this problem. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12058 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12058: Documentation will not build on platforms where GNU make is not called make -------------------------------------+------------------------------------- Reporter: pgj | Owner: Type: bug | Status: new Priority: highest | Milestone: 8.0.1 Component: Build System | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by pgj): * Attachment "haddock.ghc.mk.diff" added. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12058 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12058: Documentation will not build on platforms where GNU make is not called make -------------------------------------+------------------------------------- Reporter: pgj | Owner: Type: bug | Status: closed Priority: highest | Milestone: 8.0.1 Component: Build System | Version: 8.0.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: new => closed * resolution: => fixed Comment: Thanks Páli! This should now be fixed in `ghc-8.0` (7eb2ad9595c90abdb792a291d6473b4b3a2934e6) and `master` (sorry, I didn't notice your patch until I had already pushed my own). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12058#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC