[GHC] #9040: HPC doesnt work as expected on mac

#9040: HPC doesnt work as expected on mac ------------------------------------+--------------------------------- Reporter: carter | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.2 Keywords: | Operating System: MacOS X Architecture: Unknown/Multiple | Type of failure: None/Unknown Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ------------------------------------+--------------------------------- on commit 716f3586e23faeb8a4a08e77ebdbfa645c15f9a8 of my in progress project git@github.com: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-0.1.0.0/Numerical.Nat.hs.html hpc: can not find numerical-core-0.1.0.0/Numerical.Array.Shape in ["./.hpc","./dist/hpc/mix/numerical-core-0.1.0.0","./dist/hpc/mix/spec- suite"] this apparently only happens on OS X. here are the build logs from my run https://gist.github.com/cartazio/11312249 (i'll amend that to link to a cleaner output later) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9040 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9040: HPC doesnt work as expected on mac -------------------------------------+------------------------------------- Reporter: carter | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Code | Version: 7.8.2 Coverage | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: MacOS X | Difficulty: Unknown Type of failure: | Blocked By: None/Unknown | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by thomie): * component: Compiler => Code Coverage -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9040#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9040: HPC doesnt work as expected on mac -------------------------------------+------------------------------------- Reporter: carter | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Code | Version: 7.8.2 Coverage | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: MacOS X | Difficulty: Unknown Type of failure: | Blocked By: None/Unknown | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (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 [https://github.com/haskell/cabal/issues/2281]. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9040#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9040: HPC doesnt work as expected on mac -------------------------------------+------------------------------------- Reporter: carter | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Code | Version: 7.8.2 Coverage | Keywords: Resolution: invalid | Architecture: Unknown/Multiple Operating System: MacOS X | Difficulty: Unknown Type of failure: | Blocked By: None/Unknown | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by thomie): * status: new => closed * resolution: => invalid -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9040#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC