Bug#984150: ghc: ftbfs with GCC-11

Matthias Klose doko at debian.org
Wed Mar 3 16:12:44 GMT 2021


Package: src:ghc
Version: 8.8.4-2
Severity: normal
Tags: sid bookworm
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-11

[This bug is not targeted to the upcoming bullseye release]

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-11/g++-11, but succeeds to build with gcc-10/g++-10. The
severity of this report will be raised before the bookworm release,
so nothing has to be done for the bullseye release.

The full build log can be found at:
http://people.debian.org/~doko/logs/20210228/filtered/gcc11/ghc_8.8.4-2_unstable_gcc11.log
The last lines of the build log are at the end of this report.

To build with GCC 11, either set CC=gcc-11 CXX=g++-11 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-11/porting_to.html

GCC 11 defaults to the GNU++17 standard.  If your package installs
header files in /usr/include, please don't work around C++17 issues
by choosing a lower C++ standard for the package build, but fix these
issues to build with the C++17 standard.

[...]
find debian/tmp/usr/share/doc/ghc-doc/html/libraries/*/ -name "*.txt" \
	-printf "%p /usr/lib/ghc-doc/hoogle//%f\n" >> debian/ghc-doc.links
find debian/tmp/usr/share/doc/ghc-doc \( -type f -o -type l \) > debian/ghc-doc.install
find debian/tmp/usr/lib/ghc-doc \( -type f -o -type l \)      >> debian/ghc-doc.install
sed -i s,^debian/tmp,, debian/*.install debian/*.links
rm -f debian/ghc.links
echo "/var/lib/ghc/package.conf.d /usr/lib/ghc/package.conf.d" >> debian/ghc.links
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_install
   dh_installdocs
   dh_installchangelogs
   dh_installman
   dh_perl
   dh_link
   dh_strip_nondeterminism
   debian/rules override_dh_compress
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_compress -X.haddock -X.txt
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_fixperms
   dh_missing
   dh_dwz
dwz: debian/ghc/usr/lib/ghc/Cabal-3.0.1.0/libHSCabal-3.0.1.0-ghc8.8.4.so: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/array-0.5.4.0/libHSarray-0.5.4.0-ghc8.8.4.so: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/base-4.13.0.0/libHSbase-4.13.0.0-ghc8.8.4.so: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/bin/ghc: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/bin/ghc-iserv-dyn: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/bin/ghc-pkg: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/bin/haddock: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/bin/hp2ps: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/bin/hpc: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/bin/hsc2hs: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/bin/runghc: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/bin/unlit: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/binary-0.8.7.0/libHSbinary-0.8.7.0-ghc8.8.4.so: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/bytestring-0.10.10.1/libHSbytestring-0.10.10.1-ghc8.8.4.so: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/containers-0.6.2.1/libHScontainers-0.6.2.1-ghc8.8.4.so: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/deepseq-1.4.4.0/libHSdeepseq-1.4.4.0-ghc8.8.4.so: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/directory-1.3.6.0/libHSdirectory-1.3.6.0-ghc8.8.4.so: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/filepath-1.4.2.1/libHSfilepath-1.4.2.1-ghc8.8.4.so: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/ghc-8.8.4/libHSghc-8.8.4-ghc8.8.4.so: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/ghc-boot-8.8.4/libHSghc-boot-8.8.4-ghc8.8.4.so: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/ghc-boot-th-8.8.4/libHSghc-boot-th-8.8.4-ghc8.8.4.so: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/ghc-compact-0.1.0.0/libHSghc-compact-0.1.0.0-ghc8.8.4.so: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/ghc-heap-8.8.4/libHSghc-heap-8.8.4-ghc8.8.4.so: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/ghc-prim-0.5.3/libHSghc-prim-0.5.3-ghc8.8.4.so: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/ghci-8.8.4/libHSghci-8.8.4-ghc8.8.4.so: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/haskeline-0.7.5.0/libHShaskeline-0.7.5.0-ghc8.8.4.so: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/hpc-0.6.0.3/libHShpc-0.6.0.3-ghc8.8.4.so: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/integer-gmp-1.0.2.0/libHSinteger-gmp-1.0.2.0-ghc8.8.4.so: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/libiserv-8.8.4/libHSlibiserv-8.8.4-ghc8.8.4.so: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/mtl-2.2.2/libHSmtl-2.2.2-ghc8.8.4.so: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/parsec-3.1.14.0/libHSparsec-3.1.14.0-ghc8.8.4.so: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/pretty-1.1.3.6/libHSpretty-1.1.3.6-ghc8.8.4.so: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/process-1.6.9.0/libHSprocess-1.6.9.0-ghc8.8.4.so: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/rts/libHSrts_debug-ghc8.8.4.so: Unhandled .debug_macro version 5
dwz: debian/ghc/usr/lib/ghc/rts/libHSrts_thr_debug-ghc8.8.4.so: Unhandled .debug_macro version 5
dwz: debian/ghc/usr/lib/ghc/stm-2.5.0.0/libHSstm-2.5.0.0-ghc8.8.4.so: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/template-haskell-2.15.0.0/libHStemplate-haskell-2.15.0.0-ghc8.8.4.so: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/terminfo-0.4.1.4/libHSterminfo-0.4.1.4-ghc8.8.4.so: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/text-1.2.4.0/libHStext-1.2.4.0-ghc8.8.4.so: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/time-1.9.3/libHStime-1.9.3-ghc8.8.4.so: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/transformers-0.5.6.2/libHStransformers-0.5.6.2-ghc8.8.4.so: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/unix-2.7.2.2/libHSunix-2.7.2.2-ghc8.8.4.so: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/xhtml-3000.2.2.1/libHSxhtml-3000.2.2.1-ghc8.8.4.so: .debug_info section not present
dwz: debian/ghc/usr/lib/ghc/rts/libHSrts_debug-ghc8.8.4.so: Unhandled .debug_macro version 5
dwz: debian/ghc/usr/lib/ghc/rts/libHSrts_thr_debug-ghc8.8.4.so: Unhandled .debug_macro version 5
dh_dwz: error: dwz -mdebian/ghc/usr/lib/debug/.dwz/x86_64-linux-gnu/ghc.debug -M/usr/lib/debug/.dwz/x86_64-linux-gnu/ghc.debug -- debian/ghc/usr/lib/ghc/Cabal-3.0.1.0/libHSCabal-3.0.1.0-ghc8.8.4.so debian/ghc/usr/lib/ghc/array-0.5.4.0/libHSarray-0.5.4.0-ghc8.8.4.so debian/ghc/usr/lib/ghc/base-4.13.0.0/libHSbase-4.13.0.0-ghc8.8.4.so debian/ghc/usr/lib/ghc/bin/ghc debian/ghc/usr/lib/ghc/bin/ghc-iserv debian/ghc/usr/lib/ghc/bin/ghc-iserv-dyn debian/ghc/usr/lib/ghc/bin/ghc-iserv-prof debian/ghc/usr/lib/ghc/bin/ghc-pkg debian/ghc/usr/lib/ghc/bin/haddock debian/ghc/usr/lib/ghc/bin/hp2ps debian/ghc/usr/lib/ghc/bin/hpc debian/ghc/usr/lib/ghc/bin/hsc2hs debian/ghc/usr/lib/ghc/bin/runghc debian/ghc/usr/lib/ghc/bin/unlit debian/ghc/usr/lib/ghc/binary-0.8.7.0/libHSbinary-0.8.7.0-ghc8.8.4.so debian/ghc/usr/lib/ghc/bytestring-0.10.10.1/libHSbytestring-0.10.10.1-ghc8.8.4.so debian/ghc/usr/lib/ghc/containers-0.6.2.1/libHScontainers-0.6.2.1-ghc8.8.4.so debian/ghc/usr/lib/ghc/deepseq-1.4.4.0/libHSdeepseq-1.4.4.0-ghc8.8.4.so debian/ghc/usr/lib/ghc/directory-1.3.6.0/libHSdirectory-1.3.6.0-ghc8.8.4.so debian/ghc/usr/lib/ghc/filepath-1.4.2.1/libHSfilepath-1.4.2.1-ghc8.8.4.so debian/ghc/usr/lib/ghc/ghc-8.8.4/libHSghc-8.8.4-ghc8.8.4.so debian/ghc/usr/lib/ghc/ghc-boot-8.8.4/libHSghc-boot-8.8.4-ghc8.8.4.so debian/ghc/usr/lib/ghc/ghc-boot-th-8.8.4/libHSghc-boot-th-8.8.4-ghc8.8.4.so debian/ghc/usr/lib/ghc/ghc-compact-0.1.0.0/libHSghc-compact-0.1.0.0-ghc8.8.4.so debian/ghc/usr/lib/ghc/ghc-heap-8.8.4/libHSghc-heap-8.8.4-ghc8.8.4.so debian/ghc/usr/lib/ghc/ghc-prim-0.5.3/libHSghc-prim-0.5.3-ghc8.8.4.so debian/ghc/usr/lib/ghc/ghci-8.8.4/libHSghci-8.8.4-ghc8.8.4.so debian/ghc/usr/lib/ghc/haskeline-0.7.5.0/libHShaskeline-0.7.5.0-ghc8.8.4.so debian/ghc/usr/lib/ghc/hpc-0.6.0.3/libHShpc-0.6.0.3-ghc8.8.4.so debian/ghc/usr/lib/ghc/integer-gmp-1.0.2.0/libHSinteger-gmp-1.0.2.0-ghc8.8.4.so debian/ghc/usr/lib/ghc/libiserv-8.8.4/libHSlibiserv-8.8.4-ghc8.8.4.so debian/ghc/usr/lib/ghc/mtl-2.2.2/libHSmtl-2.2.2-ghc8.8.4.so debian/ghc/usr/lib/ghc/parsec-3.1.14.0/libHSparsec-3.1.14.0-ghc8.8.4.so debian/ghc/usr/lib/ghc/pretty-1.1.3.6/libHSpretty-1.1.3.6-ghc8.8.4.so debian/ghc/usr/lib/ghc/process-1.6.9.0/libHSprocess-1.6.9.0-ghc8.8.4.so debian/ghc/usr/lib/ghc/rts/libHSrts-ghc8.8.4.so debian/ghc/usr/lib/ghc/rts/libHSrts_debug-ghc8.8.4.so debian/ghc/usr/lib/ghc/rts/libHSrts_l-ghc8.8.4.so debian/ghc/usr/lib/ghc/rts/libHSrts_thr-ghc8.8.4.so debian/ghc/usr/lib/ghc/rts/libHSrts_thr_debug-ghc8.8.4.so debian/ghc/usr/lib/ghc/rts/libHSrts_thr_l-ghc8.8.4.so debian/ghc/usr/lib/ghc/stm-2.5.0.0/libHSstm-2.5.0.0-ghc8.8.4.so debian/ghc/usr/lib/ghc/template-haskell-2.15.0.0/libHStemplate-haskell-2.15.0.0-ghc8.8.4.so debian/ghc/usr/lib/ghc/terminfo-0.4.1.4/libHSterminfo-0.4.1.4-ghc8.8.4.so debian/ghc/usr/lib/ghc/text-1.2.4.0/libHStext-1.2.4.0-ghc8.8.4.so debian/ghc/usr/lib/ghc/time-1.9.3/libHStime-1.9.3-ghc8.8.4.so debian/ghc/usr/lib/ghc/transformers-0.5.6.2/libHStransformers-0.5.6.2-ghc8.8.4.so debian/ghc/usr/lib/ghc/unix-2.7.2.2/libHSunix-2.7.2.2-ghc8.8.4.so debian/ghc/usr/lib/ghc/xhtml-3000.2.2.1/libHSxhtml-3000.2.2.1-ghc8.8.4.so returned exit code 1
make: *** [debian/rules:64: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Pkg-haskell-maintainers mailing list