Bug#971187: haskell-ncurses: FTBFS: Cannot find a definition for `KEY_EVENT' in the header file.

Lucas Nussbaum lucas at debian.org
Sun Sep 27 20:05:11 BST 2020


Source: haskell-ncurses
Version: 0.2.16-4
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20200926 ftbfs-bullseye

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

Relevant part (hopefully):
> dpkg-buildpackage
> -----------------
> 
> Command: dpkg-buildpackage -us -uc -sa -rfakeroot
> dpkg-buildpackage: info: source package haskell-ncurses
> dpkg-buildpackage: info: source version 0.2.16-4
> dpkg-buildpackage: info: source distribution unstable
> dpkg-buildpackage: info: source changed by Ilias Tsitsimpis <iliastsi at debian.org>
>  dpkg-source --before-build .
> dpkg-buildpackage: info: host architecture amd64
>  debian/rules clean
> test -x debian/rules
> dh_clean 
> . /usr/share/haskell-devscripts/Dh_Haskell.sh && \
> clean_recipe
> Running rm -rf dist dist-ghc dist-ghcjs dist-hugs debian/hlibrary.setup Setup.hi Setup.ho Setup.o .\*config\*
> Running rm -f configure-ghc-stamp configure-ghcjs-stamp build-ghc-stamp build-ghcjs-stamp build-hugs-stamp build-haddock-stamp
> Running rm -rf debian/tmp-inst-ghc debian/tmp-inst-ghcjs
> Running rm -f debian/extra-depends-ghc debian/extra-depends-ghcjs
> Running rm -f debian/hlibrary.Makefile
> Running rm -rf debian/dh_haskell_shlibdeps
> Running rm -rf debian/tmp-db
>  dpkg-source -b .
> dpkg-source: info: using source format '3.0 (quilt)'
> dpkg-source: info: building haskell-ncurses using existing ./haskell-ncurses_0.2.16.orig.tar.gz
> dpkg-source: info: building haskell-ncurses in haskell-ncurses_0.2.16-4.debian.tar.xz
> dpkg-source: info: building haskell-ncurses in haskell-ncurses_0.2.16-4.dsc
>  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
> . /usr/share/haskell-devscripts/Dh_Haskell.sh && \
> 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 ...
> . /usr/share/haskell-devscripts/Dh_Haskell.sh && \
> configure_recipe
> 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/ncurses-0.2.16/ --datasubdir=ncurses --htmldir=/usr/share/doc/libghc-ncurses-doc/html/ --enable-library-profiling
> Using Parsec parser
> Configuring ncurses-0.2.16...
> Flags chosen: force-narrow-library=False, use-pkgconfig=False
> Dependency base >=4.0 && <5.0: using base-4.13.0.0
> Dependency containers >=0.2: using containers-0.6.2.1
> Dependency text >=0.7: using text-1.2.4.0
> Dependency transformers >=0.2: using transformers-0.5.6.2
> Source component graph: component lib
> Configured component graph:
>     component ncurses-0.2.16-DlbBRnylFrw1BhVAk5l8d3
>         include base-4.13.0.0
>         include containers-0.6.2.1
>         include text-1.2.4.0
>         include transformers-0.5.6.2
> Linked component graph:
>     unit ncurses-0.2.16-DlbBRnylFrw1BhVAk5l8d3
>         include base-4.13.0.0
>         include containers-0.6.2.1
>         include text-1.2.4.0
>         include transformers-0.5.6.2
>         UI.NCurses=ncurses-0.2.16-DlbBRnylFrw1BhVAk5l8d3:UI.NCurses,UI.NCurses.Panel=ncurses-0.2.16-DlbBRnylFrw1BhVAk5l8d3:UI.NCurses.Panel
> Ready component graph:
>     definite ncurses-0.2.16-DlbBRnylFrw1BhVAk5l8d3
>         depends base-4.13.0.0
>         depends containers-0.6.2.1
>         depends text-1.2.4.0
>         depends transformers-0.5.6.2
> 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/ncurses-0.2.16-DlbBRnylFrw1BhVAk5l8d3
> 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/ncurses-0.2.16
> Data files installed in: /usr/share/ncurses
> Documentation installed in:
> /usr/share/doc/x86_64-linux-ghc-8.8.4/ncurses-0.2.16
> Configuration files installed in: /usr/etc
> No alex found
> Using ar found on system at: /usr/bin/x86_64-linux-gnu-ar
> Using c2hs version 0.28.6 found on system at: /usr/bin/c2hs
> No cpphs found
> No doctest found
> Using gcc version 10 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 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
> No pkg-config found
> 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
> touch configure-ghc-stamp
> . /usr/share/haskell-devscripts/Dh_Haskell.sh &&\
> haddock_recipe
> Running debian/hlibrary.setup haddock --builddir=dist-ghc --with-haddock=/usr/bin/haddock --with-ghc=ghc --verbose=2 --html --hoogle --haddock-options=\"--mathjax=file:///usr/share/javascript/mathjax/MathJax.js\" --hyperlink-source
> /usr/bin/haddock --version
> /usr/bin/ghc --numeric-version
> /usr/bin/haddock --ghc-version '--mathjax=file:///usr/share/javascript/mathjax/MathJax.js'
> /usr/bin/ghc --print-libdir
> /usr/bin/ghc-pkg init dist-ghc/package.conf.inplace
> creating dist-ghc/build
> creating dist-ghc/build/autogen
> creating dist-ghc/build/autogen
> Preprocessing library for ncurses-0.2.16..
> creating dist-ghc/build/UI
> /usr/bin/c2hs '--cpp=/usr/bin/x86_64-linux-gnu-gcc' '--cppopts=-E' '--cppopts=-D__GLASGOW_HASKELL__=808' '--cppopts=-Dlinux_BUILD_OS=1' '--cppopts=-Dx86_64_BUILD_ARCH=1' '--cppopts=-Dlinux_HOST_OS=1' '--cppopts=-Dx86_64_HOST_ARCH=1' '--cppopts=-I.' '--cppopts=-includedist-ghc/build/autogen/cabal_macros.h' '--include=dist-ghc/build' '--cppopts=-I/usr/lib/ghc/bytestring-0.10.10.1/include' '--cppopts=-I/usr/lib/ghc/base-4.13.0.0/include' '--cppopts=-I/usr/lib/ghc/integer-gmp-1.0.2.0/include' '--cppopts=-I/usr/lib/ghc/include' '--output-dir=dist-ghc/build' '--output=UI/NCurses.hs' lib/UI/NCurses.chs
> creating dist-ghc/build/UI/NCurses
> /usr/bin/c2hs '--cpp=/usr/bin/x86_64-linux-gnu-gcc' '--cppopts=-E' '--cppopts=-D__GLASGOW_HASKELL__=808' '--cppopts=-Dlinux_BUILD_OS=1' '--cppopts=-Dx86_64_BUILD_ARCH=1' '--cppopts=-Dlinux_HOST_OS=1' '--cppopts=-Dx86_64_HOST_ARCH=1' '--cppopts=-I.' '--cppopts=-includedist-ghc/build/autogen/cabal_macros.h' '--include=dist-ghc/build' '--cppopts=-I/usr/lib/ghc/bytestring-0.10.10.1/include' '--cppopts=-I/usr/lib/ghc/base-4.13.0.0/include' '--cppopts=-I/usr/lib/ghc/integer-gmp-1.0.2.0/include' '--cppopts=-I/usr/lib/ghc/include' '--output-dir=dist-ghc/build' '--output=UI/NCurses/Panel.hs' lib/UI/NCurses/Panel.chs
> creating dist-ghc/build/UI/NCurses
> /usr/bin/c2hs '--cpp=/usr/bin/x86_64-linux-gnu-gcc' '--cppopts=-E' '--cppopts=-D__GLASGOW_HASKELL__=808' '--cppopts=-Dlinux_BUILD_OS=1' '--cppopts=-Dx86_64_BUILD_ARCH=1' '--cppopts=-Dlinux_HOST_OS=1' '--cppopts=-Dx86_64_HOST_ARCH=1' '--cppopts=-I.' '--cppopts=-includedist-ghc/build/autogen/cabal_macros.h' '--include=dist-ghc/build' '--cppopts=-I/usr/lib/ghc/bytestring-0.10.10.1/include' '--cppopts=-I/usr/lib/ghc/base-4.13.0.0/include' '--cppopts=-I/usr/lib/ghc/integer-gmp-1.0.2.0/include' '--cppopts=-I/usr/lib/ghc/include' '--output-dir=dist-ghc/build' '--output=UI/NCurses/Enums.hs' lib/UI/NCurses/Enums.chs
> c2hs: C header contains errors:
> 
> dist-ghc/build/UI/NCurses/Enums.chs.h:140: (column 25) [ERROR]  >>> Unknown identifier!
>   Cannot find a definition for `KEY_EVENT' in the header file.
> 
> Haddock failed (no modules?), refusing to create empty documentation package.
> make: *** [/usr/share/cdbs/1/class/hlibrary.mk:173: build-haddock-stamp] Error 1

The full build log is available from:
   http://qa-logs.debian.net/2020/09/26/haskell-ncurses_0.2.16-4_unstable.log

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!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the Pkg-haskell-maintainers mailing list