valderman / haste-compiler

A GHC-based Haskell to JavaScript compiler
http://haste-lang.org
BSD 3-Clause "New" or "Revised" License
1.45k stars 109 forks source link

haste v0.2.8 on Mac OS X: haste-boot fails building base #104

Closed shaydon closed 11 years ago

shaydon commented 11 years ago

I'm getting an error when haste-boot tries to build the file GHC/Exception.lhs - see the output below. Not sure if this is some cabal weirdness or a genuine problem in the latest code, but I was able to boot previous versions successfully.

(32bit GHC 7.6.3 on OS X 10.6.8)

...

Configuring base-4.6.0.1...
Warning: Instead of 'ghc-options: -XCPP' use 'extensions: CPP'
Building base-4.6.0.1...
Preprocessing library base-4.6.0.1...
In file included from /Users/Simon/.haste/include/Stg.h:225,
                 from /Users/Simon/.haste/include/Rts.h:30,
                 from Stack.hsc:45:
/Users/Simon/.haste/include/stg/TailCalls.h:93:1: warning: "JMP_" redefined
/Users/Simon/.haste/include/stg/TailCalls.h:56:1: warning: this is the location of the previous definition
In file included from /Users/Simon/.haste/include/Stg.h:232,
                 from /Users/Simon/.haste/include/Rts.h:30,
                 from Stack.hsc:45:
/Users/Simon/.haste/include/stg/MachRegs.h:148:1: warning: "REG_Base" redefined
/Users/Simon/.haste/include/stg/MachRegs.h:92:1: warning: this is the location of the previous definition
/Users/Simon/.haste/include/stg/MachRegs.h:149:1: warning: "REG_Sp" redefined
/Users/Simon/.haste/include/stg/MachRegs.h:94:1: warning: this is the location of the previous definition
/Users/Simon/.haste/include/stg/MachRegs.h:150:1: warning: "REG_Hp" redefined
/Users/Simon/.haste/include/stg/MachRegs.h:105:1: warning: this is the location of the previous definition
/Users/Simon/.haste/include/stg/MachRegs.h:151:1: warning: "REG_R1" redefined
/Users/Simon/.haste/include/stg/MachRegs.h:101:1: warning: this is the location of the previous definition
/Users/Simon/.haste/include/stg/MachRegs.h:184:1: warning: "MAX_REAL_VANILLA_REG" redefined
/Users/Simon/.haste/include/stg/MachRegs.h:108:1: warning: this is the location of the previous definition
/Users/Simon/.haste/include/stg/MachRegs.h:185:1: warning: "MAX_REAL_FLOAT_REG" redefined
/Users/Simon/.haste/include/stg/MachRegs.h:109:1: warning: this is the location of the previous definition
/Users/Simon/.haste/include/stg/MachRegs.h:186:1: warning: "MAX_REAL_DOUBLE_REG" redefined
/Users/Simon/.haste/include/stg/MachRegs.h:110:1: warning: this is the location of the previous definition
In file included from /Users/Simon/.haste/include/Stg.h:225,
                 from /Users/Simon/.haste/include/Rts.h:30,
                 from Stats.hsc:28:
/Users/Simon/.haste/include/stg/TailCalls.h:93:1: warning: "JMP_" redefined
/Users/Simon/.haste/include/stg/TailCalls.h:56:1: warning: this is the location of the previous definition
In file included from /Users/Simon/.haste/include/Stg.h:232,
                 from /Users/Simon/.haste/include/Rts.h:30,
                 from Stats.hsc:28:
/Users/Simon/.haste/include/stg/MachRegs.h:148:1: warning: "REG_Base" redefined
/Users/Simon/.haste/include/stg/MachRegs.h:92:1: warning: this is the location of the previous definition
/Users/Simon/.haste/include/stg/MachRegs.h:149:1: warning: "REG_Sp" redefined
/Users/Simon/.haste/include/stg/MachRegs.h:94:1: warning: this is the location of the previous definition
/Users/Simon/.haste/include/stg/MachRegs.h:150:1: warning: "REG_Hp" redefined
/Users/Simon/.haste/include/stg/MachRegs.h:105:1: warning: this is the location of the previous definition
/Users/Simon/.haste/include/stg/MachRegs.h:151:1: warning: "REG_R1" redefined
/Users/Simon/.haste/include/stg/MachRegs.h:101:1: warning: this is the location of the previous definition
/Users/Simon/.haste/include/stg/MachRegs.h:184:1: warning: "MAX_REAL_VANILLA_REG" redefined
/Users/Simon/.haste/include/stg/MachRegs.h:108:1: warning: this is the location of the previous definition
/Users/Simon/.haste/include/stg/MachRegs.h:185:1: warning: "MAX_REAL_FLOAT_REG" redefined
/Users/Simon/.haste/include/stg/MachRegs.h:109:1: warning: this is the location of the previous definition
/Users/Simon/.haste/include/stg/MachRegs.h:186:1: warning: "MAX_REAL_DOUBLE_REG" redefined
/Users/Simon/.haste/include/stg/MachRegs.h:110:1: warning: this is the location of the previous definition

