Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 534182 - dev-haskell/happy-1.18.10 - setup build failed
Summary: dev-haskell/happy-1.18.10 - setup build failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-01 09:27 UTC by Dennis Schridde
Modified: 2015-01-02 11:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,14.61 KB, text/x-log)
2015-01-01 09:27 UTC, Dennis Schridde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2015-01-01 09:27:52 UTC
Created attachment 392836 [details]
build.log

Emerge quits with "setup build failed". Please have a look into the build.log for the actual issue.
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2015-01-02 10:05:46 UTC
Yeah, old happy needs old ghc.
happy-1.19.4 is fine, but it's in ~arch.

Build log:

[ 8 of 18] Compiling Parser           ( dist/build/happy/happy-tmp/Parser.hs, dist/build/happy/happy-tmp/Parser.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#))))))
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2015-01-02 11:39:35 UTC
I've added upper bound to stabilize new versions in time:

>  02 Jan 2015; Sergei Trofimovich <slyfox@gentoo.org>
>  -files/happy-1.18.6-missing-tests.patch, -files/happy-1.18.9-ghc-7.5.patch,
>  -happy-1.18.9.ebuild, happy-1.18.10.ebuild:
>  Disallow ghc-7.8 on happy generating old lexers (bug #534182 by Dennis
>  Schridde).

Thanks!