Bug#1126213: haxml: FTBFS: dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2

Santiago Vila sanvila at debian.org
Fri Jan 23 11:37:38 GMT 2026


Package: src:haxml
Version: 1:1.25.13-2
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202601/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:haxml, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
/usr/share/haskell-devscripts/GetCabalVersion.hs:17:50: warning: [GHC-63394] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, but defined in GHC.Internal.List):
    "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"."
   |
17 |     gpd <- readGenericPackageDescription silent (head args)
   |                                                  ^^^^

/usr/share/haskell-devscripts/GetCabalVersion.hs:17:50: warning: [GHC-63394] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, but defined in GHC.Internal.List):
    "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"."
   |
17 |     gpd <- readGenericPackageDescription silent (head args)

[... snipped ...]


/usr/share/haskell-devscripts/GetCabalVersion.hs:17:50: warning: [GHC-63394] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, but defined in GHC.Internal.List):
    "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"."
   |
17 |     gpd <- readGenericPackageDescription silent (head args)
   |                                                  ^^^^

/usr/share/haskell-devscripts/GetCabalVersion.hs:17:50: warning: [GHC-63394] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, but defined in GHC.Internal.List):
    "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"."
   |
17 |     gpd <- readGenericPackageDescription silent (head args)
   |                                                  ^^^^

/usr/share/haskell-devscripts/GetCabalVersion.hs:17:50: warning: [GHC-63394] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, but defined in GHC.Internal.List):
    "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"."
   |
17 |     gpd <- readGenericPackageDescription silent (head args)
   |                                                  ^^^^

/usr/share/haskell-devscripts/GetCabalVersion.hs:17:50: warning: [GHC-63394] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, but defined in GHC.Internal.List):
    "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"."
   |
17 |     gpd <- readGenericPackageDescription silent (head args)
   |                                                  ^^^^

dh_installdirs -A 
mkdir -p "."
/usr/share/haskell-devscripts/GetCabalVersion.hs:17:50: warning: [GHC-63394] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, but defined in GHC.Internal.List):
    "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"."
   |
17 |     gpd <- readGenericPackageDescription silent (head args)
   |                                                  ^^^^

/usr/share/haskell-devscripts/GetCabalVersion.hs:17:50: warning: [GHC-63394] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, but defined in GHC.Internal.List):
    "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"."
   |
17 |     gpd <- readGenericPackageDescription silent (head args)
   |                                                  ^^^^

/usr/share/haskell-devscripts/GetCabalVersion.hs:17:50: warning: [GHC-63394] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, but defined in GHC.Internal.List):
    "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"."
   |
17 |     gpd <- readGenericPackageDescription silent (head args)
   |                                                  ^^^^

/usr/share/haskell-devscripts/GetCabalVersion.hs:17:50: warning: [GHC-63394] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, but defined in GHC.Internal.List):
    "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"."
   |
17 |     gpd <- readGenericPackageDescription silent (head args)
   |                                                  ^^^^

/usr/share/haskell-devscripts/GetCabalVersion.hs:17:50: warning: [GHC-63394] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, but defined in GHC.Internal.List):
    "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"."
   |
17 |     gpd <- readGenericPackageDescription silent (head args)
   |                                                  ^^^^

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/GetCabalVersion.hs:17:50: warning: [GHC-63394] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, but defined in GHC.Internal.List):
    "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"."
   |
17 |     gpd <- readGenericPackageDescription silent (head args)
   |                                                  ^^^^

/usr/share/haskell-devscripts/GetCabalVersion.hs:17:50: warning: [GHC-63394] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, but defined in GHC.Internal.List):
    "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"."
   |
17 |     gpd <- readGenericPackageDescription silent (head args)
   |                                                  ^^^^

/usr/share/haskell-devscripts/GetCabalVersion.hs:17:50: warning: [GHC-63394] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, but defined in GHC.Internal.List):
    "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"."
   |
17 |     gpd <- readGenericPackageDescription silent (head args)
   |                                                  ^^^^

/usr/share/haskell-devscripts/GetCabalVersion.hs:17:50: warning: [GHC-63394] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, but defined in GHC.Internal.List):
    "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"."
   |
17 |     gpd <- readGenericPackageDescription silent (head args)
   |                                                  ^^^^

/usr/share/haskell-devscripts/GetCabalVersion.hs:17:50: warning: [GHC-63394] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, but defined in GHC.Internal.List):
    "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"."
   |
17 |     gpd <- readGenericPackageDescription silent (head args)
   |                                                  ^^^^

Adding cdbs dependencies to debian/libghc-haxml-doc.substvars
dh_installdirs -plibghc-haxml-doc \
	
/usr/share/haskell-devscripts/GetCabalVersion.hs:17:50: warning: [GHC-63394] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, but defined in GHC.Internal.List):
    "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"."
   |
17 |     gpd <- readGenericPackageDescription silent (head args)
   |                                                  ^^^^

/usr/share/haskell-devscripts/GetCabalVersion.hs:17:50: warning: [GHC-63394] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, but defined in GHC.Internal.List):
    "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"."
   |
17 |     gpd <- readGenericPackageDescription silent (head args)
   |                                                  ^^^^

/usr/share/haskell-devscripts/GetCabalVersion.hs:17:50: warning: [GHC-63394] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, but defined in GHC.Internal.List):
    "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"."
   |
17 |     gpd <- readGenericPackageDescription silent (head args)
   |                                                  ^^^^

