[Pkg-haskell-maintainers] Bug#665238: bluetile: FTBFS: Could not deduce (Eq t) arising from the literal `0'

Lucas Nussbaum lucas at lucas-nussbaum.net
Thu Mar 22 16:27:01 UTC 2012


Source: bluetile
Version: 0.5.3-1
Severity: serious
Tags: wheezy sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20120321 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part:
>  debian/rules build
> test -x debian/rules
> mkdir -p "."
> /usr/share/cdbs/1/rules/buildcore.mk:109: WARNING:  DEB_COMPRESS_EXCLUDE is a deprecated variable
> if test ! -e Setup.lhs -a ! -e Setup.hs; then echo "No setup script found!"; exit 1; fi
> for setup in Setup.lhs Setup.hs; do if test -e $setup; then ghc --make $setup -o debian/hlibrary.setup; exit 0; fi; done
> [1 of 1] Compiling Main             ( Setup.lhs, Setup.o )
> Linking debian/hlibrary.setup ...
> debian/hlibrary.setup configure --ghc -v2 \
> 		--prefix=/usr --libdir=/usr/lib/haskell-packages/ghc/lib \
> 		--builddir=dist-ghc \
> 		--haddockdir=/usr/lib/ghc-doc/haddock/bluetile-0.5.3/ \
> 		--htmldir=/usr/share/doc/libghc-bluetile-doc/html/   \
> 		--datasubdir=bluetile --libexecdir=/usr/lib/bluetile   
> Configuring bluetile-0.5.3...
> Dependency ConfigFile -any: using ConfigFile-1.0.6
> Dependency X11 >=1.4: using X11-1.5.0.1
> Dependency X11-xft -any: using X11-xft-0.3.1
> Dependency base >=3 && <5: using base-4.5.0.0
> Dependency containers -any: using containers-0.4.2.1
> Dependency directory -any: using directory-1.1.0.2
> Dependency filepath -any: using filepath-1.3.0.0
> Dependency glade -any: using glade-0.12.1
> Dependency gtk -any: using gtk-0.12.2
> Dependency mtl -any: using mtl-2.0.1.0
> Dependency process -any: using process-1.1.0.1
> Dependency random -any: using random-1.0.1.1
> Dependency regex-compat -any: using regex-compat-0.95.1
> Dependency unix -any: using unix-2.5.1.0
> Dependency utf8-string -any: using utf8-string-0.3.7
> Dependency xmonad >=0.9.1: using xmonad-0.10
> Dependency xmonad-contrib >=0.9.1: using xmonad-contrib-0.10
> Dependency gtk+-2.0 -any: using version 2.24.10
> Using Cabal-1.14.0 compiled by ghc-7.4
> Using compiler: ghc-7.4.1
> Using install prefix: /usr
> Binaries installed in: /usr/bin
> Libraries installed in:
> /usr/lib/haskell-packages/ghc/lib/bluetile-0.5.3/ghc-7.4.1
> Private binaries installed in: /usr/lib/bluetile
> Data files installed in: /usr/share/bluetile
> Documentation installed in: /usr/share/doc/bluetile-0.5.3
> 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.6 found on system at: /usr/bin/gcc
> Using ghc version 7.4.1 found on system at: /usr/bin/ghc
> Using ghc-pkg version 7.4.1 found on system at: /usr/bin/ghc-pkg
> No greencard found
> Using haddock version 2.10.0 found on system at: /usr/bin/haddock
> No happy found
> No hmake found
> Using hpc version 0.6 found on system at: /usr/bin/hpc
> Using hsc2hs version 0.67 found on system at: /usr/bin/hsc2hs
> Using hscolour version 1.19 found on system at: /usr/bin/HsColour
> No hugs found
> No jhc found
> Using ld found on system at: /usr/bin/ld
> No lhc found
> No lhc-pkg found
> No nhc98 found
> Using pkg-config version 0.26 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
> No uhc found
> debian/hlibrary.setup build --builddir=dist-ghc
> Building bluetile-0.5.3...
> Preprocessing executable 'gnome-bluetile-session' for bluetile-0.5.3...
> [1 of 2] Compiling Paths_bluetile   ( dist-ghc/build/autogen/Paths_bluetile.hs, dist-ghc/build/gnome-bluetile-session/gnome-bluetile-session-tmp/Paths_bluetile.o )
> [2 of 2] Compiling Main             ( gnome-bluetile-session/GnomeBluetileSession.hs, dist-ghc/build/gnome-bluetile-session/gnome-bluetile-session-tmp/Main.o )
> Linking dist-ghc/build/gnome-bluetile-session/gnome-bluetile-session ...
> Preprocessing executable 'bluetilemockwin' for bluetile-0.5.3...
> [1 of 1] Compiling Main             ( bluetilemockwin/BluetileMockWin.hs, dist-ghc/build/bluetilemockwin/bluetilemockwin-tmp/Main.o )
> Linking dist-ghc/build/bluetilemockwin/bluetilemockwin ...
> Preprocessing executable 'bluetilegreet' for bluetile-0.5.3...
> [1 of 3] Compiling Utils            ( bluetilegreet/Utils.hs, dist-ghc/build/bluetilegreet/bluetilegreet-tmp/Utils.o )
> [2 of 3] Compiling Paths_bluetile   ( dist-ghc/build/autogen/Paths_bluetile.hs, dist-ghc/build/bluetilegreet/bluetilegreet-tmp/Paths_bluetile.o )
> [3 of 3] Compiling Main             ( bluetilegreet/BluetileGreet.hs, dist-ghc/build/bluetilegreet/bluetilegreet-tmp/Main.o )
> Linking dist-ghc/build/bluetilegreet/bluetilegreet ...
> Preprocessing executable 'bluetiledock' for bluetile-0.5.3...
> [1 of 3] Compiling Utils            ( bluetiledock/Utils.hs, dist-ghc/build/bluetiledock/bluetiledock-tmp/Utils.o )
> [2 of 3] Compiling Paths_bluetile   ( dist-ghc/build/autogen/Paths_bluetile.hs, dist-ghc/build/bluetiledock/bluetiledock-tmp/Paths_bluetile.o )
> [3 of 3] Compiling Main             ( bluetiledock/BluetileDock.hs, dist-ghc/build/bluetiledock/bluetiledock-tmp/Main.o )
> Linking dist-ghc/build/bluetiledock/bluetiledock ...
> Preprocessing executable 'bluetile' for bluetile-0.5.3...
> [ 1 of 25] Compiling XMonad.Util.PositionStore ( src/XMonad/Util/PositionStore.hs, dist-ghc/build/bluetile/bluetile-tmp/XMonad/Util/PositionStore.o )
> [ 2 of 25] Compiling XMonad.Util.Font ( src/XMonad/Util/Font.hs, dist-ghc/build/bluetile/bluetile-tmp/XMonad/Util/Font.o )
> 
> src/XMonad/Util/Font.hs:16:8:
>     Warning: In the use of `catch'
>              (imported from Prelude, but defined in System.IO.Error):
>              Deprecated: "Please use the new exceptions variant, Control.Exception.catch"
> [ 3 of 25] Compiling XMonad.Util.Image ( src/XMonad/Util/Image.hs, dist-ghc/build/bluetile/bluetile-tmp/XMonad/Util/Image.o )
> [ 4 of 25] Compiling XMonad.Util.XUtils ( src/XMonad/Util/XUtils.hs, dist-ghc/build/bluetile/bluetile-tmp/XMonad/Util/XUtils.o )
> [ 5 of 25] Compiling XMonad.Layout.PositionStoreFloat ( src/XMonad/Layout/PositionStoreFloat.hs, dist-ghc/build/bluetile/bluetile-tmp/XMonad/Layout/PositionStoreFloat.o )
> [ 6 of 25] Compiling XMonad.Layout.MouseResizableTile ( src/XMonad/Layout/MouseResizableTile.hs, dist-ghc/build/bluetile/bluetile-tmp/XMonad/Layout/MouseResizableTile.o )
> 
> src/XMonad/Layout/MouseResizableTile.hs:229:19:
>     Could not deduce (Eq t) arising from the literal `0'
>     from the context (Num t)
>       bound by the type signature for
>                  replaceAtPos :: Num t =>
>                                  Rational -> [Rational] -> t -> Rational -> [Rational]
>       at src/XMonad/Layout/MouseResizableTile.hs:(229,1)-(232,65)
>     Possible fix:
>       add (Eq t) to the context of
>         the type signature for
>           replaceAtPos :: Num t =>
>                           Rational -> [Rational] -> t -> Rational -> [Rational]
>     In the pattern: 0
>     In an equation for `replaceAtPos': replaceAtPos _ [] 0 x' = [x']
> make: *** [build-ghc-stamp] Error 1

The full build log is available from:
   http://people.debian.org/~lucas/logs/2012/03/21/bluetile_0.5.3-1.log

A list of current common problems and possible solutions is available at 
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on about 50 AMD64 nodes
of the Grid'5000 platform, using a clean chroot.  Internet was not
accessible from the build systems.





More information about the Pkg-haskell-maintainers mailing list