Bug#1017322: haskell-simple-templates: FTBFS: make: *** [/usr/share/cdbs/1/class/hlibrary.mk:160: build-ghc-stamp] Error 25
Lucas Nussbaum
lucas at debian.org
Sun Aug 14 09:44:48 BST 2022
Source: haskell-simple-templates
Version: 1.0.0-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20220813 ftbfs-bookworm
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> debian/rules binary
> test -x debian/rules
> dh_testroot
> dh_prep
> dh_installdirs -A
> 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
> Adding cdbs dependencies to debian/libghc-simple-templates-doc.substvars
> dh_installdirs -plibghc-simple-templates-doc \
>
> perl -d:Confess -MDebian::Debhelper::Buildsystem::Haskell::Recipes=/.*/ \
> -E '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 ...
> perl -d:Confess -MDebian::Debhelper::Buildsystem::Haskell::Recipes=/.*/ \
> -E 'configure_recipe'
> Running find . ! -newer /tmp/9JTNW6Ngrh -exec touch -d 1998-01-01 UTC {} ;
> Running dh_listpackages
> libghc-simple-templates-dev
> libghc-simple-templates-prof
> libghc-simple-templates-doc
> Running dh_listpackages
> libghc-simple-templates-dev
> libghc-simple-templates-prof
> libghc-simple-templates-doc
> Running dpkg-buildflags --get LDFLAGS
> -Wl,-z,relro
> 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/simple-templates-1.0.0/ --datasubdir=simple-templates --htmldir=/usr/share/doc/libghc-simple-templates-doc/html/ --enable-library-profiling --enable-tests
> Using Parsec parser
> Configuring simple-templates-1.0.0...
> Dependency aeson >=0.7: using aeson-2.0.3.0
> Dependency attoparsec: using attoparsec-0.14.4
> Dependency base <6: using base-4.15.1.0
> Dependency scientific: using scientific-0.3.7.0
> Dependency text: using text-1.2.5.0
> Dependency unordered-containers: using unordered-containers-0.2.17.0
> Dependency vector: using vector-0.12.3.1
> Dependency HUnit: using HUnit-1.6.2.0
> Dependency aeson >=0.7: using aeson-2.0.3.0
> Dependency attoparsec: using attoparsec-0.14.4
> Dependency base <6: using base-4.15.1.0
> Dependency hspec: using hspec-2.8.5
> Dependency scientific: using scientific-0.3.7.0
> Dependency simple-templates: using simple-templates-1.0.0
> Dependency vector: using vector-0.12.3.1
> Source component graph:
> component lib
> component test:test-simple-templates dependency lib
> Configured component graph:
> component simple-templates-1.0.0-E9LpJ19hRHcC7XGzlO2bhy
> include aeson-2.0.3.0-AMpeUvq093B6yWOa7oRnlZ
> include attoparsec-0.14.4-ASUOPk5RpsVDRcb75ybcSE
> include base-4.15.1.0
> include scientific-0.3.7.0-7BCpthzRrIo63GoBWzRPfh
> include text-1.2.5.0
> include unordered-containers-0.2.17.0-FS8hZKYGMqLFC8ibuPNvjR
> include vector-0.12.3.1-TXkE6leK98EdYcmdk29JF
> component simple-templates-1.0.0-1ES1avNHogEKJizK4K0K2M-test-simple-templates
> include HUnit-1.6.2.0-6A7GkX10OfW69odZH6xHBm
> include aeson-2.0.3.0-AMpeUvq093B6yWOa7oRnlZ
> include attoparsec-0.14.4-ASUOPk5RpsVDRcb75ybcSE
> include base-4.15.1.0
> include hspec-2.8.5-ztFhIZtg6636xJR5cbSTr
> include scientific-0.3.7.0-7BCpthzRrIo63GoBWzRPfh
> include simple-templates-1.0.0-E9LpJ19hRHcC7XGzlO2bhy
> include vector-0.12.3.1-TXkE6leK98EdYcmdk29JF
> Linked component graph:
> unit simple-templates-1.0.0-E9LpJ19hRHcC7XGzlO2bhy
> include aeson-2.0.3.0-AMpeUvq093B6yWOa7oRnlZ
> include attoparsec-0.14.4-ASUOPk5RpsVDRcb75ybcSE
> include base-4.15.1.0
> include scientific-0.3.7.0-7BCpthzRrIo63GoBWzRPfh
> include text-1.2.5.0
> include unordered-containers-0.2.17.0-FS8hZKYGMqLFC8ibuPNvjR
> include vector-0.12.3.1-TXkE6leK98EdYcmdk29JF
> Web.Simple.Templates.Language=simple-templates-1.0.0-E9LpJ19hRHcC7XGzlO2bhy:Web.Simple.Templates.Language,Web.Simple.Templates.Parser=simple-templates-1.0.0-E9LpJ19hRHcC7XGzlO2bhy:Web.Simple.Templates.Parser,Web.Simple.Templates.Types=simple-templates-1.0.0-E9LpJ19hRHcC7XGzlO2bhy:Web.Simple.Templates.Types
> unit simple-templates-1.0.0-1ES1avNHogEKJizK4K0K2M-test-simple-templates
> include HUnit-1.6.2.0-6A7GkX10OfW69odZH6xHBm
> include aeson-2.0.3.0-AMpeUvq093B6yWOa7oRnlZ
> include attoparsec-0.14.4-ASUOPk5RpsVDRcb75ybcSE
> include base-4.15.1.0
> include hspec-2.8.5-ztFhIZtg6636xJR5cbSTr
> include scientific-0.3.7.0-7BCpthzRrIo63GoBWzRPfh
> include simple-templates-1.0.0-E9LpJ19hRHcC7XGzlO2bhy
> include vector-0.12.3.1-TXkE6leK98EdYcmdk29JF
> Ready component graph:
> definite simple-templates-1.0.0-E9LpJ19hRHcC7XGzlO2bhy
> depends aeson-2.0.3.0-AMpeUvq093B6yWOa7oRnlZ
> depends attoparsec-0.14.4-ASUOPk5RpsVDRcb75ybcSE
> depends base-4.15.1.0
> depends scientific-0.3.7.0-7BCpthzRrIo63GoBWzRPfh
> depends text-1.2.5.0
> depends unordered-containers-0.2.17.0-FS8hZKYGMqLFC8ibuPNvjR
> depends vector-0.12.3.1-TXkE6leK98EdYcmdk29JF
> definite simple-templates-1.0.0-1ES1avNHogEKJizK4K0K2M-test-simple-templates
> depends HUnit-1.6.2.0-6A7GkX10OfW69odZH6xHBm
> depends aeson-2.0.3.0-AMpeUvq093B6yWOa7oRnlZ
> depends attoparsec-0.14.4-ASUOPk5RpsVDRcb75ybcSE
> depends base-4.15.1.0
> depends hspec-2.8.5-ztFhIZtg6636xJR5cbSTr
> depends scientific-0.3.7.0-7BCpthzRrIo63GoBWzRPfh
> depends simple-templates-1.0.0-E9LpJ19hRHcC7XGzlO2bhy
> depends vector-0.12.3.1-TXkE6leK98EdYcmdk29JF
> Using Cabal-3.4.1.0 compiled by ghc-9.0
> Using compiler: ghc-9.0.2
> Using install prefix: /usr
> Executables installed in: /usr/bin
> Libraries installed in:
> /usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-9.0.2/simple-templates-1.0.0-E9LpJ19hRHcC7XGzlO2bhy
> Dynamic Libraries installed in:
> /usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-9.0.2
> Private executables installed in:
> /usr/lib/x86_64-linux-ghc-9.0.2/simple-templates-1.0.0
> Data files installed in: /usr/share/simple-templates
> Documentation installed in:
> /usr/share/doc/x86_64-linux-ghc-9.0.2/simple-templates-1.0.0
> Configuration files installed in: /usr/etc
> No alex found
> Using ar found on system at: /usr/bin/x86_64-linux-gnu-ar
> No c2hs found
> No cpphs found
> No doctest found
> Using gcc version 12 found on system at: /usr/bin/x86_64-linux-gnu-gcc
> Using ghc version 9.0.2 found on system at: /usr/bin/ghc
> Using ghc-pkg version 9.0.2 found on system at: /usr/bin/ghc-pkg
> No ghcjs found
> No ghcjs-pkg found
> No greencard found
> Using haddock version 2.25.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.68 found on system at: /usr/bin/hpc
> Using hsc2hs version 0.68.7 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/x86_64-linux-gnu-ld.gold
> No pkg-config found
> Using runghc version 9.0.2 found on system at: /usr/bin/runghc
> Using strip version 2.38 found on system at: /usr/bin/strip
> Using tar found on system at: /bin/tar
> No uhc found
> touch configure-ghc-stamp
> perl -d:Confess -MDebian::Debhelper::Buildsystem::Haskell::Recipes=/.*/ \
> -E 'build_recipe'
> Running dh_listpackages
> libghc-simple-templates-dev
> libghc-simple-templates-prof
> libghc-simple-templates-doc
> Preprocessing library for simple-templates-1.0.0..
> Building library for simple-templates-1.0.0..
> [1 of 3] Compiling Web.Simple.Templates.Types ( src/Web/Simple/Templates/Types.hs, dist-ghc/build/Web/Simple/Templates/Types.o, dist-ghc/build/Web/Simple/Templates/Types.dyn_o )
> [2 of 3] Compiling Web.Simple.Templates.Parser ( src/Web/Simple/Templates/Parser.hs, dist-ghc/build/Web/Simple/Templates/Parser.o, dist-ghc/build/Web/Simple/Templates/Parser.dyn_o )
> [3 of 3] Compiling Web.Simple.Templates.Language ( src/Web/Simple/Templates/Language.hs, dist-ghc/build/Web/Simple/Templates/Language.o, dist-ghc/build/Web/Simple/Templates/Language.dyn_o )
>
> src/Web/Simple/Templates/Language.hs:71:57: error:
> • Couldn't match type: Data.Aeson.KeyMap.KeyMap Value
> with: H.HashMap Identifier Value
> Expected: H.HashMap Identifier Value
> Actual: Object
> • In the second argument of ‘H.lookup’, namely ‘obj’
> In the second argument of ‘($)’, namely ‘H.lookup ident obj’
> In the expression: fromMaybe Null $ H.lookup ident obj
> |
> 71 | Object obj -> fromMaybe Null $ H.lookup ident obj
> | ^^^
>
> src/Web/Simple/Templates/Language.hs:77:57: error:
> • Couldn't match type: Data.Aeson.KeyMap.KeyMap Value
> with: H.HashMap Identifier Value
> Expected: H.HashMap Identifier Value
> Actual: Object
> • In the second argument of ‘H.lookup’, namely ‘obj’
> In the second argument of ‘($)’, namely ‘H.lookup ident obj’
> In the expression: fromMaybe Null $ H.lookup ident obj
> |
> 77 | Object obj -> fromMaybe Null $ H.lookup ident obj
> | ^^^
>
> src/Web/Simple/Templates/Language.hs:101:41: error:
> • Couldn't match type: Data.Aeson.KeyMap.KeyMap Value
> with: H.HashMap a0 Value
> Expected: H.HashMap a0 Value
> Actual: Object
> • In the first argument of ‘H.toList’, namely ‘obj’
> In the first argument of ‘go’, namely ‘(H.toList obj)’
> In the second argument of ‘($)’, namely ‘go (H.toList obj) mempty’
> |
> 101 | Object obj -> String $ go (H.toList obj) mempty
> | ^^^
>
> src/Web/Simple/Templates/Language.hs:121:52: error:
> • Couldn't match type: H.HashMap Identifier Value
> with: Data.Aeson.KeyMap.KeyMap Value
> Expected: Object
> Actual: H.HashMap Identifier Value
> • In the second argument of ‘($)’, namely
> ‘H.insert varName newVal orig’
> In the expression: Object $ H.insert varName newVal orig
> In an equation for ‘replaceVar’:
> replaceVar (Object orig) varName newVal
> = Object $ H.insert varName newVal orig
> |
> 121 | replaceVar (Object orig) varName newVal = Object $ H.insert varName newVal orig
> | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> src/Web/Simple/Templates/Language.hs:121:76: error:
> • Couldn't match type: Data.Aeson.KeyMap.KeyMap Value
> with: H.HashMap Identifier Value
> Expected: H.HashMap Identifier Value
> Actual: Object
> • In the third argument of ‘H.insert’, namely ‘orig’
> In the second argument of ‘($)’, namely
> ‘H.insert varName newVal orig’
> In the expression: Object $ H.insert varName newVal orig
> |
> 121 | replaceVar (Object orig) varName newVal = Object $ H.insert varName newVal orig
> | ^^^^
>
> src/Web/Simple/Templates/Language.hs:122:39: error:
> • Couldn't match type ‘Text’ with ‘Key’
> Expected: Key
> Actual: Identifier
> • In the first argument of ‘(.=)’, namely ‘varName’
> In the expression: varName .= newVal
> In the first argument of ‘object’, namely ‘[varName .= newVal]’
> |
> 122 | replaceVar _ varName newVal = object [varName .= newVal]
> | ^^^^^^^
> -e: error: debian/hlibrary.setup build --builddir=dist-ghc returned exit code 1
> at /usr/share/perl5/Debian/Debhelper/Dh_Lib.pm line 852.
> Debian::Debhelper::Dh_Lib::error("debian/hlibrary.setup build --builddir=dist-ghc returned exit"...) called at /usr/share/perl5/Debian/Debhelper/Dh_Lib.pm line 596
> Debian::Debhelper::Dh_Lib::error_exitcode("debian/hlibrary.setup build --builddir=dist-ghc") called at /usr/share/perl5/Debian/Debhelper/Dh_Lib.pm line 470
> Debian::Debhelper::Dh_Lib::doit("debian/hlibrary.setup", "build", "--builddir=dist-ghc") called at /usr/share/perl5/Debian/Debhelper/Buildsystem/Haskell/Recipes.pm line 650
> Debian::Debhelper::Buildsystem::Haskell::Recipes::build_recipe() called at -e line 1
> make: *** [/usr/share/cdbs/1/class/hlibrary.mk:160: build-ghc-stamp] Error 25
The full build log is available from:
http://qa-logs.debian.net/2022/08/13/haskell-simple-templates_1.0.0-1_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220813;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220813&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results
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!
If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
More information about the Pkg-haskell-maintainers
mailing list