/usr/share/haskell-devscripts/GetCabalVersion.hs:17:50: warning: [GHC-63394] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, but defined in GHC.Internal.List):
    "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"."
   |
17 |     gpd <- readGenericPackageDescription silent (head args)
   |                                                  ^^^^

/usr/share/haskell-devscripts/GetCabalVersion.hs:17:50: warning: [GHC-63394] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, but defined in GHC.Internal.List):
    "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"."
   |
17 |     gpd <- readGenericPackageDescription silent (head args)
   |                                                  ^^^^

perl -d:Confess -MDebian::Debhelper::Buildsystem::Haskell::Recipes=/.*/ \
	-E 'make_setup_recipe'
/usr/share/haskell-devscripts/GetCabalVersion.hs:17:50: warning: [GHC-63394] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, but defined in GHC.Internal.List):
    "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"."
   |
17 |     gpd <- readGenericPackageDescription silent (head args)
   |                                                  ^^^^

/usr/share/haskell-devscripts/GetCabalVersion.hs:17:50: warning: [GHC-63394] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, but defined in GHC.Internal.List):
    "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"."
   |
17 |     gpd <- readGenericPackageDescription silent (head args)
   |                                                  ^^^^

/usr/share/haskell-devscripts/GetCabalVersion.hs:17:50: warning: [GHC-63394] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, but defined in GHC.Internal.List):
    "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"."
   |
17 |     gpd <- readGenericPackageDescription silent (head args)
   |                                                  ^^^^

/usr/share/haskell-devscripts/GetCabalVersion.hs:17:50: warning: [GHC-63394] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, but defined in GHC.Internal.List):
    "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"."
   |
17 |     gpd <- readGenericPackageDescription silent (head args)
   |                                                  ^^^^

/usr/share/haskell-devscripts/GetCabalVersion.hs:17:50: warning: [GHC-63394] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, but defined in GHC.Internal.List):
    "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"."
   |
17 |     gpd <- readGenericPackageDescription silent (head args)
   |                                                  ^^^^

Running ghc --make Setup.hs -o debian/hlibrary.setup
[1 of 2] Compiling Main             ( Setup.hs, Setup.o )
[2 of 2] Linking debian/hlibrary.setup
perl -d:Confess -MDebian::Debhelper::Buildsystem::Haskell::Recipes=/.*/ \
	-E 'configure_recipe'
/usr/share/haskell-devscripts/GetCabalVersion.hs:17:50: warning: [GHC-63394] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, but defined in GHC.Internal.List):
    "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"."
   |
17 |     gpd <- readGenericPackageDescription silent (head args)
   |                                                  ^^^^

/usr/share/haskell-devscripts/GetCabalVersion.hs:17:50: warning: [GHC-63394] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, but defined in GHC.Internal.List):
    "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"."
   |
17 |     gpd <- readGenericPackageDescription silent (head args)
   |                                                  ^^^^

/usr/share/haskell-devscripts/GetCabalVersion.hs:17:50: warning: [GHC-63394] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, but defined in GHC.Internal.List):
    "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"."
   |
17 |     gpd <- readGenericPackageDescription silent (head args)
   |                                                  ^^^^

/usr/share/haskell-devscripts/GetCabalVersion.hs:17:50: warning: [GHC-63394] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, but defined in GHC.Internal.List):
    "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"."
   |
17 |     gpd <- readGenericPackageDescription silent (head args)
   |                                                  ^^^^

/usr/share/haskell-devscripts/GetCabalVersion.hs:17:50: warning: [GHC-63394] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, but defined in GHC.Internal.List):
    "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"."
   |
17 |     gpd <- readGenericPackageDescription silent (head args)
   |                                                  ^^^^

Running find . ! -newer /tmp/xxytpXImus -exec touch -d 1998-01-01 UTC {} ;
Running dh_listpackages
haxml
libghc-haxml-dev
libghc-haxml-prof
libghc-haxml-doc
Running dh_listpackages
haxml
libghc-haxml-dev
libghc-haxml-prof
libghc-haxml-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/haxml-1.25.13/ --datasubdir=haxml --htmldir=/usr/share/doc/libghc-haxml-doc/html/ --enable-library-profiling
Non-zero exit code 1.
Using Parsec parser
Configuring HaXml-1.25.13...
Error: [Cabal-8010]
Encountered missing or private dependencies:
    base >=4.3.1.0 && <4.19,
    containers >=0.4.0.0 && <0.7,
    filepath >=1.2.0.0 && <1.5
CallStack (from HasCallStack):
  dieWithException, called at libraries/Cabal/Cabal/src/Distribution/Simple/Configure.hs:1457:11 in Cabal-3.12.1.0-7f1d:Distribution.Simple.Configure

 at /usr/share/perl5/Debian/Debhelper/Buildsystem/Haskell/Recipes.pm line 112.
	Debian::Debhelper::Buildsystem::Haskell::Recipes::run_quiet("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", ...) called at /usr/share/perl5/Debian/Debhelper/Buildsystem/Haskell/Recipes.pm line 136
	Debian::Debhelper::Buildsystem::Haskell::Recipes::run("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", ...) called at /usr/share/perl5/Debian/Debhelper/Buildsystem/Haskell/Recipes.pm line 770
	Debian::Debhelper::Buildsystem::Haskell::Recipes::configure_recipe() called at -e line 1
make: *** [/usr/share/cdbs/1/class/hlibrary.mk:153: configure-ghc-stamp] Error 1
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------



More information about the Pkg-haskell-maintainers mailing list