Bug#842679: haskell-debian: FTBFS: ghc: panic! (the 'impossible' happened)
Chris Lamb
lamby at debian.org
Mon Oct 31 10:45:39 UTC 2016
Source: haskell-debian
Version: 3.91.1-2
Severity: serious
Justification: fails to build from source
User: reproducible-builds at lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org
Dear Maintainer,
haskell-debian fails to build from source in unstable/amd64:
[…]
Setting up libghc-unixutils-prof (1.54.1-4) ...
Setting up libghc-free-dev (4.12.4-3) ...
Setting up libghc-free-prof (4.12.4-3) ...
Setting up libghc-either-dev (4.4.1.1-3) ...
Setting up libghc-either-prof (4.4.1.1-3) ...
Setting up haskell-debian-build-deps (3.91.1-2) ...
Processing triggers for libc-bin (2.24-5) ...
**************************************************************************************
** Environment **
**************************************************************************************
PATH=/home/lamby/git/projects/dotfiles/dotfiles/..//bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HOSTNAME=3393516d73f3
TERM=xterm
PAGER=more
DISPLAY=:0
DOCKER_IMAGE=lamby-debian-sid
DEB_BUILD_OPTIONS=parallel=9
PIP_DOWNLOAD_CACHE=/home/lamby/.cache/pip
HOME=/home/lamby
LOGNAME=lamby
SHLVL=1
PWD=/home/lamby/temp/cdt.20161031095337.6kRP9mEtJt.db.haskell-debian/haskell-debian-3.91.1
OLDPWD=/home/lamby/temp/cdt.20161031095337.6kRP9mEtJt.db.haskell-debian
GPG_TTY=/dev/console
QUILT_PATCHES=debian/patches
QUILT_NO_DIFF_INDEX=1
QUILT_REFRESH_ARGS=-p ab --no-timestamps --no-index
DEBEMAIL=lamby at debian.org
DEBFULLNAME=Chris Lamb
EDITOR=vim
LESS=-cgiFx4M
GPG_KEY=1E953E27D4311E58
BLASTER=A220 I5 D1 H5 P330 T6
_=/usr/bin/env
**************************************************************************************
** Building haskell-debian 3.91.1-2 on amd64 **
**************************************************************************************
dpkg-buildpackage -rfakeroot -D -us -uc -b
dpkg-buildpackage: info: source package haskell-debian
dpkg-buildpackage: info: source version 3.91.1-2
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Clint Adams <clint at debian.org>
dpkg-source --before-build haskell-debian-3.91.1
dpkg-buildpackage: info: host architecture amd64
fakeroot 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
debian/rules build
test -x debian/rules
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/debian-3.91.1/ --datasubdir=debian --htmldir=/usr/share/doc/libghc-debian-doc/html/ --enable-library-profiling
Configuring debian-3.91.1...
Flags chosen: pretty-new=True, network-uri=True
Dependency HUnit -any: using HUnit-1.3.1.2
Dependency HaXml >=1.20: using HaXml-1.25.3
Dependency ListLike >=4.3.5: using ListLike-4.5
Dependency Unixutils >=1.52.4: using Unixutils-1.54.1
Dependency base ==4.*: using base-4.9.0.0
Dependency bytestring -any: using bytestring-0.10.8.1
Dependency bzlib -any: using bzlib-0.5.0.5
Dependency containers -any: using containers-0.5.7.1
Dependency debian -any: using debian-3.91.1
Dependency directory -any: using directory-1.2.6.2
Dependency either -any: using either-4.4.1.1
Dependency exceptions -any: using exceptions-0.8.3
Dependency filepath -any: using filepath-1.4.1.0
Dependency mtl -any: using mtl-2.2.1
Dependency network >=2.6: using network-2.6.3.1
Dependency network-uri >=2.6: using network-uri-2.6.1.0
Dependency old-locale -any: using old-locale-1.0.0.7
Dependency parsec >=2 && <4: using parsec-3.1.11
Dependency pretty >=1.1.2: using pretty-1.1.3.3
Dependency process -any: using process-1.4.2.0
Dependency process-extras >=0.2.0: using process-extras-0.4.1.4
Dependency pureMD5 -any: using pureMD5-2.1.3
Dependency regex-compat -any: using regex-compat-0.95.1
Dependency regex-tdfa -any: using regex-tdfa-1.2.2
Dependency template-haskell -any: using template-haskell-2.11.0.0
Dependency text -any: using text-1.2.2.1
Dependency time -any: using time-1.6.0.1
Dependency unix -any: using unix-2.7.2.0
Dependency utf8-string -any: using utf8-string-1.0.1.1
Dependency zlib -any: using zlib-0.6.1.1
Using Cabal-1.24.0.0 compiled by ghc-8.0
Using compiler: ghc-8.0.1
Using install prefix: /usr
Binaries installed in: /usr/bin
Libraries installed in:
/usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-8.0.1/debian-3.91.1-FtAmMJzYw3VEqgZ4BL95Pg
Private binaries installed in: /usr/lib
Data files installed in: /usr/share/debian
Documentation installed in:
/usr/share/doc/x86_64-linux-ghc-8.0.1/debian-3.91.1
Configuration files installed in: /usr/etc
No alex found
Using ar found on system at: /usr/bin/ar
No c2hs found
No cpphs found
Using gcc version 6.2.0 found on system at: /usr/bin/gcc
Using ghc version 8.0.1 found on system at: /usr/bin/ghc
Using ghc-pkg version 8.0.1 found on system at: /usr/bin/ghc-pkg
No ghcjs found
No ghcjs-pkg found
No greencard found
Using haddock version 2.17.2 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 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/ld
No lhc found
No lhc-pkg found
No pkg-config found
Using strip version 2.27 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 && \
build_recipe
Running debian/hlibrary.setup build --builddir=dist-ghc
Building debian-3.91.1...
Preprocessing library debian-3.91.1...
[ 1 of 37] Compiling Debian.UTF8 ( Debian/UTF8.hs, dist-ghc/build/Debian/UTF8.o )
[ 2 of 37] Compiling Debian.Version.Internal ( Debian/Version/Internal.hs, dist-ghc/build/Debian/Version/Internal.o )
[ 3 of 37] Compiling Debian.Extra.Files ( Debian/Extra/Files.hs, dist-ghc/build/Debian/Extra/Files.o )
[ 4 of 37] Compiling Debian.Loc ( Debian/Loc.hs, dist-ghc/build/Debian/Loc.o )
[ 5 of 37] Compiling Debian.Pretty ( Debian/Pretty.hs, dist-ghc/build/Debian/Pretty.o )
[ 6 of 37] Compiling Debian.Version.Common ( Debian/Version/Common.hs, dist-ghc/build/Debian/Version/Common.o )
[ 7 of 37] Compiling Debian.Version.String ( Debian/Version/String.hs, dist-ghc/build/Debian/Version/String.o )
[ 8 of 37] Compiling Debian.Version.Text ( Debian/Version/Text.hs, dist-ghc/build/Debian/Version/Text.o )
[ 9 of 37] Compiling Debian.Arch ( Debian/Arch.hs, dist-ghc/build/Debian/Arch.o )
[10 of 37] Compiling Debian.Time ( Debian/Time.hs, dist-ghc/build/Debian/Time.o )
Debian/Time.hs:23:19: warning: [-Wdeprecations]
In the use of `parseTime'
(imported from Data.Time, but defined in time-1.6.0.1:Data.Time.Format.Parse):
Deprecated: "use "parseTimeM True" instead"
[11 of 37] Compiling Debian.URI ( Debian/URI.hs, dist-ghc/build/Debian/URI.o )
[12 of 37] Compiling Debian.Release ( Debian/Release.hs, dist-ghc/build/Debian/Release.o )
[13 of 37] Compiling Debian.Sources ( Debian/Sources.hs, dist-ghc/build/Debian/Sources.o )
[14 of 37] Compiling Debian.Control.Common ( Debian/Control/Common.hs, dist-ghc/build/Debian/Control/Common.o )
Debian/Control/Common.hs:75:1: warning: [-Wredundant-constraints]
* Redundant constraint: ControlFunctions a
* In the type signature for:
protectFieldText' :: (StringLike a, ListLike a Char,
ControlFunctions a) =>
a -> a
Debian/Control/Common.hs:158:1: warning: [-Wredundant-constraints]
* Redundant constraint: Eq a
* In the type signature for:
raiseFields :: Eq a => (a -> Bool) -> Paragraph' a -> Paragraph' a
[15 of 37] Compiling Debian.Control.String ( Debian/Control/String.hs, dist-ghc/build/Debian/Control/String.o )
[16 of 37] Compiling Debian.Deb ( Debian/Deb.hs, dist-ghc/build/Debian/Deb.o )
[17 of 37] Compiling Debian.Apt.Methods ( Debian/Apt/Methods.hs, dist-ghc/build/Debian/Apt/Methods.o )
Debian/Apt/Methods.hs:28:1: warning: [-Wdeprecations]
Module `Control.Monad.Error' is deprecated:
Use Control.Monad.Except instead
[18 of 37] Compiling Debian.Version.ByteString ( Debian/Version/ByteString.hs, dist-ghc/build/Debian/Version/ByteString.o )
[19 of 37] Compiling Debian.Version ( Debian/Version.hs, dist-ghc/build/Debian/Version.o )
[20 of 37] Compiling Debian.Changes ( Debian/Changes.hs, dist-ghc/build/Debian/Changes.o )
[21 of 37] Compiling Debian.Relation.Common ( Debian/Relation/Common.hs, dist-ghc/build/Debian/Relation/Common.o )
[22 of 37] Compiling Debian.Relation.String ( Debian/Relation/String.hs, dist-ghc/build/Debian/Relation/String.o )
[23 of 37] Compiling Debian.Relation.Text ( Debian/Relation/Text.hs, dist-ghc/build/Debian/Relation/Text.o )
[24 of 37] Compiling Debian.Relation.ByteString ( Debian/Relation/ByteString.hs, dist-ghc/build/Debian/Relation/ByteString.o )
[25 of 37] Compiling Debian.Relation ( Debian/Relation.hs, dist-ghc/build/Debian/Relation.o )
[26 of 37] Compiling Debian.Control.ByteString ( Debian/Control/ByteString.hs, dist-ghc/build/Debian/Control/ByteString.o )
Debian/Control/ByteString.hs:132:1: warning: [-Wredundant-constraints]
* Redundant constraint: ControlFunctions a
* In the type signature for:
protectFieldText' :: (LL.StringLike a, LL.ListLike a Word8,
ControlFunctions a) =>
a -> a
Debian/Control/ByteString.hs:138:7: warning: [-Wredundant-constraints]
* Redundant constraint: LL.StringLike a
* In the type signature for:
dropWhileEnd :: (LL.StringLike a1, LL.ListLike a1 Word8) =>
(Word8 -> Bool) -> a1 -> a1
In an equation for protectFieldText':
protectFieldText' s
= case LL.lines s of {
[] -> LL.empty
(l : ls)
-> dropWhileEnd (isSpace . chr . fromIntegral)
$ LL.unlines $ l : map protect ls }
where
dropWhileEnd ::
(LL.StringLike a, LL.ListLike a Word8) => (Word8 -> Bool) -> a -> a
dropWhileEnd func = LL.reverse . LL.dropWhile func . LL.reverse
protect :: (LL.StringLike a, LL.ListLike a Word8) => a -> a
protect l
= maybe
LL.empty
(\ c
-> if isHorizSpace c then l else LL.cons (ord' ' ' :: Word8) l)
(LL.find (const True :: Word8 -> Bool) l)
....
Debian/Control/ByteString.hs:140:7: warning: [-Wredundant-constraints]
* Redundant constraint: LL.StringLike a
* In the type signature for:
protect :: (LL.StringLike a1, LL.ListLike a1 Word8) => a1 -> a1
In an equation for protectFieldText':
protectFieldText' s
= case LL.lines s of {
[] -> LL.empty
(l : ls)
-> dropWhileEnd (isSpace . chr . fromIntegral)
$ LL.unlines $ l : map protect ls }
where
dropWhileEnd ::
(LL.StringLike a, LL.ListLike a Word8) => (Word8 -> Bool) -> a -> a
dropWhileEnd func = LL.reverse . LL.dropWhile func . LL.reverse
protect :: (LL.StringLike a, LL.ListLike a Word8) => a -> a
protect l
= maybe
LL.empty
(\ c
-> if isHorizSpace c then l else LL.cons (ord' ' ' :: Word8) l)
(LL.find (const True :: Word8 -> Bool) l)
....
[27 of 37] Compiling Debian.Control.Text ( Debian/Control/Text.hs, dist-ghc/build/Debian/Control/Text.o )
Debian/Control/Text.hs:32:1: warning: [-Wunused-imports]
The qualified import of `T.reverse'
from module `Data.Text' is redundant
[28 of 37] Compiling Debian.Control.Policy ( Debian/Control/Policy.hs, dist-ghc/build/Debian/Control/Policy.o )
Debian/Control/Policy.hs:87:5: warning: [-Wunused-top-binds]
Defined but not used: `control'
[29 of 37] Compiling Debian.Control.Builder ( Debian/Control/Builder.hs, dist-ghc/build/Debian/Control/Builder.o )
Debian/Control/Builder.hs:34:1: warning: [-Wunused-imports]
The qualified import of `Data.Text' is redundant
except perhaps to import instances from `Data.Text'
To import instances alone, use: import Data.Text()
Debian/Control/Builder.hs:36:1: warning: [-Wunused-imports]
The import of `fromLazyText'
from module `Data.Text.Lazy.Builder' is redundant
Debian/Control/Builder.hs:104:1: warning: [-Wmissing-signatures]
Top-level binding with no type signature:
dropAround :: forall c item.
LL.ListLike c item =>
(item -> Bool) -> c -> c
[30 of 37] Compiling Debian.Control.TextLazy ( Debian/Control/TextLazy.hs, dist-ghc/build/Debian/Control/TextLazy.o )
Debian/Control/TextLazy.hs:32:1: warning: [-Wunused-imports]
The qualified import of `T.reverse'
from module `Data.Text.Lazy' is redundant
[31 of 37] Compiling Debian.Control ( Debian/Control.hs, dist-ghc/build/Debian/Control.o )
Debian/Control.hs:56:1: warning: [-Wunused-imports]
The qualified import of `Debian.Control.TextLazy' is redundant
except perhaps to import instances from `Debian.Control.TextLazy'
To import instances alone, use: import Debian.Control.TextLazy()
[32 of 37] Compiling Debian.Apt.Index ( Debian/Apt/Index.hs, dist-ghc/build/Debian/Apt/Index.o )
[33 of 37] Compiling Debian.Report ( Debian/Report.hs, dist-ghc/build/Debian/Report.o )
[34 of 37] Compiling Debian.GenBuildDeps ( Debian/GenBuildDeps.hs, dist-ghc/build/Debian/GenBuildDeps.o )
ghc: panic! (the 'impossible' happened)
(GHC version 8.0.1 for x86_64-unknown-linux):
find_tycon
Loc
[]
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
/usr/share/cdbs/1/class/hlibrary.mk:147: recipe for target 'build-ghc-stamp' failed
make: *** [build-ghc-stamp] Error 1
[…]
The full build log is attached.
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: haskell-debian.3.91.1-2.unstable.amd64.log.txt.gz
Type: application/octet-stream
Size: 11395 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-haskell-maintainers/attachments/20161031/e1f59dd8/attachment-0001.obj>
More information about the Pkg-haskell-maintainers
mailing list