Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 609464 - dev-haskell/memory-0.10 does not build with ghc-8.0.2
Summary: dev-haskell/memory-0.10 does not build with ghc-8.0.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-15 19:32 UTC by Helmut Jarausch
Modified: 2017-02-17 21:56 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2017-02-15 19:32:10 UTC
Installation of haskell packages seems to be a mess.

dev-haskell/mtl-2.2.1-r1 tries to downgrade dev-haskell/transformers from 
0.5.2.0 to 0.4.3.0 which fails to build (0.5.2.0 does build OK)

Then dev-haskell/memory-0.10 does not build with ghc-8.0.2 gives
Preprocessing library memory-0.10...
[ 1 of 28] Compiling Data.Memory.MemMap.Posix ( dist/build/Data/Memory/MemMap/Posix.hs, dist/build/Data/Memory/MemMap/Posix.o )
[ 2 of 28] Compiling Data.Memory.Internal.DeepSeq ( Data/Memory/Internal/DeepSeq.hs, dist/build/Data/Memory/Internal/DeepSeq.o )
[ 3 of 28] Compiling Data.Memory.Internal.Imports ( Data/Memory/Internal/Imports.hs, dist/build/Data/Memory/Internal/Imports.o )
[ 4 of 28] Compiling Data.Memory.PtrMethods ( Data/Memory/PtrMethods.hs, dist/build/Data/Memory/PtrMethods.o )
[ 5 of 28] Compiling Data.Memory.Internal.CompatPrim64 ( Data/Memory/Internal/CompatPrim64.hs, dist/build/Data/Memory/Internal/CompatPrim64.o )
[ 6 of 28] Compiling Data.Memory.Internal.CompatPrim ( Data/Memory/Internal/CompatPrim.hs, dist/build/Data/Memory/Internal/CompatPrim.o )

Data/Memory/Internal/CompatPrim.hs:80:23: error:
    * Variable not in scope: quotRemInt :: Int# -> Int# -> (# t1, t #)
    * Perhaps you meant one of these:
        `quotRemInt#' (imported from GHC.Prim),
        `quotRem' (imported from Prelude)

Data/Memory/Internal/CompatPrim.hs:81:25: error:
    * Couldn't match a lifted type with an unlifted type
      When matching the kind of `Int#'
    * In the first argument of `(==#)', namely `r'
      In the first argument of `booleanPrim', namely `(r ==# 0)'
      In the expression: booleanPrim (r ==# 0)

Data/Memory/Internal/CompatPrim.hs:81:31: error:
    * Couldn't match a lifted type with an unlifted type
      When matching the kind of `Int#'
    * In the second argument of `(==#)', namely `0'
      In the first argument of `booleanPrim', namely `(r ==# 0)'
      In the expression: booleanPrim (r ==# 0)

Data/Memory/Internal/CompatPrim.hs:82:21: error:
    * Couldn't match a lifted type with an unlifted type
      When matching the kind of `Int#'
    * In the first argument of `f8', namely `q'
      In the expression: f8 q
      In the expression: if booleanPrim (r ==# 0) then f8 q else f1 v

So, I have to give up.
The dev-haskell packages are always the most difficult ones on my Gentoo system.
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2017-02-17 21:56:36 UTC
memory-0.14.1 should be compatible with ghc-8.0.2: https://gitweb.gentoo.org/repo/gentoo.git/commit/dev-haskell/memory?id=3516e0bda499b9ae3734b50e7097e3dafeca7909

haskell-updater run should sort update path out.