#3103: Compiling base with cabal fails.
---------------------------------+------------------------------------------
    Reporter:  Lemmih            |        Owner:              
        Type:  bug               |       Status:  new         
    Priority:  normal            |    Milestone:  6.14.1      
   Component:  Compiler          |      Version:  6.10.1      
    Keywords:                    |     Testcase:              
   Blockedby:                    |   Difficulty:  Unknown     
          Os:  Unknown/Multiple  |     Blocking:              
Architecture:  Unknown/Multiple  |      Failure:  None/Unknown
---------------------------------+------------------------------------------
Changes (by simonmar):

  * priority:  low => normal
  * failure:  => None/Unknown


Comment:

 Still happens with HEAD today:

 {{{
 [ 66 of 170] Compiling Foreign.Ptr      ( Foreign/Ptr.hs,
 dist/build/Foreign/Ptr.o )
 ghc-stage2: panic! (the 'impossible' happened)
   (GHC version 6.13.20100902 for x86_64-unknown-linux):
         tcIfaceGlobal (local): not found:
     base:GHC.Word.W#{d 6w}
     [(32R, Type constructor `base:GHC.Word.Word{tc 32R}'),
      (32U, Type constructor `base:GHC.Word.Word8{tc 32U}'),
      (32X, Type constructor `base:GHC.Word.Word16{tc 32X}'),
      (333, Type constructor `base:GHC.Word.Word32{tc 333}'),
      (339, Type constructor `base:GHC.Word.Word64{tc 339}'),
 ...
 }}}

 additionally, it's not possible to build base outside a GHC tree, because:

 {{{
 Preprocessing library base-4.3.0.0...
 Building base-4.3.0.0...

 GHC/Constants.hs:7:0:
      error: ../../../compiler/stage1/ghc_boot_platform.h: No such file or
 directory

 GHC/Constants.hs:9:0:
      error: ../../../includes/HaskellConstants.hs: No such file or
 directory
 }}}

 It would be nice if it was possible to build base independently of GHC,
 for people trying to process base with the GHC API for exmple.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3103#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to