Bug#1126204: haskell-data-default-instances-containers: FTBFS: Data/Default/Instances/Containers.hs:46:10: error: [GHC-59692]

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


Package: src:haskell-data-default-instances-containers
Version: 0.0.1-14
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:haskell-data-default-instances-containers, 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 ...]

	-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.lhs -o debian/hlibrary.setup
[1 of 2] Compiling Main             ( Setup.lhs, 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/YZcSBQceYf -exec touch -d 1998-01-01 UTC {} ;
Running dh_listpackages
libghc-data-default-instances-containers-dev
libghc-data-default-instances-containers-prof
libghc-data-default-instances-containers-doc
Running dh_listpackages
libghc-data-default-instances-containers-dev
libghc-data-default-instances-containers-prof
libghc-data-default-instances-containers-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/data-default-instances-containers-0.0.1/ --datasubdir=data-default-instances-containers --htmldir=/usr/share/doc/libghc-data-default-instances-containers-doc/html/ --enable-library-profiling
Using Parsec parser
Configuring data-default-instances-containers-0.0.1...
Dependency base >=2 && <5: using base-4.20.2.0
Dependency containers: using containers-0.7
Dependency data-default-class: using data-default-class-0.2.0.0
Source component graph: component lib
Configured component graph:
    component data-default-instances-containers-0.0.1-GUBDUNWtUbG2iWnvNt2fJJ
        include base-4.20.2.0-d92c
        include containers-0.7-08c6
        include data-default-class-0.2.0.0-3KLqUYuD6Pe4po6BBBEPUt
Linked component graph:
    unit data-default-instances-containers-0.0.1-GUBDUNWtUbG2iWnvNt2fJJ
        include base-4.20.2.0-d92c
        include containers-0.7-08c6
        include data-default-class-0.2.0.0-3KLqUYuD6Pe4po6BBBEPUt
        Data.Default.Instances.Containers=data-default-instances-containers-0.0.1-GUBDUNWtUbG2iWnvNt2fJJ:Data.Default.Instances.Containers
Ready component graph:
    definite data-default-instances-containers-0.0.1-GUBDUNWtUbG2iWnvNt2fJJ
        depends base-4.20.2.0-d92c
        depends containers-0.7-08c6
        depends data-default-class-0.2.0.0-3KLqUYuD6Pe4po6BBBEPUt
Using Cabal-3.12.1.0 compiled by ghc-9.10
Using compiler: ghc-9.10.3
Using install prefix: /usr
Executables installed in: /usr/bin
Libraries installed in:
/usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-9.10.3-2b2a/data-default-instances-containers-0.0.1-GUBDUNWtUbG2iWnvNt2fJJ
Dynamic Libraries installed in:
/usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-9.10.3-2b2a
Private executables installed in:
/usr/lib/x86_64-linux-ghc-9.10.3-2b2a/data-default-instances-containers-0.0.1
Data files installed in: /usr/share/data-default-instances-containers
Documentation installed in:
/usr/share/doc/x86_64-linux-ghc-9.10.3-2b2a/data-default-instances-containers-0.0.1
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 15 found on system at: /usr/bin/x86_64-linux-gnu-gcc
Using ghc version 9.10.3 found on system at: /usr/bin/ghc
Using ghc-pkg version 9.10.3 found on system at: /usr/bin/ghc-pkg-9.10.3
No ghcjs found
No ghcjs-pkg found
No greencard found
Using haddock version 2.31.1 found on system at: /usr/bin/haddock-ghc-9.10.3
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.69 found on system at: /usr/bin/hpc-ghc-9.10.3
Using hsc2hs version 0.68.10 found on system at: /usr/bin/hsc2hs-ghc-9.10.3
Using hscolour version 1.25 found on system at: /usr/bin/HsColour
No jhc found
Using ld found on system at: /usr/bin/ld
No pkg-config found
Using runghc version 9.10.3 found on system at: /usr/bin/runghc-9.10.3
Using strip version 2.45 found on system at: /usr/bin/strip
Using tar found on system at: /usr/bin/tar
No uhc found
touch configure-ghc-stamp
perl -d:Confess -MDebian::Debhelper::Buildsystem::Haskell::Recipes=/.*/ \
	-E 'build_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 dh_listpackages
libghc-data-default-instances-containers-dev
libghc-data-default-instances-containers-prof
libghc-data-default-instances-containers-doc
Preprocessing library for data-default-instances-containers-0.0.1...
Building library for data-default-instances-containers-0.0.1...
[1 of 1] Compiling Data.Default.Instances.Containers ( Data/Default/Instances/Containers.hs, dist-ghc/build/Data/Default/Instances/Containers.o, dist-ghc/build/Data/Default/Instances/Containers.dyn_o )
Data/Default/Instances/Containers.hs:46:10: error: [GHC-59692]
    Duplicate instance declarations:
      instance Default (S.Set v)
        -- Defined at Data/Default/Instances/Containers.hs:46:10
      instance [safe] Default (S.Set v)
        -- Defined in ‘data-default-0.8.0.1:Data.Default.Internal’
   |
46 | instance Default (S.Set v) where def = S.empty
   |          ^^^^^^^^^^^^^^^^^

Data/Default/Instances/Containers.hs:47:10: error: [GHC-59692]
    Duplicate instance declarations:
      instance Default (M.Map k v)
        -- Defined at Data/Default/Instances/Containers.hs:47:10
      instance [safe] Default (M.Map k v)
        -- Defined in ‘data-default-0.8.0.1:Data.Default.Internal’
   |
47 | instance Default (M.Map k v) where def = M.empty
   |          ^^^^^^^^^^^^^^^^^^^

Data/Default/Instances/Containers.hs:48:10: error: [GHC-59692]
    Duplicate instance declarations:
      instance Default (IntMap v)
        -- Defined at Data/Default/Instances/Containers.hs:48:10
      instance [safe] Default (IntMap v)
        -- Defined in ‘data-default-0.8.0.1:Data.Default.Internal’
   |
48 | instance Default (IntMap v) where def = mempty
   |          ^^^^^^^^^^^^^^^^^^

Data/Default/Instances/Containers.hs:49:10: error: [GHC-59692]
    Duplicate instance declarations:
      instance Default IntSet
        -- Defined at Data/Default/Instances/Containers.hs:49:10
      instance [safe] Default IntSet
        -- Defined in ‘data-default-0.8.0.1:Data.Default.Internal’
   |
49 | instance Default IntSet where def = mempty
   |          ^^^^^^^^^^^^^^

Data/Default/Instances/Containers.hs:50:10: error: [GHC-59692]
    Duplicate instance declarations:
      instance Default (Seq a)
        -- Defined at Data/Default/Instances/Containers.hs:50:10
      instance [safe] Default (Seq a)
        -- Defined in ‘data-default-0.8.0.1:Data.Default.Internal’
   |
50 | instance Default (Seq a) where def = mempty
   |          ^^^^^^^^^^^^^^^

Data/Default/Instances/Containers.hs:51:10: error: [GHC-59692]
    Duplicate instance declarations:
      instance Default a => Default (Tree a)
        -- Defined at Data/Default/Instances/Containers.hs:51:10
      instance [safe] Default a => Default (Tree a)
        -- Defined in ‘data-default-0.8.0.1:Data.Default.Internal’
   |
51 | instance (Default a) => Default (Tree a) where def = Node def []
   |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

-e: error: debian/hlibrary.setup build --builddir=dist-ghc returned exit code 1
 at /usr/share/perl5/Debian/Debhelper/Dh_Lib.pm line 900.
	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 639
	Debian::Debhelper::Dh_Lib::error_exitcode("debian/hlibrary.setup build --builddir=dist-ghc") called at /usr/share/perl5/Debian/Debhelper/Dh_Lib.pm line 502
	Debian::Debhelper::Dh_Lib::doit("debian/hlibrary.setup", "build", "--builddir=dist-ghc") called at /usr/share/perl5/Debian/Debhelper/Buildsystem/Haskell/Recipes.pm line 796
	Debian::Debhelper::Buildsystem::Haskell::Recipes::build_recipe() called at -e line 1
make: *** [/usr/share/cdbs/1/class/hlibrary.mk:158: build-ghc-stamp] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------



More information about the Pkg-haskell-maintainers mailing list