
Dear Haskell developers, I am trying to build a current version of git-annex, and stumble over a compilation failure of one of its dependencies, MissingH. I am using GHC 7.4.2 and Cabal 1.18.0.2, both bootstrapped on RHEL 5.x/6.x using a helper makefile [1] that has worked fine so far. The command to install git-annex is cabal install git-annex-5.20140108 --flags=-assistant --flags=-dbus --flags=-webapp --flags=-webdav --flags=-xmpp The build log for MissingH-1.2.0.2 is attached. I would be glad for any pointers on how to resolve this issue. Thanks, Peter [1] http://git.colberg.org/packages/plain/packages.mk

Hi Peter,
It looks like MissingH is not yet updated to work with the latest
version of the unix library (CC'ing the maintainer of MissingH).
Try adding --constraint 'unix < 2.7' to your cabal install command line.
Roman
* Peter Colberg
src/System/Cmd/Utils.hs:328:23: Constructor `Terminated' should have 2 arguments, but has been given 1 In the pattern: Terminated sig In the pattern: Just (Terminated sig) In a case alternative: Just (Terminated sig) -> warnfail fp args $ "Terminated by signal " ++ show sig
src/System/Cmd/Utils.hs:354:13: Constructor `Terminated' should have 2 arguments, but has been given 1 In the pattern: Terminated s In a case alternative: Terminated s -> cmdsignalled "safeSystem" command args s In a stmt of a 'do' block: case ec of { Exited ExitSuccess -> return () Exited (ExitFailure fc) -> cmdfailed "safeSystem" command args fc Terminated s -> cmdsignalled "safeSystem" command args s Stopped s -> cmdsignalled "safeSystem" command args s }

Hi Roman, On Tue, Jan 21, 2014 at 08:09:12AM +0200, Roman Cheplyaka wrote:
It looks like MissingH is not yet updated to work with the latest version of the unix library (CC'ing the maintainer of MissingH).
Try adding --constraint 'unix < 2.7' to your cabal install command line.
Thank you, with that constraint MissingH compiles successfully :-). Peter
participants (2)
-
Peter Colberg
-
Roman Cheplyaka