#7225 closed bug (fixed)

"ghc -C" failed

Reported by: guest Owned by: igloo
Priority: high Milestone: 7.8.1
Component: Compiler Version: 7.4.1
Keywords: Cc:
Operating System: Windows Architecture: x86
Type of failure: Compile-time crash Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

--- source file ---
module Main where

main = return ()

--- command line ---
E:\DANE\wisnipr2\Temp>ghc -C Main.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.1 for i386-unknown-mingw32):

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

Change History (3)

comment:1 Changed 20 months ago by simonmar

  • Difficulty set to Unknown
  • Milestone set to 7.8.1
  • Owner set to igloo
  • Priority changed from normal to high

This was briefly fixed (I think it might be fixed in 7.6.1) and then broken again by:

commit f917eeb824cfb7143dde9b12e501d4ddb0049b65

Author: Ian Lynagh <ian@well-typed.com>
Date:   Tue Aug 7 01:27:44 2012 +0100

    Add "Unregisterised" as a field in the settings file
    
    To explicitly choose whether you want an unregisterised build you now
    need to use the "--enable-unregisterised"/"--disable-unregisterised"
    configure flags.

comment:2 Changed 19 months ago by goldfire

This panic is also triggered by building GHC with the following in build.mk:

GhcLibWays = v p dyn p_dyn

Here is the error:

  ...
  rts_dist_HC rts/dist/build/posix/Signals.
  rts_dist_HC rts/dist/build/posix/TTY.
  rts_dist_HC rts/dist/build/Apply.hc

addFlag by -C on the commandline: Warning:
    The -fvia-C flag does nothing; it will be removed in a future GHC release
ghc-stage1: panic! (the 'impossible' happened)
  (GHC version 7.7.20121002 for x86_64-apple-darwin):
	pipeLoop: at phase As but I wanted to stop at phase HCc

If it matters, I'm compiling on Mac OS 10.7.5 and using GHC 7.6.1.

comment:3 Changed 18 months ago by igloo

  • Resolution set to fixed
  • Status changed from new to closed

I've just validated on OS X x86_64 with GhcLibWays = v p dyn p_dyn, so I think recent changes have fixed this. Please reopen if you still have problems.

Note: See TracTickets for help on using tickets.