[Pkg-haskell-maintainers] Bug#730964: haskell-yesod-bin: FTBFS: Couldn't match type `ReadM' with `Either a0'

David Suárez david.sephirot at gmail.com
Sat Nov 30 16:23:55 UTC 2013


Source: haskell-yesod-bin
Version: 1.2.2-3
Severity: serious
Tags: jessie sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20131128 qa-ftbfs
Justification: FTBFS on amd64

Hi,

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

Relevant part (hopefully):
>  debian/rules build
> ghc Setup.lhs -o debian/yesod.setup
> [1 of 1] Compiling Main             ( Setup.lhs, Setup.o )
> Linking debian/yesod.setup ...
> test -f debian/rules
> debian/yesod.setup configure --prefix=/usr
> Configuring yesod-bin-1.2.2...
> touch stamp-configure
> test -f debian/rules
> debian/yesod.setup build
> Building yesod-bin-1.2.2...
> Preprocessing executable 'yesod-ld-wrapper' for yesod-bin-1.2.2...
> [1 of 1] Compiling Main             ( ghcwrapper.hs, dist/build/yesod-ld-wrapper/yesod-ld-wrapper-tmp/Main.o )
> Linking dist/build/yesod-ld-wrapper/yesod-ld-wrapper ...
> Preprocessing executable 'yesod-ghc-wrapper' for yesod-bin-1.2.2...
> [1 of 1] Compiling Main             ( ghcwrapper.hs, dist/build/yesod-ghc-wrapper/yesod-ghc-wrapper-tmp/Main.o )
> Linking dist/build/yesod-ghc-wrapper/yesod-ghc-wrapper ...
> Preprocessing executable 'yesod-ar-wrapper' for yesod-bin-1.2.2...
> [1 of 1] Compiling Main             ( ghcwrapper.hs, dist/build/yesod-ar-wrapper/yesod-ar-wrapper-tmp/Main.o )
> Linking dist/build/yesod-ar-wrapper/yesod-ar-wrapper ...
> Preprocessing executable 'yesod' for yesod-bin-1.2.2...
> [1 of 9] Compiling GhcBuild         ( GhcBuild.hs, dist/build/yesod/yesod-tmp/GhcBuild.o )
> [2 of 9] Compiling Build            ( Build.hs, dist/build/yesod/yesod-tmp/Build.o )
> [3 of 9] Compiling Scaffolding.Scaffolder ( Scaffolding/Scaffolder.hs, dist/build/yesod/yesod-tmp/Scaffolding/Scaffolder.o )
> Loading package ghc-prim ... linking ... done.
> Loading package integer-gmp ... linking ... done.
> Loading package base ... linking ... done.
> Loading package array-0.4.0.1 ... linking ... done.
> Loading package deepseq-1.3.0.1 ... linking ... done.
> Loading package bytestring-0.10.0.2 ... linking ... done.
> Loading package containers-0.5.0.0 ... linking ... done.
> Loading package text-0.11.3.1 ... linking ... done.
> Loading package attoparsec-0.10.4.0 ... linking ... done.
> Loading package blaze-builder-0.3.1.0 ... linking ... done.
> Loading package dlist-0.5 ... linking ... done.
> Loading package hashable-1.2.1.0 ... linking ... done.
> Loading package transformers-0.3.0.0 ... linking ... done.
> Loading package mtl-2.1.2 ... linking ... done.
> Loading package old-locale-1.0.0.5 ... linking ... done.
> Loading package syb-0.4.0 ... linking ... done.
> Loading package pretty-1.1.1.0 ... linking ... done.
> Loading package template-haskell ... linking ... done.
> Loading package time-1.4.0.1 ... linking ... done.
> Loading package unordered-containers-0.2.3.0 ... linking ... done.
> Loading package primitive-0.5.0.1 ... linking ... done.
> Loading package vector-0.10.0.1 ... linking ... done.
> Loading package aeson-0.6.2.1 ... linking ... done.
> Loading package filepath-1.3.0.1 ... linking ... done.
> Loading package unix-2.6.0.1 ... linking ... done.
> Loading package directory-1.2.0.1 ... linking ... done.
> Loading package base-unicode-symbols-0.2.2.4 ... linking ... done.
> Loading package transformers-base-0.4.1 ... linking ... done.
> Loading package monad-control-0.3.1.4 ... linking ... done.
> Loading package lifted-base-0.2.0.3 ... linking ... done.
> Loading package mmorph-1.0.0 ... linking ... done.
> Loading package resourcet-0.4.7.1 ... linking ... done.
> Loading package nats-0.1 ... linking ... done.
> Loading package semigroups-0.9 ... linking ... done.
> Loading package void-0.5.11 ... linking ... done.
> Loading package conduit-1.0.5.1 ... linking ... done.
> Loading package yaml-0.8.5.1 ... linking ... done.
> Loading package old-time-1.1.0.1 ... linking ... done.
> Loading package tar-0.4.0.1 ... linking ... done.
> Loading package split-0.2.2 ... linking ... done.
> Loading package parsec-3.1.3 ... linking ... done.
> Loading package process-1.1.0.2 ... linking ... done.
> Loading package shakespeare-1.0.2 ... linking ... done.
> Loading package shakespeare-text-1.0.0.5 ... linking ... done.
> Loading package shakespeare-js-1.1.0 ... linking ... done.
> Loading package shakespeare-css-1.0.6.2 ... linking ... done.
> Loading package base64-bytestring-1.0.0.0 ... linking ... done.
> Loading package base64-conduit-1.0.0 ... linking ... done.
> Loading package system-filepath-0.4.7 ... linking ... done.
> Loading package ReadArgs-1.2.1 ... linking ... done.
> Loading package basic-prelude-0.3.4.0 ... linking ... done.
> Loading package classy-prelude-0.5.4 ... linking ... done.
> Loading package system-fileio-0.3.11 ... linking ... done.
> Loading package project-template-0.1.3 ... linking ... done.
> Loading package optparse-applicative-0.7.0.2 ... linking ... done.
> Loading package case-insensitive-1.0.0.1 ... linking ... done.
> Loading package data-default-0.4.0 ... linking ... done.
> Loading package cereal-0.3.5.2 ... linking ... done.
> Loading package asn1-data-0.7.1 ... linking ... done.
> Loading package blaze-builder-conduit-1.0.0 ... linking ... done.
> Loading package asn1-types-0.2.1 ... linking ... done.
> Loading package crypto-pubkey-types-0.4.0 ... linking ... done.
> Loading package byteable-0.1.1 ... linking ... done.
> Loading package cryptohash-0.11.1 ... linking ... done.
> Loading package pem-0.1.2 ... linking ... done.
> Loading package certificate-1.3.9 ... linking ... done.
> Loading package cookie-0.4.0.1 ... linking ... done.
> Loading package securemem-0.1.3 ... linking ... done.
> Loading package crypto-cipher-types-0.0.7 ... linking ... done.
> Loading package cipher-aes-0.2.6 ... linking ... done.
> Loading package crypto-random-0.0.7 ... linking ... done.
> Loading package random-1.0.1.1 ... linking ... done.
> Loading package cprng-aes-0.5.2 ... linking ... done.
> Loading package failure-0.2.0.1 ... linking ... done.
> Loading package http-types-0.8.0 ... linking ... done.
> Loading package mime-types-0.1.0.0 ... linking ... done.
> Loading package network-2.4.1.2 ... linking ... done.
> Loading package punycode-2.0 ... linking ... done.
> Loading package ranges-0.2.4 ... linking ... done.
> Loading package text-icu-0.6.3.5 ... linking ... done.
> Loading package stringprep-0.1.5 ... linking ... done.
> Loading package idna-0.2 ... linking ... done.
> Loading package utf8-string-0.3.7 ... linking ... done.
> Loading package publicsuffixlist-0.1 ... linking ... done.
> Loading package regex-base-0.93.2 ... linking ... done.
> Loading package regex-posix-0.95.2 ... linking ... done.
> Loading package regex-compat-0.95.1 ... linking ... done.
> Loading package socks-0.4.1 ... linking ... done.
> Loading package crypto-numbers-0.2.3 ... linking ... done.
> Loading package crypto-pubkey-0.2.1 ... linking ... done.
> Loading package tls-1.1.5 ... linking ... done.
> Loading package cipher-rc4-0.1.2 ... linking ... done.
> Loading package tls-extra-0.6.5 ... linking ... done.
> Loading package zlib-0.5.4.1 ... linking ... done.
> Loading package zlib-bindings-0.1.1.1 ... linking ... done.
> Loading package zlib-conduit-1.0.0 ... linking ... done.
> Loading package http-conduit-1.9.5.2 ... linking ... done.
> Loading package network-conduit-1.0.0 ... linking ... done.
> Loading package vault-0.3.0.2 ... linking ... done.
> Loading package wai-1.4.0.2 ... linking ... done.
> Loading package byteorder-1.0.3 ... linking ... done.
> Loading package date-cache-0.3.0 ... linking ... done.
> Loading package unix-time-0.2.0 ... linking ... done.
> Loading package fast-logger-0.3.3 ... linking ... done.
> Loading package wai-logger-0.3.1 ... linking ... done.
> Loading package http-attoparsec-0.1.0 ... linking ... done.
> Loading package simple-sendfile-0.2.11 ... linking ... done.
> Loading package unix-compat-0.4.0.0 ... linking ... done.
> Loading package warp-1.3.9 ... linking ... done.
> Loading package word8-0.0.2 ... linking ... done.
> Loading package http-reverse-proxy-0.2.0 ... linking ... done.
> Loading package ghc-paths-0.1.0.9 ... linking ... done.
> Loading package Cabal-1.16.0 ... linking ... done.
> Loading package binary-0.5.1.1 ... linking ... done.
> Loading package bin-package-db-0.0.0.0 ... linking ... done.
> Loading package hoopl-3.9.0.0 ... linking ... done.
> Loading package hpc-0.6.0.0 ... linking ... done.
> Loading package ghc-7.6.3 ... linking ... done.
> Loading package hinotify-0.3.5 ... linking ... done.
> Loading package fsnotify-0.0.11 ... linking ... done.
> Loading package file-embed-0.0.4.6 ... linking ... done.
> [4 of 9] Compiling Paths_yesod_bin  ( dist/build/autogen/Paths_yesod_bin.hs, dist/build/yesod/yesod-tmp/Paths_yesod_bin.o )
> [5 of 9] Compiling Keter            ( Keter.hs, dist/build/yesod/yesod-tmp/Keter.o )
> [6 of 9] Compiling Options          ( Options.hs, dist/build/yesod/yesod-tmp/Options.o )
> 
> Options.hs:74:39:
>     Couldn't match type `ReadM' with `Either a0'
>     Expected type: Either a0 a
>       Actual type: ReadM a
>     In the third argument of `either', namely
>       `(msum
>         $ map
>             (rdr
>              <=<
>                (maybe (Left $ ErrorMsg "Missing environment variable") Right
>                 . getEnvValue env path))
>             names)'
>     In the second argument of `(<|>)', namely
>       `either
>          (const empty)
>          pure
>          (msum
>           $ map
>               (rdr
>                <=<
>                  (maybe (Left $ ErrorMsg "Missing environment variable") Right
>                   . getEnvValue env path))
>               names)'
>     In the expression:
>       p
>       <|>
>         either
>           (const empty)
>           pure
>           (msum
>            $ map
>                (rdr
>                 <=<
>                   (maybe (Left $ ErrorMsg "Missing environment variable") Right
>                    . getEnvValue env path))
>                names)
> 
> Options.hs:74:67:
>     Couldn't match expected type `ReadM String'
>                 with actual type `Either ParseError b0'
>     In the first argument of `maybe', namely
>       `(Left $ ErrorMsg "Missing environment variable")'
>     In the first argument of `(.)', namely
>       `maybe (Left $ ErrorMsg "Missing environment variable") Right'
>     In the second argument of `(<=<)', namely
>       `(maybe (Left $ ErrorMsg "Missing environment variable") Right
>         . getEnvValue env path)'
> 
> Options.hs:74:115:
>     Couldn't match type `Either a1 String' with `ReadM String'
>     Expected type: String -> ReadM String
>       Actual type: String -> Either a1 String
>     In the second argument of `maybe', namely `Right'
>     In the first argument of `(.)', namely
>       `maybe (Left $ ErrorMsg "Missing environment variable") Right'
>     In the second argument of `(<=<)', namely
>       `(maybe (Left $ ErrorMsg "Missing environment variable") Right
>         . getEnvValue env path)'
> make: *** [build-arch] Error 1

The full build log is available from:
   http://aws-logs.debian.net/ftbfs-logs/2013/11/28/haskell-yesod-bin_1.2.2-3_unstable.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 EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the Pkg-haskell-maintainers mailing list