[GHC] #7723: iOS patch no 12: Itimer.c doesn't work on iOS

#7723: iOS patch no 12: Itimer.c doesn't work on iOS ------------------------------+--------------------------------------------- Reporter: StephenBlackheath | Owner: StephenBlackheath Type: bug | Status: new Priority: normal | Component: Compiler Version: 7.7 | Keywords: Os: Other | Architecture: arm Failure: None/Unknown | Blockedby: Blocking: | Related: ------------------------------+--------------------------------------------- As it stands, rts/posix/Itimer.c dies at runtime on iOS. I am in the process of tidying up a solution for this. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7723 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7723: iOS patch no 12: Itimer.c doesn't work on iOS ------------------------------+--------------------------------------------- Reporter: StephenBlackheath | Owner: StephenBlackheath Type: bug | Status: patch Priority: normal | Component: Compiler Version: 7.7 | Keywords: Os: Other | Architecture: arm Failure: None/Unknown | Blockedby: Blocking: 7724 | Related: ------------------------------+--------------------------------------------- Changes (by StephenBlackheath): * status: new => patch Comment: On iOS configure gives us... {{{ #undef USE_TIMER_CREATE #define HAVE_SETITIMER }}} so setitimer is our only option. I re-tested the existing Itimer.c and it doesn't work (it doesn't fire). So I've added a patch here to give a pthread-based implementation that does work on iOS. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7723#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7723: iOS patch no 12: Itimer.c doesn't work on iOS ----------------------------------+----------------------------------------- Reporter: StephenBlackheath | Owner: StephenBlackheath Type: bug | Status: patch Priority: normal | Milestone: Component: Compiler | Version: 7.7 Keywords: | Os: Other Architecture: arm | Failure: None/Unknown Difficulty: Unknown | Testcase: Blockedby: | Blocking: 7724 Related: | ----------------------------------+----------------------------------------- Changes (by simonmar): * difficulty: => Unknown Comment: Ok, I guess if `setitimer` doesn't work then we have little choice but to implement our own. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7723#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7723: iOS patch no 12: Itimer.c doesn't work on iOS ----------------------------------+----------------------------------------- Reporter: StephenBlackheath | Owner: StephenBlackheath Type: bug | Status: patch Priority: normal | Milestone: Component: Compiler | Version: 7.7 Keywords: | Os: Other Architecture: arm | Failure: None/Unknown Difficulty: Unknown | Testcase: Blockedby: | Blocking: 7724 Related: | ----------------------------------+----------------------------------------- Comment(by StephenBlackheath): My guess is that the signals used by setitimer are somehow conflicting with the Xcode debugger. If you don't use the Xcode debugger, then you don't get any console output. In this iteration of the project I have only tested with the debugger (because otherwise I'd need to do a graphical or network program to test if ITimer works). I am trying to avoid doing work, so here's a proposal: If you accept this vague explanation for now, I'll promise to refine this later once I have real iOS programs running. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7723#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7723: iOS patch no 12: Itimer.c doesn't work on iOS ----------------------------------+----------------------------------------- Reporter: StephenBlackheath | Owner: StephenBlackheath Type: bug | Status: infoneeded Priority: normal | Milestone: Component: Compiler | Version: 7.7 Keywords: | Os: Other Architecture: arm | Failure: None/Unknown Difficulty: Unknown | Testcase: Blockedby: | Blocking: 7724 Related: | ----------------------------------+----------------------------------------- Changes (by simonmar): * status: patch => infoneeded Comment: Ok - just one request, could you add a comment to the patch with the above explanation and a link to this ticket? Thanks! -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7723#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7723: iOS patch no 12: Itimer.c doesn't work on iOS ----------------------------------+----------------------------------------- Reporter: StephenBlackheath | Owner: StephenBlackheath Type: bug | Status: patch Priority: normal | Milestone: Component: Compiler | Version: 7.7 Keywords: | Os: Other Architecture: arm | Failure: None/Unknown Difficulty: Unknown | Testcase: Blockedby: | Blocking: 7724 Related: | ----------------------------------+----------------------------------------- Changes (by igloo): * status: infoneeded => patch -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7723#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7723: iOS patch no 12: Itimer.c doesn't work on iOS ----------------------------------+----------------------------------------- Reporter: StephenBlackheath | Owner: StephenBlackheath Type: bug | Status: patch Priority: normal | Milestone: 7.8.1 Component: Compiler | Version: 7.7 Keywords: | Os: Other Architecture: arm | Failure: None/Unknown Difficulty: Unknown | Testcase: Blockedby: | Blocking: 7724 Related: | ----------------------------------+----------------------------------------- Changes (by igloo): * milestone: => 7.8.1 -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7723#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7723: iOS patch no 12: Itimer.c doesn't work on iOS
----------------------------------+-----------------------------------------
Reporter: StephenBlackheath | Owner: StephenBlackheath
Type: bug | Status: patch
Priority: normal | Milestone: 7.8.1
Component: Compiler | Version: 7.7
Keywords: | Os: Other
Architecture: arm | Failure: None/Unknown
Difficulty: Unknown | Testcase:
Blockedby: | Blocking: 7724
Related: |
----------------------------------+-----------------------------------------
Comment(by ian@…):
commit e7817396e8ec5c45689b1c7d6fa852623bb12b33
{{{
Author: Ian Lynagh

#7723: iOS patch no 12: Itimer.c doesn't work on iOS --------------------------------+------------------------------------------- Reporter: StephenBlackheath | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: Runtime System | Version: 7.7 Resolution: | Keywords: Os: Other | Architecture: arm Failure: None/Unknown | Difficulty: Unknown Testcase: | Blockedby: Blocking: 7724 | Related: --------------------------------+------------------------------------------- Changes (by igloo): * owner: StephenBlackheath => * status: patch => new * component: Compiler => Runtime System Comment: I've applied the patch. I'll leave the ticket open as we want to revisit it. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7723#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7723: iOS patch no 12: Itimer.c doesn't work on iOS --------------------------------+------------------------------------------- Reporter: StephenBlackheath | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: Runtime System | Version: 7.7 Resolution: | Keywords: Os: Other | Architecture: arm Failure: None/Unknown | Difficulty: Unknown Testcase: | Blockedby: Blocking: 7724 | Related: --------------------------------+------------------------------------------- Comment(by StephenBlackheath): Much appreciated. Will re-visit. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7723#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC