[GHC] #8464: ghc -C crashes on Hello World

#8464: ghc -C crashes on Hello World ----------------------------------+--------------------------------------- Reporter: ygramoel | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.4.2 Keywords: | Operating System: Linux Architecture: x86_64 (amd64) | Type of failure: Compile-time crash Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ----------------------------------+--------------------------------------- johan@morla:~/haskell\> cat hello.hs main = putStrLn "Hello, World!" johan@morla:~/haskell\> ghc -C hello.hs addFlag by -C on the commandline: Warning: The -fvia-C flag does nothing; it will be removed in a future GHC release ghc: panic! (the 'impossible' happened) (GHC version 7.4.2 for x86_64-unknown-linux): pipeLoop: at phase As but I wanted to stop at phase HCc Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8464 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8464: ghc -C crashes on Hello World ---------------------------------------+---------------------------------- Reporter: ygramoel | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.4.2 Resolution: invalid | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: Compile-time crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------------+---------------------------------- Changes (by carter): * status: new => closed * resolution: => invalid Comment: the flag -C is only for unregisterized GHC builds, ie when you've built GHC using -f-viaC (-f-viaC is still used in GHC to support targets like PPC64 and other archs we don't have a native code gen for, like MIP i believe). It won't work with standard GHC builds on x86_64 that are registerized and use the native codegen. closing this for now. what was the goal of using -C ? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8464#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8464: ghc -C crashes on Hello World ---------------------------------------+---------------------------------- Reporter: ygramoel | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.4.2 Resolution: invalid | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: Compile-time crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------------+---------------------------------- Comment (by monoidal): The problem was in fact fixed in #5582. carter: GHC should not panic if you just use its flags incorrectly. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8464#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8464: ghc -C crashes on Hello World ---------------------------------------+---------------------------------- Reporter: ygramoel | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.4.2 Resolution: invalid | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: Compile-time crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------------+---------------------------------- Comment (by carter): ok, good point :) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8464#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8464: ghc -C crashes on Hello World ---------------------------------------+---------------------------------- Reporter: ygramoel | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.4.2 Resolution: invalid | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: Compile-time crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------------+---------------------------------- Comment (by ygramoel): Thanks for the very fast reply. I agree with monoidal: GHC should not panic if you just use its flags incorrectly. Resolution "invalid" seems inappropriate, "duplicate" (of #5582) would have been more appropriate. BTW: I have tried to reproduce the problem on ghc-7.6.3, but was not able to install it: see #8465. The reason for using -C was essentially just curiosity. I was trying to get more insight in how Haskell is translated to executable code. I am sure that there must be useful documents explaining this, but sometimes looking at code for concrete examples helps. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8464#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8464: ghc -C crashes on Hello World ---------------------------------------+---------------------------------- Reporter: ygramoel | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.4.2 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: Compile-time crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: #7563, #5582 ---------------------------------------+---------------------------------- Changes (by jstolarek): * status: closed => new * resolution: invalid => * related: => #7563, #5582 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8464#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8464: ghc -C crashes on Hello World ---------------------------------------+---------------------------------- Reporter: ygramoel | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.4.2 Resolution: duplicate | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: Compile-time crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: #7563, #5582 ---------------------------------------+---------------------------------- Changes (by jstolarek): * status: new => closed * resolution: => duplicate -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8464#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC