Calculating dependencies ...... done! >>> Verifying ebuild manifests >>> Emerging (1 of 1) x11-misc/xmobar-0.9 * xmobar-0.9.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * Wiping /var/tmp/portage * * Unmounting memory device(s): * [ tmpfs ] on /var/tmp/portage/x11-misc/xmobar-0.9 ... [ ok ] * * now /var/tmp/portage it's spick and span! * Using bashrcng profile [ 1.1.4 ] * Activating shmfs plugin: * SHM TYPE : tmpfs on /var/tmp/portage/x11-misc/xmobar-0.9 * Virtual Memory : [0C11965 MB [ 2991 blocks of size 4096 KB ] * Physical Memory : [1C3957 MB * Backing size : [1C8008 MB [ swap ] * MAX VM allocable: [1C9986 MB [ 50% of 11965 MB ] * Dropping clean caches ... [ ok ] * Mounting the Shared Memory Filesystem ... [ ok ] * CPV: x11-misc/xmobar-0.9 * REPO: gentoo * USE: amd64 elibc_glibc kernel_linux multilib userland_GNU >>> Unpacking source... >>> Unpacking xmobar-0.9.tar.gz to /var/tmp/portage/x11-misc/xmobar-0.9/work >>> Source unpacked in /var/tmp/portage/x11-misc/xmobar-0.9/work >>> Compiling source in /var/tmp/portage/x11-misc/xmobar-0.9/work/xmobar-0.9 ... * Using cabal-1.6.0.3. [1 of 1] Compiling Main ( /var/tmp/portage/x11-misc/xmobar-0.9/work/xmobar-0.9/Setup.lhs, /var/tmp/portage/x11-misc/xmobar-0.9/work/xmobar-0.9/Setup.o ) Linking setup ... Configuring xmobar-0.9... Flags chosen: with_utf8=False, with_xft=False, small_base=True Dependency X11 >=1.3.0: using X11-1.4.6.1 Dependency base >=3: using base-4.1.0.0 Dependency bytestring -any: using bytestring-0.9.1.4 Dependency containers -any: using containers-0.2.0.1 Dependency directory -any: using directory-1.0.0.3 Dependency filepath -any: using filepath-1.1.0.2 Dependency mtl -any: using mtl-1.1.0.2 Dependency old-locale -any: using old-locale-1.0.0.1 Dependency old-time -any: using old-time-1.0.0.2 Dependency parsec -any: using parsec-2.1.0.1 Dependency process -any: using process-1.0.1.1 Dependency stm -any: using stm-2.1.1.2 Dependency unix -any: using unix-2.3.2.0 Using Cabal-1.6.0.3 compiled by ghc-6.10 Using compiler: ghc-6.10.4 Using install prefix: /usr Binaries installed in: /usr/bin Libraries installed in: /usr/lib64/xmobar-0.9/ghc-6.10.4 Private binaries installed in: /usr/libexec Data files installed in: /usr/share/xmobar-0.9/ghc-6.10.4 Documentation installed in: /usr/share/doc/xmobar-0.9 No alex found Using ar found on system at: /usr/bin/ar No c2hs found No cpphs found No ffihugs found Using gcc version 4.4.2 found on system at: /usr/bin/gcc Using ghc version 6.10.4 given by user at: /usr/bin/ghc Using ghc-pkg version 6.10.4 given by user at: /usr/bin/ghc-pkg No greencard found No haddock found No happy found No hmake found Using hsc2hs version 0.67 found on system at: /usr/bin/hsc2hs No hscolour found No hugs found No jhc found Using ld found on system at: /usr/bin/ld No nhc98 found Using pkg-config version 0.23 found on system at: /usr/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: /bin/tar /usr/bin/gcc /var/tmp/portage/x11-misc/xmobar-0.9/temp/15209.c -o /var/tmp/portage/x11-misc/xmobar-0.9/temp/15209 -D__GLASGOW_HASKELL__=610 -I. -I/usr/lib64/ghc-6.10.4/process-1.0.1.1/include -I/usr/lib64/ghc-6.10.4/directory-1.0.0.3/include -I/usr/lib64/ghc-6.10.4/unix-2.3.2.0/include -I/usr/lib64/ghc-6.10.4/old-time-1.0.0.2/include -I/usr/lib64/ghc-6.10.4/bytestring-0.9.1.4/include -I/usr/lib64/x11-1.4.6.1/ghc-6.10.4/include -I/usr/lib64/ghc-6.10.4/base-4.1.0.0/include -I/usr/lib64/ghc-6.10.4/include Preprocessing executables for xmobar-0.9... Building xmobar-0.9... [ 1 of 25] Compiling Commands ( Commands.hs, dist/build/xmobar/xmobar-tmp/Commands.o ) [ 2 of 25] Compiling Runnable[boot] ( Runnable.hs-boot, dist/build/xmobar/xmobar-tmp/Runnable.o-boot ) [ 3 of 25] Compiling XUtil ( dist/build/xmobar/xmobar-tmp/XUtil.hs, dist/build/xmobar/xmobar-tmp/XUtil.o ) [ 4 of 25] Compiling Plugins ( Plugins.hs, dist/build/xmobar/xmobar-tmp/Plugins.o ) [ 5 of 25] Compiling Plugins.StdinReader ( Plugins/StdinReader.hs, dist/build/xmobar/xmobar-tmp/Plugins/StdinReader.o ) Plugins/StdinReader.hs:29:15: Ambiguous type variable `e' in the constraint: `GHC.Exception.Exception e' arising from a use of `catch' at Plugins/StdinReader.hs:29:15-78 Probable fix: add a type signature that fixes these type variable(s) * ERROR: x11-misc/xmobar-0.9 failed: * setup build failed * * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 1947: Called cabal_src_compile * environment, line 532: Called cabal-build * environment, line 440: Called die * The specific snippet of code: * ./setup build || die "setup build failed" * * If you need support, post the output of 'emerge --info =x11-misc/xmobar-0.9', * the complete build log and the output of 'emerge -pqv =x11-misc/xmobar-0.9'. * The complete build log is located at '/var/tmp/portage/x11-misc/xmobar-0.9/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/x11-misc/xmobar-0.9/temp/environment'. * S: '/var/tmp/portage/x11-misc/xmobar-0.9/work/xmobar-0.9' >>> Failed to emerge x11-misc/xmobar-0.9, Log file: >>> '/var/tmp/portage/x11-misc/xmobar-0.9/temp/build.log' Reproducible: Always Steps to Reproduce:
*** Bug 295570 has been marked as a duplicate of this bug. ***
Please try xmobar-0.9.2-r1, it might fix the issue. The 0.9 version might not work with the new exception system in ghc.
I successfully compiled xmobar-0.8 with xmonad-0.8.1. Version 0.9.2-r1 failed for me with a different error, but I think it's just because it was an incompatible version (since I had xmonad-0.8.1).
(In reply to comment #3) > I successfully compiled xmobar-0.8 with xmonad-0.8.1. Version 0.9.2-r1 failed > for me with a different error, but I think it's just because it was an > incompatible version (since I had xmonad-0.8.1). > xmobar is independent of xmonad, so that can't be it.
Oh, OK. Well this is the error I got, in case it's helpful: Linking setup ... setup: Unrecognised flags: --constraint=base<4 * ERROR: x11-misc/xmobar-0.9.2-r1 failed: * setup configure failed * * Call stack: * ebuild.sh, line 54: Called src_compile * environment, line 3099: Called cabal_src_compile * environment, line 624: Called cabal-configure * environment, line 550: Called die * The specific snippet of code: * ./setup configure --ghc --prefix=/usr --with-compiler="$(ghc-getghc)" --with-hc-pkg="$(ghc-getghcpkg)" --prefix=/usr --libdir=/usr/$(get_libdir) --libsubdir=${P}/ghc-$(ghc-version) --datadir=/usr/share/ --datasubdir=${P}/ghc-$(ghc-version) ${cabalconf} ${CABAL_CONFIGURE_FLAGS} "$@" || die "setup configure failed"
(In reply to comment #5) > Oh, OK. Well this is the error I got, in case it's helpful: > > Linking setup ... > setup: Unrecognised flags: > --constraint=base<4 > * ERROR: x11-misc/xmobar-0.9.2-r1 failed: > * setup configure failed > * Can we have the full build log please? And versions of GHC and Cabal? My guess is that the version of Cabal you have is too old to understand the --constraint option we pass to it (it needs Cabal >= 1.6 I think).
Created attachment 224875 [details] Build log for attempt to build xmobar-0.9.2-r1 Attaching. Yes, from the build log it looks like it's using cabal-1.2.3.0. I just set ~x86 and USE=-unicode for xmobar, so my version of cabal would be the non-masked version.
Was commited to portage: 28 Mar 2010; Lennart Kolmodin <kolmodin@gentoo.org> xmobar-0.9.2-r1.ebuild: Bump requirement of cabal to 1.6, as we use the --constraint flag. See bug #295568. Closing as FIXED.