Bug#897517: carettah: FTBFS: * Couldn't match type `[Char]' with `T.Text'

Lucas Nussbaum lucas at debian.org
Wed May 2 21:42:38 BST 2018


Source: carettah
Version: 0.4.2-5
Severity: serious
Tags: buster sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20180502 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
> test -x debian/rules
> mkdir -p "."
> CDBS WARNING:    DEB_DH_STRIP_ARGS is deprecated since 0.4.85
> CDBS WARNING:    DEB_COMPRESS_EXCLUDE is deprecated since 0.4.85
> . /usr/share/haskell-devscripts/Dh_Haskell.sh && \
> make_setup_recipe
> Running ghc --make Setup.hs -o debian/hlibrary.setup
> [1 of 1] Compiling Main             ( Setup.hs, Setup.o )
> Linking debian/hlibrary.setup ...
> . /usr/share/haskell-devscripts/Dh_Haskell.sh && \
> configure_recipe
> Running debian/hlibrary.setup configure --ghc -v2 --package-db=/var/lib/ghc/package.conf.d --prefix=/usr --libdir=/usr/lib/haskell-packages/ghc/lib --libexecdir=/usr/lib --builddir=dist-ghc --ghc-option=-optl-Wl\,-z\,relro --haddockdir=/usr/lib/ghc-doc/haddock/carettah-0.4.2/ --datasubdir=carettah --htmldir=/usr/share/doc/libghc-carettah-doc/html/
> Configuring carettah-0.4.2...
> Dependency base ==4.*: using base-4.10.1.0
> Dependency cairo -any: using cairo-0.13.4.2
> Dependency directory -any: using directory-1.3.0.2
> Dependency filepath -any: using filepath-1.4.1.2
> Dependency gtk >=0.13: using gtk-0.14.7
> Dependency hcwiid -any: using hcwiid-0.0.6.1
> Dependency highlighting-kate -any: using highlighting-kate-0.6.4
> Dependency mtl -any: using mtl-2.2.2
> Dependency pandoc >=1.14: using pandoc-2.2
> Dependency pango -any: using pango-0.13.4.0
> Dependency process -any: using process-1.6.1.0
> Dependency text -any: using text-1.2.3.0
> Dependency time -any: using time-1.8.0.2
> Source component graph:
>     component exe:carettah
>     component exe:_carettah_main_
> Configured component graph:
>     component carettah-0.4.2-3rvOlI2ELdC1Bc3539Iyy5-carettah
>         include base-4.10.1.0
>         include cairo-0.13.4.2-EDMtkeSm1Pa5bwvItiB6Or
>         include directory-1.3.0.2
>         include filepath-1.4.1.2
>         include gtk-0.14.7-8d8ACPGAcmABc444IVu08Y
>         include hcwiid-0.0.6.1-GSVHTlGhRf7GgUb0tzbZyf
>         include highlighting-kate-0.6.4-BwzttSgLM1CDRkLCEJHNVD
>         include mtl-2.2.2-8XubxMJDT8QLsstvlNotkc
>         include pandoc-2.2-KzhI3Nt9SH6FHvSRvQlnX4
>         include pango-0.13.4.0-jmurT0AI9cAUKSiPySBda
>         include process-1.6.1.0
>         include text-1.2.3.0-8nD60G3tOYT3Qi8GaESeB5
>         include time-1.8.0.2
>     component carettah-0.4.2-9DOo5Zx7jXWKs68ozBDOYS-_carettah_main_
>         include base-4.10.1.0
>         include cairo-0.13.4.2-EDMtkeSm1Pa5bwvItiB6Or
>         include directory-1.3.0.2
>         include filepath-1.4.1.2
>         include gtk-0.14.7-8d8ACPGAcmABc444IVu08Y
>         include hcwiid-0.0.6.1-GSVHTlGhRf7GgUb0tzbZyf
>         include highlighting-kate-0.6.4-BwzttSgLM1CDRkLCEJHNVD
>         include mtl-2.2.2-8XubxMJDT8QLsstvlNotkc
>         include pandoc-2.2-KzhI3Nt9SH6FHvSRvQlnX4
>         include pango-0.13.4.0-jmurT0AI9cAUKSiPySBda
>         include process-1.6.1.0
>         include text-1.2.3.0-8nD60G3tOYT3Qi8GaESeB5
>         include time-1.8.0.2
> Linked component graph:
>     unit carettah-0.4.2-3rvOlI2ELdC1Bc3539Iyy5-carettah
>         include base-4.10.1.0
>         include cairo-0.13.4.2-EDMtkeSm1Pa5bwvItiB6Or
>         include directory-1.3.0.2
>         include filepath-1.4.1.2
>         include gtk-0.14.7-8d8ACPGAcmABc444IVu08Y
>         include hcwiid-0.0.6.1-GSVHTlGhRf7GgUb0tzbZyf
>         include highlighting-kate-0.6.4-BwzttSgLM1CDRkLCEJHNVD
>         include mtl-2.2.2-8XubxMJDT8QLsstvlNotkc
>         include pandoc-2.2-KzhI3Nt9SH6FHvSRvQlnX4
>         include pango-0.13.4.0-jmurT0AI9cAUKSiPySBda
>         include process-1.6.1.0
>         include text-1.2.3.0-8nD60G3tOYT3Qi8GaESeB5
>         include time-1.8.0.2
>     unit carettah-0.4.2-9DOo5Zx7jXWKs68ozBDOYS-_carettah_main_
>         include base-4.10.1.0
>         include cairo-0.13.4.2-EDMtkeSm1Pa5bwvItiB6Or
>         include directory-1.3.0.2
>         include filepath-1.4.1.2
>         include gtk-0.14.7-8d8ACPGAcmABc444IVu08Y
>         include hcwiid-0.0.6.1-GSVHTlGhRf7GgUb0tzbZyf
>         include highlighting-kate-0.6.4-BwzttSgLM1CDRkLCEJHNVD
>         include mtl-2.2.2-8XubxMJDT8QLsstvlNotkc
>         include pandoc-2.2-KzhI3Nt9SH6FHvSRvQlnX4
>         include pango-0.13.4.0-jmurT0AI9cAUKSiPySBda
>         include process-1.6.1.0
>         include text-1.2.3.0-8nD60G3tOYT3Qi8GaESeB5
>         include time-1.8.0.2
> Ready component graph:
>     definite carettah-0.4.2-9DOo5Zx7jXWKs68ozBDOYS-_carettah_main_
>         depends base-4.10.1.0
>         depends cairo-0.13.4.2-EDMtkeSm1Pa5bwvItiB6Or
>         depends directory-1.3.0.2
>         depends filepath-1.4.1.2
>         depends gtk-0.14.7-8d8ACPGAcmABc444IVu08Y
>         depends hcwiid-0.0.6.1-GSVHTlGhRf7GgUb0tzbZyf
>         depends highlighting-kate-0.6.4-BwzttSgLM1CDRkLCEJHNVD
>         depends mtl-2.2.2-8XubxMJDT8QLsstvlNotkc
>         depends pandoc-2.2-KzhI3Nt9SH6FHvSRvQlnX4
>         depends pango-0.13.4.0-jmurT0AI9cAUKSiPySBda
>         depends process-1.6.1.0
>         depends text-1.2.3.0-8nD60G3tOYT3Qi8GaESeB5
>         depends time-1.8.0.2
>     definite carettah-0.4.2-3rvOlI2ELdC1Bc3539Iyy5-carettah
>         depends base-4.10.1.0
>         depends cairo-0.13.4.2-EDMtkeSm1Pa5bwvItiB6Or
>         depends directory-1.3.0.2
>         depends filepath-1.4.1.2
>         depends gtk-0.14.7-8d8ACPGAcmABc444IVu08Y
>         depends hcwiid-0.0.6.1-GSVHTlGhRf7GgUb0tzbZyf
>         depends highlighting-kate-0.6.4-BwzttSgLM1CDRkLCEJHNVD
>         depends mtl-2.2.2-8XubxMJDT8QLsstvlNotkc
>         depends pandoc-2.2-KzhI3Nt9SH6FHvSRvQlnX4
>         depends pango-0.13.4.0-jmurT0AI9cAUKSiPySBda
>         depends process-1.6.1.0
>         depends text-1.2.3.0-8nD60G3tOYT3Qi8GaESeB5
>         depends time-1.8.0.2
> Using Cabal-2.0.1.0 compiled by ghc-8.2
> Using compiler: ghc-8.2.2
> Using install prefix: /usr
> Executables installed in: /usr/bin
> Libraries installed in:
> /usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-8.2.2/carettah-0.4.2
> Dynamic Libraries installed in:
> /usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-8.2.2
> Private executables installed in:
> /usr/lib/x86_64-linux-ghc-8.2.2/carettah-0.4.2
> Data files installed in: /usr/share/carettah
> Documentation installed in:
> /usr/share/doc/x86_64-linux-ghc-8.2.2/carettah-0.4.2
> Configuration files installed in: /usr/etc
> No alex found
> Using ar found on system at: /usr/bin/ar
> No c2hs found
> No cpphs found
> No doctest found
> Using gcc version 7 found on system at: /usr/bin/gcc
> Using ghc version 8.2.2 found on system at: /usr/bin/ghc
> Using ghc-pkg version 8.2.2 found on system at: /usr/bin/ghc-pkg
> No ghcjs found
> No ghcjs-pkg found
> No greencard found
> Using haddock version 2.18.1 found on system at: /usr/bin/haddock
> 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.2 found on system at: /usr/bin/hsc2hs
> Using hscolour version 1.24 found on system at: /usr/bin/HsColour
> No jhc found
> Using ld found on system at: /usr/bin/ld.gold
> No lhc found
> No lhc-pkg found
> Using pkg-config version 0.29 found on system at: /usr/bin/pkg-config
> Using runghc version 8.2.2 found on system at: /usr/bin/runghc
> Using strip version 2.30 found on system at: /usr/bin/strip
> Using tar found on system at: /bin/tar
> No uhc found
> touch configure-ghc-stamp
> . /usr/share/haskell-devscripts/Dh_Haskell.sh && \
> build_recipe
> Running debian/hlibrary.setup build --builddir=dist-ghc
> Preprocessing executable '_carettah_main_' for carettah-0.4.2..
> Building executable '_carettah_main_' for carettah-0.4.2..
> [1 of 6] Compiling Config           ( Config.hs, dist-ghc/build/_carettah_main_/_carettah_main_-tmp/Config.o )
> [2 of 6] Compiling FormatPangoMarkup ( FormatPangoMarkup.hs, dist-ghc/build/_carettah_main_/_carettah_main_-tmp/FormatPangoMarkup.o )
> 
> FormatPangoMarkup.hs:9:1: warning: [-Wincomplete-patterns]
>     Pattern match(es) are non-exhaustive
>     In an equation for `tokColor':
>         Patterns not matched:
>             ConstantTok
>             SpecialCharTok
>             VerbatimStringTok
>             SpecialStringTok
>             ...
>   |
> 9 | tokColor KeywordTok        = "<span foreground=\"#007020\">"
>   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
> 
> FormatPangoMarkup.hs:25:1: warning: [-Wincomplete-patterns]
>     Pattern match(es) are non-exhaustive
>     In an equation for `tokShape':
>         Patterns not matched:
>             ConstantTok
>             SpecialCharTok
>             VerbatimStringTok
>             SpecialStringTok
>             ...
>    |
> 25 | tokShape KeywordTok        = "<span font_weight=\"bold\">"
>    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
> [3 of 6] Compiling Paths_carettah   ( dist-ghc/build/_carettah_main_/autogen/Paths_carettah.hs, dist-ghc/build/_carettah_main_/_carettah_main_-tmp/Paths_carettah.o )
> [4 of 6] Compiling WrapPaths        ( WrapPaths.hs, dist-ghc/build/_carettah_main_/_carettah_main_-tmp/WrapPaths.o )
> [5 of 6] Compiling Render           ( Render.hs, dist-ghc/build/_carettah_main_/_carettah_main_-tmp/Render.o )
> [6 of 6] Compiling Main             ( Carettah.hs, dist-ghc/build/_carettah_main_/_carettah_main_-tmp/Main.o )
> 
> Carettah.hs:26:71: error:
>     * Couldn't match type `[Char]' with `T.Text'
>       Expected type: T.Text
>         Actual type: String
>     * In the second argument of `($)', namely `s'
>       In the expression:
>         P.readMarkdown P.def {P.readerStandalone = True} $ s
>       In a pattern binding:
>         Right r = P.readMarkdown P.def {P.readerStandalone = True} $ s
>    |
> 26 |   where Right r = P.readMarkdown P.def{ P.readerStandalone = True } $ s
>    |                                                                       ^
> make: *** [/usr/share/cdbs/1/class/hlibrary.mk:147: build-ghc-stamp] Error 1

The full build log is available from:
   http://aws-logs.debian.net/2018/05/02/carettah_0.4.2-5_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