#2794: Bootstrapping ghc-6.4.3 hangs in call to "ghc-pkg-inplace"
--------------------------+-------------------------------------------------
 Reporter:  cspiel        |          Owner:         
     Type:  bug           |         Status:  new    
 Priority:  normal        |      Milestone:         
Component:  Build System  |        Version:  6.4.3  
 Severity:  normal        |     Resolution:         
 Keywords:                |     Difficulty:  Unknown
 Testcase:                |   Architecture:  x86    
       Os:  Linux         |  
--------------------------+-------------------------------------------------
Comment (by cspiel):

 Replying to [comment:4 simonmar]:
 > Try compiling ghc-pkg or Distribution.Compat.ReadP with -fasm
 > and see if that helps.

 Compiling just ''ghc-pkg'' or just ''readp.hs'', or both with
 option {{{-fasm}}} does not remove the problem.  '''ghc-pkg'''
 still hangs.

 Then I pulled out the big mallet and said
 {{{
 make clean
 make EXTRA_HC_OPTS=-fasm
 }}}
 in the root directory.  This makes the problem go away and
 the bootstraping run grinds on for a long long time (as it
 should be).  However, after a while I run into
 {{{
 ../compiler/ghc-inplace -H16m -O -optc-O2 -static -I/site/include -I.
 -#include HCIncludes.h -fvia-C -dcmm-lint   -#include posix/Itimer.h -fasm
 -c PrimOps.cmm -o PrimOps.o
 ghc-6.6.1: panic! (the 'impossible' happened)
   (GHC version 6.6.1 for i386-unknown-linux):
         iselExpr64(i386) -_c23::I64

 Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
 }}}

 Following meader's advice I used ghc-6.6.1 for this run.
 ghc-6.4.3 faults at a different file:
 {{{
 ../../ghc/compiler/ghc-inplace -H16m -O -O2 -static -I. -#include
 Prelude.h -#include Rts.h -#include RtsFlags.h -#include RtsUtils.h
 -#include StgRun.h -#include Schedule.h -#include Printer.h -#include
 Sanity.h -#include STM.h -#include Storage.h -#include SchedAPI.h
 -#include Timer.h -#include Itimer.h -#include ProfHeap.h -#include
 LdvProfile.h -#include Profiling.h -#include Apply.h -fvia-C -dcmm-lint
 -fasm -c Apply.cmm -o Apply.o
 ghc-6.4.3: panic! (the `impossible' happened, GHC version 6.4.3):
         nativeGen/RegisterAlloc.hs:286: Non-exhaustive patterns in
 function livenessSCCs

 Please report this as a compiler bug.  See:
   http://www.haskell.org/ghc/reportabug
 }}}

 So, it looks like a clever use of "{{{-fasm}}}" could do the job:
 Get '''ghc-phk''' built with "{{{-fasm}}}" then interrupt and
 continue without the option.  It won't be pretty, but I
 want a working Haskell compiler and not a beauty prize.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2794#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

Reply via email to