Re: [GHC] #5635: compiling iteratee with llvm backend fails with panic
#5635: compiling iteratee with llvm backend fails with panic -+-- Reporter: jwlato| Owner: dterei Type: bug | Status: infoneeded Priority: normal| Component: Compiler (LLVM) Version: 7.2.1 |Keywords: llvm, LlvmMangler, panic Testcase:| Blockedby: Os: Unknown/Multiple |Blocking: Architecture: Unknown/Multiple | Failure: Compile-time crash -+-- Changes (by dterei): * status: new = infoneeded -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/5635#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] #5635: compiling iteratee with llvm backend fails with panic
#5635: compiling iteratee with llvm backend fails with panic -+-- Reporter: jwlato| Owner: dterei Type: bug | Status: new Priority: normal| Component: Compiler (LLVM) Version: 7.2.1 |Keywords: llvm, LlvmMangler, panic Testcase:| Blockedby: Os: Unknown/Multiple |Blocking: Architecture: Unknown/Multiple | Failure: Compile-time crash -+-- Changes (by jwlato): * status: infoneeded = new Comment: The .ll file is too big to attach, but I've put it at http://www.tiresiaspress.us/other/Char.ll I haven't changed the iteratee source; I just tried building from a fresh cabal unpack. I've double-check the ghc version (7.2.1 x64 and 7.2.2 x64), but is there a good way to check the llvm version? I should only have 2.9 installed, and e.g. llvm-ld --version shows {{{ $ llvm-ld --version Low Level Virtual Machine (http://llvm.org/): llvm version 2.9 Optimized build. Built Nov 15 2011 (03:37:10). Host: x86_64-apple-darwin11 Host CPU: i686 Registered Targets: (none) }}} Also, the panic only happens when building with profiling enabled. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/5635#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] #5635: compiling iteratee with llvm backend fails with panic
#5635: compiling iteratee with llvm backend fails with panic -+-- Reporter: jwlato| Owner: dterei Type: bug | Status: new Priority: normal| Component: Compiler (LLVM) Version: 7.2.1 |Keywords: llvm, LlvmMangler, panic Testcase:| Blockedby: Os: Unknown/Multiple |Blocking: Architecture: Unknown/Multiple | Failure: Compile-time crash -+-- Comment(by dterei): Oh ok, the fact that profiling is enabled is probably what stopped me being able to reproduce. Thanks, I'll check again. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/5635#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
[GHC] #5635: compiling iteratee with llvm backend fails with panic
#5635: compiling iteratee with llvm backend fails with panic -+-- Reporter: jwlato| Owner: dterei Type: bug | Status: new Priority: normal| Component: Compiler (LLVM) Version: 7.2.1 |Keywords: llvm, LlvmMangler, panic Testcase:| Blockedby: Os: Unknown/Multiple |Blocking: Architecture: Unknown/Multiple | Failure: Compile-time crash -+-- When attempting to compile iteratee-0.8.7.2 with ghc-7.2.2 (64 bit, OSX 10.7) and the llvm backend (llvm-2.9), I get the following error: {{{ [11 of 18] Compiling Data.Iteratee.Char ( src/Data/Iteratee/Char.hs, dist/build/Data/Iteratee/Char.p_o ) ghc: panic! (the 'impossible' happened) (GHC version 7.2.2 for x86_64-apple-darwin): LLvmMangler Cannot read \nLBB162_12: ## %n8HBq\n\tmovzbl\t%al as it's not an Int Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug }}} -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/5635 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] #5635: compiling iteratee with llvm backend fails with panic
#5635: compiling iteratee with llvm backend fails with panic -+-- Reporter: jwlato| Owner: dterei Type: bug | Status: new Priority: normal| Component: Compiler (LLVM) Version: 7.2.1 |Keywords: llvm, LlvmMangler, panic Testcase:| Blockedby: Os: Unknown/Multiple |Blocking: Architecture: Unknown/Multiple | Failure: Compile-time crash -+-- Comment(by dterei): Thanks for the report, I'll take a look. I think this may already be fixed on x64 on OS X as the mangler no longer fixes up the stack on that platform. However the bug may be present on 32bit and that will need to be fixed. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/5635#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] #5635: compiling iteratee with llvm backend fails with panic
#5635: compiling iteratee with llvm backend fails with panic -+-- Reporter: jwlato| Owner: dterei Type: bug | Status: new Priority: normal| Component: Compiler (LLVM) Version: 7.2.1 |Keywords: llvm, LlvmMangler, panic Testcase:| Blockedby: Os: Unknown/Multiple |Blocking: Architecture: Unknown/Multiple | Failure: Compile-time crash -+-- Comment(by dterei): || OS | Arch | GHC | LLVM | Status || || OSX 10.7 | 64 | 7.2.1 | 2.9 | Works || || OSX 10.7 | 64 | 7.2.1 | 3.0 | Works || || OSX 10.7 | 32 | 7.2.1 | 2.9 | Works || || OSX 10.7 | 32 | 7.2.1 | 3.0 | Works || || OSX 10.7 | 32 | 7.0.4 | 2.9 | Fails (mangler) || || OSX 10.7 | 32 | 7.0.4 | 3.0 | Fails (llvm version unsupported) || So strangely I don't get a failure with 7.2.1 and I'm not aware of any change in 7.2.2 that should cause it. In GHC 7.0.4 I get the same failure {{{ ghc: panic! (the 'impossible' happened) (GHC version 7.0.4 for i386-apple-darwin): LLvmMangler Cannot read\nLBB147_10: ## %n3xZe\n\tmovzbl\t%clas it's not an Int }}} I'll grab 7.2.2 and test to confirm. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/5635#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