Skip to content

Parallel make should eagerly report when compilation of a module starts

Steps to reproduce:

  1. Create a small project which has some parallelism, but the individual files take some time to compile. For my testing, I used the module from #9630 (closed)##12347 and set things up so that I had:
-- A.hs
-- contents of #9630 test-case
-- B.hs
-- contents of #9630 test-case
-- C.hs
-- contents of #9630 test-case
-- All.hs
module All where
import A
import B
import C
  1. Run ghc --make All A B C -j4 +RTS -N4

Expected results: GHC immediately reports that it is building A, B, and C; some time later All begins compiling.

Actual results: Only one module is reported at first; only after it completes are the rest reported (quickly!)

Trac metadata
Trac field Value
Version 8.0.1
Type Bug
TypeOfFailure OtherFailure
Priority low
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information