Re: [GHC] #7350: 'stg_killMyself' undeclared (first use in this function)
#7350: 'stg_killMyself' undeclared (first use in this function) -+-- Reporter: erikd| Owner: Type: bug | Status: new Priority: normal | Component: Compiler Version: 7.7 | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: Building GHC failed | Testcase: Blockedby: | Blocking: Related: | -+-- Comment(by marlowsd@…): commit 9008ae051311066e46a088b899fa6b908d292a70 {{{ Author: Simon Marlow marlo...@gmail.com Date: Thu Oct 25 09:43:34 2012 +0100 declare stg_gc_prim and stg_killMyself (#7350) includes/stg/MiscClosures.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) }}} -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7350#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #7350: 'stg_killMyself' undeclared (first use in this function)
#7350: 'stg_killMyself' undeclared (first use in this function) --+- Reporter: erikd| Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler |Version: 7.7 Resolution: fixed| Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: Building GHC failed | Difficulty: Unknown Testcase: | Blockedby: Blocking: |Related: --+- Changes (by simonmar): * status: new = closed * difficulty: = Unknown * resolution: = fixed Comment: @erikd - you're seeing these failures because the PPC64 build compiles via C, and the C backend is more sensitive than the other backends to declaration order. I've committed what should be a fix for the issues you saw, but I suspect there may still be other problems in the unregisterised backend. Please re-open or open new tickets as appropriate. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7350#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #7350: 'stg_killMyself' undeclared (first use in this function)
#7350: 'stg_killMyself' undeclared (first use in this function) -+-- Reporter: erikd| Owner: Type: bug | Status: new Priority: normal | Component: Compiler Version: 7.7 | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: Building GHC failed | Testcase: Blockedby: | Blocking: Related: | -+-- Changes (by erikd): * owner: erikd = -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7350#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #7350: 'stg_killMyself' undeclared (first use in this function)
#7350: 'stg_killMyself' undeclared (first use in this function) -+-- Reporter: erikd| Owner: erikd Type: bug | Status: new Priority: normal | Component: Compiler Version: 7.7 | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: Building GHC failed | Testcase: Blockedby: | Blocking: Related: | -+-- Comment(by erikd): After fixing the stg_killMyself problem I get: {{{ /tmp/ghc31258_0/ghc31258_0.hc: In function 'stg_retryzh': /tmp/ghc31258_0/ghc31258_0.hc:1255:1: error: 'stg_gc_prim' undeclared (first use in this function) /tmp/ghc31258_0/ghc31258_0.hc:1255:1: note: each undeclared identifier is reported only once for each function it appears in /tmp/ghc31258_0/ghc31258_0.hc: In function 'stg_noDuplicatezh': /tmp/ghc31258_0/ghc31258_0.hc:2217:1: error: 'stg_gc_prim' undeclared (first use in this function) }}} These errors are coming from the file rtc/PrimOps.cmm, which seems to be getting the call the stg_gc_prim via macros in includes/Cmm.h. The problem here is that stg_gc_prim is defined -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7350#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #7350: 'stg_killMyself' undeclared (first use in this function)
#7350: 'stg_killMyself' undeclared (first use in this function) -+-- Reporter: erikd| Owner: erikd Type: bug | Status: new Priority: normal | Component: Compiler Version: 7.7 | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: Building GHC failed | Testcase: Blockedby: | Blocking: Related: | -+-- Comment(by erikd): It seems CMM needs some form of function prototyping or forward declaration capability. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7350#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #7350: 'stg_killMyself' undeclared (first use in this function)
#7350: 'stg_killMyself' undeclared (first use in this function) ---+ Reporter: erikd | Owner: erikd Type: bug| Status: new Priority: normal | Component: Compiler Version: 7.7| Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: Installing GHC failed | Testcase: Blockedby: | Blocking: Related: | ---+ Changes (by erikd): * owner: = erikd Comment: If I move the definition of stg_killMyself before the function that calls it stg_killThreadzh it then gets past that point in the compile but then I run into bug #7313. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7350#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #7350: 'stg_killMyself' undeclared (first use in this function)
#7350: 'stg_killMyself' undeclared (first use in this function) -+-- Reporter: erikd| Owner: erikd Type: bug | Status: new Priority: normal | Component: Compiler Version: 7.7 | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: Building GHC failed | Testcase: Blockedby: | Blocking: Related: | -+-- Changes (by erikd): * failure: Installing GHC failed = Building GHC failed -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7350#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #7350: 'stg_killMyself' undeclared (first use in this function)
#7350: 'stg_killMyself' undeclared (first use in this function) -+-- Reporter: erikd| Owner: erikd Type: bug | Status: new Priority: normal | Component: Compiler Version: 7.7 | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: Building GHC failed | Testcase: Blockedby: | Blocking: Related: | -+-- Comment(by erikd): Have a patch that fixes this bug. Will commit it when I also have a fix for #7313 and have validated the lot. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7350#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs