Opened 3 years ago

Closed 2 years 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 Rev(s):
Wiki Page:


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 2 years ago by thomie

Component: CompilerCode Coverage

comment:2 Changed 2 years 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 2 years ago by thomie

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.