Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 729416 - dev-haskell/cabal-1.24.2.0 fails to compile: ‘fail’ is not a (visible) method of class ‘Monad’
Summary: dev-haskell/cabal-1.24.2.0 fails to compile: ‘fail’ is not a (visible) metho...
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: 2020-06-24 11:20 UTC by Agostino Sarubbo
Modified: 2020-08-03 07:11 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,13.10 KB, text/plain)
2020-06-24 11:20 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-06-24 11:20:24 UTC
@@This is an auto-filed bug@@
Feel free to change the summary at your convenience.

Issue: dev-haskell/cabal fails to compile.
Discovered on: amd64

NOTE:
If yout think this issue is related to clang/llvm toolchain, please block bug 408963. If you need further logs, feel free to ask.
Comment 1 Agostino Sarubbo gentoo-dev 2020-06-24 11:20:31 UTC
Created attachment 646024 [details]
build.log

build log and emerge --info
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2020-06-24 21:02:57 UTC
The build failure is:

"""
>>> Unpacking source...
>>> Unpacking Cabal-1.24.2.0.tar.gz to /var/tmp/portage/dev-haskell/cabal-1.24.2.0/work
>>> Source unpacked in /var/tmp/portage/dev-haskell/cabal-1.24.2.0/work
>>> Preparing source in /var/tmp/portage/dev-haskell/cabal-1.24.2.0/work/Cabal-1.24.2.0 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-haskell/cabal-1.24.2.0/work/Cabal-1.24.2.0 ...
 * Using cabal-3.2.0.0.
 * Prepending /usr/lib64/ghc-8.10.1 to LD_LIBRARY_PATH
/usr/bin/ghc -package Cabal-3.2.0.0 --make /var/tmp/portage/dev-haskell/cabal-1.24.2.0/work/Cabal-1.24.2.0/Setup.hs -j2 +RTS -A256M -qb0 -RTS -threaded -dynamic -o setup
[ 1 of 84] Compiling Distribution.Compat.Binary ( Distribution/Compat/Binary.hs, Distribution/Compat/Binary.o )
[ 2 of 84] Compiling Distribution.Compat.CreatePipe ( Distribution/Compat/CreatePipe.hs, Distribution/Compat/CreatePipe.o )
[ 3 of 84] Compiling Distribution.Compat.Environment ( Distribution/Compat/Environment.hs, Distribution/Compat/Environment.o )
[ 4 of 84] Compiling Distribution.Compat.Exception ( Distribution/Compat/Exception.hs, Distribution/Compat/Exception.o )
[ 5 of 84] Compiling Distribution.Compat.GetShortPathName ( Distribution/Compat/GetShortPathName.hs, Distribution/Compat/GetShortPathName.o )
[ 6 of 84] Compiling Distribution.Compat.Internal.TempFile ( Distribution/Compat/Internal/TempFile.hs, Distribution/Compat/Internal/TempFile.o )
[ 7 of 84] Compiling Distribution.Compat.CopyFile ( Distribution/Compat/CopyFile.hs, Distribution/Compat/CopyFile.o )
[ 8 of 84] Compiling Distribution.Compat.MonadFail ( Distribution/Compat/MonadFail.hs, Distribution/Compat/MonadFail.o )
[ 9 of 84] Compiling Distribution.Compat.ReadP ( Distribution/Compat/ReadP.hs, Distribution/Compat/ReadP.o )

[;1mDistribution/Compat/ReadP.hs:109:3: [;1m[31merror:[0m[0m[;1m[0m[0m[;1m
    ‘fail’ is not a (visible) method of class ‘Monad’[0m[0m
[;1m[34m    |[0m[0m
"""

Such an old Cabal is not compatible with new masked ghc. We need to bring in cabal-3 in tree and I kept slacking at it.
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2020-08-03 07:11:26 UTC
Latest ~arch cabal-3 is in tree. Should work now.