Opened 5 years ago

Closed 4 years ago

Last modified 12 months ago

#10157 closed bug (fixed)

HSCOLOUR_SRCS=YES fails mysteriously when no HsColour executable available

Reported by: ezyang Owned by:
Priority: low Milestone: 8.0.1
Component: Build System (make) Version: 7.11
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s): Phab:D1232
Wiki Page:


We seem to fill in the --with-hscolour= flag with an empty string, which causes a plain old build failure. Configure probably ought to fail if HSCOLOUR_SRCS=YES and there is no hscolours.

Change History (5)

comment:1 Changed 4 years ago by thomie

Differential Rev(s): Phab:D1232
Milestone: 7.12.1
Status: newpatch

comment:2 Changed 4 years ago by Thomas Miedema <thomasmiedema@…>

In 1b8eca18/ghc:

Build system: check for inconsistent settings (#10157)

`configure` currently detects when the docbook and hscolour tools aren't
available, and instead of failing outright (as it does for missing alex
and happy), sets some variables in mk/ to tell `make` not to
build the documentation.

Sometimes, however, you want to really make sure all documentation gets
built, fully colourized. For example when making a release. To do so,
you can override the mentioned variables from mk/ in
mk/ (e.g. set HSCOLOUR_SRCS=YES).

This patch adds some error checking to make sure that doing so will not
result in weird build failures when those tools are still missing.

Test Plan: ran `make` a couple of times, with different mk/ settings.

Reviewed by: austin

Differential Revision:

comment:3 Changed 4 years ago by thomie

Resolution: fixed
Status: patchclosed

comment:4 Changed 4 years ago by thoughtpolice


Milestone renamed

comment:5 Changed 12 months ago by bgamari

Component: Build SystemBuild System (make)

The new Hadrian build system has been merged. Relabeling the tickets concerning the legacy make build system to prevent confusion.

Note: See TracTickets for help on using tickets.