Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error with ghc HEAD (7.7.20131106) #60

Closed
schell opened this issue Nov 7, 2013 · 14 comments
Closed

Compilation error with ghc HEAD (7.7.20131106) #60

schell opened this issue Nov 7, 2013 · 14 comments

Comments

@schell
Copy link

schell commented Nov 7, 2013

[19 of 22] Compiling Language.Haskell.Exts.InternalParser ( dist/build/Language/Haskell/Exts/InternalParser.hs, dist/build/Language/Haskell/Exts/InternalParser.o )
templates/GenericTemplate.hs:104:22:
    Couldn't match expected type ‛Bool’
                with actual type ‛Happy_GHC_Exts.Int#’
    In the expression:
      (n Happy_GHC_Exts.<# (0# :: Happy_GHC_Exts.Int#))
    In a stmt of a pattern guard for
                   a case alternative:
      (n Happy_GHC_Exts.<# (0# :: Happy_GHC_Exts.Int#))
    In a case alternative:
        n | (n Happy_GHC_Exts.<# (0# :: Happy_GHC_Exts.Int#))
          -> (happyReduceArr Happy_Data_Array.! rule) i tk st
          where
              rule
                = (Happy_GHC_Exts.I#
                     ((Happy_GHC_Exts.negateInt#
                         ((n Happy_GHC_Exts.+# (1# :: Happy_GHC_Exts.Int#))))))

templates/GenericTemplate.hs:115:23:
    Couldn't match expected type ‛Bool’
                with actual type ‛Happy_GHC_Exts.Int#’
    In the expression:
      (off_i Happy_GHC_Exts.>=# (0# :: Happy_GHC_Exts.Int#))
    In the expression:
      if (off_i Happy_GHC_Exts.>=# (0# :: Happy_GHC_Exts.Int#)) then
          (indexShortOffAddr happyCheck off_i Happy_GHC_Exts.==# i)
      else
          False
    In an equation for ‛check’:
        check
          = if (off_i Happy_GHC_Exts.>=# (0# :: Happy_GHC_Exts.Int#)) then
                (indexShortOffAddr happyCheck off_i Happy_GHC_Exts.==# i)
            else
                False

templates/GenericTemplate.hs:117:30:
    Couldn't match expected type ‛Happy_GHC_Exts.Int#’
                with actual type ‛Bool’
    In the expression: False
    In the expression:
      if (off_i Happy_GHC_Exts.>=# (0# :: Happy_GHC_Exts.Int#)) then
          (indexShortOffAddr happyCheck off_i Happy_GHC_Exts.==# i)
      else
          False

templates/GenericTemplate.hs:119:13:
    Couldn't match expected type ‛Bool’
                with actual type ‛Happy_GHC_Exts.Int#’
    In the expression: check
    In a stmt of a pattern guard for
                   a pattern binding:
      check

templates/GenericTemplate.hs:212:14:
    Pattern bindings containing unlifted types should use an outermost bang pattern:
      (sts1@((HappyCons (st1@(action)) (_))))
        = happyDrop k (HappyCons (st) (sts))
    In an equation for ‛happyMonadReduce’:
        happyMonadReduce k nt fn j tk st sts stk
          = happyThen1
              (fn stk tk)
              (\ r -> happyGoto nt j tk st1 sts1 (r `HappyStk` drop_stk))
          where
              (sts1@((HappyCons (st1@(action)) (_))))
                = happyDrop k (HappyCons (st) (sts))
              drop_stk = happyDropStk k stk

templates/GenericTemplate.hs:219:14:
    Pattern bindings containing unlifted types should use an outermost bang pattern:
      (sts1@((HappyCons (st1@(action)) (_))))
        = happyDrop k (HappyCons (st) (sts))
    In an equation for ‛happyMonad2Reduce’:
        happyMonad2Reduce k nt fn j tk st sts stk
          = happyThen1
              (fn stk tk)
              (\ r -> happyNewToken new_state sts1 (r `HappyStk` drop_stk))
          where
              (sts1@((HappyCons (st1@(action)) (_))))
                = happyDrop k (HappyCons (st) (sts))
              drop_stk = happyDropStk k stk
              (off) = indexShortOffAddr happyGotoOffsets st1
              (off_i) = (off Happy_GHC_Exts.+# nt)
              ....

Here's my ghc -v:

Glasgow Haskell Compiler, Version 7.7.20131106, stage 2 booted by GHC version 7.6.3
Using binary package database: /usr/local/lib/ghc-7.7.20131106/package.conf.d/package.cache
Using binary package database: /Users/schell/.ghc/x86_64-darwin-7.7.20131106/package.conf.d/package.cache
wired-in package ghc-prim mapped to ghc-prim-0.3.1.0-e46956cad40995d806d21a12caed6e94
wired-in package integer-gmp mapped to integer-gmp-0.5.1.0-2e41ffaefd9e5bad3171884486a8899b
wired-in package base mapped to base-4.7.0.0-b0a03fcafbec65366d8c02c935053de2
wired-in package rts mapped to builtin_rts
wired-in package template-haskell mapped to template-haskell-2.9.0.0-01c310fe1b1b623eb903ad4c41b60c15
wired-in package dph-seq not found.
wired-in package dph-par not found.
@UnkindPartition
Copy link
Member

Which version of happy do you have? Try happy-1.19

@schell
Copy link
Author

schell commented Nov 9, 2013

It looks like I'm using happy-1.19.0. Could it be that there is another version that is getting used somehow?

@UnkindPartition
Copy link
Member

Try running cabal install with -v. If you don't find the problem, please paste the whole log.

(FWIW, I've compiled HSE with ghc-7.7.20131103, so unless there were some big changes during those 4 days, the problem is likely on your side.)

@schell
Copy link
Author

schell commented Nov 9, 2013

Seems it's picking up happy 1.19:

Reading available packages...
Choosing modular solver.
Resolving dependencies...
Ready to install happy-1.19.0
Waiting for install task to finish...
Extracting
/Users/schell/Library/Haskell/repo-cache/hackage.haskell.org/happy/1.19.0/happy-1.19.0.tar.gz
to /var/folders/0b/07829wy51gjfns2nqrfxdms40000gn/T/happy-1.19.0-54411...
Updating happy.cabal with the latest revision from the index.
creating
/var/folders/0b/07829wy51gjfns2nqrfxdms40000gn/T/happy-1.19.0-54411/happy-1.19.0/dist/setup
/usr/local/bin/ghc --make -odir /var/folders/0b/07829wy51gjfns2nqrfxdms40000gn/T/happy-1.19.0-54411/happy-1.19.0/dist/setup -hidir /var/folders/0b/07829wy51gjfns2nqrfxdms40000gn/T/happy-1.19.0-54411/happy-1.19.0/dist/setup -i -i/var/folders/0b/07829wy51gjfns2nqrfxdms40000gn/T/happy-1.19.0-54411/happy-1.19.0 -package-id Cabal-1.18.1.1-aadd3c97ee9be0729eadabb0604663b1 /var/folders/0b/07829wy51gjfns2nqrfxdms40000gn/T/happy-1.19.0-54411/happy-1.19.0/Setup.lhs -o /var/folders/0b/07829wy51gjfns2nqrfxdms40000gn/T/happy-1.19.0-54411/happy-1.19.0/dist/setup/setup
[1 of 1] Compiling Main             ( /var/folders/0b/07829wy51gjfns2nqrfxdms40000gn/T/happy-1.19.0-54411/happy-1.19.0/Setup.lhs, /var/folders/0b/07829wy51gjfns2nqrfxdms40000gn/T/happy-1.19.0-54411/happy-1.19.0/dist/setup/Main.o )
Linking /var/folders/0b/07829wy51gjfns2nqrfxdms40000gn/T/happy-1.19.0-54411/happy-1.19.0/dist/setup/setup ...
/var/folders/0b/07829wy51gjfns2nqrfxdms40000gn/T/happy-1.19.0-54411/happy-1.19.0/dist/setup/setup
configure --verbose=2 --ghc
--prefix=/Users/schell/Library/Haskell/ghc-7.7.20131106/lib/happy-1.19.0
--bindir=/Users/schell/Library/Haskell/ghc-7.7.20131106/lib/happy-1.19.0/bin
--libdir=/Users/schell/Library/Haskell/ghc-7.7.20131106/lib/happy-1.19.0/lib
--libsubdir=
--libexecdir=/Users/schell/Library/Haskell/ghc-7.7.20131106/lib/happy-1.19.0/libexec
--datadir=/Users/schell/Library/Haskell/ghc-7.7.20131106/lib/happy-1.19.0/share
--datasubdir=
--docdir=/Users/schell/Library/Haskell/ghc-7.7.20131106/lib/happy-1.19.0/doc
--htmldir=/Users/schell/Library/Haskell/ghc-7.7.20131106/lib/happy-1.19.0/doc/html
--haddockdir=/Users/schell/Library/Haskell/ghc-7.7.20131106/lib/happy-1.19.0/doc/html
--sysconfdir=/Users/schell/Library/Haskell/ghc-7.7.20131106/lib/happy-1.19.0/etc
--enable-library-profiling --user --flags=small_base --constraint=mtl ==2.1.2
--constraint=containers ==0.5.3.1 --constraint=base ==4.7.0.0
--constraint=array ==0.5.0.0 --disable-tests --disable-benchmarks
Configuring happy-1.19.0...
Flags chosen: small_base=True
Dependency array ==0.5.0.0: using array-0.5.0.0
Dependency base ==4.7.0.0: using base-4.7.0.0
Dependency containers ==0.5.3.1: using containers-0.5.3.1
Dependency mtl ==2.1.2: using mtl-2.1.2
/usr/local/bin/ghc --info
Using Cabal-1.18.1.1 compiled by ghc-7.7
Using compiler: ghc-7.7.20131106
Using install prefix:
/Users/schell/Library/Haskell/ghc-7.7.20131106/lib/happy-1.19.0
Binaries installed in:
/Users/schell/Library/Haskell/ghc-7.7.20131106/lib/happy-1.19.0/bin
Libraries installed in:
/Users/schell/Library/Haskell/ghc-7.7.20131106/lib/happy-1.19.0/lib
Private binaries installed in:
/Users/schell/Library/Haskell/ghc-7.7.20131106/lib/happy-1.19.0/libexec
Data files installed in:
/Users/schell/Library/Haskell/ghc-7.7.20131106/lib/happy-1.19.0/share
Documentation installed in:
/Users/schell/Library/Haskell/ghc-7.7.20131106/lib/happy-1.19.0/doc
Configuration files installed in:
/Users/schell/Library/Haskell/ghc-7.7.20131106/lib/happy-1.19.0/etc
Using alex version 3.1.0 found on system at:
/Users/schell/Library/Haskell/bin/alex
Using ar found on system at: /usr/bin/ar
No c2hs found
Using cpphs version 1.17.1 found on system at:
/Users/schell/Library/Haskell/bin/cpphs
No ffihugs found
Using gcc version 4.2.1 found on system at: /usr/local/bin/gcc
Using ghc version 7.7.20131106 found on system at: /usr/local/bin/ghc
Using ghc-pkg version 7.7.20131106 found on system at: /usr/local/bin/ghc-pkg
No greencard found
Using haddock version 2.13.2 found on system at: /usr/local/bin/haddock
Using happy version 1.19.0 found on system at:
/Users/schell/Library/Haskell/bin/happy
No hmake found
Using hpc found on system at: /usr/local/bin/hpc
Using hsc2hs version 0.67 found on system at: /usr/local/bin/hsc2hs
Using hscolour version 1.20 found on system at:
/Users/schell/Library/Haskell/bin/HsColour
No hugs found
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.28 found on system at: /usr/local/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: /usr/bin/tar
No uhc found
creating
/var/folders/0b/07829wy51gjfns2nqrfxdms40000gn/T/happy-1.19.0-54411/happy-1.19.0/dist/setup
/var/folders/0b/07829wy51gjfns2nqrfxdms40000gn/T/happy-1.19.0-54411/happy-1.19.0/dist/setup/setup
build --verbose=2
Component build order: executable 'happy'
creating dist/build
creating dist/build/autogen
Building happy-1.19.0...
Preprocessing executable 'happy' for happy-1.19.0...
Building executable happy...
creating dist/build/happy
creating dist/build/happy/happy-tmp
/usr/local/bin/ghc --info
/usr/local/bin/ghc --info
/usr/local/bin/ghc --make -no-link -fbuilding-cabal-package -O -static -outputdir dist/build/happy/happy-tmp -odir dist/build/happy/happy-tmp -hidir dist/build/happy/happy-tmp -stubdir dist/build/happy/happy-tmp -i -idist/build/happy/happy-tmp -isrc -idist/build/autogen -Idist/build/autogen -Idist/build/happy/happy-tmp -optP-include -optPdist/build/autogen/cabal_macros.h -hide-all-packages -package-db dist/package.conf.inplace -package-id array-0.5.0.0-8843136a2525dafe75247e490a64ef96 -package-id base-4.7.0.0-b0a03fcafbec65366d8c02c935053de2 -package-id containers-0.5.3.1-aee8c481527ce098e1de4b0583295824 -package-id mtl-2.1.2-ee25269c1b41607581add6e35bd88096 -XHaskell98 -XCPP -XMagicHash src/Main.lhs -Wall -fno-warn-type-defaults
[ 1 of 18] Compiling NameSet          ( src/NameSet.hs, dist/build/happy/happy-tmp/NameSet.o )
[ 2 of 18] Compiling Target           ( src/Target.lhs, dist/build/happy/happy-tmp/Target.o )
[ 3 of 18] Compiling AbsSyn           ( src/AbsSyn.lhs, dist/build/happy/happy-tmp/AbsSyn.o )
[ 4 of 18] Compiling ParamRules       ( src/ParamRules.hs, dist/build/happy/happy-tmp/ParamRules.o )
[ 5 of 18] Compiling GenUtils         ( src/GenUtils.lhs, dist/build/happy/happy-tmp/GenUtils.o )
[ 6 of 18] Compiling ParseMonad       ( src/ParseMonad.lhs, dist/build/happy/happy-tmp/ParseMonad.o )
[ 7 of 18] Compiling Lexer            ( src/Lexer.lhs, dist/build/happy/happy-tmp/Lexer.o )
[ 8 of 18] Compiling Parser           ( dist/build/happy/happy-tmp/Parser.hs, dist/build/happy/happy-tmp/Parser.o )
Failed to install happy-1.19.0
World file is already up to date.

But it still generates the same error. I wonder what the difference is between your setup and mine if you can successfully build and I can't. :(

@UnkindPartition
Copy link
Member

You pasted the log from installing happy. I'd rather see the log from haskell-src-exts :)

@schell
Copy link
Author

schell commented Nov 9, 2013

Haha - I totally did. I'm sorry. I'm installing HSE again ASAP.

@schell
Copy link
Author

schell commented Nov 9, 2013

Here is the log for HSE:

Reading available packages...
Choosing modular solver.
Resolving dependencies...
Ready to install haskell-src-exts-1.14.0
Waiting for install task to finish...
Extracting
/Users/schell/Library/Haskell/repo-cache/hackage.haskell.org/haskell-src-exts/1.14.0/haskell-src-exts-1.14.0.tar.gz
to
/var/folders/0b/07829wy51gjfns2nqrfxdms40000gn/T/haskell-src-exts-1.14.0-55018...
Updating haskell-src-exts.cabal with the latest revision from the index.
creating
/var/folders/0b/07829wy51gjfns2nqrfxdms40000gn/T/haskell-src-exts-1.14.0-55018/haskell-src-exts-1.14.0/dist/setup
/usr/local/bin/ghc --make -odir /var/folders/0b/07829wy51gjfns2nqrfxdms40000gn/T/haskell-src-exts-1.14.0-55018/haskell-src-exts-1.14.0/dist/setup -hidir /var/folders/0b/07829wy51gjfns2nqrfxdms40000gn/T/haskell-src-exts-1.14.0-55018/haskell-src-exts-1.14.0/dist/setup -i -i/var/folders/0b/07829wy51gjfns2nqrfxdms40000gn/T/haskell-src-exts-1.14.0-55018/haskell-src-exts-1.14.0 -package-id Cabal-1.18.1.1-aadd3c97ee9be0729eadabb0604663b1 /var/folders/0b/07829wy51gjfns2nqrfxdms40000gn/T/haskell-src-exts-1.14.0-55018/haskell-src-exts-1.14.0/Setup.hs -o /var/folders/0b/07829wy51gjfns2nqrfxdms40000gn/T/haskell-src-exts-1.14.0-55018/haskell-src-exts-1.14.0/dist/setup/setup
[1 of 1] Compiling Main             ( /var/folders/0b/07829wy51gjfns2nqrfxdms40000gn/T/haskell-src-exts-1.14.0-55018/haskell-src-exts-1.14.0/Setup.hs, /var/folders/0b/07829wy51gjfns2nqrfxdms40000gn/T/haskell-src-exts-1.14.0-55018/haskell-src-exts-1.14.0/dist/setup/Main.o )
Linking /var/folders/0b/07829wy51gjfns2nqrfxdms40000gn/T/haskell-src-exts-1.14.0-55018/haskell-src-exts-1.14.0/dist/setup/setup ...
/var/folders/0b/07829wy51gjfns2nqrfxdms40000gn/T/haskell-src-exts-1.14.0-55018/haskell-src-exts-1.14.0/dist/setup/setup
configure --verbose=2 --ghc
--prefix=/Users/schell/Library/Haskell/ghc-7.7.20131106/lib/haskell-src-exts-1.14.0
--bindir=/Users/schell/Library/Haskell/ghc-7.7.20131106/lib/haskell-src-exts-1.14.0/bin
--libdir=/Users/schell/Library/Haskell/ghc-7.7.20131106/lib/haskell-src-exts-1.14.0/lib
--libsubdir=
--libexecdir=/Users/schell/Library/Haskell/ghc-7.7.20131106/lib/haskell-src-exts-1.14.0/libexec
--datadir=/Users/schell/Library/Haskell/ghc-7.7.20131106/lib/haskell-src-exts-1.14.0/share
--datasubdir=
--docdir=/Users/schell/Library/Haskell/ghc-7.7.20131106/lib/haskell-src-exts-1.14.0/doc
--htmldir=/Users/schell/Library/Haskell/ghc-7.7.20131106/lib/haskell-src-exts-1.14.0/doc/html
--haddockdir=/Users/schell/Library/Haskell/ghc-7.7.20131106/lib/haskell-src-exts-1.14.0/doc/html
--sysconfdir=/Users/schell/Library/Haskell/ghc-7.7.20131106/lib/haskell-src-exts-1.14.0/etc
--enable-library-profiling --user --flags=base4 --constraint=pretty ==1.1.1.1
--constraint=cpphs ==1.17.1 --constraint=base ==4.7.0.0 --constraint=array
==0.5.0.0 --disable-tests --disable-benchmarks
Configuring haskell-src-exts-1.14.0...
Flags chosen: base4=True
Dependency array ==0.5.0.0: using array-0.5.0.0
Dependency base ==4.7.0.0: using base-4.7.0.0
Dependency cpphs ==1.17.1: using cpphs-1.17.1
Dependency pretty ==1.1.1.1: using pretty-1.1.1.1
Warning: cannot determine version of /usr/local/bin/hpc :
""
/usr/local/bin/ghc --info
Using Cabal-1.18.1.1 compiled by ghc-7.7
Using compiler: ghc-7.7.20131106
Using install prefix:
/Users/schell/Library/Haskell/ghc-7.7.20131106/lib/haskell-src-exts-1.14.0
Binaries installed in:
/Users/schell/Library/Haskell/ghc-7.7.20131106/lib/haskell-src-exts-1.14.0/bin
Libraries installed in:
/Users/schell/Library/Haskell/ghc-7.7.20131106/lib/haskell-src-exts-1.14.0/lib
Private binaries installed in:
/Users/schell/Library/Haskell/ghc-7.7.20131106/lib/haskell-src-exts-1.14.0/libexec
Data files installed in:
/Users/schell/Library/Haskell/ghc-7.7.20131106/lib/haskell-src-exts-1.14.0/share
Documentation installed in:
/Users/schell/Library/Haskell/ghc-7.7.20131106/lib/haskell-src-exts-1.14.0/doc
Configuration files installed in:
/Users/schell/Library/Haskell/ghc-7.7.20131106/lib/haskell-src-exts-1.14.0/etc
Using alex version 3.1.0 found on system at:
/Users/schell/Library/Haskell/bin/alex
Using ar found on system at: /usr/bin/ar
No c2hs found
Using cpphs version 1.17.1 found on system at:
/Users/schell/Library/Haskell/bin/cpphs
No ffihugs found
Using gcc version 4.2.1 found on system at: /usr/local/bin/gcc
Using ghc version 7.7.20131106 found on system at: /usr/local/bin/ghc
Using ghc-pkg version 7.7.20131106 found on system at: /usr/local/bin/ghc-pkg
No greencard found
Using haddock version 2.13.2 found on system at: /usr/local/bin/haddock
Using happy version 1.19.0 found on system at:
/Users/schell/Library/Haskell/bin/happy
No hmake found
Using hpc found on system at: /usr/local/bin/hpc
Using hsc2hs version 0.67 found on system at: /usr/local/bin/hsc2hs
Using hscolour version 1.20 found on system at:
/Users/schell/Library/Haskell/bin/HsColour
No hugs found
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.28 found on system at: /usr/local/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: /usr/bin/tar
No uhc found
creating
/var/folders/0b/07829wy51gjfns2nqrfxdms40000gn/T/haskell-src-exts-1.14.0-55018/haskell-src-exts-1.14.0/dist/setup
/var/folders/0b/07829wy51gjfns2nqrfxdms40000gn/T/haskell-src-exts-1.14.0-55018/haskell-src-exts-1.14.0/dist/setup/setup
build --verbose=2
Component build order: library
creating dist/build
creating dist/build/autogen
Building haskell-src-exts-1.14.0...
Preprocessing library haskell-src-exts-1.14.0...
Building library...
/usr/local/bin/ghc --info
/usr/local/bin/ghc --info
creating dist/build
/usr/local/bin/ghc --make -fbuilding-cabal-package -O -static -dynamic-too -dynosuf dyn_o -dynhisuf dyn_hi -outputdir dist/build -odir dist/build -hidir dist/build -stubdir dist/build -i -idist/build -isrc -idist/build/autogen -Idist/build/autogen -Idist/build -optP-DBASE4 -optP-include -optPdist/build/autogen/cabal_macros.h -package-name haskell-src-exts-1.14.0 -hide-all-packages -package-db dist/package.conf.inplace -package-id array-0.5.0.0-8843136a2525dafe75247e490a64ef96 -package-id base-4.7.0.0-b0a03fcafbec65366d8c02c935053de2 -package-id cpphs-1.17.1-3d1e1cb3cce0c857ec883ac2b0a7d1cc -package-id pretty-1.1.1.1-a08629e04f9fcf7b1114ef14e3dc4e78 -XHaskell98 Language.Haskell.Exts Language.Haskell.Exts.Lexer Language.Haskell.Exts.Parser Language.Haskell.Exts.Pretty Language.Haskell.Exts.Syntax Language.Haskell.Exts.Extension Language.Haskell.Exts.Build Language.Haskell.Exts.Fixity Language.Haskell.Exts.Comments Language.Haskell.Exts.SrcLoc Language.Haskell.Exts.Annotated Language.Haskell.Exts.Annotated.Syntax Language.Haskell.Exts.Annotated.Fixity Language.Haskell.Exts.Annotated.Build Language.Haskell.Exts.Annotated.ExactPrint Language.Haskell.Exts.Annotated.Simplify Language.Haskell.Exts.ExtScheme Language.Haskell.Exts.ParseMonad Language.Haskell.Exts.ParseSyntax Language.Haskell.Exts.InternalLexer Language.Haskell.Exts.ParseUtils Language.Haskell.Exts.InternalParser
[ 1 of 22] Compiling Language.Haskell.Exts.Annotated.Syntax ( src/Language/Haskell/Exts/Annotated/Syntax.hs, dist/build/Language/Haskell/Exts/Annotated/Syntax.o )
[ 2 of 22] Compiling Language.Haskell.Exts.ParseSyntax ( src/Language/Haskell/Exts/ParseSyntax.hs, dist/build/Language/Haskell/Exts/ParseSyntax.o )
[ 3 of 22] Compiling Language.Haskell.Exts.Annotated.Build ( src/Language/Haskell/Exts/Annotated/Build.hs, dist/build/Language/Haskell/Exts/Annotated/Build.o )
[ 4 of 22] Compiling Language.Haskell.Exts.SrcLoc ( src/Language/Haskell/Exts/SrcLoc.hs, dist/build/Language/Haskell/Exts/SrcLoc.o )
[ 5 of 22] Compiling Language.Haskell.Exts.Comments ( src/Language/Haskell/Exts/Comments.hs, dist/build/Language/Haskell/Exts/Comments.o )
[ 6 of 22] Compiling Language.Haskell.Exts.Annotated.ExactPrint ( src/Language/Haskell/Exts/Annotated/ExactPrint.hs, dist/build/Language/Haskell/Exts/Annotated/ExactPrint.o )

src/Language/Haskell/Exts/Annotated/ExactPrint.hs:41:10: Warning:
    ‛EP’ is an instance of Monad but not Applicative - this will become an error in GHC 7.10, under the Applicative-Monad Proposal.
[ 7 of 22] Compiling Language.Haskell.Exts.Extension ( src/Language/Haskell/Exts/Extension.hs, dist/build/Language/Haskell/Exts/Extension.o )
[ 8 of 22] Compiling Language.Haskell.Exts.ExtScheme ( src/Language/Haskell/Exts/ExtScheme.hs, dist/build/Language/Haskell/Exts/ExtScheme.o )
[ 9 of 22] Compiling Language.Haskell.Exts.Syntax ( src/Language/Haskell/Exts/Syntax.hs, dist/build/Language/Haskell/Exts/Syntax.o )
[10 of 22] Compiling Language.Haskell.Exts.Build ( src/Language/Haskell/Exts/Build.hs, dist/build/Language/Haskell/Exts/Build.o )
[11 of 22] Compiling Language.Haskell.Exts.Fixity ( src/Language/Haskell/Exts/Fixity.hs, dist/build/Language/Haskell/Exts/Fixity.o )
[12 of 22] Compiling Language.Haskell.Exts.ParseMonad ( src/Language/Haskell/Exts/ParseMonad.hs, dist/build/Language/Haskell/Exts/ParseMonad.o )

src/Language/Haskell/Exts/ParseMonad.hs:199:10: Warning:
    ‛P’ is an instance of Monad but not Applicative - this will become an error in GHC 7.10, under the Applicative-Monad Proposal.

src/Language/Haskell/Exts/ParseMonad.hs:293:10: Warning:
    ‛Lex’ is an instance of Monad but not Applicative - this will become an error in GHC 7.10, under the Applicative-Monad Proposal.
[13 of 22] Compiling Language.Haskell.Exts.InternalLexer ( src/Language/Haskell/Exts/InternalLexer.hs, dist/build/Language/Haskell/Exts/InternalLexer.o )
[14 of 22] Compiling Language.Haskell.Exts.Lexer ( src/Language/Haskell/Exts/Lexer.hs, dist/build/Language/Haskell/Exts/Lexer.o )
[15 of 22] Compiling Language.Haskell.Exts.Annotated.Simplify ( src/Language/Haskell/Exts/Annotated/Simplify.hs, dist/build/Language/Haskell/Exts/Annotated/Simplify.o )
[16 of 22] Compiling Language.Haskell.Exts.Pretty ( src/Language/Haskell/Exts/Pretty.hs, dist/build/Language/Haskell/Exts/Pretty.o )

src/Language/Haskell/Exts/Pretty.hs:97:10: Warning:
    ‛DocM’ is an instance of Monad but not Applicative - this will become an error in GHC 7.10, under the Applicative-Monad Proposal.
[17 of 22] Compiling Language.Haskell.Exts.ParseUtils ( src/Language/Haskell/Exts/ParseUtils.hs, dist/build/Language/Haskell/Exts/ParseUtils.o )
[18 of 22] Compiling Language.Haskell.Exts.Annotated.Fixity ( src/Language/Haskell/Exts/Annotated/Fixity.hs, dist/build/Language/Haskell/Exts/Annotated/Fixity.o )
[19 of 22] Compiling Language.Haskell.Exts.InternalParser ( dist/build/Language/Haskell/Exts/InternalParser.hs, dist/build/Language/Haskell/Exts/InternalParser.o )

templates/GenericTemplate.hs:104:22:
    Couldn't match expected type ‛Bool’
                with actual type ‛Happy_GHC_Exts.Int#’
    In the expression:
      (n Happy_GHC_Exts.<# (0# :: Happy_GHC_Exts.Int#))
    In a stmt of a pattern guard for
                   a case alternative:
      (n Happy_GHC_Exts.<# (0# :: Happy_GHC_Exts.Int#))
    In a case alternative:
        n | (n Happy_GHC_Exts.<# (0# :: Happy_GHC_Exts.Int#))
          -> (happyReduceArr Happy_Data_Array.! rule) i tk st
          where
              rule
                = (Happy_GHC_Exts.I#
                     ((Happy_GHC_Exts.negateInt#
                         ((n Happy_GHC_Exts.+# (1# :: Happy_GHC_Exts.Int#))))))

templates/GenericTemplate.hs:115:23:
    Couldn't match expected type ‛Bool’
                with actual type ‛Happy_GHC_Exts.Int#’
    In the expression:
      (off_i Happy_GHC_Exts.>=# (0# :: Happy_GHC_Exts.Int#))
    In the expression:
      if (off_i Happy_GHC_Exts.>=# (0# :: Happy_GHC_Exts.Int#)) then
          (indexShortOffAddr happyCheck off_i Happy_GHC_Exts.==# i)
      else
          False
    In an equation for ‛check’:
        check
          = if (off_i Happy_GHC_Exts.>=# (0# :: Happy_GHC_Exts.Int#)) then
                (indexShortOffAddr happyCheck off_i Happy_GHC_Exts.==# i)
            else
                False

templates/GenericTemplate.hs:117:30:
    Couldn't match expected type ‛Happy_GHC_Exts.Int#’
                with actual type ‛Bool’
    In the expression: False
    In the expression:
      if (off_i Happy_GHC_Exts.>=# (0# :: Happy_GHC_Exts.Int#)) then
          (indexShortOffAddr happyCheck off_i Happy_GHC_Exts.==# i)
      else
          False

templates/GenericTemplate.hs:119:13:
    Couldn't match expected type ‛Bool’
                with actual type ‛Happy_GHC_Exts.Int#’
    In the expression: check
    In a stmt of a pattern guard for
                   a pattern binding:
      check

templates/GenericTemplate.hs:212:14:
    Pattern bindings containing unlifted types should use an outermost bang pattern:
      (sts1@((HappyCons (st1@(action)) (_))))
        = happyDrop k (HappyCons (st) (sts))
    In an equation for ‛happyMonadReduce’:
        happyMonadReduce k nt fn j tk st sts stk
          = happyThen1
              (fn stk tk)
              (\ r -> happyGoto nt j tk st1 sts1 (r `HappyStk` drop_stk))
          where
              (sts1@((HappyCons (st1@(action)) (_))))
                = happyDrop k (HappyCons (st) (sts))
              drop_stk = happyDropStk k stk

templates/GenericTemplate.hs:219:14:
    Pattern bindings containing unlifted types should use an outermost bang pattern:
      (sts1@((HappyCons (st1@(action)) (_))))
        = happyDrop k (HappyCons (st) (sts))
    In an equation for ‛happyMonad2Reduce’:
        happyMonad2Reduce k nt fn j tk st sts stk
          = happyThen1
              (fn stk tk)
              (\ r -> happyNewToken new_state sts1 (r `HappyStk` drop_stk))
          where
              (sts1@((HappyCons (st1@(action)) (_))))
                = happyDrop k (HappyCons (st) (sts))
              drop_stk = happyDropStk k stk
              (off) = indexShortOffAddr happyGotoOffsets st1
              (off_i) = (off Happy_GHC_Exts.+# nt)
              ....
Failed to install haskell-src-exts-1.14.0
World file is already up to date.
cabal: Error: some packages failed to install:
haskell-src-exts-1.14.0 failed during the building phase. The exception was:
ExitFailure 1

The issue I linked above at the happy repo seems to be about the same thing. But if you've been able to successfully compile HSE then maybe you've somehow fixed that issue?

@ghost
Copy link

ghost commented Nov 9, 2013

Root cause: GHC #6135, "Unboxed Booleans".

@schell
Copy link
Author

schell commented Nov 9, 2013

It seems when I git cloned the repo in cabal installed just fine. Weird?

@UnkindPartition
Copy link
Member

Yes, it's strange. For me it compiles either way.

@simonmar
Copy link
Contributor

You might have a copy of the Happy-generated code generated by an older version of Happy. cabal clean?

@ghost
Copy link

ghost commented Aug 25, 2014

I'm getting this error when trying to install haskell-src-exts-1.13.3 for VisualProf. Unfortunately, I believe VisualProf requires that version and I'm unable to clone 1.13.3 (I've only seen a tag for 1.13.0). Is there any other way around this?

@UnkindPartition
Copy link
Member

I pushed the tags for older haskell-src-exts releases (down to 1.12.0). However, this has nothing to do with this issue. See http://ro-che.info/articles/2014-03-08-happy-alex-ghc-7.8.html

@ghost
Copy link

ghost commented Aug 27, 2014

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants