Opened 11 months ago

Closed 3 months ago

#9040 closed bug (invalid)

HPC doesnt work as expected on mac

Reported by: carter Owned by:
Priority: normal Milestone:
Component: Code Coverage Version: 7.8.2
Keywords: Cc:
Operating System: MacOS X Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Revisions:


on commit 716f3586e23faeb8a4a08e77ebdbfa645c15f9a8 of my in progress project git@…:wellposed/numerical-core.git , when i try test library coverage by the following command (asuming dependencies are installed)

cabal clean ; cabal configure --enable-tests --enable-library-coverage; cabal build; cabal test

i get the following output at the end

Writing: numerical-core-
hpc: can not find numerical-core- in ["./.hpc","./dist/hpc/mix/numerical-core-","./dist/hpc/mix/spec-suite"]

this apparently only happens on OS X.

here are the build logs from my run
(i'll amend that to link to a cleaner output later)

Change History (3)

comment:1 Changed 5 months ago by thomie

  • Component changed from Compiler to Code Coverage

comment:2 Changed 3 months ago by ttuegel

This turns out to be a bug in Cabal, so it should be closed. Cabal doesn't separate the HPC module interfaces for each build way. Carter has library profiling enabled, so the library is built twice and only the profiled module interfaces are kept. But, the test executable is compiled with profiling disabled, so the module interface hashes don't match! See

comment:3 Changed 3 months ago by thomie

  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.