*** setup configure Configuring BASIC-0.1.5.0... Dependency base -any: using base-4.3.0.0 Dependency containers -any: using containers-0.4.0.0 Dependency llvm >=0.6.3: using llvm-0.9.0.1 Dependency random -any: using random-1.0.0.3 Dependency timeit -any: using timeit-1.0.0.0 Using Cabal-1.10.0.0 compiled by ghc-7.0 Using compiler: ghc-7.0.1 Using install prefix: /usr/local/tmp/archive/install Binaries installed in: /usr/local/tmp/archive/install/bin Libraries installed in: /usr/local/tmp/archive/install/lib/BASIC-0.1.5.0/ghc-7.0.1 Private binaries installed in: /usr/local/tmp/archive/install/libexec Data files installed in: /usr/local/tmp/archive/install/share/BASIC-0.1.5.0 Documentation installed in: /usr/local/tmp/archive/install/share/doc/BASIC-0.1.5.0 Using alex version 2.3.3 found on system at: /usr/bin/alex Using ar found on system at: /usr/bin/ar Using c2hs version 0.16.0 found on system at: /usr/local/bin/c2hs Using cpphs version 1.11 found on system at: /usr/local/bin/cpphs Using ffihugs found on system at: /usr/local/bin/ffihugs Using gcc version 4.4.5 found on system at: /usr/bin/gcc Using ghc version 7.0.1 found on system at: /usr/local/bin/ghc Using ghc-pkg version 7.0.1 found on system at: /usr/local/bin/ghc-pkg No greencard found Using haddock version 2.8.0 found on system at: /usr/local/bin/haddock Using happy version 1.18.6 found on system at: /usr/local/bin/happy No hmake found Using hsc2hs version 0.67 found on system at: /usr/local/bin/hsc2hs Using hscolour version 1.17 found on system at: /usr/local/bin/HsColour Using hugs found on system at: /usr/local/bin/hugs No jhc found Using ld found on system at: /usr/bin/ld No lhc found No lhc-pkg found No nhc98 found Using pkg-config version 0.25 found on system at: /usr/bin/pkg-config Using ranlib found on system at: /usr/bin/ranlib Using strip found on system at: /usr/bin/strip Using tar found on system at: /bin/tar No uhc found *** setup build Creating dist/build (and its parents) Creating dist/build/autogen (and its parents) Preprocessing library BASIC-0.1.5.0... Building BASIC-0.1.5.0... Building library... Creating dist/build (and its parents) /usr/local/bin/ghc --make -package-name BASIC-0.1.5.0 -hide-all-packages -fbuilding-cabal-package -i -idist/build -i. -idist/build/autogen -Idist/build/autogen -Idist/build -optP-include -optPdist/build/autogen/cabal_macros.h -odir dist/build -hidir dist/build -stubdir dist/build -package-id base-4.3.0.0-b91367e4fa5bd47d8e75958171ad21b7 -package-id containers-0.4.0.0-5e5729c8cc8101038443c9bd0115af01 -package-id llvm-0.9.0.1-a4ea8abab4ee9e750d90f678d123c2fd -package-id random-1.0.0.3-e73ca4e6797f67d6994ecb5329f5b9fc -package-id timeit-1.0.0.0-50a0b0c3a6125028885a821406262306 -O -XHaskell98 Language.BASIC Language.BASIC.Interp Language.BASIC.Parser Language.BASIC.Translate Language.BASIC.Types [1 of 5] Compiling Language.BASIC.Types ( Language/BASIC/Types.hs, dist/build/Language/BASIC/Types.o ) [2 of 5] Compiling Language.BASIC.Interp ( Language/BASIC/Interp.hs, dist/build/Language/BASIC/Interp.o ) [3 of 5] Compiling Language.BASIC.Translate ( Language/BASIC/Translate.hs, dist/build/Language/BASIC/Translate.o ) Language/BASIC/Translate.hs:143:24: Ambiguous type variable `n2' in the constraint: (type-level-0.2.4:Data.TypeLevel.Num.Sets.NatI n2) arising from a use of `getElementPtr' Probable fix: add a type signature that fixes these type variable(s) In a stmt of a 'do' expression: tmp <- getElementPtr fmtn (0 :: Word32, (0 :: Word32, ())) In the expression: do { tmp <- getElementPtr fmtn (0 :: Word32, (0 :: Word32, ())); call printfn tmp } In an equation for `newline': newline = do { tmp <- getElementPtr fmtn (0 :: Word32, (0 :: Word32, ())); call printfn tmp } Language/BASIC/Translate.hs:147:24: Ambiguous type variable `n1' in the constraint: (type-level-0.2.4:Data.TypeLevel.Num.Sets.NatI n1) arising from a use of `getElementPtr' Probable fix: add a type signature that fixes these type variable(s) In a stmt of a 'do' expression: tmp <- getElementPtr fmts (0 :: Word32, (0 :: Word32, ())) In the expression: do { tmp <- getElementPtr fmts (0 :: Word32, (0 :: Word32, ())); tmpa <- getElementPtr (strmap ! s) (0 :: Word32, (0 :: Word32, ())); call printfs tmp tmpa } In an equation for `pr': pr (Str s) = do { tmp <- getElementPtr fmts (0 :: Word32, (0 :: Word32, ())); tmpa <- getElementPtr (strmap ! s) (0 :: Word32, (0 :: Word32, ())); call printfs tmp tmpa } Language/BASIC/Translate.hs:148:25: Ambiguous type variable `n3' in the constraint: (type-level-0.2.4:Data.TypeLevel.Num.Sets.NatI n3) arising from a use of `getElementPtr' Probable fix: add a type signature that fixes these type variable(s) In a stmt of a 'do' expression: tmpa <- getElementPtr (strmap ! s) (0 :: Word32, (0 :: Word32, ())) In the expression: do { tmp <- getElementPtr fmts (0 :: Word32, (0 :: Word32, ())); tmpa <- getElementPtr (strmap ! s) (0 :: Word32, (0 :: Word32, ())); call printfs tmp tmpa } In an equation for `pr': pr (Str s) = do { tmp <- getElementPtr fmts (0 :: Word32, (0 :: Word32, ())); tmpa <- getElementPtr (strmap ! s) (0 :: Word32, (0 :: Word32, ())); call printfs tmp tmpa } Language/BASIC/Translate.hs:152:24: Ambiguous type variable `n' in the constraint: (type-level-0.2.4:Data.TypeLevel.Num.Sets.NatI n) arising from a use of `getElementPtr' Probable fix: add a type signature that fixes these type variable(s) In a stmt of a 'do' expression: tmp <- getElementPtr fmtg (0 :: Word32, (0 :: Word32, ())) In the expression: do { d <- genExpr e; tmp <- getElementPtr fmtg (0 :: Word32, (0 :: Word32, ())); call printfd tmp d } In an equation for `pr': pr e = do { d <- genExpr e; tmp <- getElementPtr fmtg (0 :: Word32, (0 :: Word32, ())); call printfd tmp d }