id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	os	architecture	failure	difficulty	testcase	blockedby	blocking	related
968	"MkExternalCore died: can't handle ""foreign label"" declarations"	Samuel Bronson <naesten@…>		"I ran into this when trying to build the whole libraries with {{{-fext-core}}}:


{{{
== make way=p all;
PWD = /home/samb/ghc-patched/libraries/readline
------------------------------------------------------------------------
../../compiler/ghc-inplace -H32m -O -fasm -W -fno-warn-unused-matches -fwarn-unused-imports -Iinclude -package-name  readline-1.0 -O -dcore-lint -W -fno-warn-unused-matches -fwarn-unused-imports -fext-core  -package base -fgenerics -hisuf p_hi -hcsuf p_hc -osuf p_o -prof    -c System/Console/Readline.hs -o System/Console/Readline.p_o  -ohi System/Console/Readline.p_hi

System/Console/Readline.hsc:458:17:
    Warning: Defined but not used: data constructor `KeymapTag'
DsForeign: why is there an unsafeCoerce here?
(many of that last line)
NOTE: Simplifier still going after 4 iterations; bailing out.
NOTE: Simplifier still going after 4 iterations; bailing out.
WARNING: file stranal/DmdAnal.lhs line 436 ds{v X2Ku} [lid]
(many similar lines with different variable names)
ghc-6.5: panic! (the 'impossible' happened)
  (GHC version 6.5 for i386-unknown-linux):
        MkExternalCore died: can't handle ""foreign label"" declarations

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
}}}"	bug	closed	normal		External Core	6.7	fixed			Unknown/Multiple	Unknown/Multiple		Unknown				
