[GHC] #11733: Undeclared identifier 'CLOCK_PROCESS_CPUTIME_ID' on OS X
#11733: Undeclared identifier 'CLOCK_PROCESS_CPUTIME_ID' on OS X -------------------------------------+------------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.1 Keywords: | Operating System: MacOS X Architecture: | Type of failure: Building GHC Unknown/Multiple | failed Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- It seems cb3456d82eaa8cea6b3 breaks OSX: {{{ ClockGetTime.hsc:24:16: error: use of undeclared identifier 'CLOCK_PROCESS_CPUTIME_ID' ..../inplace/lib/template-hsc.h:36:41: note: expanded from macro 'hsc_const' hsc_printf ("%lld", (long long)(x)); }}} Probably also a problem on *BSD. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11733> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11733: Undeclared identifier 'CLOCK_PROCESS_CPUTIME_ID' on OS X -------------------------------------+------------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.1 Resolution: | Keywords: Operating System: MacOS X | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by erikd): This may help: http://stackoverflow.com/questions/5167269/clock-gettime- alternative-in-mac-os-x -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11733#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11733: Undeclared identifier 'CLOCK_PROCESS_CPUTIME_ID' on OS X -------------------------------------+------------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.1 Resolution: | Keywords: Operating System: MacOS X | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by Ben Gamari <ben@…>): In [changeset:"2ddfb7573793c2a288d0979868f876af75733426/ghc" 2ddfb75/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="2ddfb7573793c2a288d0979868f876af75733426" base: Fix ClockGetTime on OS X Apparently _POSIX_CPUTIME may be defined as -1 if CLOCK_PROCESS_CPUTIME_ID isn't defined. Test Plan: Validate Reviewers: austin, hvr, erikd, goldfire Reviewed By: erikd, goldfire Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2028 GHC Trac Issues: #11733 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11733#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11733: Undeclared identifier 'CLOCK_PROCESS_CPUTIME_ID' on OS X -------------------------------------+------------------------------------- Reporter: erikd | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 8.1 Resolution: fixed | Keywords: Operating System: MacOS X | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by erikd): * status: new => closed * resolution: => fixed Comment: This has been fixed and is currently not applicable to the ghc-8.0 branch as the problem it fixes is not yet on the ghc-8.0 branch. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11733#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC