Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 609350 - dev-haskell/cabal-1.22.8.0 fails to build
Summary: dev-haskell/cabal-1.22.8.0 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
: 609410 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-02-14 15:41 UTC by Helmut Jarausch
Modified: 2017-02-16 10:29 UTC (History)
10 users (show)

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


Attachments
build log (cabal-1.22.8.0.build,4.05 KB, text/plain)
2017-02-14 15:41 UTC, Helmut Jarausch
Details
emerge --info (emerge.info,5.32 KB, application/x-info)
2017-02-15 09:13 UTC, Neil
Details
build.log (build.log,3.61 KB, text/x-log)
2017-02-15 09:13 UTC, Neil
Details
emerge -pqv '=dev-haskell/cabal-1.22.8.0::gentoo' (file_609350.txt,121 bytes, text/plain)
2017-02-15 09:14 UTC, Neil
Details
environment (environment,106.51 KB, text/plain)
2017-02-15 09:14 UTC, Neil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2017-02-14 15:41:50 UTC
Created attachment 463718 [details]
build log

Distribution/Simple/Utils.hs:202:1: error:
    Failed to load interface for `Paths_Cabal'
    it is a hidden module in the package `Cabal-1.24.2.0'
    Use -v to see a list of the files searched for.
 * ERROR: dev-haskell/cabal-1.22.8.0::gentoo failed (configure phase):
 *   compiling Setup.hs failed
 * 
 * Call stack:
 *     ebuild.sh, line 115:  Called src_configure
 *   environment, line 2861:  Called die
 * The specific snippet of code:
 *       $(ghc-getghc) ${HCFLAGS} -i -i. -i"${WORKDIR}/${FP_P}" -cpp --make Setup.hs -o setup || die "compiling Setup.hs failed";

emerge --info dev-haskell/cabal 
Portage 2.3.3 (python 3.5.2-final-0, default/linux/amd64/13.0/desktop, gcc-6.3.0, glibc-2.25, 4.10.0-rc8 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.10.0-rc8-x86_64-AMD_Phenom-tm-_II_X4_940_Processor-with-gentoo-2.3
KiB Mem:     7903724 total,    357672 free
KiB Swap:    4194300 total,   4193580 free
Timestamp of repository gentoo: Tue, 14 Feb 2017 07:15:01 +0000
sh bash 4.4_p12
ld GNU ld (Gentoo 2.27 p1.0) 2.27
ccache version 3.3.3 [disabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1::gentoo
dev-lang/python:          2.7.12::gentoo, 3.5.2::gentoo, 3.6.0::gentoo
dev-util/ccache:          3.3.3::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.23.2::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.9.6-r4::gentoo, 1.10.3-r2::gentoo, 1.11.6-r2::gentoo, 1.12.6-r1::gentoo, 1.13.4-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.27::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo, 6.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.9::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.informatik.rwth-aachen.de/gentoo-portage
    priority: -1000

java
    location: /usr/local/portage/layman/java
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/java.git
    masters: gentoo
    priority: 50

lisp
    location: /usr/local/portage/layman/lisp
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/lisp.git
    masters: gentoo
    priority: 50

mv
    location: /usr/local/portage/layman/mv
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/user/mv.git
    masters: gentoo
    priority: 50

octave
    location: /usr/local/portage/layman/octave
    sync-type: laymansync
    sync-uri: git://github.com/rafaelmartins/octave-overlay.git
    masters: gentoo
    priority: 50

palemoon
    location: /usr/local/portage/layman/palemoon
    sync-type: laymansync
    sync-uri: https://github.com/deuiore/palemoon-overlay.git
    masters: gentoo
    priority: 50

science
    location: /usr/local/portage/layman/science
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/sci.git
    masters: gentoo
    priority: 50

sunrise
    location: /usr/local/portage/layman/sunrise
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/sunrise-reviewed.git
    masters: gentoo
    priority: 50

local
    location: /usr/local/portage
    masters: gentoo
    priority: 99

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=native -O2 -msse3 -pipe -fPIC"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-mtune=native -O2 -msse3 -pipe -fPIC"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo "
LANG="en_US.iso88591"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="3dnow 3dnowext 3dnowprefetch X a52 aac acl acpi alsa amd64 avahi berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam ffmpeg fftw firefox flac fortran fuse gdbm gfortran gif gimp glamor gpm gtk gtk3 iconv ipv6 jpeg lapack lcms libnotify mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf png policykit ppds python qt qt3support qt4 qt5 readline sdl seccomp session smp spell sqlite sqlite3 sse sse2 sse3 sse4a ssl startup-notification svg tcl tcpd threads tiff tk truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xulrunner xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow mmx 3dnowext mmxext popcnt sse sse2 sse3 sse4a" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc multiboot" INPUT_DEVICES="keyboard mouse evdev wacom" KERNEL="linux" L10N="en de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="radeon radeonsi r600" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 tman 2017-02-15 06:22:06 UTC
confirm this problem..


.o )
[13 of 79] Compiling Distribution.Compat.CopyFile ( Distribution/Compat/CopyFile.hs, Distribution/Compat/CopyFile.o )
[14 of 79] Compiling Distribution.Compat.Binary ( Distribution/Compat/Binary.hs, Distribution/Compat/Binary.o )
[15 of 79] Compiling Distribution.ModuleName ( Distribution/ModuleName.hs, Distribution/ModuleName.o )
[16 of 79] Compiling Distribution.System ( Distribution/System.hs, Distribution/System.o )
[17 of 79] Compiling Distribution.Verbosity ( Distribution/Verbosity.hs, Distribution/Verbosity.o )
[18 of 79] Compiling Distribution.Version ( Distribution/Version.hs, Distribution/Version.o )
[19 of 79] Compiling Distribution.License ( Distribution/License.hs, Distribution/License.o )
[20 of 79] Compiling Distribution.Package ( Distribution/Package.hs, Distribution/Package.o )
[21 of 79] Compiling Distribution.Simple.Utils ( Distribution/Simple/Utils.hs, Distribution/Simple/Utils.o )

Distribution/Simple/Utils.hs:202:1: error:
    Failed to load interface for ‘Paths_Cabal’
    it is a hidden module in the package ‘Cabal-1.24.2.0’
    Use -v to see a list of the files searched for.
 * ERROR: dev-haskell/cabal-1.22.8.0::gentoo failed (configure phase):
 *   compiling Setup.hs failed
 *
 * Call stack:
 *     ebuild.sh, line 115:  Called src_configure
 *   environment, line 2876:  Called die
 * The specific snippet of code:
 *       $(ghc-getghc) ${HCFLAGS} -i -i. -i"${WORKDIR}/${FP_P}" -cpp --make Setup.hs -o setup || die "compiling Setup.hs failed";
 *
 * If you need support, post the output of `emerge --info '=dev-haskell/c
Comment 2 Neil 2017-02-15 09:13:11 UTC
Created attachment 463804 [details]
emerge --info

Same problem here.
Comment 3 Neil 2017-02-15 09:13:48 UTC
Created attachment 463808 [details]
build.log
Comment 4 Neil 2017-02-15 09:14:30 UTC
Created attachment 463810 [details]
emerge -pqv '=dev-haskell/cabal-1.22.8.0::gentoo'
Comment 5 Neil 2017-02-15 09:14:58 UTC
Created attachment 463812 [details]
environment
Comment 6 bugtrack 2017-02-15 11:34:07 UTC
I just encountered this problem during a @world update.

For me this problem is now gone after syncing the portage tree once more (e.g. by running eix-sync): 
dev-haskell/cabal-1.24.2.0::gentoo is now available there and will be installed (as I'm using ~amd64 keywords).
Comment 7 Neil 2017-02-15 13:44:31 UTC
Tried that (since I'm also on ~amd64) and it resulted in multiple instances within a single package slot being pulled in for three packages...

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

dev-haskell/transformers:0

  (dev-haskell/transformers-0.5.2.0:0/0.5.2.0::gentoo, ebuild scheduled for merge) pulled in by
    (no parents that aren't satisfied by other packages in this slot)

  (dev-haskell/transformers-0.4.3.0:0/0.4.3.0::gentoo, ebuild scheduled for merge) pulled in by
    <dev-haskell/transformers-0.5:=[profile?] required by (dev-haskell/transformers-compat-0.4.0.4:0/0.4.0.4::gentoo, ebuild scheduled for merge)
    ^                         ^^^ ^                                                                                                                                                                                        

dev-haskell/binary:0

  (dev-haskell/binary-0.8.3.0:0/0.8.3.0::gentoo, ebuild scheduled for merge) pulled in by
    (no parents that aren't satisfied by other packages in this slot)

  (dev-haskell/binary-0.7.6.1:0/0.7.6.1::gentoo, ebuild scheduled for merge) pulled in by
    <dev-haskell/binary-0.8:=[profile?] required by (app-text/pandoc-1.15.0.6:0/1.15.0.6::gentoo, ebuild scheduled for merge)
    ^                   ^^^ ^                                                                                                                                                                          

dev-haskell/haddock-library:0

  (dev-haskell/haddock-library-1.4.2:0/1.4.2::gentoo, ebuild scheduled for merge) pulled in by
    (no parents that aren't satisfied by other packages in this slot)

  (dev-haskell/haddock-library-1.2.1:0/1.2.1::gentoo, ebuild scheduled for merge) pulled in by
    <dev-haskell/haddock-library-1.3:=[profile?] required by (app-text/pandoc-1.15.0.6:0/1.15.0.6::gentoo, ebuild scheduled for merge)
    ^                            ^^^ ^                       


I therefore unmerged the existing (older) packages and installed the new ones...


emerge -C dev-haskell/transformers dev-haskell/binary dev-haskell/haddock-library && emerge -1 dev-haskell/transformers dev-haskell/binary dev-haskell/haddock-library

...and attempted to update world and hit errors as a slotted (older) version of transformers was being emerged...

# emerge -uDN @world

The following packages are causing rebuilds:

  (dev-haskell/transformers-0.4.2.0:0/0.4.2.0::gentoo, ebuild scheduled for merge) causes rebuilds for:
    (dev-haskell/http-client-0.4.28:0/0.4.28::gentoo, ebuild scheduled for merge)
    (dev-haskell/attoparsec-0.13.0.2:0/0.13.0.2::gentoo, ebuild scheduled for merge)
    (dev-haskell/transformers-compat-0.4.0.4:0/0.4.0.4::gentoo, ebuild scheduled for merge)
    (dev-haskell/transformers-base-0.4.4:0/0.4.4::gentoo, ebuild scheduled for merge)
    (dev-haskell/tls-1.3.4:0/1.3.4::gentoo, ebuild scheduled for merge)
    (dev-haskell/mtl-2.2.1-r1:0/2.2.1::gentoo, ebuild scheduled for merge)
    (dev-haskell/resourcet-1.1.7.4:0/1.1.7.4::gentoo, ebuild scheduled for merge)
    (dev-haskell/temporary-1.2.0.4:0/1.2.0.4::gentoo, ebuild scheduled for merge)
    (dev-haskell/enclosed-exceptions-1.0.2:0/1.0.2::gentoo, ebuild scheduled for merge)
    (dev-haskell/xml-conduit-1.3.4.2:0/1.3.4.2::gentoo, ebuild scheduled for merge)
    (dev-haskell/monad-control-1.0.1.0:0/1.0.1.0::gentoo, ebuild scheduled for merge)
    (dev-haskell/cmdargs-0.10.14:0/0.10.14::gentoo, ebuild scheduled for merge)
    (dev-haskell/conduit-extra-1.1.13.1:0/1.1.13.1::gentoo, ebuild scheduled for merge)
    (dev-haskell/exceptions-0.8.3:0/0.8.3::gentoo, ebuild scheduled for merge)
    (dev-haskell/aeson-0.9.0.1:0/0.9.0.1::gentoo, ebuild scheduled for merge)
    (dev-haskell/mmorph-1.0.6:0/1.0.6::gentoo, ebuild scheduled for merge)
  (dev-haskell/binary-0.7.5.0:0/0.7.5.0::gentoo, ebuild scheduled for merge) causes rebuilds for:
    (dev-haskell/scientific-0.3.4.9:0/0.3.4.9::gentoo, ebuild scheduled for merge)
    (dev-haskell/sha-1.6.4.2:0/1.6.4.2::gentoo, ebuild scheduled for merge)
    (app-text/pandoc-1.15.0.6:0/1.15.0.6::gentoo, ebuild scheduled for merge)
    (dev-haskell/zip-archive-0.2.3.7:0/0.2.3.7::gentoo, ebuild scheduled for merge)
    (dev-haskell/text-1.2.2.1:0/1.2.2.1::gentoo, ebuild scheduled for merge)
  (dev-haskell/asn1-encoding-0.9.4:0/0.9.4::gentoo, ebuild scheduled for merge) causes rebuilds for:
    (dev-haskell/asn1-parse-0.9.4:0/0.9.4::gentoo, ebuild scheduled for merge)
    (dev-haskell/x509-store-1.6.1:0/1.6.1::gentoo, ebuild scheduled for merge)
    (dev-haskell/x509-1.6.3:0/1.6.3::gentoo, ebuild scheduled for merge)
    (dev-haskell/x509-validation-1.6.3:0/1.6.3::gentoo, ebuild scheduled for merge)
    (dev-haskell/tls-1.3.4:0/1.3.4::gentoo, ebuild scheduled for merge)
  (dev-haskell/haddock-library-1.2.1:0/1.2.1::gentoo, ebuild scheduled for merge) causes rebuilds for:
    (app-text/pandoc-1.15.0.6:0/1.15.0.6::gentoo, ebuild scheduled for merge)
>>> Verifying ebuild manifests
>>> Emerging (1 of 103) dev-haskell/transformers-0.4.2.0::gentoo
>>> Failed to emerge dev-haskell/transformers-0.4.2.0, Log file:
>>>  '/var/tmp/portage/dev-haskell/transformers-0.4.2.0/temp/build.log'
*** Resuming merge...
 * Package:    dev-haskell/transformers-0.4.2.0
 * Repository: gentoo
 * Maintainer: haskell@gentoo.org proxy-maint@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
 * Using cabal-1.24.2.0.
 * Prepending /usr/lib64/ghc-8.0.2 to LD_LIBRARY_PATH
/usr/bin/ghc -package Cabal-1.24.2.0 --make /var/tmp/portage/dev-haskell/transformers-0.4.2.0/work/transformers-0.4.2.0/Setup.hs -j8 +RTS -A256M -qb0 -RTS -threaded -dynamic -o setup
[1 of 1] Compiling Main             ( /var/tmp/portage/dev-haskell/transformers-0.4.2.0/work/transformers-0.4.2.0/Setup.hs, /var/tmp/portage/dev-haskell/transformers-0.4.2.0/work/transformers-0.4.2.0/Setup.o )
Linking setup ...
./setup configure --ghc --prefix=/usr --with-compiler=/usr/bin/ghc --with-hc-pkg=/usr/bin/ghc-pkg --prefix=/usr --libdir=/usr/lib64 --libsubdir=transformers-0.4.2.0/ghc-8.0.2 --datadir=/usr/share/ --datasubdir=transformers-0.4.2.0/ghc-8.0.2 --ghc-options=-j8 +RTS -A256M -qb0 -RTS --with-ar=x86_64-pc-linux-gnu-ar --ghc-option=-optc-O2 --ghc-option=-optc-pipe --ghc-option=-optl-Wl,-O1 --ghc-option=-optl-Wl,--as-needed --disable-executable-stripping --docdir=/usr/share/doc/transformers-0.4.2.0 --verbose --enable-shared --enable-executable-dynamic --sysconfdir=/etc --disable-library-stripping
Configuring transformers-0.4.2.0...
Dependency base >=2 && <6: using base-4.9.1.0
Using Cabal-1.24.2.0 compiled by ghc-8.0
Using compiler: ghc-8.0.2
Using install prefix: /usr
Binaries installed in: /usr/bin
Libraries installed in: /usr/lib64/transformers-0.4.2.0/ghc-8.0.2
Dynamic libraries installed in: /usr/lib64/x86_64-linux-ghc-8.0.2
Private binaries installed in: /usr/libexec
Data files installed in: /usr/share/transformers-0.4.2.0/ghc-8.0.2
Documentation installed in: /usr/share/doc/transformers-0.4.2.0
Configuration files installed in: /etc
No alex found
Using ar given by user at: /usr/bin/x86_64-pc-linux-gnu-ar
No c2hs found
No cpphs found
Using gcc version 5.4.0 found on system at: /usr/bin/x86_64-pc-linux-gnu-gcc
Using ghc version 8.0.2 given by user at: /usr/bin/ghc
Using ghc-pkg version 8.0.2 given by user at: /usr/bin/ghc-pkg
No ghcjs found
No ghcjs-pkg found
No greencard found
Using haddock version 2.17.3 found on system at: /usr/bin/haddock-ghc-8.0.2
No happy found
Using haskell-suite found on system at: haskell-suite-dummy-location
Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location
No hmake found
Using hpc version 0.67 found on system at: /usr/bin/hpc
Using hsc2hs version 0.68.1 found on system at: /usr/bin/hsc2hs
No hscolour found
No jhc found
Using ld found on system at: /usr/bin/x86_64-pc-linux-gnu-ld
No lhc found
No lhc-pkg found
Using pkg-config version 0.29.1 found on system at: /usr/bin/pkg-config
Using strip version 2.27 found on system at: /usr/bin/strip
Using tar found on system at: /bin/tar
No uhc found
./setup build
Building transformers-0.4.2.0...
Preprocessing library transformers-0.4.2.0...
[ 1 of 27] Compiling Data.Functor.Classes ( Data/Functor/Classes.hs, dist/build/Data/Functor/Classes.o )
[ 2 of 27] Compiling Data.Functor.Compose ( Data/Functor/Compose.hs, dist/build/Data/Functor/Compose.o )
[ 3 of 27] Compiling Data.Functor.Constant ( Data/Functor/Constant.hs, dist/build/Data/Functor/Constant.o )
[ 4 of 27] Compiling Data.Functor.Product ( Data/Functor/Product.hs, dist/build/Data/Functor/Product.o )
[ 5 of 27] Compiling Data.Functor.Sum ( Data/Functor/Sum.hs, dist/build/Data/Functor/Sum.o )
[ 6 of 27] Compiling Control.Monad.Trans.Class ( Control/Monad/Trans/Class.hs, dist/build/Control/Monad/Trans/Class.o )
[ 7 of 27] Compiling Control.Monad.Signatures ( Control/Monad/Signatures.hs, dist/build/Control/Monad/Signatures.o )
[ 8 of 27] Compiling Control.Monad.IO.Class ( Control/Monad/IO/Class.hs, dist/build/Control/Monad/IO/Class.o )
[ 9 of 27] Compiling Control.Monad.Trans.Cont ( Control/Monad/Trans/Cont.hs, dist/build/Control/Monad/Trans/Cont.o )

Control/Monad/Trans/Cont.hs:69:20: warning: [-Wtabs]
    Tab character found here, and in five further locations.
    Please use spaces instead.
[10 of 27] Compiling Control.Monad.Trans.Error ( Control/Monad/Trans/Error.hs, dist/build/Control/Monad/Trans/Error.o )

Control/Monad/Trans/Error.hs:69:10: error:
    Duplicate instance declarations:
      instance MonadPlus IO
        -- Defined at Control/Monad/Trans/Error.hs:69:10
      instance MonadPlus IO -- Defined in ‘GHC.Base’

Control/Monad/Trans/Error.hs:73:10: error:
    Duplicate instance declarations:
      instance Alternative IO
        -- Defined at Control/Monad/Trans/Error.hs:73:10
      instance Alternative IO -- Defined in ‘GHC.Base’
[11 of 27] Compiling Control.Monad.Trans.Except ( Control/Monad/Trans/Except.hs, dist/build/Control/Monad/Trans/Except.o )
[12 of 27] Compiling Control.Monad.Trans.Identity ( Control/Monad/Trans/Identity.hs, dist/build/Control/Monad/Trans/Identity.o )
[13 of 27] Compiling Control.Monad.Trans.List ( Control/Monad/Trans/List.hs, dist/build/Control/Monad/Trans/List.o )
[14 of 27] Compiling Control.Monad.Trans.Maybe ( Control/Monad/Trans/Maybe.hs, dist/build/Control/Monad/Trans/Maybe.o )
[15 of 27] Compiling Control.Monad.Trans.RWS.Lazy ( Control/Monad/Trans/RWS/Lazy.hs, dist/build/Control/Monad/Trans/RWS/Lazy.o )
[16 of 27] Compiling Control.Monad.Trans.RWS ( Control/Monad/Trans/RWS.hs, dist/build/Control/Monad/Trans/RWS.o )
[17 of 27] Compiling Control.Monad.Trans.RWS.Strict ( Control/Monad/Trans/RWS/Strict.hs, dist/build/Control/Monad/Trans/RWS/Strict.o )
[18 of 27] Compiling Control.Monad.Trans.Reader ( Control/Monad/Trans/Reader.hs, dist/build/Control/Monad/Trans/Reader.o )

Control/Monad/Trans/Reader.hs:69:24: warning: [-Wtabs]
    Tab character found here, and in four further locations.
    Please use spaces instead.
[19 of 27] Compiling Control.Monad.Trans.State.Lazy ( Control/Monad/Trans/State/Lazy.hs, dist/build/Control/Monad/Trans/State/Lazy.o )
[20 of 27] Compiling Control.Monad.Trans.State ( Control/Monad/Trans/State.hs, dist/build/Control/Monad/Trans/State.o )
[21 of 27] Compiling Control.Monad.Trans.State.Strict ( Control/Monad/Trans/State/Strict.hs, dist/build/Control/Monad/Trans/State/Strict.o )
[22 of 27] Compiling Control.Monad.Trans.Writer.Lazy ( Control/Monad/Trans/Writer/Lazy.hs, dist/build/Control/Monad/Trans/Writer/Lazy.o )
[23 of 27] Compiling Control.Monad.Trans.Writer ( Control/Monad/Trans/Writer.hs, dist/build/Control/Monad/Trans/Writer.o )
[24 of 27] Compiling Control.Monad.Trans.Writer.Strict ( Control/Monad/Trans/Writer/Strict.hs, dist/build/Control/Monad/Trans/Writer/Strict.o )
[25 of 27] Compiling Control.Applicative.Lift ( Control/Applicative/Lift.hs, dist/build/Control/Applicative/Lift.o )
[26 of 27] Compiling Control.Applicative.Backwards ( Control/Applicative/Backwards.hs, dist/build/Control/Applicative/Backwards.o )
[27 of 27] Compiling Data.Functor.Reverse ( Data/Functor/Reverse.hs, dist/build/Data/Functor/Reverse.o )
 * ERROR: dev-haskell/transformers-0.4.2.0::gentoo failed (compile phase):
 *   setup build failed
 * 
 * Call stack:
 *     ebuild.sh, line  115:  Called src_compile
 *   environment, line 2843:  Called haskell-cabal_src_compile
 *   environment, line 1953:  Called cabal_src_compile
 *   environment, line  709:  Called cabal-build
 *   environment, line  473:  Called die
 * The specific snippet of code:
 *       ./setup "$@" || die "setup build failed"
 * 
 * If you need support, post the output of `emerge --info '=dev-haskell/transformers-0.4.2.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-haskell/transformers-0.4.2.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-haskell/transformers-0.4.2.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-haskell/transformers-0.4.2.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-haskell/transformers-0.4.2.0/work/transformers-0.4.2.0'
 * S: '/var/tmp/portage/dev-haskell/transformers-0.4.2.0/work/transformers-0.4.2.0'

 * Messages for package dev-haskell/transformers-0.4.2.0:

 * ERROR: dev-haskell/transformers-0.4.2.0::gentoo failed (compile phase):
 *   setup build failed
 * 
 * Call stack:
 *     ebuild.sh, line  115:  Called src_compile
 *   environment, line 2843:  Called haskell-cabal_src_compile
 *   environment, line 1953:  Called cabal_src_compile
 *   environment, line  709:  Called cabal-build
 *   environment, line  473:  Called die
 * The specific snippet of code:
 *       ./setup "$@" || die "setup build failed"
 * 
 * If you need support, post the output of `emerge --info '=dev-haskell/transformers-0.4.2.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-haskell/transformers-0.4.2.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-haskell/transformers-0.4.2.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-haskell/transformers-0.4.2.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-haskell/transformers-0.4.2.0/work/transformers-0.4.2.0'
 * S: '/var/tmp/portage/dev-haskell/transformers-0.4.2.0/work/transformers-0.4.2.0'
 * One or more packages are either masked or have missing dependencies:
 * 
 *   >=dev-haskell/transformers-0.3:0/0.4.3.0= pulled in by:
 *     (dev-haskell/transformers-compat-0.4.0.4:0/0.4.0.4::gentoo, installed)
 * 
 * The resume list contains packages that are either masked or have
 * unsatisfied dependencies. Please restart/continue the operation
 * manually, or use --skipfirst to skip the first package in the list and
 * any other packages that may be masked or have missing dependencies.
 * 
 * The following package has failed to build, install, or execute postinst:
 * 
 *  (dev-haskell/transformers-0.4.2.0:0/0.4.2.0::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/dev-haskell/transformers-0.4.2.0/temp/build.log'
 *
Comment 8 Bernd Feige 2017-02-15 15:07:02 UTC
Same here. Wherever I've seen this it's linked to the dev-lang/ghc-8 update - after downgrading to ghc-7.10.3, cabal-1.22.8.0 builds fine.
Comment 9 Toralf Förster gentoo-dev 2017-02-15 15:34:53 UTC
*** Bug 609410 has been marked as a duplicate of this bug. ***
Comment 10 Helmut Jarausch 2017-02-15 17:01:57 UTC
I can confirm that cabal-2.14.2.0 builds fine with ghc-8.0.2
Comment 11 Bernd Feige 2017-02-16 07:24:07 UTC
(In reply to Helmut Jarausch from comment #10)
> I can confirm that cabal-2.14.2.0 builds fine with ghc-8.0.2

You mean the cabal-1.24.2.0 that was just added to the tree - yes, that one compiles but now transformers-0.4.3.0 fails here:

[10 of 27] Compiling Control.Monad.Trans.Error ( Control/Monad/Trans/Error.hs, dist/build/Control/Monad/Trans/Error.o )

Control/Monad/Trans/Error.hs:69:10: error:
    Duplicate instance declarations:
      instance MonadPlus IO
        -- Defined at Control/Monad/Trans/Error.hs:69:10
      instance MonadPlus IO -- Defined in ‘GHC.Base’

Control/Monad/Trans/Error.hs:73:10: error:
    Duplicate instance declarations:
      instance Alternative IO
        -- Defined at Control/Monad/Trans/Error.hs:73:10
      instance Alternative IO -- Defined in ‘GHC.Base’
Comment 12 Marek Bartosiewicz 2017-02-16 08:11:24 UTC
Fixed upsteram:
https://ghc.haskell.org/trac/ghc/ticket/10755?cversion=0&cnum_hist=6
Comment 13 Marek Bartosiewicz 2017-02-16 08:14:02 UTC
dev-haskell/transformers-0.5.2.0 builds fine
Comment 14 Sergei Trofimovich (RETIRED) gentoo-dev 2017-02-16 10:29:55 UTC
Pushed compatible Cabal version as: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7db735e14d1a9667af549140ed36e1c1a214a291