Foreign/C/Error.hs:3:16: Warning:
    -#include and INCLUDE pragmas are deprecated: They no longer have any effect

GHC/Unicode.hs:3:12: Warning:
    -#include and INCLUDE pragmas are deprecated: They no longer have any effect

GHC/Base.lhs:799:1: Warning:
    RULE left-hand side too complicated to desugar
      case w2i x# of wild_00 { __DEFAULT -> i2w wild_00 }

GHC/Base.lhs:800:1: Warning:
    RULE left-hand side too complicated to desugar
      case i2w x# of wild_00 { __DEFAULT -> w2i wild_00 }

GHC/Exception.lhs:47:14:
    Couldn't match kind `*' against `#'
    Kind incompatibility when matching types:
      a0 :: *
      Word64# :: #
    In the first argument of `Data.Typeable.Internal.mkTyCon', namely
      `8610171299581312226L##'
    In the first argument of `Data.Typeable.Internal.mkTyConApp', namely
      `Data.Typeable.Internal.mkTyCon
         8610171299581312226L##
         13419740508176834782L##
         "base"
         "GHC.Exception"
         "SomeException"'
    When typechecking the code for  `Data.Typeable.Internal.typeOf'
      in a standalone derived instance for `Typeable SomeException':
      To see the code I am typechecking, use -ddump-deriv

GHC/Exception.lhs:169:14:
    Couldn't match kind `*' against `#'
    Kind incompatibility when matching types:
      a0 :: *
      Word64# :: #
    In the first argument of `Data.Typeable.Internal.mkTyCon', namely
      `14157176506872324664L##'
    In the first argument of `Data.Typeable.Internal.mkTyConApp', namely
      `Data.Typeable.Internal.mkTyCon
         14157176506872324664L##
         10389919161218030819L##
         "base"
         "GHC.Exception"
         "ErrorCall"'
    When typechecking the code for  `Data.Typeable.Internal.typeOf'
      in a standalone derived instance for `Typeable ErrorCall':
      To see the code I am typechecking, use -ddump-deriv

GHC/Exception.lhs:186:22:
    Couldn't match kind `*' against `#'
    Kind incompatibility when matching types:
      a0 :: *
      Word64# :: #
    In the first argument of `Data.Typeable.Internal.mkTyCon', namely
      `3089387606753565224L##'
    In the first argument of `Data.Typeable.Internal.mkTyConApp', namely
      `Data.Typeable.Internal.mkTyCon
         3089387606753565224L##
         7918018744409604075L##
         "base"
         "GHC.Exception"
         "ArithException"'
    When typechecking the code for  `Data.Typeable.Internal.typeOf'
      in a standalone derived instance for `Typeable ArithException':
      To see the code I am typechecking, use -ddump-deriv
Installing dist/build/Control/Monad.hi...
Installing dist/build/Data/Bool.hi...
Installing dist/build/Data/Eq.hi...
Installing dist/build/Data/Maybe.hi...
Installing dist/build/Data/Ord.hi...
Installing dist/build/Data/Tuple.hi...
Installing dist/build/GHC/Base.hi...
Installing dist/build/GHC/GHCi.hi...
Installing dist/build/GHC/HastePrim.hi...
Installing dist/build/GHC/HasteWordInt.hi...
Installing dist/build/GHC/List.hi...
Installing dist/build/GHC/MVar.hi...
Installing dist/build/GHC/Num.hi...
Installing dist/build/GHC/Show.hi...
Installing dist/build/GHC/Float/ConversionUtils.hi...
Installing dist/build/GHC/Float/RealFracMethods.hi...
Installing dist/build/GHC/IO/Encoding/CodePage.hi...
Installing dist/build/Text/ParserCombinators/ReadP.hi...
Installing dist/build/Text/ParserCombinators/ReadPrec.hi...
Installing dist/build/Unsafe/Coerce.hi...
ghc-pkg: cannot find package base-4.6.0.1

...
valderman commented 11 years ago

It's a genuine problem and I know exactly where it is; I'll see it fixed as soon as I can get a 32 bit VM up and running.