[GHC] #12195: RTS GetTime.c is broken on Darwins that include clock_gettime

GHC ghc-devs at haskell.org
Tue Jul 5 20:08:58 UTC 2016


#12195: RTS GetTime.c is broken on Darwins that include clock_gettime
-------------------------------------+-------------------------------------
        Reporter:  mistydemeo        |                Owner:
            Type:  bug               |               Status:  patch
        Priority:  normal            |            Milestone:  8.0.2
       Component:  Compiler          |              Version:  8.0.1
      Resolution:                    |             Keywords:
Operating System:  MacOS X           |         Architecture:  x86_64
 Type of failure:  Building GHC      |  (amd64)
  failed                             |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Ben Gamari <ben@…>):

 In [changeset:"b7b130c5102948b38aaba723044288e16a80d492/ghc" b7b130c/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="b7b130c5102948b38aaba723044288e16a80d492"
 Fix GetTime.c on Darwin with clock_gettime

 On Darwin versions with clock_gettime, #ifdefs will prevent the
 mach-specific time functions from being used in most places, and
 the mach time headers won't be included; however, this section
 was guarded incorrectly and would still try to use them.

 Fixes #12195.
 }}}

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


More information about the ghc-tickets mailing list