Bug#984174: haskell-glib: ftbfs with GCC-11

Matthias Klose doko at debian.org
Wed Mar 3 16:13:10 GMT 2021


Package: src:haskell-glib
Version: 0.13.8.1-1
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/haskell-glib_0.13.8.1-1_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.

[...]
        include bytestring-0.10.10.1
        include containers-0.6.2.1
        include text-1.2.4.0
        include utf8-string-1.0.1.1-K3Cc2i5eeGM49mkpXdBKoc
        System.Glib=glib-0.13.8.1-CNR5m0GNdIe6FNxKsH4Wyx:System.Glib,System.Glib.Attributes=glib-0.13.8.1-CNR5m0GNdIe6FNxKsH4Wyx:System.Glib.Attributes,System.Glib.FFI=glib-0.13.8.1-CNR5m0GNdIe6FNxKsH4Wyx:System.Glib.FFI,System.Glib.Flags=glib-0.13.8.1-CNR5m0GNdIe6FNxKsH4Wyx:System.Glib.Flags,System.Glib.GDateTime=glib-0.13.8.1-CNR5m0GNdIe6FNxKsH4Wyx:System.Glib.GDateTime,System.Glib.GError=glib-0.13.8.1-CNR5m0GNdIe6FNxKsH4Wyx:System.Glib.GError,System.Glib.GList=glib-0.13.8.1-CNR5m0GNdIe6FNxKsH4Wyx:System.Glib.GList,System.Glib.GObject=glib-0.13.8.1-CNR5m0GNdIe6FNxKsH4Wyx:System.Glib.GObject,System.Glib.GParameter=glib-0.13.8.1-CNR5m0GNdIe6FNxKsH4Wyx:System.Glib.GParameter,System.Glib.GString=glib-0.13.8.1-CNR5m0GNdIe6FNxKsH4Wyx:System.Glib.GString,System.Glib.GType=glib-0.13.8.1-CNR5m0GNdIe6FNxKsH4Wyx:System.Glib.GType,System.Glib.GTypeConstants=glib-0.13.8.1-CNR5m0GNdIe6FNxKsH4Wyx:System.Glib.GTypeConstants,System.Glib.GValue=glib-0.13.8.1-CNR5m0GNdIe6FNxKsH4Wyx:System.Glib.GValue,System.Glib.GValueTypes=glib-0.13.8.1-CNR5m0GNdIe6FNxKsH4Wyx:System.Glib.GValueTypes,System.Glib.MainLoop=glib-0.13.8.1-CNR5m0GNdIe6FNxKsH4Wyx:System.Glib.MainLoop,System.Glib.Properties=glib-0.13.8.1-CNR5m0GNdIe6FNxKsH4Wyx:System.Glib.Properties,System.Glib.Signals=glib-0.13.8.1-CNR5m0GNdIe6FNxKsH4Wyx:System.Glib.Signals,System.Glib.StoreValue=glib-0.13.8.1-CNR5m0GNdIe6FNxKsH4Wyx:System.Glib.StoreValue,System.Glib.Types=glib-0.13.8.1-CNR5m0GNdIe6FNxKsH4Wyx:System.Glib.Types,System.Glib.UTFString=glib-0.13.8.1-CNR5m0GNdIe6FNxKsH4Wyx:System.Glib.UTFString,System.Glib.Utils=glib-0.13.8.1-CNR5m0GNdIe6FNxKsH4Wyx:System.Glib.Utils
Ready component graph:
    definite glib-0.13.8.1-CNR5m0GNdIe6FNxKsH4Wyx
        depends base-4.13.0.0
        depends bytestring-0.10.10.1
        depends containers-0.6.2.1
        depends text-1.2.4.0
        depends utf8-string-1.0.1.1-K3Cc2i5eeGM49mkpXdBKoc
Using Cabal-3.0.1.0 compiled by ghc-8.8
Using compiler: ghc-8.8.4
Using install prefix: /usr
Executables installed in: /usr/bin
Libraries installed in:
/usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-8.8.4/glib-0.13.8.1-CNR5m0GNdIe6FNxKsH4Wyx
Dynamic Libraries installed in:
/usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-8.8.4
Private executables installed in:
/usr/lib/x86_64-linux-ghc-8.8.4/glib-0.13.8.1
Data files installed in: /usr/share/glib
Documentation installed in:
/usr/share/doc/x86_64-linux-ghc-8.8.4/glib-0.13.8.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 11 found on system at: /usr/bin/x86_64-linux-gnu-gcc
Using ghc version 8.8.4 found on system at: /usr/bin/ghc
Using ghc-pkg version 8.8.4 found on system at: /usr/bin/ghc-pkg
No ghcjs found
No ghcjs-pkg found
No greencard found
Using gtk2hsC2hs version 0.13.13 found on system at: /usr/bin/gtk2hsC2hs
Using gtk2hsHookGenerator found on system at: /usr/bin/gtk2hsHookGenerator
Using gtk2hsTypeGen found on system at: /usr/bin/gtk2hsTypeGen
Using haddock version 2.23.0 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.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
Using pkg-config version 0.29.2 found on system at: /usr/bin/pkg-config
Using runghc version 8.8.4 found on system at: /usr/bin/runghc
Using strip version 2.35 found on system at: /usr/bin/strip
Using tar found on system at: /bin/tar
No uhc found
/usr/bin/pkg-config --modversion glib-2.0
/usr/bin/pkg-config --modversion gobject-2.0
touch configure-ghc-stamp
. /usr/share/haskell-devscripts/Dh_Haskell.sh && \
build_recipe
Running debian/hlibrary.setup build --builddir=dist-ghc
Preprocessing library for glib-0.13.8.1..
hlibrary.setup: Error in C header file.

glib-object.i:1: (column 1) [FATAL] 
  >>> Lexical error!
  The character '#' does not fit here.

make: *** [/usr/share/cdbs/1/class/hlibrary.mk:147: build-ghc-stamp] Error 1
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Pkg-haskell-maintainers mailing list