[GHC] #8735: hpc doesn't work on Mac

GHC ghc-devs at haskell.org
Thu Feb 6 09:15:14 UTC 2014


#8735: hpc doesn't work on Mac
----------------------------------+------------------------------------
        Reporter:  George         |            Owner:
            Type:  bug            |           Status:  new
        Priority:  normal         |        Milestone:  7.8.1
       Component:  Code Coverage  |          Version:  7.8.1-rc1
      Resolution:                 |         Keywords:
Operating System:  MacOS X        |     Architecture:  Unknown/Multiple
 Type of failure:  Other          |       Difficulty:  Unknown
       Test Case:                 |       Blocked By:
        Blocking:                 |  Related Tickets:
----------------------------------+------------------------------------

Comment (by nomeata):

 This is not specific to mac; the problem is that a dynamically linked
 file, which finds its libraries via rpath, is installed into the system-
 wide bin.

 I believe you need a patch like

 {{{
 Index: ghc-7.9.20140130/utils/hpc/ghc.mk
 ===================================================================
 --- ghc-7.9.20140130.orig/utils/hpc/ghc.mk      2014-01-31
 17:28:32.000000000 +0000
 +++ ghc-7.9.20140130/utils/hpc/ghc.mk   2014-02-04 23:15:53.000000000
 +0000
 @@ -15,4 +15,7 @@
  utils/hpc_dist-install_INSTALL         = YES
  utils/hpc_dist-install_INSTALL_INPLACE = YES
  utils/hpc_dist-install_PROGNAME        = hpc
 +utils/hpc_dist-install_SHELL_WRAPPER   = YES
 +utils/hpc_dist-install_INSTALL_SHELL_WRAPPER_NAME = hpc
 +
  $(eval $(call build-prog,utils/hpc,dist-install,1))
 Index: ghc-7.9.20140130/utils/hpc/hpc.wrapper
 ===================================================================
 --- /dev/null   1970-01-01 00:00:00.000000000 +0000
 +++ ghc-7.9.20140130/utils/hpc/hpc.wrapper      2014-02-04
 23:17:49.000000000 +0000
 @@ -0,0 +1,2 @@
 +#!/bin/sh
 +exec "$executablename" ${1+"$@"}
 }}}
 or something nicer.


 (from http://anonscm.debian.org/darcs/pkg-haskell/ghc/patches/hpc-wrapper
 )

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8735#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list