Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev-haskell/zlib breaks on -flto -ffat-lto-objects #1110

Closed
matoro opened this issue Dec 23, 2020 · 21 comments
Closed

dev-haskell/zlib breaks on -flto -ffat-lto-objects #1110

matoro opened this issue Dec 23, 2020 · 21 comments

Comments

@matoro
Copy link
Contributor

matoro commented Dec 23, 2020

Hi, I am trying to rebuild all my haskell packages after the update to =dev-lang/ghc-8.10.2, but dev-haskell/yesod-core is failing due to the error in the title. The library in question is owned by dev-haskell/zlib, but rebuilding that does not help. Full build log & system info:

 * Package:    dev-haskell/yesod-core-1.6.18.8
 * Repository: haskell
 * Maintainer: haskell@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   compressdebug network-sandbox preserve-libs sandbox splitdebug userpriv usersandbox
 * /etc/portage/package.cflags/ltoworkarounds.conf -> dev-haskell/*: *FLAGS+=-ffat-lto-objects #This is so non-portage GHC compilations work, as GHC is oblivious to LTO.  portage builds are fine.
 * FEATURES='qa-unresolved-soname-deps sfperms strict ebuild-locks compressdebug compress-build-logs multilib-strict parallel-fetch sandbox ipc-sandbox binpkg-docompress unmerge-orphans fixlafiles xattr news network-sandbox buildpkg userpriv pid-sandbox unmerge-logs assume-digests config-protect-if-modified binpkg-logs unknown-features-warn parallel-install merge-sync splitdebug preserve-libs userfetch usersandbox binpkg-dostrip protect-owned distlocks usersync'
 * CFLAGS='-march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=32 -fuse-linker-plugin -pipe -ffat-lto-objects -Wl,-O1 -Wl,--as-needed'
 * CXXFLAGS='-march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=32 -fuse-linker-plugin -pipe -ffat-lto-objects -Wl,-O1 -Wl,--as-needed'
 * FFLAGS='-march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=32 -fuse-linker-plugin -pipe -ffat-lto-objects -Wl,-O1 -Wl,--as-needed'
 * FCFLAGS='-march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=32 -fuse-linker-plugin -pipe -ffat-lto-objects -Wl,-O1 -Wl,--as-needed'
 * F77FLAGS='-march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=32 -fuse-linker-plugin -pipe -ffat-lto-objects -Wl,-O1 -Wl,--as-needed'
 * LDFLAGS='-Wl,-O1 -Wl,--as-needed -march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=32 -fuse-linker-plugin -pipe -ffat-lto-objects'
 * MAKEOPTS='-j32'
 * gcc (Gentoo 10.2.0-r4 p5) 10.2.0
 * g++ (Gentoo 10.2.0-r4 p5) 10.2.0
 * GNU ld (Gentoo 2.35.1 p2) 2.35.1
 * Linux matoro-desktop 5.9.14 #1 SMP Fri Dec 11 15:26:08 MST 2020 x86_64 AMD Ryzen 9 3950X 16-Core Processor AuthenticAMD GNU/Linux
>>> Unpacking source...
>>> Unpacking yesod-core-1.6.18.8.tar.gz to /var/tmp/portage/dev-haskell/yesod-core-1.6.18.8/work
>>> Source unpacked in /var/tmp/portage/dev-haskell/yesod-core-1.6.18.8/work
>>> Preparing source in /var/tmp/portage/dev-haskell/yesod-core-1.6.18.8/work/yesod-core-1.6.18.8 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-haskell/yesod-core-1.6.18.8/work/yesod-core-1.6.18.8 ...
 * Using cabal-3.2.0.0.
 * Prepending /usr/lib64/ghc-8.10.2 to LD_LIBRARY_PATH
/usr/bin/ghc -package Cabal-3.2.0.0 --make /var/tmp/portage/dev-haskell/yesod-core-1.6.18.8/work/yesod-core-1.6.18.8/Setup.lhs -j32 +RTS -A256M -qb0 -RTS -threaded -dynamic -o setup
[1 of 1] Compiling Main             ( /var/tmp/portage/dev-haskell/yesod-core-1.6.18.8/work/yesod-core-1.6.18.8/Setup.lhs, /var/tmp/portage/dev-haskell/yesod-core-1.6.18.8/work/yesod-core-1.6.18.8/Setup.o )
Linking setup ...
./setup configure --ghc --prefix=/usr --with-compiler=/usr/bin/ghc --with-hc-pkg=/usr/bin/ghc-pkg --prefix=/usr --libdir=/usr/lib64 --libsubdir=yesod-core-1.6.18.8/ghc-8.10.2 --datadir=/usr/share/ --datasubdir=yesod-core-1.6.18.8/ghc-8.10.2 --disable-tests --ghc-options=-j32 +RTS -A256M -qb0 -RTS --with-ar=x86_64-pc-linux-gnu-ar --ghc-option=-optc-march=native --ghc-option=-optc-O3 --ghc-option=-optc-fgraphite-identity --ghc-option=-optc-floop-nest-optimize --ghc-option=-optc-fdevirtualize-at-ltrans --ghc-option=-optc-fipa-pta --ghc-option=-optc-fno-semantic-interposition --ghc-option=-optc-flto=32 --ghc-option=-optc-fuse-linker-plugin --ghc-option=-optc-pipe --ghc-option=-optc-ffat-lto-objects --ghc-option=-optc-Wl,-O1 --ghc-option=-optc-Wl,--as-needed --ghc-option=-optl-Wl,-O1 --ghc-option=-optl-Wl,--as-needed --ghc-option=-optl-march=native --ghc-option=-optl-O3 --ghc-option=-optl-fgraphite-identity --ghc-option=-optl-floop-nest-optimize --ghc-option=-optl-fdevirtualize-at-ltrans --ghc-option=-optl-fipa-pta --ghc-option=-optl-fno-semantic-interposition --ghc-option=-optl-flto=32 --ghc-option=-optl-fuse-linker-plugin --ghc-option=-optl-pipe --ghc-option=-optl-ffat-lto-objects --disable-executable-stripping --docdir=/usr/share/doc/yesod-core-1.6.18.8 --verbose --enable-shared --enable-executable-dynamic --sysconfdir=/etc --disable-library-stripping
Using Parsec parser
Configuring yesod-core-1.6.18.8...
Dependency aeson >=1.0: using aeson-1.4.7.1
Dependency auto-update -any: using auto-update-0.1.6
Dependency base >=4.10 && <5: using base-4.14.1.0
Dependency blaze-html >=0.5: using blaze-html-0.9.1.2
Dependency blaze-markup >=0.7.1: using blaze-markup-0.8.2.7
Dependency bytestring >=0.10.2: using bytestring-0.10.10.0
Dependency case-insensitive >=0.2: using case-insensitive-1.2.1.0
Dependency cereal >=0.3: using cereal-0.5.8.1
Dependency clientsession >=0.9.1 && <0.10: using clientsession-0.9.1.2
Dependency conduit >=1.3: using conduit-1.3.4
Dependency conduit-extra -any: using conduit-extra-1.3.5
Dependency containers >=0.2: using containers-0.6.2.1
Dependency cookie >=0.4.3 && <0.5: using cookie-0.4.5
Dependency deepseq >=1.3: using deepseq-1.4.4.0
Dependency fast-logger >=2.2: using fast-logger-3.0.2
Dependency http-types >=0.7: using http-types-0.12.3
Dependency memory -any: using memory-0.15.0
Dependency monad-logger >=0.3.10 && <0.4: using monad-logger-0.3.36
Dependency mtl -any: using mtl-2.2.2
Dependency parsec >=2 && <3.2: using parsec-3.1.14.0
Dependency path-pieces >=0.1.2 && <0.3: using path-pieces-0.2.1
Dependency primitive >=0.6: using primitive-0.7.1.0
Dependency random >=1.0.0.2 && <1.3: using random-1.1
Dependency resourcet >=1.2: using resourcet-1.2.4.2
Dependency shakespeare >=2.0: using shakespeare-2.0.25
Dependency template-haskell >=2.11: using template-haskell-2.16.0.0
Dependency text >=0.7: using text-1.2.3.2
Dependency time >=1.5: using time-1.9.3
Dependency transformers >=0.4: using transformers-0.5.6.2
Dependency unix-compat -any: using unix-compat-0.5.2
Dependency unliftio -any: using unliftio-0.2.13.1
Dependency unordered-containers >=0.2: using unordered-containers-0.2.12.0
Dependency vector >=0.9 && <0.13: using vector-0.12.1.2
Dependency wai >=3.2: using wai-3.2.2.1
Dependency wai-extra >=3.0.7: using wai-extra-3.1.4.1
Dependency wai-logger >=0.2: using wai-logger-2.3.6
Dependency warp >=3.0.2: using warp-3.3.13
Dependency word8 -any: using word8-0.1.3
Source component graph: component lib
Configured component graph:
    component yesod-core-1.6.18.8-GYNstsiiNi5gDT4sCaZRD
        include aeson-1.4.7.1-DRsFfKz9IE88gOATAzZ6NB
        include auto-update-0.1.6-F3d4kPU62BK2oPp4eHKJaA
        include base-4.14.1.0
        include blaze-html-0.9.1.2-8m9oJ8TYDs5Hv0y1U0oqCM
        include blaze-markup-0.8.2.7-LxYHHNtMMqd23FQvjJOkWQ
        include bytestring-0.10.10.0
        include case-insensitive-1.2.1.0-IMLBcOJ8xANISSEHkEFvKq
        include cereal-0.5.8.1-Jgr9sxoaMioCKOZGDaRgOx
        include clientsession-0.9.1.2-KT9R6MJDFB3GSZVfGIS7D2
        include conduit-1.3.4-3XvkQTgPjZF1N7pXpsNTXF
        include conduit-extra-1.3.5-4Ikyye07fH79wh4upd5y4u
        include containers-0.6.2.1
        include cookie-0.4.5-JoyqOkJeahAEddz6P9VUaR
        include deepseq-1.4.4.0
        include fast-logger-3.0.2-EayR7zl5YW0LKPNWlSROsu
        include http-types-0.12.3-5Hkm4cOelTEJ1dBGr77j59
        include memory-0.15.0-JJt0qzJGoFpEl33Z92vxSb
        include monad-logger-0.3.36-FFjZLJvDOv4HX9IOTIsOXa
        include mtl-2.2.2
        include parsec-3.1.14.0
        include path-pieces-0.2.1-3qqfFRSZ4HL4UPuvUVZn5U
        include primitive-0.7.1.0-Jxsyd70oUttYiCXCa0HqV
        include random-1.1-IcUwfYF3CGOHS82o6ktbLi
        include resourcet-1.2.4.2-7yGtHm3vPoNDUp7k4Og7ZM
        include shakespeare-2.0.25-LTfOKhr4kXV9igwPAxpPY1
        include template-haskell-2.16.0.0
        include text-1.2.3.2
        include time-1.9.3
        include transformers-0.5.6.2
        include unix-compat-0.5.2-AJsShVs2lGGGy011YRDq9o
        include unliftio-0.2.13.1-JywRIch0BxxIJl9D4et3NA
        include unordered-containers-0.2.12.0-IaaM0BsPawv7nMCzHPxYnA
        include vector-0.12.1.2-6jlbObSa8iuJfxUVGBQC5r
        include wai-3.2.2.1-EAcxHg8fH6f1CpoZxipp2W
        include wai-extra-3.1.4.1-CmFKzVafxGR905DXkM4ePq
        include wai-logger-2.3.6-KrGrUgzMssw57PpXx5RxB4
        include warp-3.3.13-EAU6cnM9GCf2YX0gWyM3iT
        include word8-0.1.3-724fxDOkAtI9odHi3S4RPp
Linked component graph:
    unit yesod-core-1.6.18.8-GYNstsiiNi5gDT4sCaZRD
        include aeson-1.4.7.1-DRsFfKz9IE88gOATAzZ6NB
        include auto-update-0.1.6-F3d4kPU62BK2oPp4eHKJaA
        include base-4.14.1.0
        include blaze-html-0.9.1.2-8m9oJ8TYDs5Hv0y1U0oqCM
        include blaze-markup-0.8.2.7-LxYHHNtMMqd23FQvjJOkWQ
        include bytestring-0.10.10.0
        include case-insensitive-1.2.1.0-IMLBcOJ8xANISSEHkEFvKq
        include cereal-0.5.8.1-Jgr9sxoaMioCKOZGDaRgOx
        include clientsession-0.9.1.2-KT9R6MJDFB3GSZVfGIS7D2
        include conduit-1.3.4-3XvkQTgPjZF1N7pXpsNTXF
        include conduit-extra-1.3.5-4Ikyye07fH79wh4upd5y4u
        include containers-0.6.2.1
        include cookie-0.4.5-JoyqOkJeahAEddz6P9VUaR
        include deepseq-1.4.4.0
        include fast-logger-3.0.2-EayR7zl5YW0LKPNWlSROsu
        include http-types-0.12.3-5Hkm4cOelTEJ1dBGr77j59
        include memory-0.15.0-JJt0qzJGoFpEl33Z92vxSb
        include monad-logger-0.3.36-FFjZLJvDOv4HX9IOTIsOXa
        include mtl-2.2.2
        include parsec-3.1.14.0
        include path-pieces-0.2.1-3qqfFRSZ4HL4UPuvUVZn5U
        include primitive-0.7.1.0-Jxsyd70oUttYiCXCa0HqV
        include random-1.1-IcUwfYF3CGOHS82o6ktbLi
        include resourcet-1.2.4.2-7yGtHm3vPoNDUp7k4Og7ZM
        include shakespeare-2.0.25-LTfOKhr4kXV9igwPAxpPY1
        include template-haskell-2.16.0.0
        include text-1.2.3.2
        include time-1.9.3
        include transformers-0.5.6.2
        include unix-compat-0.5.2-AJsShVs2lGGGy011YRDq9o
        include unliftio-0.2.13.1-JywRIch0BxxIJl9D4et3NA
        include unordered-containers-0.2.12.0-IaaM0BsPawv7nMCzHPxYnA
        include vector-0.12.1.2-6jlbObSa8iuJfxUVGBQC5r
        include wai-3.2.2.1-EAcxHg8fH6f1CpoZxipp2W
        include wai-extra-3.1.4.1-CmFKzVafxGR905DXkM4ePq
        include wai-logger-2.3.6-KrGrUgzMssw57PpXx5RxB4
        include warp-3.3.13-EAU6cnM9GCf2YX0gWyM3iT
        include word8-0.1.3-724fxDOkAtI9odHi3S4RPp
        Yesod.Core=yesod-core-1.6.18.8-GYNstsiiNi5gDT4sCaZRD:Yesod.Core,Yesod.Core.Content=yesod-core-1.6.18.8-GYNstsiiNi5gDT4sCaZRD:Yesod.Core.Content,Yesod.Core.Dispatch=yesod-core-1.6.18.8-GYNstsiiNi5gDT4sCaZRD:Yesod.Core.Dispatch,Yesod.Core.Handler=yesod-core-1.6.18.8-GYNstsiiNi5gDT4sCaZRD:Yesod.Core.Handler,Yesod.Core.Internal=yesod-core-1.6.18.8-GYNstsiiNi5gDT4sCaZRD:Yesod.Core.Internal,Yesod.Core.Json=yesod-core-1.6.18.8-GYNstsiiNi5gDT4sCaZRD:Yesod.Core.Json,Yesod.Core.Types=yesod-core-1.6.18.8-GYNstsiiNi5gDT4sCaZRD:Yesod.Core.Types,Yesod.Core.Unsafe=yesod-core-1.6.18.8-GYNstsiiNi5gDT4sCaZRD:Yesod.Core.Unsafe,Yesod.Core.Widget=yesod-core-1.6.18.8-GYNstsiiNi5gDT4sCaZRD:Yesod.Core.Widget,Yesod.Routes.TH.Types=yesod-core-1.6.18.8-GYNstsiiNi5gDT4sCaZRD:Yesod.Routes.TH.Types
Ready component graph:
    definite yesod-core-1.6.18.8-GYNstsiiNi5gDT4sCaZRD
        depends aeson-1.4.7.1-DRsFfKz9IE88gOATAzZ6NB
        depends auto-update-0.1.6-F3d4kPU62BK2oPp4eHKJaA
        depends base-4.14.1.0
        depends blaze-html-0.9.1.2-8m9oJ8TYDs5Hv0y1U0oqCM
        depends blaze-markup-0.8.2.7-LxYHHNtMMqd23FQvjJOkWQ
        depends bytestring-0.10.10.0
        depends case-insensitive-1.2.1.0-IMLBcOJ8xANISSEHkEFvKq
        depends cereal-0.5.8.1-Jgr9sxoaMioCKOZGDaRgOx
        depends clientsession-0.9.1.2-KT9R6MJDFB3GSZVfGIS7D2
        depends conduit-1.3.4-3XvkQTgPjZF1N7pXpsNTXF
        depends conduit-extra-1.3.5-4Ikyye07fH79wh4upd5y4u
        depends containers-0.6.2.1
        depends cookie-0.4.5-JoyqOkJeahAEddz6P9VUaR
        depends deepseq-1.4.4.0
        depends fast-logger-3.0.2-EayR7zl5YW0LKPNWlSROsu
        depends http-types-0.12.3-5Hkm4cOelTEJ1dBGr77j59
        depends memory-0.15.0-JJt0qzJGoFpEl33Z92vxSb
        depends monad-logger-0.3.36-FFjZLJvDOv4HX9IOTIsOXa
        depends mtl-2.2.2
        depends parsec-3.1.14.0
        depends path-pieces-0.2.1-3qqfFRSZ4HL4UPuvUVZn5U
        depends primitive-0.7.1.0-Jxsyd70oUttYiCXCa0HqV
        depends random-1.1-IcUwfYF3CGOHS82o6ktbLi
        depends resourcet-1.2.4.2-7yGtHm3vPoNDUp7k4Og7ZM
        depends shakespeare-2.0.25-LTfOKhr4kXV9igwPAxpPY1
        depends template-haskell-2.16.0.0
        depends text-1.2.3.2
        depends time-1.9.3
        depends transformers-0.5.6.2
        depends unix-compat-0.5.2-AJsShVs2lGGGy011YRDq9o
        depends unliftio-0.2.13.1-JywRIch0BxxIJl9D4et3NA
        depends unordered-containers-0.2.12.0-IaaM0BsPawv7nMCzHPxYnA
        depends vector-0.12.1.2-6jlbObSa8iuJfxUVGBQC5r
        depends wai-3.2.2.1-EAcxHg8fH6f1CpoZxipp2W
        depends wai-extra-3.1.4.1-CmFKzVafxGR905DXkM4ePq
        depends wai-logger-2.3.6-KrGrUgzMssw57PpXx5RxB4
        depends warp-3.3.13-EAU6cnM9GCf2YX0gWyM3iT
        depends word8-0.1.3-724fxDOkAtI9odHi3S4RPp
Using Cabal-3.2.0.0 compiled by ghc-8.10
Using compiler: ghc-8.10.2
Using install prefix: /usr
Executables installed in: /usr/bin
Libraries installed in: /usr/lib64/yesod-core-1.6.18.8/ghc-8.10.2
Dynamic Libraries installed in: /usr/lib64/x86_64-linux-ghc-8.10.2
Private executables installed in:
/usr/libexec/x86_64-linux-ghc-8.10.2/yesod-core-1.6.18.8
Data files installed in: /usr/share/yesod-core-1.6.18.8/ghc-8.10.2
Documentation installed in: /usr/share/doc/yesod-core-1.6.18.8
Configuration files installed in: /etc
Using alex version 3.2.5 found on system at: /usr/bin/alex
Using ar given by user at: /usr/bin/x86_64-pc-linux-gnu-ar
No c2hs found
No cpphs found
No doctest found
Using gcc version 10.2.0 found on system at: /usr/bin/x86_64-pc-linux-gnu-gcc
Using ghc version 8.10.2 given by user at: /usr/bin/ghc
Using ghc-pkg version 8.10.2 given by user at: /usr/bin/ghc-pkg
No ghcjs found
No ghcjs-pkg found
No greencard found
Using haddock version 2.24.0 found on system at: /usr/bin/haddock-ghc-8.10.2
Using happy version 1.20.0 found on system at: /usr/bin/happy
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.68 found on system at: /usr/bin/hpc
Using hsc2hs version 0.68.7 found on system at: /usr/bin/hsc2hs
No hscolour found
No jhc found
Using ld found on system at: /usr/bin/x86_64-pc-linux-gnu-ld
Using pkg-config version 1.7.3 found on system at: /usr/bin/pkg-config
Using runghc version 8.10.2 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
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-haskell/yesod-core-1.6.18.8/work/yesod-core-1.6.18.8 ...
./setup build
Preprocessing library for yesod-core-1.6.18.8..
Building library for yesod-core-1.6.18.8..
[ 1 of 31] Compiling Paths_yesod_core ( dist/build/autogen/Paths_yesod_core.hs, dist/build/Paths_yesod_core.o, dist/build/Paths_yesod_core.dyn_o )
[ 2 of 31] Compiling Yesod.Core.Internal.Util ( src/Yesod/Core/Internal/Util.hs, dist/build/Yesod/Core/Internal/Util.o, dist/build/Yesod/Core/Internal/Util.dyn_o )
[ 3 of 31] Compiling Yesod.Core.TypeCache ( src/Yesod/Core/TypeCache.hs, dist/build/Yesod/Core/TypeCache.o, dist/build/Yesod/Core/TypeCache.dyn_o )
[ 4 of 31] Compiling Yesod.Routes.Class ( src/Yesod/Routes/Class.hs, dist/build/Yesod/Routes/Class.o, dist/build/Yesod/Routes/Class.dyn_o )
[ 5 of 31] Compiling Yesod.Core.Types ( src/Yesod/Core/Types.hs, dist/build/Yesod/Core/Types.o, dist/build/Yesod/Core/Types.dyn_o )

src/Yesod/Core/Types.hs:31:1: warning: [-Wunused-imports]
    The import of ‘Data.Semigroup’ is redundant
      except perhaps to import instances from ‘Data.Semigroup’
    To import instances alone, use: import Data.Semigroup()
   |
31 | import           Data.Semigroup                     (Semigroup(..))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ 6 of 31] Compiling Yesod.Core.Internal.Session ( src/Yesod/Core/Internal/Session.hs, dist/build/Yesod/Core/Internal/Session.o, dist/build/Yesod/Core/Internal/Session.dyn_o )
[ 7 of 31] Compiling Yesod.Core.Internal.Request ( src/Yesod/Core/Internal/Request.hs, dist/build/Yesod/Core/Internal/Request.o, dist/build/Yesod/Core/Internal/Request.dyn_o )

src/Yesod/Core/Internal/Request.hs:53:11: warning: [-Wdeprecations]
    In the use of ‘requestBody’
    (imported from Network.Wai, but defined in Network.Wai.Internal):
    Deprecated: "requestBody's name is misleading because it only gets a partial chunk of the body. Use getRequestBodyChunk instead."
   |
53 |         { W.requestBody = do
   |           ^^^^^^^^^^^^^

src/Yesod/Core/Internal/Request.hs:54:19: warning: [-Wdeprecations]
    In the use of ‘requestBody’
    (imported from Network.Wai, but defined in Network.Wai.Internal):
    Deprecated: "requestBody's name is misleading because it only gets a partial chunk of the body. Use getRequestBodyChunk instead."
   |
54 |             bs <- W.requestBody req
   |                   ^^^^^^^^^^^^^
[ 8 of 31] Compiling Yesod.Core.Content ( src/Yesod/Core/Content.hs, dist/build/Yesod/Core/Content.o, dist/build/Yesod/Core/Content.dyn_o )
[ 9 of 31] Compiling Yesod.Core.Internal.Response ( src/Yesod/Core/Internal/Response.hs, dist/build/Yesod/Core/Internal/Response.o, dist/build/Yesod/Core/Internal/Response.dyn_o )
[10 of 31] Compiling Yesod.Core.Class.Handler ( src/Yesod/Core/Class/Handler.hs, dist/build/Yesod/Core/Class/Handler.o, dist/build/Yesod/Core/Class/Handler.dyn_o )

src/Yesod/Core/Class/Handler.hs:22:1: warning: [-Wdeprecations]
    Module ‘Control.Monad.Trans.List’ is deprecated:
      This transformer is invalid on most monads
   |
22 | import Control.Monad.Trans.List     ( ListT    )
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Yesod/Core/Class/Handler.hs:79:42: warning: [-Wdeprecations]
    In the use of type constructor or class ‘ListT’
    (imported from Control.Monad.Trans.List):
    Deprecated: "This transformer is invalid on most monads"
   |
79 | GO(ListT)
   |                                          ^^^^^

src/Yesod/Core/Class/Handler.hs:79:75: warning: [-Wdeprecations]
    In the use of type constructor or class ‘ListT’
    (imported from Control.Monad.Trans.List):
    Deprecated: "This transformer is invalid on most monads"
   |
79 | GO(ListT)
   |                                                                           ^^^^^

src/Yesod/Core/Class/Handler.hs:79:122: warning: [-Wdeprecations]
    In the use of type constructor or class ‘ListT’
    (imported from Control.Monad.Trans.List):
    Deprecated: "This transformer is invalid on most monads"
   |
79 | GO(ListT)
   |                                                                                                                          ^^^^^

src/Yesod/Core/Class/Handler.hs:107:40: warning: [-Wdeprecations]
    In the use of type constructor or class ‘ListT’
    (imported from Control.Monad.Trans.List):
    Deprecated: "This transformer is invalid on most monads"
    |
107 | GO(ListT)
    |                                        ^^^^^
[11 of 31] Compiling Yesod.Core.Handler ( src/Yesod/Core/Handler.hs, dist/build/Yesod/Core/Handler.o, dist/build/Yesod/Core/Handler.dyn_o )

<no location info>: error:
    <command line>: /usr/lib64/x86_64-linux-ghc-8.10.2/libHSzlib-0.6.2.2-83cwpVLNGon1cpKmKrxNNk-ghc8.10.2.so: undefined symbol: zzlibzm0zi6zi2zi2zm83cwpVLNGon1cpKmKrxNNk_CodecziCompressionziZZlibziStream_StreamEnd_closure
[20 of 31] Compiling Yesod.Routes.TH.Types ( src/Yesod/Routes/TH/Types.hs, dist/build/Yesod/Routes/TH/Types.o, dist/build/Yesod/Routes/TH/Types.dyn_o )
[21 of 31] Compiling Yesod.Routes.TH.RouteAttrs ( src/Yesod/Routes/TH/RouteAttrs.hs, dist/build/Yesod/Routes/TH/RouteAttrs.o, dist/build/Yesod/Routes/TH/RouteAttrs.dyn_o )
[22 of 31] Compiling Yesod.Routes.TH.RenderRoute ( src/Yesod/Routes/TH/RenderRoute.hs, dist/build/Yesod/Routes/TH/RenderRoute.o, dist/build/Yesod/Routes/TH/RenderRoute.dyn_o )
[23 of 31] Compiling Yesod.Routes.TH.Dispatch ( src/Yesod/Routes/TH/Dispatch.hs, dist/build/Yesod/Routes/TH/Dispatch.o, dist/build/Yesod/Routes/TH/Dispatch.dyn_o )
[24 of 31] Compiling Yesod.Routes.TH.ParseRoute ( src/Yesod/Routes/TH/ParseRoute.hs, dist/build/Yesod/Routes/TH/ParseRoute.o, dist/build/Yesod/Routes/TH/ParseRoute.dyn_o )
[25 of 31] Compiling Yesod.Routes.TH  ( src/Yesod/Routes/TH.hs, dist/build/Yesod/Routes/TH.o, dist/build/Yesod/Routes/TH.dyn_o )
[26 of 31] Compiling Yesod.Routes.Overlap ( src/Yesod/Routes/Overlap.hs, dist/build/Yesod/Routes/Overlap.o, dist/build/Yesod/Routes/Overlap.dyn_o )
[27 of 31] Compiling Yesod.Routes.Parse ( src/Yesod/Routes/Parse.hs, dist/build/Yesod/Routes/Parse.o, dist/build/Yesod/Routes/Parse.dyn_o )
 * ERROR: dev-haskell/yesod-core-1.6.18.8::haskell failed (compile phase):
 *   setup build failed
 * 
 * Call stack:
 *     ebuild.sh, line  125:  Called src_compile
 *   environment, line 3123:  Called haskell-cabal_src_compile
 *   environment, line 2707:  Called cabal_src_compile
 *   environment, line 1873:  Called cabal-build
 *   environment, line 1631:  Called die
 * The specific snippet of code:
 *       ./setup "$@" || die "setup build failed"
 * 
 * If you need support, post the output of `emerge --info '=dev-haskell/yesod-core-1.6.18.8::haskell'`,
 * the complete build log and the output of `emerge -pqv '=dev-haskell/yesod-core-1.6.18.8::haskell'`.
 * The complete build log is located at '/var/tmp/portage/dev-haskell/yesod-core-1.6.18.8/temp/build.log.gz'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-haskell/yesod-core-1.6.18.8/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-haskell/yesod-core-1.6.18.8/work/yesod-core-1.6.18.8'
 * S: '/var/tmp/portage/dev-haskell/yesod-core-1.6.18.8/work/yesod-core-1.6.18.8'
Portage 3.0.12 (python 3.8.6-final-0, !../../var/db/repos/gentoo/profiles/default/linux/amd64/17.1, gcc-10.2.0, glibc-2.32-r5, 5.9.14 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.9.14-x86_64-AMD_Ryzen_9_3950X_16-Core_Processor-with-glibc2.2.5
KiB Mem:   131930532 total,  55005328 free
KiB Swap:   20971516 total,  20971516 free
Head commit of repository gentoo: 3f612dc6e8123864c4bdbf03440301918ff62a6c

sh bash 5.1_p4
ld GNU ld (Gentoo 2.35.1 p2) 2.35.1
app-shells/bash:          5.1_p4::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3-r1::gentoo
dev-lang/python:          3.8.6-r1::lto-overlay
dev-util/cmake:           3.19.2::gentoo
sys-apps/baselayout:      2.7-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.35.1-r1::gentoo
sys-devel/gcc:            10.2.0-r4::gentoo
sys-devel/gcc-config:     2.3.2-r1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r5::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo/gentoo
    priority: -1000

emu-dev
    location: /usr/local/portage/emu-dev
    masters: gentoo

testing
    location: /usr/local/portage/testing
    masters: gentoo

crocket-overlay
    location: /var/lib/layman/crocket-overlay
    sync-type: laymansync
    sync-uri: https://github.com/crocket/crocket-overlay.git
    masters: gentoo
    priority: 50

darthgandalf-overlay
    location: /var/lib/layman/darthgandalf-overlay
    sync-type: laymansync
    sync-uri: https://github.com/DarthGandalf/gentoo-overlay.git
    masters: gentoo
    priority: 50

farmboy0
    location: /var/lib/layman/farmboy0
    sync-type: laymansync
    sync-uri: https://github.com/farmboy0/portage-overlay.git
    masters: gentoo
    priority: 50

haskell
    location: /var/lib/layman/haskell
    sync-type: laymansync
    sync-uri: https://github.com/gentoo-haskell/gentoo-haskell.git
    masters: gentoo
    priority: 50

java
    location: /var/lib/layman/java
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/proj/java.git
    masters: gentoo
    priority: 50

lto-overlay
    location: /var/lib/layman/lto-overlay
    sync-type: laymansync
    sync-uri: https://github.com/InBetweenNames/gentooLTO.git
    masters: gentoo mv
    priority: 50

matoro
    location: /var/lib/layman/matoro
    sync-type: laymansync
    sync-uri: https://github.com/matoro/overlay.git
    masters: gentoo
    priority: 50

menelkir
    location: /var/lib/layman/menelkir
    sync-type: laymansync
    sync-uri: https://gitlab.com/menelkir/gentoo-overlay.git
    masters: gentoo
    priority: 50

mv
    location: /var/lib/layman/mv
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/user/mv.git
    masters: gentoo
    priority: 50

pentoo
    location: /var/lib/layman/pentoo
    sync-type: laymansync
    sync-uri: https://github.com/pentoo/pentoo-overlay.git
    masters: gentoo
    priority: 50

pf4public
    location: /var/lib/layman/pf4public
    sync-type: laymansync
    sync-uri: https://github.com/PF4Public/gentoo-overlay.git
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    sync-type: laymansync
    sync-uri: https://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE ValveSteamLicense"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=32 -fuse-linker-plugin -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=32 -fuse-linker-plugin -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--usepkg --autounmask=n --backtrack=300"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg compress-build-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://mirrors.soeasyto.com/distfiles.gentoo.org/ https://gentoo.osuosl.org/ https://mirrors.rit.edu/gentoo/ https://mirror.sjc02.svwh.net/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j32"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl alsa amd64 berkdb bluetooth bzip2 caps cli crypt cups dri elogind evdev fortran gdbm graphite iconv ipv6 libtirpc lto multilib ncurses nls nptl opengl openmp pam pcre pgo pulseaudio readline seccomp split-usr ssl tcpd threads udev unicode vaapi vdpau vim-syntax vulkan x264 xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="evdev joystick libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-haskell/yesod-core-1.6.18.8::haskell was built with the following:
USE="-doc -hoogle -hscolour -profile -test" ABI_X86="(64)"
CFLAGS="-march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=32 -fuse-linker-plugin -pipe -ffat-lto-objects -Wl,-O1 -Wl,--as-needed"
CXXFLAGS="-march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=32 -fuse-linker-plugin -pipe -ffat-lto-objects -Wl,-O1 -Wl,--as-needed"
FEATURES="compressdebug fixlafiles binpkg-docompress protect-owned userpriv network-sandbox config-protect-if-modified unknown-features-warn parallel-fetch binpkg-dostrip ipc-sandbox pid-sandbox strict merge-sync usersandbox parallel-install compress-build-logs xattr sandbox userfetch sfperms usersync splitdebug ebuild-locks preserve-libs qa-unresolved-soname-deps assume-digests distlocks multilib-strict news binpkg-logs unmerge-orphans unmerge-logs buildpkg"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=32 -fuse-linker-plugin -pipe -ffat-lto-objects"
@ezzieyguywuf
Copy link
Contributor

Can you post the output of ghc-pkg list and ghc-pkg check please?

@ezzieyguywuf
Copy link
Contributor

I have been unable to reproduce the bug with the following:

 * Package:    dev-haskell/yesod-core-1.6.18.8
 * Repository: haskell
 * Maintainer: haskell@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
 * Package:    dev-haskell/yesod-core-1.6.18.8
 * Repository: haskell
 * Maintainer: haskell@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox

@matoro have you tried running haskell-updater? Or perhaps rebuild zlib with --usepkg=n?

@matoro
Copy link
Contributor Author

matoro commented Dec 23, 2020

Yep, I have tried both of those. This was how I invoked the above build:

sudo haskell-updater -- -av1 --usepkg-exclude='*/*'

I also tried:

sudo emerge -av1 dev-haskell/zlib --usepkg-exclude '*/*'

which successfully builds, but does not help the original issue. Here's my package lists:

$ ghc-pkg list
/usr/lib64/ghc-8.10.2/package.conf.d
    Cabal-3.2.0.0
    Decimal-0.5.1
    Diff-0.4.0
    Glob-0.9.3
    HUnit-1.6.1.0
    Only-0.1
    QuickCheck-2.13.2
    ShellCheck-0.7.1
    StateVar-1.2
    aeson-1.4.7.1
    aeson-pretty-0.8.8
    ansi-terminal-0.10.3
    ansi-wl-pprint-0.6.9
    appar-0.1.8
    array-0.5.4.0
    asn1-encoding-0.9.6
    asn1-parse-0.9.5
    asn1-types-0.3.4
    async-2.2.2
    attoparsec-0.13.2.4
    attoparsec-iso8601-1.0.1.0
    auto-update-0.1.6
    base-4.14.1.0
    base-compat-0.11.2
    base-compat-batteries-0.11.2
    base-orphans-0.8.4
    base-unicode-symbols-0.2.4.2
    base64-bytestring-1.0.0.3
    basement-0.0.11
    bifunctors-5.5.6
    binary-0.8.8.0
    blaze-builder-0.4.1.0
    blaze-html-0.9.1.2
    blaze-markup-0.8.2.7
    bsb-http-chunked-0.0.0.4
    byteable-0.1.1
    byteorder-1.0.4
    bytestring-0.10.10.0
    bytestring-builder-0.10.8.2.0
    cabal-doctest-1.0.8
    call-stack-0.2.0
    case-insensitive-1.2.1.0
    cassava-0.5.2.0
    cassava-megaparsec-2.0.2
    cereal-0.5.8.1
    cipher-aes-0.2.11
    clientsession-0.9.1.2
    clock-0.8
    cmdargs-0.10.20
    colour-2.3.5
    comonad-5.0.7
    conduit-1.3.4
    conduit-extra-1.3.5
    connection-0.3.1
    containers-0.6.2.1
    contravariant-1.5.2
    control-monad-free-0.6.2
    cookie-0.4.5
    cprng-aes-0.6.1
    crypto-api-0.13.3
    crypto-cipher-types-0.0.9
    crypto-random-0.0.9
    cryptonite-0.26
    cryptonite-conduit-0.2.2
    css-text-0.1.3.0
    csv-0.1.2
    data-default-0.7.1.1
    data-default-class-0.1.2.0
    data-default-instances-containers-0.0.1
    data-default-instances-dlist-0.0.1
    data-default-instances-old-locale-0.0.1
    deepseq-1.4.4.0
    directory-1.3.6.0
    distributive-0.6.2
    dlist-0.8.0.7
    easy-file-0.2.2
    email-validate-2.3.2.13
    entropy-0.4.1.6
    exceptions-0.10.4
    extra-1.7.8
    fail-4.9.0.0
    fast-logger-3.0.2
    file-embed-0.0.13.0
    filepath-1.4.2.1
    ghc-8.10.2
    ghc-boot-8.10.2
    ghc-boot-th-8.10.2
    ghc-compact-0.1.0.0
    ghc-heap-8.10.2
    ghc-prim-0.6.1
    ghci-8.10.2
    hashable-1.2.7.0
    hashtables-1.2.4.1
    haskeline-0.8.0.1
    haskell-lexer-1.1
    hjsmin-0.2.0.4
    hourglass-0.2.12
    hpc-0.6.1.0
    hspec-2.7.1
    hspec-core-2.7.1
    hspec-discover-2.7.1
    hspec-expectations-0.8.2
    html-1.0.1.2
    html-conduit-1.3.2.1
    http-api-data-0.4.2
    http-client-0.6.4.1
    http-client-tls-0.3.5.3
    http-date-0.0.10
    http-types-0.12.3
    http2-2.0.5
    indexed-traversable-0.1
    integer-gmp-1.0.3.0
    integer-logarithms-1.0.3
    iproute-1.7.10
    language-javascript-0.7.1.0
    libiserv-8.10.2
    libyaml-0.1.2
    lifted-base-0.2.3.12
    lucid-2.9.12
    math-functions-0.3.4.1
    megaparsec-8.0.0
    memory-0.15.0
    mime-types-0.1.0.9
    mmorph-1.1.3
    monad-control-1.0.2.3
    monad-logger-0.3.36
    monad-loops-0.4.3
    mono-traversable-1.0.15.1
    mtl-2.2.2
    nats-1.1.2
    network-3.0.1.1
    network-byte-order-0.1.6
    network-uri-2.6.3.0
    old-locale-1.0.0.7
    old-time-1.1.0.3
    optparse-applicative-0.15.1.0
    parsec-3.1.14.0
    parser-combinators-1.2.1
    path-pieces-0.2.1
    pem-0.2.4
    persistent-2.10.5.2
    pretty-1.1.3.6
    pretty-show-1.9.5
    pretty-simple-4.0.0.0
    prettyprinter-1.7.0
    prettyprinter-ansi-terminal-1.1.2
    primitive-0.7.1.0
    process-1.6.9.0
    psqueues-0.2.7.2
    quickcheck-io-0.2.0
    random-1.1
    regex-base-0.94.0.0
    regex-tdfa-1.3.1.0
    resource-pool-0.2.3.2
    resourcet-1.2.4.2
    rts-1.0
    safe-0.3.19
    scientific-0.3.6.2
    securemem-0.1.10
    semigroups-0.18.5
    setenv-0.1.1.3
    shakespeare-2.0.25
    silently-1.2.5.1
    simple-sendfile-0.2.30
    skein-1.0.9.4
    socks-0.6.1
    split-0.2.3.4
    splitmix-0.0.4
    stm-2.5.0.0
    stm-chans-3.0.0.4
    streaming-commons-0.2.2.1
    tabular-0.2.2.8
    tagged-0.8.6
    tagsoup-0.14.8
    tasty-1.2.3
    tasty-hunit-0.10.0.3
    template-haskell-2.16.0.0
    temporary-1.3
    terminfo-0.4.1.4
    text-1.2.3.2
    text-short-0.1.3
    tf-random-0.5
    th-abstraction-0.3.2.0
    th-lift-0.8.2
    th-lift-instances-0.1.18
    time-1.9.3
    time-compat-1.9.5
    time-manager-0.0.0
    timeit-2.0
    tls-1.5.4
    transformers-0.5.6.2
    transformers-base-0.4.5.2
    transformers-compat-0.6.6
    type-equality-1
    typed-process-0.2.6.0
    uglymemo-0.1.0.1
    unbounded-delays-0.1.1.1
    unix-2.7.2.2
    unix-compat-0.5.2
    unix-time-0.4.7
    unliftio-0.2.13.1
    unliftio-core-0.1.2.0
    unordered-containers-0.2.12.0
    utf8-string-1.0.1.1
    utility-ht-0.0.14
    uuid-types-1.0.3
    vault-0.3.1.4
    vector-0.12.1.2
    vector-algorithms-0.8.0.4
    vector-th-unbox-0.2.1.7
    void-0.7.3
    wai-3.2.2.1
    wai-cors-0.2.7
    wai-extra-3.1.4.1
    wai-handler-launch-3.0.3.1
    wai-logger-2.3.6
    warp-3.3.13
    wcwidth-0.0.2
    wizards-1.0.3
    word8-0.1.3
    x509-1.7.5
    x509-store-1.6.7
    x509-system-1.6.6
    x509-validation-1.6.11
    xhtml-3000.2.2.1
    xml-conduit-1.9.0.0
    xml-types-0.3.8
    xss-sanitize-0.3.6
    yaml-0.11.5.0
    zlib-0.6.2.2
$ ghc-pkg check
Warning: haddock-interfaces: /usr/share/doc/ansi-wl-pprint-0.6.9/html/ansi-wl-pprint.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/ansi-wl-pprint-0.6.9/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/crypto-api-0.13.3/html/crypto-api.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/crypto-api-0.13.3/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/pretty-simple-4.0.0.0/html/pretty-simple.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/pretty-simple-4.0.0.0/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/wcwidth-0.0.2/html/wcwidth.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/wcwidth-0.0.2/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/wai-cors-0.2.7/html/wai-cors.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/wai-cors-0.2.7/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/resource-pool-0.2.3.2/html/resource-pool.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/resource-pool-0.2.3.2/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/network-byte-order-0.1.6/html/network-byte-order.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/network-byte-order-0.1.6/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/warp-3.3.13/html/warp.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/warp-3.3.13/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/cabal-doctest-1.0.8-r1/html/cabal-doctest.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/cabal-doctest-1.0.8-r1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/wizards-1.0.3-r1/html/wizards.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/wizards-1.0.3-r1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/hspec-2.7.1/html/hspec.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/hspec-2.7.1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/conduit-1.3.4/html/conduit.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/conduit-1.3.4/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/cprng-aes-0.6.1/html/cprng-aes.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/cprng-aes-0.6.1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/iproute-1.7.10/html/iproute.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/iproute-1.7.10/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/only-0.1/html/Only.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/only-0.1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/shellcheck-0.7.1/html/ShellCheck.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/shellcheck-0.7.1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/data-default-instances-old-locale-0.0.1/html/data-default-instances-old-locale.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/data-default-instances-old-locale-0.0.1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/mime-types-0.1.0.9/html/mime-types.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/mime-types-0.1.0.9/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/wai-extra-3.1.4.1/html/wai-extra.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/wai-extra-3.1.4.1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/fast-logger-3.0.2/html/fast-logger.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/fast-logger-3.0.2/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/http-date-0.0.10/html/http-date.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/http-date-0.0.10/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/unliftio-core-0.1.2.0/html/unliftio-core.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/unliftio-core-0.1.2.0/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/word8-0.1.3/html/word8.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/word8-0.1.3/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/safe-0.3.19/html/safe.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/safe-0.3.19/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/primitive-0.7.1.0/html/primitive.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/primitive-0.7.1.0/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/wai-handler-launch-3.0.3.1/html/wai-handler-launch.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/wai-handler-launch-3.0.3.1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/bifunctors-5.5.6/html/bifunctors.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/bifunctors-5.5.6/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/splitmix-0.0.4/html/splitmix.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/splitmix-0.0.4/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/easy-file-0.2.2/html/easy-file.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/easy-file-0.2.2/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/case-insensitive-1.2.1.0/html/case-insensitive.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/case-insensitive-1.2.1.0/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/aeson-1.4.7.1/html/aeson.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/aeson-1.4.7.1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/comonad-5.0.7/html/comonad.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/comonad-5.0.7/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/blaze-html-0.9.1.2/html/blaze-html.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/blaze-html-0.9.1.2/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/basement-0.0.11/html/basement.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/basement-0.0.11/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/unix-time-0.4.7/html/unix-time.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/unix-time-0.4.7/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/entropy-0.4.1.6/html/entropy.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/entropy-0.4.1.6/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/dlist-0.8.0.7/html/dlist.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/dlist-0.8.0.7/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/prettyprinter-1.7.0/html/prettyprinter.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/prettyprinter-1.7.0/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/scientific-0.3.6.2-r1/html/scientific.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/scientific-0.3.6.2-r1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/transformers-compat-0.6.6/html/transformers-compat.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/transformers-compat-0.6.6/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/glob-0.9.3/html/Glob.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/glob-0.9.3/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/hashtables-1.2.4.1/html/hashtables.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/hashtables-1.2.4.1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/http-client-tls-0.3.5.3/html/http-client-tls.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/http-client-tls-0.3.5.3/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/th-lift-0.8.2/html/th-lift.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/th-lift-0.8.2/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/x509-system-1.6.6/html/x509-system.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/x509-system-1.6.6/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/bytestring-builder-0.10.8.2.0/html/bytestring-builder.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/bytestring-builder-0.10.8.2.0/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/xss-sanitize-0.3.6/html/xss-sanitize.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/xss-sanitize-0.3.6/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/conduit-extra-1.3.5/html/conduit-extra.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/conduit-extra-1.3.5/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/cereal-0.5.8.1/html/cereal.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/cereal-0.5.8.1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/ansi-terminal-0.10.3/html/ansi-terminal.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/ansi-terminal-0.10.3/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/cassava-0.5.2.0/html/cassava.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/cassava-0.5.2.0/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/psqueues-0.2.7.2/html/psqueues.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/psqueues-0.2.7.2/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/xml-conduit-1.9.0.0/html/xml-conduit.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/xml-conduit-1.9.0.0/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/attoparsec-0.13.2.4/html/attoparsec.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/attoparsec-0.13.2.4/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/monad-loops-0.4.3/html/monad-loops.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/monad-loops-0.4.3/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/zlib-0.6.2.2/html/zlib.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/zlib-0.6.2.2/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/auto-update-0.1.6/html/auto-update.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/auto-update-0.1.6/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/vector-algorithms-0.8.0.4/html/vector-algorithms.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/vector-algorithms-0.8.0.4/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/typed-process-0.2.6.0/html/typed-process.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/typed-process-0.2.6.0/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/unliftio-0.2.13.1/html/unliftio.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/unliftio-0.2.13.1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/vector-th-unbox-0.2.1.7/html/vector-th-unbox.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/vector-th-unbox-0.2.1.7/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/resourcet-1.2.4.2/html/resourcet.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/resourcet-1.2.4.2/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/data-default-instances-containers-0.0.1/html/data-default-instances-containers.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/data-default-instances-containers-0.0.1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/time-manager-0.0.0/html/time-manager.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/time-manager-0.0.0/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/pretty-show-1.9.5/html/pretty-show.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/pretty-show-1.9.5/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/math-functions-0.3.4.1/html/math-functions.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/math-functions-0.3.4.1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/vector-0.12.1.2/html/vector.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/vector-0.12.1.2/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/x509-validation-1.6.11/html/x509-validation.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/x509-validation-1.6.11/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/libyaml-0.1.2/html/libyaml.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/libyaml-0.1.2/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/asn1-encoding-0.9.6/html/asn1-encoding.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/asn1-encoding-0.9.6/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/tasty-1.2.3/html/tasty.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/tasty-1.2.3/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/asn1-parse-0.9.5/html/asn1-parse.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/asn1-parse-0.9.5/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/shakespeare-2.0.25/html/shakespeare.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/shakespeare-2.0.25/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/call-stack-0.2.0/html/call-stack.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/call-stack-0.2.0/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/old-locale-1.0.0.7/html/old-locale.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/old-locale-1.0.0.7/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/base64-bytestring-1.0.0.3/html/base64-bytestring.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/base64-bytestring-1.0.0.3/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/quickcheck-2.13.2/html/QuickCheck.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/quickcheck-2.13.2/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/regex-base-0.94.0.0/html/regex-base.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/regex-base-0.94.0.0/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/text-short-0.1.3/html/text-short.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/text-short-0.1.3/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/xml-types-0.3.8/html/xml-types.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/xml-types-0.3.8/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/simple-sendfile-0.2.30/html/simple-sendfile.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/simple-sendfile-0.2.30/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/hjsmin-0.2.0.4/html/hjsmin.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/hjsmin-0.2.0.4/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/cryptonite-0.26-r1/html/cryptonite.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/cryptonite-0.26-r1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/html-conduit-1.3.2.1/html/html-conduit.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/html-conduit-1.3.2.1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/wai-logger-2.3.6/html/wai-logger.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/wai-logger-2.3.6/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/indexed-traversable-0.1/html/indexed-traversable.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/indexed-traversable-0.1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/old-time-1.1.0.3-r1/html/old-time.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/old-time-1.1.0.3-r1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/wai-3.2.2.1/html/wai.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/wai-3.2.2.1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/base-compat-batteries-0.11.2/html/base-compat-batteries.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/base-compat-batteries-0.11.2/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/crypto-cipher-types-0.0.9/html/crypto-cipher-types.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/crypto-cipher-types-0.0.9/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/uglymemo-0.1.0.1/html/uglymemo.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/uglymemo-0.1.0.1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/hashable-1.2.7.0/html/hashable.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/hashable-1.2.7.0/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/csv-0.1.2-r1/html/csv.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/csv-0.1.2-r1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/http-types-0.12.3/html/http-types.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/http-types-0.12.3/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/blaze-builder-0.4.1.0/html/blaze-builder.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/blaze-builder-0.4.1.0/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/cookie-0.4.5/html/cookie.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/cookie-0.4.5/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/haskell-lexer-1.1/html/haskell-lexer.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/haskell-lexer-1.1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/vault-0.3.1.4/html/vault.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/vault-0.3.1.4/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/hourglass-0.2.12/html/hourglass.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/hourglass-0.2.12/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/semigroups-0.18.5/html/semigroups.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/semigroups-0.18.5/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/lifted-base-0.2.3.12/html/lifted-base.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/lifted-base-0.2.3.12/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/clientsession-0.9.1.2/html/clientsession.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/clientsession-0.9.1.2/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/aeson-pretty-0.8.8/html/aeson-pretty.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/aeson-pretty-0.8.8/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/persistent-2.10.5.2/html/persistent.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/persistent-2.10.5.2/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/file-embed-0.0.13.0/html/file-embed.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/file-embed-0.0.13.0/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/network-uri-2.6.3.0/html/network-uri.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/network-uri-2.6.3.0/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/fail-4.9.0.0/html/fail.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/fail-4.9.0.0/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/cmdargs-0.10.20/html/cmdargs.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/cmdargs-0.10.20/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/mono-traversable-1.0.15.1/html/mono-traversable.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/mono-traversable-1.0.15.1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/tasty-hunit-0.10.0.3/html/tasty-hunit.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/tasty-hunit-0.10.0.3/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/prettyprinter-ansi-terminal-1.1.2/html/prettyprinter-ansi-terminal.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/prettyprinter-ansi-terminal-1.1.2/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/http2-2.0.5/html/http2.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/http2-2.0.5/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/async-2.2.2/html/async.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/async-2.2.2/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/th-lift-instances-0.1.18/html/th-lift-instances.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/th-lift-instances-0.1.18/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/data-default-0.7.1.1/html/data-default.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/data-default-0.7.1.1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/uuid-types-1.0.3-r1/html/uuid-types.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/uuid-types-1.0.3-r1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/contravariant-1.5.2/html/contravariant.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/contravariant-1.5.2/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/base-orphans-0.8.4/html/base-orphans.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/base-orphans-0.8.4/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/timeit-2.0/html/timeit.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/timeit-2.0/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/stm-chans-3.0.0.4/html/stm-chans.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/stm-chans-3.0.0.4/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/random-1.1/html/random.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/random-1.1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/path-pieces-0.2.1/html/path-pieces.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/path-pieces-0.2.1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/tabular-0.2.2.8/html/tabular.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/tabular-0.2.2.8/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/hunit-1.6.1.0/html/HUnit.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/hunit-1.6.1.0/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/x509-1.7.5/html/x509.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/x509-1.7.5/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/tf-random-0.5/html/tf-random.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/tf-random-0.5/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/css-text-0.1.3.0/html/css-text.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/css-text-0.1.3.0/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/blaze-markup-0.8.2.7/html/blaze-markup.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/blaze-markup-0.8.2.7/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/cipher-aes-0.2.11/html/cipher-aes.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/cipher-aes-0.2.11/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/yaml-0.11.5.0/html/yaml.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/yaml-0.11.5.0/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/crypto-random-0.0.9/html/crypto-random.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/crypto-random-0.0.9/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/hspec-expectations-0.8.2/html/hspec-expectations.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/hspec-expectations-0.8.2/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/email-validate-2.3.2.13/html/email-validate.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/email-validate-2.3.2.13/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/colour-2.3.5/html/colour.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/colour-2.3.5/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/th-abstraction-0.3.2.0/html/th-abstraction.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/th-abstraction-0.3.2.0/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/html-1.0.1.2-r1/html/html.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/html-1.0.1.2-r1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/control-monad-free-0.6.2/html/control-monad-free.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/control-monad-free-0.6.2/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/byteorder-1.0.4/html/byteorder.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/byteorder-1.0.4/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/utility-ht-0.0.14/html/utility-ht.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/utility-ht-0.0.14/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/regex-tdfa-1.3.1.0/html/regex-tdfa.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/regex-tdfa-1.3.1.0/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/optparse-applicative-0.15.1.0/html/optparse-applicative.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/optparse-applicative-0.15.1.0/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/tls-1.5.4/html/tls.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/tls-1.5.4/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/base-compat-0.11.2/html/base-compat.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/base-compat-0.11.2/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/setenv-0.1.1.3/html/setenv.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/setenv-0.1.1.3/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/skein-1.0.9.4/html/skein.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/skein-1.0.9.4/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/unordered-containers-0.2.12.0/html/unordered-containers.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/unordered-containers-0.2.12.0/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/network-3.0.1.1/html/network.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/network-3.0.1.1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/tagged-0.8.6/html/tagged.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/tagged-0.8.6/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/megaparsec-8.0.0/html/megaparsec.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/megaparsec-8.0.0/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/bsb-http-chunked-0.0.0.4/html/bsb-http-chunked.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/bsb-http-chunked-0.0.0.4/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/silently-1.2.5.1/html/silently.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/silently-1.2.5.1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/asn1-types-0.3.4/html/asn1-types.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/asn1-types-0.3.4/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/clock-0.8/html/clock.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/clock-0.8/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/unbounded-delays-0.1.1.1/html/unbounded-delays.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/unbounded-delays-0.1.1.1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/byteable-0.1.1/html/byteable.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/byteable-0.1.1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/language-javascript-0.7.1.0/html/language-javascript.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/language-javascript-0.7.1.0/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/unix-compat-0.5.2/html/unix-compat.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/unix-compat-0.5.2/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/void-0.7.3/html/void.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/void-0.7.3/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/time-compat-1.9.5/html/time-compat.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/time-compat-1.9.5/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/statevar-1.2/html/StateVar.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/statevar-1.2/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/hspec-discover-2.7.1/html/hspec-discover.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/hspec-discover-2.7.1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/mmorph-1.1.3/html/mmorph.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/mmorph-1.1.3/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/cassava-megaparsec-2.0.2/html/cassava-megaparsec.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/cassava-megaparsec-2.0.2/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/monad-logger-0.3.36/html/monad-logger.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/monad-logger-0.3.36/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/attoparsec-iso8601-1.0.1.0-r1/html/attoparsec-iso8601.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/attoparsec-iso8601-1.0.1.0-r1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/pem-0.2.4/html/pem.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/pem-0.2.4/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/integer-logarithms-1.0.3-r1/html/integer-logarithms.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/integer-logarithms-1.0.3-r1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/utf8-string-1.0.1.1/html/utf8-string.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/utf8-string-1.0.1.1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/extra-1.7.8/html/extra.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/extra-1.7.8/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/temporary-1.3/html/temporary.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/temporary-1.3/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/transformers-base-0.4.5.2/html/transformers-base.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/transformers-base-0.4.5.2/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/diff-0.4.0/html/Diff.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/diff-0.4.0/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/appar-0.1.8/html/appar.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/appar-0.1.8/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/lucid-2.9.12/html/lucid.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/lucid-2.9.12/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/base-unicode-symbols-0.2.4.2/html/base-unicode-symbols.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/base-unicode-symbols-0.2.4.2/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/memory-0.15.0/html/memory.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/memory-0.15.0/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/http-client-0.6.4.1/html/http-client.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/http-client-0.6.4.1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/quickcheck-io-0.2.0/html/quickcheck-io.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/quickcheck-io-0.2.0/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/data-default-instances-dlist-0.0.1/html/data-default-instances-dlist.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/data-default-instances-dlist-0.0.1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/data-default-class-0.1.2.0/html/data-default-class.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/data-default-class-0.1.2.0/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/hspec-core-2.7.1/html/hspec-core.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/hspec-core-2.7.1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/decimal-0.5.1/html/Decimal.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/decimal-0.5.1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/cryptonite-conduit-0.2.2/html/cryptonite-conduit.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/cryptonite-conduit-0.2.2/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/parser-combinators-1.2.1/html/parser-combinators.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/parser-combinators-1.2.1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/distributive-0.6.2/html/distributive.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/distributive-0.6.2/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/nats-1.1.2/html/nats.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/nats-1.1.2/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/socks-0.6.1/html/socks.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/socks-0.6.1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/x509-store-1.6.7/html/x509-store.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/x509-store-1.6.7/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/monad-control-1.0.2.3/html/monad-control.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/monad-control-1.0.2.3/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/tagsoup-0.14.8/html/tagsoup.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/tagsoup-0.14.8/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/streaming-commons-0.2.2.1/html/streaming-commons.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/streaming-commons-0.2.2.1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/type-equality-1/html/type-equality.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/type-equality-1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/securemem-0.1.10/html/securemem.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/securemem-0.1.10/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/connection-0.3.1/html/connection.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/connection-0.3.1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/http-api-data-0.4.2/html/http-api-data.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/http-api-data-0.4.2/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/split-0.2.3.4/html/split.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/split-0.2.3.4/html doesn't exist or isn't a directory

@matoro
Copy link
Contributor Author

matoro commented Dec 23, 2020

Actually, scratch that, this might be the problem:

 * One or more packages are either masked or have missing dependencies:
 * 
 *   >=dev-lang/ghc-8.2.1:0/8.8.4= pulled in by:
 *     (dev-haskell/yesod-core-1.6.18.8:0/1.6.18.8::haskell, installed)

Not sure why this didn't show up or why portage allowed me to upgrade ghc then. Does that mean that dev-haskell/yesod-core is not compatible with newer ghc?

@ezzieyguywuf
Copy link
Contributor

@matoro can you please post the full output of emerge -pv dev-haskell/yesod-core?

@matoro
Copy link
Contributor Author

matoro commented Dec 23, 2020

$ emerge -pv dev-haskell/yesod-core

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] dev-haskell/yesod-core-1.6.18.8:0/1.6.18.8::haskell  USE="-doc -hoogle -hscolour -profile -test" 0 KiB
[ebuild  rR    ] dev-haskell/hledger-lib-1.20.1:0/1.20.1::haskell  USE="-doc -hoogle -hscolour -profile -test" 0 KiB
[ebuild  rR    ] dev-haskell/http-conduit-2.3.7.3:0/2.3.7.3::haskell  USE="-doc -hoogle -hscolour -profile -test" 0 KiB
[ebuild  rR    ] dev-haskell/persistent-template-2.8.2.3:0/2.8.2.3::haskell  USE="-doc -hoogle -hscolour -profile -test" 0 KiB
[ebuild  rR    ] dev-haskell/wai-app-static-3.1.7.2-r1:0/3.1.7.2::haskell  USE="-doc -hoogle -hscolour -print -profile -test" 0 KiB
[ebuild  rR    ] dev-haskell/yesod-persistent-1.6.0.5:0/1.6.0.5::haskell  USE="-doc -hoogle -hscolour -profile -test" 0 KiB
[ebuild  rR    ] dev-haskell/hledger-1.20.1:0/1.20.1::haskell  USE="terminfo threaded -doc -hoogle -hscolour -profile -test" 0 KiB
[ebuild  rR    ] dev-haskell/yesod-static-1.6.1.0:0/1.6.1.0::haskell  USE="-doc -hoogle -hscolour -profile -test" 0 KiB
[ebuild  rR    ] dev-haskell/yesod-test-1.6.12:0/1.6.12::haskell  USE="-doc -hoogle -hscolour -profile -test" 0 KiB
[ebuild  rR    ] dev-haskell/yesod-form-1.6.7:0/1.6.7::haskell  USE="network-uri -doc -hoogle -hscolour -profile -test" 0 KiB
[ebuild  rR    ] dev-haskell/yesod-1.6.1.0:0/1.6.1.0::haskell  USE="-doc -hoogle -hscolour -profile" 0 KiB
[ebuild  rR    ] dev-haskell/hledger-web-1.20.1:0/1.20.1::haskell  USE="threaded -doc -hoogle -hscolour -library-only -profile -test" 0 KiB

Total: 12 packages (12 reinstalls), Size of downloads: 0 KiB

@ezzieyguywuf
Copy link
Contributor

Where did this message come from? Can you post that full output?

 * One or more packages are either masked or have missing dependencies:
 * 
 *   >=dev-lang/ghc-8.2.1:0/8.8.4= pulled in by:
 *     (dev-haskell/yesod-core-1.6.18.8:0/1.6.18.8::haskell, installed)

@matoro
Copy link
Contributor Author

matoro commented Dec 23, 2020

Yeah, I am not sure why it only shows up when I do my full system upgrade command:

sudo emerge -avuDN1 --keep-going @world

There is a bunch of other irrelevant stuff going on there, but after it fails the build (see initial log) this seems to be the only relevant part:

 * Messages for package dev-haskell/yesod-core-1.6.18.8:

 * ERROR: dev-haskell/yesod-core-1.6.18.8::haskell failed (compile phase):
 *   setup build failed
 * 
 * Call stack:
 *     ebuild.sh, line  125:  Called src_compile
 *   environment, line 3123:  Called haskell-cabal_src_compile
 *   environment, line 2707:  Called cabal_src_compile
 *   environment, line 1873:  Called cabal-build
 *   environment, line 1631:  Called die
 * The specific snippet of code:
 *       ./setup "$@" || die "setup build failed"
 * 
 * If you need support, post the output of `emerge --info '=dev-haskell/yesod-core-1.6.18.8::haskell'`,
 * the complete build log and the output of `emerge -pqv '=dev-haskell/yesod-core-1.6.18.8::haskell'`.
 * The complete build log is located at '/var/tmp/portage/dev-haskell/yesod-core-1.6.18.8/temp/build.log.gz'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-haskell/yesod-core-1.6.18.8/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-haskell/yesod-core-1.6.18.8/work/yesod-core-1.6.18.8'
 * S: '/var/tmp/portage/dev-haskell/yesod-core-1.6.18.8/work/yesod-core-1.6.18.8'
 * One or more packages are either masked or have missing dependencies:
 * 
 *   >=dev-lang/ghc-8.2.1:0/8.8.4= pulled in by:
 *     (dev-haskell/yesod-core-1.6.18.8:0/1.6.18.8::haskell, installed)
 * 
 * The resume list contains packages that are either masked or have
 * unsatisfied dependencies. Please restart/continue the operation
 * manually, or use --skipfirst to skip the first package in the list and
 * any other packages that may be masked or have missing dependencies.

@trofi
Copy link
Contributor

trofi commented Dec 23, 2020

: /usr/lib64/x86_64-linux-ghc-8.10.2/libHSzlib-0.6.2.2-83cwpVLNGon1cpKmKrxNNk-ghc8.10.2.so: undefined symbol: zzlibzm0zi6zi2zi2zm83cwpVLNGon1cpKmKrxNNk_CodecziCompressionziZZlibziStream_StreamEnd_closure

This means your dev-haskell/zlib package is broken in a way that not visible to haskell-updater. This might be a s side-effect of -flto. Try building dev-haskell/zlib without -flto and check if it helps.

@solpeth
Copy link
Member

solpeth commented Dec 23, 2020

I'm getting a similar message when compiling dev-haskell/yesod-markdown-0.12.6.3-r1. The log seems normal at first:

>>> Emerging (1 of 1) dev-haskell/yesod-markdown-0.12.6.3-r1::solpeth
 * yesod-markdown-0.12.6.3.tar.gz BLAKE2B SHA512 size ;-) ...                            [ ok ]
>>> Unpacking source...
>>> Unpacking yesod-markdown-0.12.6.3.tar.gz to /var/tmp/portage/dev-haskell/yesod-markdown-0.12.6.3-r1/work
>>> Source unpacked in /var/tmp/portage/dev-haskell/yesod-markdown-0.12.6.3-r1/work
>>> Preparing source in /var/tmp/portage/dev-haskell/yesod-markdown-0.12.6.3-r1/work/yesod-markdown-0.12.6.3 ...
 * CHDEP: 'pandoc >=2.0 && <2.10' -> 'pandoc >=2.0'
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-haskell/yesod-markdown-0.12.6.3-r1/work/yesod-markdown-0.12.6.3 ...
 * Using cabal-3.2.0.0.
 * Prepending /usr/lib64/ghc-8.10.2 to LD_LIBRARY_PATH
/usr/bin/ghc -package Cabal-3.2.0.0 --make /var/tmp/portage/dev-haskell/yesod-markdown-0.12.6.3-r1/work/yesod-markdown-0.12.6.3/Setup.hs -j4 +RTS -A256M -qb0 -RTS -threaded -dynamic -o setup
[1 of 1] Compiling Main             ( /var/tmp/portage/dev-haskell/yesod-markdown-0.12.6.3-r1/work/yesod-markdown-0.12.6.3/Setup.hs, /var/tmp/portage/dev-haskell/yesod-markdown-0.12.6.3-r1/work/yesod-markdown-0.12.6.3/Setup.o )
Linking setup ...
./setup configure --ghc --prefix=/usr --with-compiler=/usr/bin/ghc --with-hc-pkg=/usr/bin/ghc-pkg --prefix=/usr --libdir=/usr/lib64 --libsubdir=yesod-markdown-0.12.6.3/ghc-8.10.2 --datadir=/usr/share/ --datasubdir=yesod-markdown-0.12.6.3/ghc-8.10.2 --enable-tests --ghc-options=-j4 +RTS -A256M -qb0 -RTS --with-ar=x86_64-pc-linux-gnu-ar --ghc-option=-optc-march=ivybridge --ghc-option=-optc-O2 --ghc-option=-optc-pipe --ghc-option=-optl-Wl,-O1 --ghc-option=-optl-Wl,--as-needed --disable-executable-stripping --docdir=/usr/share/doc/yesod-markdown-0.12.6.3-r1 --verbose --enable-shared --enable-executable-dynamic --sysconfdir=/etc --disable-library-stripping
Using Parsec parser
Configuring yesod-markdown-0.12.6.3...
Dependency base >=4.8.0 && <5: using base-4.14.1.0
Dependency blaze-html >=0.5 && <0.10: using blaze-html-0.9.1.2
Dependency blaze-markup >=0.5 && <0.9: using blaze-markup-0.8.2.7
Dependency bytestring >=0.9 && <0.11: using bytestring-0.10.10.0
Dependency directory -any: using directory-1.3.6.0
Dependency pandoc >=2.0: using pandoc-2.11.3.1
Dependency persistent >=0.9: using persistent-2.10.5.2
Dependency shakespeare ==2.0.*: using shakespeare-2.0.24
Dependency text >=0.11 && <2.0: using text-1.2.3.2
Dependency xss-sanitize >=0.3.1 && <0.4: using xss-sanitize-0.3.6
Dependency yesod-core >=1.2 && <1.7: using yesod-core-1.6.18.8
Dependency yesod-form >=1.3 && <1.7: using yesod-form-1.6.7
Dependency base >=4.8.0 && <5: using base-4.14.1.0
Dependency blaze-html -any: using blaze-html-0.9.1.2
Dependency hspec -any: using hspec-2.7.1
Dependency text -any: using text-1.2.3.2
Dependency yesod-markdown -any: using yesod-markdown-0.12.6.3
Source component graph:
    component lib
    component test:test dependency lib
Configured component graph:
    component yesod-markdown-0.12.6.3-92a24dH6eIc4CqT7zXyPru
        include base-4.14.1.0
        include blaze-html-0.9.1.2-BUoYniPR5l9CfXg32a9tD4
        include blaze-markup-0.8.2.7-A4P9U6E6Tu11iAswYnDU2F
        include bytestring-0.10.10.0
        include directory-1.3.6.0
        include pandoc-2.11.3.1-LrMSoGxv8q78o7p7u4lUHx
        include persistent-2.10.5.2-Cbi1Tv94Q4hKsrLpuwsVWZ
        include shakespeare-2.0.24-7dj4v4QpQsv7I9pQPGbFTV
        include text-1.2.3.2
        include xss-sanitize-0.3.6-B5ZXhj6OmqT9kVHzgIpFoj
        include yesod-core-1.6.18.8-KFJiEuQx9cBG4t6u4d6itA
        include yesod-form-1.6.7-8zsqzjFNxI0KudIYpfa3W4
    component yesod-markdown-0.12.6.3-Jqp3c1Syqxs3R1lbFq0ss1-test
        include base-4.14.1.0
        include blaze-html-0.9.1.2-BUoYniPR5l9CfXg32a9tD4
        include hspec-2.7.1-9d6wWPJnETYDqNrpsygkvH
        include text-1.2.3.2
        include yesod-markdown-0.12.6.3-92a24dH6eIc4CqT7zXyPru
Linked component graph:
    unit yesod-markdown-0.12.6.3-92a24dH6eIc4CqT7zXyPru
        include base-4.14.1.0
        include blaze-html-0.9.1.2-BUoYniPR5l9CfXg32a9tD4
        include blaze-markup-0.8.2.7-A4P9U6E6Tu11iAswYnDU2F
        include bytestring-0.10.10.0
        include directory-1.3.6.0
        include pandoc-2.11.3.1-LrMSoGxv8q78o7p7u4lUHx
        include persistent-2.10.5.2-Cbi1Tv94Q4hKsrLpuwsVWZ
        include shakespeare-2.0.24-7dj4v4QpQsv7I9pQPGbFTV
        include text-1.2.3.2
        include xss-sanitize-0.3.6-B5ZXhj6OmqT9kVHzgIpFoj
        include yesod-core-1.6.18.8-KFJiEuQx9cBG4t6u4d6itA
        include yesod-form-1.6.7-8zsqzjFNxI0KudIYpfa3W4
        Yesod.Markdown=yesod-markdown-0.12.6.3-92a24dH6eIc4CqT7zXyPru:Yesod.Markdown
    unit yesod-markdown-0.12.6.3-Jqp3c1Syqxs3R1lbFq0ss1-test
        include base-4.14.1.0
        include blaze-html-0.9.1.2-BUoYniPR5l9CfXg32a9tD4
        include hspec-2.7.1-9d6wWPJnETYDqNrpsygkvH
        include text-1.2.3.2
        include yesod-markdown-0.12.6.3-92a24dH6eIc4CqT7zXyPru
Ready component graph:
    definite yesod-markdown-0.12.6.3-92a24dH6eIc4CqT7zXyPru
        depends base-4.14.1.0
        depends blaze-html-0.9.1.2-BUoYniPR5l9CfXg32a9tD4
        depends blaze-markup-0.8.2.7-A4P9U6E6Tu11iAswYnDU2F
        depends bytestring-0.10.10.0
        depends directory-1.3.6.0
        depends pandoc-2.11.3.1-LrMSoGxv8q78o7p7u4lUHx
        depends persistent-2.10.5.2-Cbi1Tv94Q4hKsrLpuwsVWZ
        depends shakespeare-2.0.24-7dj4v4QpQsv7I9pQPGbFTV
        depends text-1.2.3.2
        depends xss-sanitize-0.3.6-B5ZXhj6OmqT9kVHzgIpFoj
        depends yesod-core-1.6.18.8-KFJiEuQx9cBG4t6u4d6itA
        depends yesod-form-1.6.7-8zsqzjFNxI0KudIYpfa3W4
    definite yesod-markdown-0.12.6.3-Jqp3c1Syqxs3R1lbFq0ss1-test
        depends base-4.14.1.0
        depends blaze-html-0.9.1.2-BUoYniPR5l9CfXg32a9tD4
        depends hspec-2.7.1-9d6wWPJnETYDqNrpsygkvH
        depends text-1.2.3.2
        depends yesod-markdown-0.12.6.3-92a24dH6eIc4CqT7zXyPru
Using Cabal-3.2.0.0 compiled by ghc-8.10
Using compiler: ghc-8.10.2
Using install prefix: /usr
Executables installed in: /usr/bin
Libraries installed in: /usr/lib64/yesod-markdown-0.12.6.3/ghc-8.10.2
Dynamic Libraries installed in: /usr/lib64/x86_64-linux-ghc-8.10.2
Private executables installed in:
/usr/libexec/x86_64-linux-ghc-8.10.2/yesod-markdown-0.12.6.3
Data files installed in: /usr/share/yesod-markdown-0.12.6.3/ghc-8.10.2
Documentation installed in: /usr/share/doc/yesod-markdown-0.12.6.3-r1
Configuration files installed in: /etc
Using alex version 3.2.5 found on system at: /usr/bin/alex
Using ar given by user at: /usr/bin/x86_64-pc-linux-gnu-ar
No c2hs found
Using cpphs version 1.20.9 found on system at: /usr/bin/cpphs
Using doctest version 0.16.3 found on system at: /usr/bin/doctest
Using gcc version 10.2.0 found on system at: /usr/bin/x86_64-pc-linux-gnu-gcc
Using ghc version 8.10.2 given by user at: /usr/bin/ghc
Using ghc-pkg version 8.10.2 given by user at: /usr/bin/ghc-pkg
No ghcjs found
No ghcjs-pkg found
No greencard found
Using haddock version 2.24.0 found on system at: /usr/bin/haddock
Using happy version 1.20.0 found on system at: /usr/bin/happy
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.68 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-pc-linux-gnu-ld
Using pkg-config version 0.29.2 found on system at: /usr/bin/pkg-config
Using runghc version 8.10.2 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
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-haskell/yesod-markdown-0.12.6.3-r1/work/yesod-markdown-0.12.6.3 ...
./setup build
Preprocessing library for yesod-markdown-0.12.6.3..
Building library for yesod-markdown-0.12.6.3..
[1 of 2] Compiling Paths_yesod_markdown ( dist/build/autogen/Paths_yesod_markdown.hs, dist/build/Paths_yesod_markdown.o, dist/build/Paths_yesod_markdown.dyn_o )
[2 of 2] Compiling Yesod.Markdown   ( src/Yesod/Markdown.hs, dist/build/Yesod/Markdown.o, dist/build/Yesod/Markdown.dyn_o )

Immediately following are these two messages:

/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: type and size of dynamic symbol `pandoczm2zi11zi3zi1zmLrMSoGxv8q78o7p7u4lUHx_TextziPandocziOptions_zdfDefaultReaderOptions_closure' are not defined
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: type and size of dynamic symbol `pandoczm2zi11zi3zi1zmLrMSoGxv8q78o7p7u4lUHx_TextziPandocziOptions_zdfDefaultWriterOptions_closure' are not defined

And then the rest of the log:

Preprocessing test suite 'test' for yesod-markdown-0.12.6.3..
Building test suite 'test' for yesod-markdown-0.12.6.3..
[1 of 2] Compiling Main             ( test/Spec.hs, dist/build/test/test-tmp/Main.dyn_o )
[2 of 2] Compiling Paths_yesod_markdown ( dist/build/test/autogen/Paths_yesod_markdown.hs, dist/build/test/test-tmp/Paths_yesod_markdown.dyn_o )
Linking dist/build/test/test ...
>>> Source compiled.
>>> Test phase: dev-haskell/yesod-markdown-0.12.6.3-r1
 * >>> Test phase [cabal test]: dev-haskell/yesod-markdown-0.12.6.3-r1
./setup test --show-details=streaming
Running 1 test suites...
Test suite test: RUNNING...

Yesod.Markdown
  converts Markdown to sanitized HTML
  converts Markdown to unsanitized HTML

Finished in 0.1214 seconds
2 examples, 0 failures
Test suite test: PASS
Test suite logged to: dist/test/yesod-markdown-0.12.6.3-test.log
1 of 1 test suites (1 of 1 test cases) passed.
>>> Completed testing dev-haskell/yesod-markdown-0.12.6.3-r1

>>> Install dev-haskell/yesod-markdown-0.12.6.3-r1 into /var/tmp/portage/dev-haskell/yesod-markdown-0.12.6.3-r1/image
./setup copy --destdir=/var/tmp/portage/dev-haskell/yesod-markdown-0.12.6.3-r1/image
Installing library in /var/tmp/portage/dev-haskell/yesod-markdown-0.12.6.3-r1/image/usr/lib64/yesod-markdown-0.12.6.3/ghc-8.10.2
WARNING: settings file doesn't exist "/var/tmp/portage/dev-haskell/yesod-markdown-0.12.6.3-r1/temp/settings"
cannot know target platform so guessing target == host (native compiler).
Reading package info from stdin ... done.
yesod-markdown-0.12.6.3: Warning: library-dirs: /usr/lib64/yesod-markdown-0.12.6.3/ghc-8.10.2 doesn't exist or isn't a directory
yesod-markdown-0.12.6.3: Warning: haddock-interfaces: /usr/share/doc/yesod-markdown-0.12.6.3-r1/html/yesod-markdown.haddock doesn't exist or isn't a file
yesod-markdown-0.12.6.3: Warning: haddock-html: /usr/share/doc/yesod-markdown-0.12.6.3-r1/html doesn't exist or isn't a directory
yesod-markdown-0.12.6.3: dependency "base-4.14.1.0" doesn't exist (ignoring)
yesod-markdown-0.12.6.3: dependency "blaze-html-0.9.1.2-BUoYniPR5l9CfXg32a9tD4" doesn't exist (ignoring)
yesod-markdown-0.12.6.3: dependency "blaze-markup-0.8.2.7-A4P9U6E6Tu11iAswYnDU2F" doesn't exist (ignoring)
yesod-markdown-0.12.6.3: dependency "bytestring-0.10.10.0" doesn't exist (ignoring)
yesod-markdown-0.12.6.3: dependency "directory-1.3.6.0" doesn't exist (ignoring)
yesod-markdown-0.12.6.3: dependency "pandoc-2.11.3.1-LrMSoGxv8q78o7p7u4lUHx" doesn't exist (ignoring)
yesod-markdown-0.12.6.3: dependency "persistent-2.10.5.2-Cbi1Tv94Q4hKsrLpuwsVWZ" doesn't exist (ignoring)
yesod-markdown-0.12.6.3: dependency "shakespeare-2.0.24-7dj4v4QpQsv7I9pQPGbFTV" doesn't exist (ignoring)
yesod-markdown-0.12.6.3: dependency "text-1.2.3.2" doesn't exist (ignoring)
yesod-markdown-0.12.6.3: dependency "xss-sanitize-0.3.6-B5ZXhj6OmqT9kVHzgIpFoj" doesn't exist (ignoring)
yesod-markdown-0.12.6.3: dependency "yesod-core-1.6.18.8-KFJiEuQx9cBG4t6u4d6itA" doesn't exist (ignoring)
yesod-markdown-0.12.6.3: dependency "yesod-form-1.6.7-8zsqzjFNxI0KudIYpfa3W4" doesn't exist (ignoring)
yesod-markdown-0.12.6.3: import-dirs: /usr/lib64/yesod-markdown-0.12.6.3/ghc-8.10.2 doesn't exist or isn't a directory (ignoring)
yesod-markdown-0.12.6.3: cannot find any of ["Yesod/Markdown.hi","Yesod/Markdown.p_hi","Yesod/Markdown.dyn_hi"] (ignoring)
yesod-markdown-0.12.6.3: cannot find any of ["Paths_yesod_markdown.hi","Paths_yesod_markdown.p_hi","Paths_yesod_markdown.dyn_hi"] (ignoring)
yesod-markdown-0.12.6.3: cannot find any of ["libHSyesod-markdown-0.12.6.3-92a24dH6eIc4CqT7zXyPru.a","libHSyesod-markdown-0.12.6.3-92a24dH6eIc4CqT7zXyPru_p.a","libHSyesod-markdown-0.12.6.3-92a24dH6eIc4CqT7zXyPru-ghc8.10.2.so","libHSyesod-markdown-0.12.6.3-92a24dH6eIc4CqT7zXyPru-ghc8.10.2.dylib","HSyesod-markdown-0.12.6.3-92a24dH6eIc4CqT7zXyPru-ghc8.10.2.dll"] on library path (ignoring)
WARNING: settings file doesn't exist "/var/tmp/portage/dev-haskell/yesod-markdown-0.12.6.3-r1/temp/settings"
cannot know target platform so guessing target == host (native compiler).
WARNING: settings file doesn't exist "/var/tmp/portage/dev-haskell/yesod-markdown-0.12.6.3-r1/temp/settings"
cannot know target platform so guessing target == host (native compiler).
>>> Completed installing dev-haskell/yesod-markdown-0.12.6.3-r1 into /var/tmp/portage/dev-haskell/yesod-markdown-0.12.6.3-r1/image

 * Final size of build directory: 1912 KiB (1.8 MiB)
 * Final size of installed tree:   404 KiB

strip: x86_64-pc-linux-gnu-strip --strip-unneeded -N __gentoo_check_ldflags__ -R .comment -R .GCC.command.line -R .note.gnu.gold-version
   /usr/lib64/yesod-markdown-0.12.6.3/ghc-8.10.2/libHSyesod-markdown-0.12.6.3-92a24dH6eIc4CqT7zXyPru.a
   /usr/lib64/x86_64-linux-ghc-8.10.2/libHSyesod-markdown-0.12.6.3-92a24dH6eIc4CqT7zXyPru-ghc8.10.2.so

>>> Installing (1 of 1) dev-haskell/yesod-markdown-0.12.6.3-r1::solpeth
 * checking 10 files for package collisions
>>> Merging dev-haskell/yesod-markdown-0.12.6.3-r1 to /
--- /usr/
--- /usr/share/
--- /usr/share/doc/
>>> /usr/share/doc/yesod-markdown-0.12.6.3-r1/
>>> /usr/share/doc/yesod-markdown-0.12.6.3-r1/LICENSE.bz2
--- /usr/lib64/
>>> /usr/lib64/yesod-markdown-0.12.6.3/
>>> /usr/lib64/yesod-markdown-0.12.6.3/ghc-8.10.2/
>>> /usr/lib64/yesod-markdown-0.12.6.3/ghc-8.10.2/Yesod/
>>> /usr/lib64/yesod-markdown-0.12.6.3/ghc-8.10.2/Yesod/Markdown.hi
>>> /usr/lib64/yesod-markdown-0.12.6.3/ghc-8.10.2/Yesod/Markdown.dyn_hi
>>> /usr/lib64/yesod-markdown-0.12.6.3/ghc-8.10.2/Paths_yesod_markdown.hi
>>> /usr/lib64/yesod-markdown-0.12.6.3/ghc-8.10.2/Paths_yesod_markdown.dyn_hi
>>> /usr/lib64/yesod-markdown-0.12.6.3/ghc-8.10.2/libHSyesod-markdown-0.12.6.3-92a24dH6eIc4CqT7zXyPru.a
--- /usr/lib64/x86_64-linux-ghc-8.10.2/
>>> /usr/lib64/x86_64-linux-ghc-8.10.2/libHSyesod-markdown-0.12.6.3-92a24dH6eIc4CqT7zXyPru-ghc8.10.2.so
--- /usr/lib64/ghc-8.10.2/
--- /usr/lib64/ghc-8.10.2/package.conf.d/
>>> /usr/lib64/ghc-8.10.2/package.conf.d/yesod-markdown-0.12.6.3-92a24dH6eIc4CqT7zXyPru.conf
--- /usr/lib64/ghc-8.10.2/gentoo/
>>> /usr/lib64/ghc-8.10.2/gentoo/gentoo-dev-haskell-yesod-markdown-0.12.6.3-r1-yesod-markdown-0.12.6.3.conf
>>> /usr/lib64/ghc-8.10.2/gentoo/gentoo-empty-dev-haskell-yesod-markdown-0.12.6.3-r1.conf
 * Recaching GHC package DB
>>> dev-haskell/yesod-markdown-0.12.6.3-r1 merged.
>>> Regenerating /etc/ld.so.cache...
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.

Note that the highlighted part of the log mentions ld and gcc, not ghc. And the build succeeds. I'm still on gcc-10.2.0-r3 rather than -r4, if that could be an issue.

@matoro
Copy link
Contributor Author

matoro commented Dec 23, 2020

: /usr/lib64/x86_64-linux-ghc-8.10.2/libHSzlib-0.6.2.2-83cwpVLNGon1cpKmKrxNNk-ghc8.10.2.so: undefined symbol: zzlibzm0zi6zi2zi2zm83cwpVLNGon1cpKmKrxNNk_CodecziCompressionziZZlibziStream_StreamEnd_closure

This means your dev-haskell/zlib package is broken in a way that not visible to haskell-updater. This might be a s side-effect of -flto. Try building dev-haskell/zlib without -flto and check if it helps.

Wow, that actually did it! I did not realize that CFLAGS affected haskell packages since, well, they're not written in C.

Could you perhaps add strip-flags from flag-o-matic.eclass to dev-haskell/zlib to prevent this from affecting anybody else?

@matoro matoro closed this as completed Dec 23, 2020
@trofi trofi reopened this Dec 23, 2020
@trofi
Copy link
Contributor

trofi commented Dec 23, 2020

I would guess dev-haskell/zlib does contain bits of C code to interface with zlib.

Let's keep it open and check why -flto -ffat-lto-objects breaks things. It's not supposed to in my understanding.

@trofi trofi changed the title =dev-haskell/yesod-core-1.6.18.8: error: /usr/lib64/x86_64-linux-ghc-8.10.2/libHSzlib-0.6.2.2-83cwpVLNGon1cpKmKrxNNk-ghc8.10.2.so: undefined symbol: zzlibzm0zi6zi2zi2zm83cwpVLNGon1cpKmKrxNNk_CodecziCompressionziZZlibziStream_StreamEnd_closure dev-haskell/zlib breaks on -flto -ffat-lto-objects Dec 23, 2020
@matoro
Copy link
Contributor Author

matoro commented Dec 28, 2020

Okay, this has gotten much worse with the latest ghc and now the workaround no longer completely works. dev-haskell/clientsession breaks during the linking stage. I have disabled LTO on all the packages I found in the output, but it only helped for some and not others.

Packages where it did help:

dev-haskell/primitive
dev-haskell/skein

Packages where it did not help:

dev-haskell/cprng-aes
dev-haskell/crypto-api
dev-haskell/crypto-random
dev-haskell/entropy
dev-haskell/memory

Can anybody help please?

$ sudo haskell-updater -- -av1 --usepkg-exclude '*/*'                                                                                                                                                                                                                                                                                                                             
Running haskell-updater-1.3.2 using GHC 8.10.3                                                                                                                                                                                                                                                                                                                                                             
  * Executable: /usr/bin/ghc                                                                                                                                                                                                                                                                                                                                                                               
  * Library directory: /usr/lib64/ghc-8.10.3                                                                                                                                                                                                                                                                                                                                                               
  * Package manager (PM): portage                                                                                                                                                                                                                                                                                                                                                                          
  * PM auxiliary arguments: -av1 --usepkg-exclude */*                                                                                                                                                                                                                                                                                                                                                      
  * Mode: OnlyInvalid                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                           
Searching for packages installed with a different version of GHC.                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                           
Found the following old packages:                                                                                                                                                                                                                                                                                                                                                                          
  * dev-haskell/aeson-pretty:0                                                                                                                                                                                                                                                                                                                                                                             
  * dev-haskell/clientsession:0                                                                                                                                                                                                                                                                                                                                                                            
  * dev-haskell/connection:0                                                                                                                                                                                                                                                                                                                                                                               
  * dev-haskell/cryptonite-conduit:0                                                                                                                                                                                                                                                                                                                                                                       
  * dev-haskell/hledger:0                                                                                                                                                                                                                                                                                                                                                                                  
  * dev-haskell/hledger-lib:0                                                                                                                                                                                                                                                                                                                                                                              
  * dev-haskell/hledger-web:0                                                                                                                                                                                                                                                                                                                                                                              
  * dev-haskell/html-conduit:0                                                                                                                                                                                                                                                                                                                                                                             
  * dev-haskell/http-client-tls:0                                                                                                                                                                                                                                                                                                                                                                          
  * dev-haskell/http-conduit:0                                                                                                                                                                                                                                                                                                                                                                             
  * dev-haskell/persistent-template:0                                                                                                                                                                                                                                                                                                                                                                      
  * dev-haskell/tls:0                                                                                                                                                                                                                                                                                                                                                                                      
  * dev-haskell/wai-app-static:0                                                                                                                                                                                                                                                                                                                                                                           
  * dev-haskell/wai-handler-launch:0                                                                                                                                                                                                                                                                                                                                                                       
  * dev-haskell/x509-system:0                                                                                                                                                                                                                                                                                                                                                                              
  * dev-haskell/x509-validation:0                                                                                                                                                                                                                                                                                                                                                                          
  * dev-haskell/xml-conduit:0                                                                                                                                                                                                                                                                                                                                                                              
  * dev-haskell/yaml:0                                                                                                                                                                                                                                                                                                                                                                                     
  * dev-haskell/yesod:0                                                                                                                                                                                                                                                                                                                                                                                    
  * dev-haskell/yesod-core:0                                                                                                                                                                                                                                                                                                                                                                               
  * dev-haskell/yesod-form:0                                                                                                                                                                                                                                                                                                                                                                               
  * dev-haskell/yesod-persistent:0                                                                                                                                                                                                                                                                                                                                                                         
  * dev-haskell/yesod-static:0                                                                                                                                                                                                                                                                                                                                                                             
  * dev-haskell/yesod-test:0                                                                                                                                                                                                                                                                                                                                                                               
  * dev-util/shellcheck:0                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                                           
Searching for Haskell libraries with broken dependencies.                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                                           
No broken packages found!                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                                           
emerge --oneshot --keep-going --complete-graph --deep -av1 --usepkg-exclude */* dev-haskell/aeson-pretty:0 dev-haskell/clientsession:0 dev-haskell/connection:0 dev-haskell/cryptonite-conduit:0 dev-haskell/hledger:0 dev-haskell/hledger-lib:0 dev-haskell/hledger-web:0 dev-haskell/html-conduit:0 dev-haskell/http-client-tls:0 dev-haskell/http-conduit:0 dev-haskell/persistent-template:0 dev-haskel
l/tls:0 dev-haskell/wai-app-static:0 dev-haskell/wai-handler-launch:0 dev-haskell/x509-system:0 dev-haskell/x509-validation:0 dev-haskell/xml-conduit:0 dev-haskell/yaml:0 dev-haskell/yesod:0 dev-haskell/yesod-core:0 dev-haskell/yesod-form:0 dev-haskell/yesod-persistent:0 dev-haskell/yesod-static:0 dev-haskell/yesod-test:0 dev-util/shellcheck:0                                                  
                                                                                                                                                                                                                                                                                                                                                                                                           
These are the packages that would be merged, in order:                                                                                                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                                                                                                                                                           
Calculating dependencies... done!                                                                                                                                                                                                                                                                                                                                                                          
[ebuild   R    ] dev-haskell/clientsession-0.9.1.2:0/0.9.1.2::haskell  USE="-doc -hoogle -hscolour -profile -test" 0 KiB                                                                                                                                                                                                                                                                                   
[ebuild   R    ] dev-haskell/x509-validation-1.6.11:0/1.6.11::haskell  USE="-doc -hoogle -hscolour -profile -test" 0 KiB                                                                                                                                                                                                                                                                                   
[ebuild   R    ] dev-haskell/x509-system-1.6.6:0/1.6.6::haskell  USE="-doc -hoogle -hscolour -profile" 0 KiB                                                                                                                                                                                                                                                                                               
[ebuild   R    ] dev-haskell/tls-1.5.4:0/1.5.4::haskell  USE="compat network -doc -hoogle -hscolour -profile -test" 0 KiB                                                                                                                                                                                                                                                                                  
[ebuild   R    ] dev-haskell/wai-handler-launch-3.0.3.1:0/3.0.3.1::haskell  USE="-doc -hoogle -hscolour -profile" 0 KiB                                                                                                                                                                                                                                                                                    
[ebuild   R    ] dev-haskell/xml-conduit-1.9.0.0:0/1.9.0.0::haskell  USE="-doc -hoogle -hscolour -profile -test" 0 KiB                                                                                                                                                                                                                                                                                     
[ebuild   R    ] dev-haskell/connection-0.3.1:0/0.3.1::haskell  USE="-doc -hoogle -hscolour -profile" 0 KiB                                                                                                                                                                                                                                                                                                
[ebuild   R    ] dev-haskell/cryptonite-conduit-0.2.2:0/0.2.2::haskell  USE="-doc -hoogle -hscolour -profile -test" 0 KiB                                                                                                                                                                                                                                                                                  
[ebuild   R    ] dev-haskell/yaml-0.11.5.0:0/0.11.5.0::haskell  USE="no-examples no-exe -doc -hoogle -hscolour -profile -test" 0 KiB                                                                                                                                                                                                                                                                       
[ebuild   R    ] dev-haskell/aeson-pretty-0.8.8:0/0.8.8::haskell  USE="-doc -hoogle -hscolour -lib-only -profile" 0 KiB                                                                                                                                                                                                                                                                                    
[ebuild   R    ] dev-haskell/html-conduit-1.3.2.1:0/1.3.2.1::haskell  USE="-doc -hoogle -hscolour -profile -test" 0 KiB                                                                                                                                                                                                                                                                                    
[ebuild   R    ] dev-haskell/http-client-tls-0.3.5.3:0/0.3.5.3::haskell  USE="-doc -hoogle -hscolour -profile -test" 0 KiB                                                                                                                                                                                                                                                                                 
[ebuild   R    ] dev-util/shellcheck-0.7.1:0/0.7.1::haskell  USE="-doc -hoogle -hscolour -profile -test" 0 KiB
[ebuild   R    ] dev-haskell/yesod-core-1.6.18.8:0/1.6.18.8::haskell  USE="-doc -hoogle -hscolour -profile -test" 0 KiB
[ebuild   R    ] dev-haskell/hledger-lib-1.20.1:0/1.20.1::haskell  USE="-doc -hoogle -hscolour -profile -test" 0 KiB
[ebuild   R    ] dev-haskell/http-conduit-2.3.7.3:0/2.3.7.3::haskell  USE="-doc -hoogle -hscolour -profile -test" 0 KiB
[ebuild   R    ] dev-haskell/persistent-template-2.8.2.3:0/2.8.2.3::haskell  USE="-doc -hoogle -hscolour -profile -test" 0 KiB
[ebuild   R    ] dev-haskell/wai-app-static-3.1.7.2-r1:0/3.1.7.2::haskell  USE="-doc -hoogle -hscolour -print -profile -test" 0 KiB
[ebuild   R    ] dev-haskell/yesod-persistent-1.6.0.5:0/1.6.0.5::haskell  USE="-doc -hoogle -hscolour -profile -test" 0 KiB
[ebuild   R    ] dev-haskell/hledger-1.20.1:0/1.20.1::haskell  USE="terminfo threaded -doc -hoogle -hscolour -profile -test" 0 KiB
[ebuild   R    ] dev-haskell/yesod-static-1.6.1.0:0/1.6.1.0::haskell  USE="-doc -hoogle -hscolour -profile -test" 0 KiB
[ebuild   R    ] dev-haskell/yesod-test-1.6.12:0/1.6.12::haskell  USE="-doc -hoogle -hscolour -profile -test" 0 KiB
[ebuild   R    ] dev-haskell/yesod-form-1.6.7:0/1.6.7::haskell  USE="network-uri -doc -hoogle -hscolour -profile -test" 0 KiB
[ebuild   R    ] dev-haskell/yesod-1.6.1.0:0/1.6.1.0::haskell  USE="-doc -hoogle -hscolour -profile" 0 KiB
[ebuild   R    ] dev-haskell/hledger-web-1.20.1:0/1.20.1::haskell  USE="threaded -doc -hoogle -hscolour -library-only -profile -test" 0 KiB

Total: 25 packages (25 reinstalls), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] yes

>>> Verifying ebuild manifests

>>> Emerging (1 of 25) dev-haskell/clientsession-0.9.1.2::haskell
 * Fetching files in the background.
 * To view fetch progress, run in another terminal:
 * tail -f /var/log/emerge-fetch.log
 * clientsession-0.9.1.2.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                                                                                                                                                                                                                         [ ok ]
 * /etc/portage/package.cflags/ltoworkarounds.conf -> dev-haskell/*: *FLAGS+=-ffat-lto-objects #This is so non-portage GHC compilations work, as GHC is oblivious to LTO.  portage builds are fine.
 * FEATURES='pid-sandbox network-sandbox config-protect-if-modified usersync distlocks ebuild-locks ipc-sandbox parallel-install assume-digests usersandbox parallel-fetch sfperms sandbox userpriv xattr buildpkg fixlafiles unknown-features-warn protect-owned qa-unresolved-soname-deps merge-sync multilib-strict news unmerge-orphans binpkg-docompress preserve-libs unmerge-logs userfetch strict b
inpkg-dostrip binpkg-logs compress-build-logs splitdebug compressdebug'
 * CFLAGS='-O3 -pipe -march=native -ffat-lto-objects -Wl,-O1 -Wl,--as-needed'
 * CXXFLAGS='-O3 -pipe -march=native -ffat-lto-objects -Wl,-O1 -Wl,--as-needed'
 * FFLAGS='-O3 -pipe -march=native -ffat-lto-objects -Wl,-O1 -Wl,--as-needed'
 * FCFLAGS='-O3 -pipe -march=native -ffat-lto-objects -Wl,-O1 -Wl,--as-needed'
 * F77FLAGS='-O3 -pipe -march=native -ffat-lto-objects -Wl,-O1 -Wl,--as-needed'
 * LDFLAGS='-Wl,-O1 -Wl,--as-needed'
 * MAKEOPTS='-j32'
 * gcc (Gentoo 10.2.0-r4 p5) 10.2.0
 * g++ (Gentoo 10.2.0-r4 p5) 10.2.0
 * GNU ld (Gentoo 2.35.1 p2) 2.35.1
 * Linux matoro-desktop 5.9.14 #1 SMP Fri Dec 11 15:26:08 MST 2020 x86_64 AMD Ryzen 9 3950X 16-Core Processor AuthenticAMD GNU/Linux
>>> Unpacking source...
>>> Unpacking clientsession-0.9.1.2.tar.gz to /var/tmp/portage/dev-haskell/clientsession-0.9.1.2/work
>>> Source unpacked in /var/tmp/portage/dev-haskell/clientsession-0.9.1.2/work
>>> Preparing source in /var/tmp/portage/dev-haskell/clientsession-0.9.1.2/work/clientsession-0.9.1.2 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-haskell/clientsession-0.9.1.2/work/clientsession-0.9.1.2 ...
 * Using cabal-3.2.1.0.
 * Prepending /usr/lib64/ghc-8.10.3 to LD_LIBRARY_PATH
/usr/bin/ghc -package Cabal-3.2.1.0 --make /var/tmp/portage/dev-haskell/clientsession-0.9.1.2/work/clientsession-0.9.1.2/Setup.lhs -j32 +RTS -A256M -qb0 -RTS -threaded -dynamic -o setup
[1 of 1] Compiling Main             ( /var/tmp/portage/dev-haskell/clientsession-0.9.1.2/work/clientsession-0.9.1.2/Setup.lhs, /var/tmp/portage/dev-haskell/clientsession-0.9.1.2/work/clientsession-0.9.1.2/Setup.o )
Linking setup ...
./setup configure --ghc --prefix=/usr --with-compiler=/usr/bin/ghc --with-hc-pkg=/usr/bin/ghc-pkg --prefix=/usr --libdir=/usr/lib64 --libsubdir=clientsession-0.9.1.2/ghc-8.10.3 --datadir=/usr/share/ --datasubdir=clientsession-0.9.1.2/ghc-8.10.3 --disable-tests --ghc-options=-j32 +RTS -A256M -qb0 -RTS --with-ar=x86_64-pc-linux-gnu-ar --ghc-option=-optc-O3 --ghc-option=-optc-pipe --ghc-option=-
optc-march=native --ghc-option=-optc-ffat-lto-objects --ghc-option=-optc-Wl,-O1 --ghc-option=-optc-Wl,--as-needed --ghc-option=-optl-Wl,-O1 --ghc-option=-optl-Wl,--as-needed --disable-executable-stripping --docdir=/usr/share/doc/clientsession-0.9.1.2 --verbose --enable-shared --enable-executable-dynamic --sysconfdir=/etc --disable-library-stripping --flags=-test
Using Parsec parser
Configuring clientsession-0.9.1.2...
Flags chosen: test=False
Dependency base ==4.*: using base-4.14.1.0
Dependency base64-bytestring >=0.1.1.1: using base64-bytestring-1.0.0.3
Dependency bytestring >=0.9: using bytestring-0.10.12.0
Dependency cereal >=0.3: using cereal-0.5.8.1
Dependency cipher-aes >=0.1.7: using cipher-aes-0.2.11
Dependency cprng-aes >=0.2: using cprng-aes-0.6.1
Dependency crypto-api >=0.8: using crypto-api-0.13.3
Dependency crypto-random -any: using crypto-random-0.0.9
Dependency directory >=1: using directory-1.3.6.0
Dependency entropy >=0.2.1: using entropy-0.4.1.6
Dependency setenv -any: using setenv-0.1.1.3
Dependency skein ==1.0.*: using skein-1.0.9.4
Dependency tagged >=0.1: using tagged-0.8.6
Dependency base -any: using base-4.14.1.0
Dependency clientsession -any: using clientsession-0.9.1.2
Source component graph:
    component lib
    component exe:clientsession-generate dependency lib
Configured component graph:
    component clientsession-0.9.1.2-Lg9kE2XWeWl1IxmYMq0TR4
        include base-4.14.1.0
        include base64-bytestring-1.0.0.3-LrUsJOXcsRkGuNey5wAozk
        include bytestring-0.10.12.0
        include cereal-0.5.8.1-GUb4RevCx1RIizmGsdsL8G
        include cipher-aes-0.2.11-16LqnL45GkCFxDkMuXAshv
        include cprng-aes-0.6.1-IOVcyqABYxNFaGL55yjj91
        include crypto-api-0.13.3-4nfAKFpI5aU1YCBB0Js14o
        include crypto-random-0.0.9-BMmzProkpGT6y3FjyuwGyt
        include directory-1.3.6.0
        include entropy-0.4.1.6-401efJw9nRwIZxZeL9eu3s
        include setenv-0.1.1.3-FjFLzlxhySgkTKHvS1WwL
        include skein-1.0.9.4-GXUT1bjsfqpFWqIsuiRaK0
        include tagged-0.8.6-6ynGuqiqWewDmeFAuVgKQe
    component clientsession-0.9.1.2-2CnamCDOQKvHTfqELQms3p-clientsession-generate
        include base-4.14.1.0
        include clientsession-0.9.1.2-Lg9kE2XWeWl1IxmYMq0TR4
Linked component graph:                                                                                                                                                                                                                                                                                                                                                                                    
    unit clientsession-0.9.1.2-Lg9kE2XWeWl1IxmYMq0TR4                                                                                                                                                                                                                                                                                                                                                      
        include base-4.14.1.0                                                                                                                                                                                                                                                                                                                                                                              
        include base64-bytestring-1.0.0.3-LrUsJOXcsRkGuNey5wAozk                                                                                                                                                                                                                                                                                                                                           
        include bytestring-0.10.12.0                                                                                                                                                                                                                                                                                                                                                                       
        include cereal-0.5.8.1-GUb4RevCx1RIizmGsdsL8G                                                                                                                                                                                                                                                                                                                                                      
        include cipher-aes-0.2.11-16LqnL45GkCFxDkMuXAshv                                                                                                                                                                                                                                                                                                                                                   
        include cprng-aes-0.6.1-IOVcyqABYxNFaGL55yjj91                                                                                                                                                                                                                                                                                                                                                     
        include crypto-api-0.13.3-4nfAKFpI5aU1YCBB0Js14o                                                                                                                                                                                                                                                                                                                                                   
        include crypto-random-0.0.9-BMmzProkpGT6y3FjyuwGyt                                                                                                                                                                                                                                                                                                                                                 
        include directory-1.3.6.0                                                                                                                                                                                                                                                                                                                                                                          
        include entropy-0.4.1.6-401efJw9nRwIZxZeL9eu3s                                                                                                                                                                                                                                                                                                                                                     
        include setenv-0.1.1.3-FjFLzlxhySgkTKHvS1WwL                                                                                                                                                                                                                                                                                                                                                       
        include skein-1.0.9.4-GXUT1bjsfqpFWqIsuiRaK0                                                                                                                                                                                                                                                                                                                                                       
        include tagged-0.8.6-6ynGuqiqWewDmeFAuVgKQe                                                                                                                                                                                                                                                                                                                                                        
        Web.ClientSession=clientsession-0.9.1.2-Lg9kE2XWeWl1IxmYMq0TR4:Web.ClientSession                                                                                                                                                                                                                                                                                                                   
    unit clientsession-0.9.1.2-2CnamCDOQKvHTfqELQms3p-clientsession-generate                                                                                                                                                                                                                                                                                                                               
        include base-4.14.1.0                                                                                                                                                                                                                                                                                                                                                                              
        include clientsession-0.9.1.2-Lg9kE2XWeWl1IxmYMq0TR4                                                                                                                                                                                                                                                                                                                                               
Ready component graph:                                                                                                                                                                                                                                                                                                                                                                                     
    definite clientsession-0.9.1.2-Lg9kE2XWeWl1IxmYMq0TR4                                                                                                                                                                                                                                                                                                                                                  
        depends base-4.14.1.0                                                                                                                                                                                                                                                                                                                                                                              
        depends base64-bytestring-1.0.0.3-LrUsJOXcsRkGuNey5wAozk                                                                                                                                                                                                                                                                                                                                           
        depends bytestring-0.10.12.0                                                                                                                                                                                                                                                                                                                                                                       
        depends cereal-0.5.8.1-GUb4RevCx1RIizmGsdsL8G                                                                                                                                                                                                                                                                                                                                                      
        depends cipher-aes-0.2.11-16LqnL45GkCFxDkMuXAshv                                                                                                                                                                                                                                                                                                                                                   
        depends cprng-aes-0.6.1-IOVcyqABYxNFaGL55yjj91                                                                                                                                                                                                                                                                                                                                                     
        depends crypto-api-0.13.3-4nfAKFpI5aU1YCBB0Js14o                                                                                                                                                                                                                                                                                                                                                   
        depends crypto-random-0.0.9-BMmzProkpGT6y3FjyuwGyt                                                                                                                                                                                                                                                                                                                                                 
        depends directory-1.3.6.0                                                                                                                                                                                                                                                                                                                                                                          
        depends entropy-0.4.1.6-401efJw9nRwIZxZeL9eu3s                                                                                                                                                                                                                                                                                                                                                     
        depends setenv-0.1.1.3-FjFLzlxhySgkTKHvS1WwL                                                                                                                                                                                                                                                                                                                                                       
        depends skein-1.0.9.4-GXUT1bjsfqpFWqIsuiRaK0                                                                                                                                                                                                                                                                                                                                                       
        depends tagged-0.8.6-6ynGuqiqWewDmeFAuVgKQe                                                                                                                                                                                                                                                                                                                                                        
    definite clientsession-0.9.1.2-2CnamCDOQKvHTfqELQms3p-clientsession-generate                                                                                                                                                                                                                                                                                                                           
        depends base-4.14.1.0                                                                                                                                                                                                                                                                                                                                                                              
        depends clientsession-0.9.1.2-Lg9kE2XWeWl1IxmYMq0TR4                                                                                                                                                                                                                                                                                                                                               
Using Cabal-3.2.1.0 compiled by ghc-8.10                                                                                                                                                                                                                                                                                                                                                                   
Using compiler: ghc-8.10.3                                                                                                                                                                                                                                                                                                                                                                                 
Using install prefix: /usr                                                                                                                                                                                                                                                                                                                                                                                 
Executables installed in: /usr/bin                                                                                                                                                                                                                                                                                                                                                                         
Libraries installed in: /usr/lib64/clientsession-0.9.1.2/ghc-8.10.3                                                                                                                                                                                                                                                                                                                                        
Dynamic Libraries installed in: /usr/lib64/x86_64-linux-ghc-8.10.3                                                                                                                                                                                                                                                                                                                                         
Private executables installed in:                                                                                                                                                                                                                                                                                                                                                                          
/usr/libexec/x86_64-linux-ghc-8.10.3/clientsession-0.9.1.2                                                                                                                                                                                                                                                                                                                                                 
Data files installed in: /usr/share/clientsession-0.9.1.2/ghc-8.10.3                                                                                                                                                                                                                                                                                                                                       
Documentation installed in: /usr/share/doc/clientsession-0.9.1.2                                                                                                                                                                                                                                                                                                                                           
Configuration files installed in: /etc                                                                                                                                                                                                                                                                                                                                                                     
Using alex version 3.2.5 found on system at: /usr/bin/alex                                                                                                                                                                                                                                                                                                                                                 
Using ar given by user at: /usr/bin/x86_64-pc-linux-gnu-ar                                                                                                                                                                                                                                                                                                                                                 
No c2hs found                                                                                                                                                                                                                                                                                                                                                                                              
No cpphs found                                                                                                                                                                                                                                                                                                                                                                                             
No doctest found                                                                                                                                                                                                                                                                                                                                                                                           
Using gcc version 10.2.0 found on system at: /usr/bin/x86_64-pc-linux-gnu-gcc                                                                                                                                                                                                                                                                                                                              
Using ghc version 8.10.3 given by user at: /usr/bin/ghc                                                                                                                                                                                                                                                                                                                                                    
Using ghc-pkg version 8.10.3 given by user at: /usr/bin/ghc-pkg                                                                                                                                                                                                                                                                                                                                            
No ghcjs found                                                                                                                                                                                                                                                                                                                                                                                             
No ghcjs-pkg found                                                                                                                                                                                                                                                                                                                                                                                         
No greencard found                                                                                                                                                                                                                                                                                                                                                                                         
Using haddock version 2.24.0 found on system at: /usr/bin/haddock-ghc-8.10.3                                                                                                                                                                                                                                                                                                                               
Using happy version 1.20.0 found on system at: /usr/bin/happy                                                                                                                                                                                                                                                                                                                                              
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.68 found on system at: /usr/bin/hpc                                                                                                                                                                                                                                                                                                                                                    
Using hsc2hs version 0.68.7 found on system at: /usr/bin/hsc2hs                                                                                                                                                                                                                                                                                                                                            
No hscolour found                                                                                                                                                                                                                                                                                                                                                                                          
No jhc found                                                                                                                                                                                                                                                                                                                                                                                               
Using ld found on system at: /usr/bin/x86_64-pc-linux-gnu-ld                                                                                                                                                                                                                                                                                                                                               
Using pkg-config version 1.7.3 found on system at: /usr/bin/pkg-config
Using runghc version 8.10.3 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
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-haskell/clientsession-0.9.1.2/work/clientsession-0.9.1.2 ...
./setup build
Preprocessing library for clientsession-0.9.1.2..
Building library for clientsession-0.9.1.2..
[1 of 2] Compiling System.LookupEnv ( src/System/LookupEnv.hs, dist/build/System/LookupEnv.o, dist/build/System/LookupEnv.dyn_o )
[2 of 2] Compiling Web.ClientSession ( src/Web/ClientSession.hs, dist/build/Web/ClientSession.o, dist/build/Web/ClientSession.dyn_o )

src/Web/ClientSession.hs:61:1: warning: [-Wunused-imports]
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
   |
61 | import Control.Applicative ((<$>))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Web/ClientSession.hs:91:1: warning: [-Wunused-imports]
    The import of ‘Data.Tagged’ is redundant
      except perhaps to import instances from ‘Data.Tagged’
    To import instances alone, use: import Data.Tagged()
   |
91 | import Data.Tagged (Tagged, untag)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Web/ClientSession.hs:95:1: warning: [-Wunused-imports]
    The import of ‘Crypto.Random’ is redundant
      except perhaps to import instances from ‘Crypto.Random’
    To import instances alone, use: import Crypto.Random()
   |
95 | import "crypto-api" Crypto.Random (genSeedLength, reseed)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Web/ClientSession.hs:96:1: warning: [-Wunused-imports]
    The import of ‘Crypto.Types’ is redundant
      except perhaps to import instances from ‘Crypto.Types’
    To import instances alone, use: import Crypto.Types()
   |
96 | import Crypto.Types (ByteLength)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Web/ClientSession.hs:267:37: warning: [-Wdeprecations]
    In the use of ‘initKey’ (imported from Crypto.Cipher.AES):
    Deprecated: "use initAES"
    |
267 | initKey bs = Right $ Key { aesKey = A.initKey preAesKey
    |                                     ^^^^^^^^^
Preprocessing executable 'clientsession-generate' for clientsession-0.9.1.2..
Building executable 'clientsession-generate' for clientsession-0.9.1.2..
[1 of 1] Compiling Main             ( bin/generate.hs, dist/build/clientsession-generate/clientsession-generate-tmp/Main.dyn_o )
Linking dist/build/clientsession-generate/clientsession-generate ...
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/x86_64-linux-ghc-8.10.3/libHScprng-aes-0.6.1-IOVcyqABYxNFaGL55yjj91-ghc8.10.3.so: undefined reference to `cipherzmaeszm0zi2zi11zm16LqnL45GkCFxDkMuXAshv_CryptoziCipherziAES_zdwgenCounter_info'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/x86_64-linux-ghc-8.10.3/libHScprng-aes-0.6.1-IOVcyqABYxNFaGL55yjj91-ghc8.10.3.so: undefined reference to `cipherzmaeszm0zi2zi11zm16LqnL45GkCFxDkMuXAshv_CryptoziCipherziAES_zdwlvl_info'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/x86_64-linux-ghc-8.10.3/libHScprng-aes-0.6.1-IOVcyqABYxNFaGL55yjj91-ghc8.10.3.so: undefined reference to `cipherzmaeszm0zi2zi11zm16LqnL45GkCFxDkMuXAshv_CryptoziCipherziAES_zdwgenCounter_closure'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/x86_64-linux-ghc-8.10.3/libHScrypto-api-0.13.3-4nfAKFpI5aU1YCBB0Js14o-ghc8.10.3.so: undefined reference to `entropyzm0zi4zi1zi6zm401efJw9nRwIZZxZZeL9eu3s_SystemziEntropyNix_ensurePoolInitializzed_closure'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/x86_64-linux-ghc-8.10.3/libHScrypto-api-0.13.3-4nfAKFpI5aU1YCBB0Js14o-ghc8.10.3.so: undefined reference to `entropyzm0zi4zi1zi6zm401efJw9nRwIZZxZZeL9eu3s_SystemziEntropyNix_UseGetRandom_closure'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/x86_64-linux-ghc-8.10.3/libHScrypto-api-0.13.3-4nfAKFpI5aU1YCBB0Js14o-ghc8.10.3.so: undefined reference to `entropyzm0zi4zi1zi6zm401efJw9nRwIZZxZZeL9eu3s_SystemziEntropyNix_openHandle2_closure'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/x86_64-linux-ghc-8.10.3/libHScprng-aes-0.6.1-IOVcyqABYxNFaGL55yjj91-ghc8.10.3.so: undefined reference to `cipherzmaeszm0zi2zi11zm16LqnL45GkCFxDkMuXAshv_CryptoziCipherziAES_zdwlvl_closure'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/x86_64-linux-ghc-8.10.3/libHScrypto-api-0.13.3-4nfAKFpI5aU1YCBB0Js14o-ghc8.10.3.so: undefined reference to `entropyzm0zi4zi1zi6zm401efJw9nRwIZZxZZeL9eu3s_SystemziEntropyNix_systemHasGetRandom_closure'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/x86_64-linux-ghc-8.10.3/libHScrypto-api-0.13.3-4nfAKFpI5aU1YCBB0Js14o-ghc8.10.3.so: undefined reference to `entropyzm0zi4zi1zi6zm401efJw9nRwIZZxZZeL9eu3s_SystemziEntropyNix_zdwhGetEntropy_info'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/x86_64-linux-ghc-8.10.3/libHSmemory-0.15.0-EzMyT2pE6xjCz4D13jQRWD-ghc8.10.3.so: undefined reference to `memoryzm0zi15zi0zmEzzMyT2pE6xjCzz4D13jQRWD_DataziMemoryziPtrMethods_zdwmemXor_info'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/x86_64-linux-ghc-8.10.3/libHSmemory-0.15.0-EzMyT2pE6xjCz4D13jQRWD-ghc8.10.3.so: undefined reference to `memoryzm0zi15zi0zmEzzMyT2pE6xjCzz4D13jQRWD_DataziMemoryziPtrMethods_memXor1_info'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/x86_64-linux-ghc-8.10.3/libHScprng-aes-0.6.1-IOVcyqABYxNFaGL55yjj91-ghc8.10.3.so: undefined reference to `cipherzmaeszm0zi2zi11zm16LqnL45GkCFxDkMuXAshv_CryptoziCipherziAES_initAES1_closure'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/dev-haskell/clientsession-0.9.1.2/work/clientsession-0.9.1.2/dist/build/libHSclientsession-0.9.1.2-Lg9kE2XWeWl1IxmYMq0TR4-ghc8.10.3.so: undefined reference to `cipherzmaeszm0zi2zi11zm16LqnL45GkCFxDkMuXAshv_CryptoziCipherziAES_zdwencryptCTR_closure'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/x86_64-linux-ghc-8.10.3/libHSentropy-0.4.1.6-401efJw9nRwIZxZeL9eu3s-ghc8.10.3.so: undefined reference to `entropyzm0zi4zi1zi6zm401efJw9nRwIZZxZZeL9eu3s_SystemziEntropyNix_hardwareRandom1_info'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/x86_64-linux-ghc-8.10.3/libHScrypto-api-0.13.3-4nfAKFpI5aU1YCBB0Js14o-ghc8.10.3.so: undefined reference to `entropyzm0zi4zi1zi6zm401efJw9nRwIZZxZZeL9eu3s_SystemziEntropyNix_zdwhGetEntropy_closure'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/x86_64-linux-ghc-8.10.3/libHScprng-aes-0.6.1-IOVcyqABYxNFaGL55yjj91-ghc8.10.3.so: undefined reference to `cipherzmaeszm0zi2zi11zm16LqnL45GkCFxDkMuXAshv_CryptoziCipherziAES_zdtcAESIV_closure'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/x86_64-linux-ghc-8.10.3/libHScrypto-api-0.13.3-4nfAKFpI5aU1YCBB0Js14o-ghc8.10.3.so: undefined reference to `entropyzm0zi4zi1zi6zm401efJw9nRwIZZxZZeL9eu3s_SystemziEntropyNix_CH_con_info'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/dev-haskell/clientsession-0.9.1.2/work/clientsession-0.9.1.2/dist/build/libHSclientsession-0.9.1.2-Lg9kE2XWeWl1IxmYMq0TR4-ghc8.10.3.so: undefined reference to `cipherzmaeszm0zi2zi11zm16LqnL45GkCFxDkMuXAshv_CryptoziCipherziAES_zdtcAES_closure'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/x86_64-linux-ghc-8.10.3/libHSmemory-0.15.0-EzMyT2pE6xjCz4D13jQRWD-ghc8.10.3.so: undefined reference to `memoryzm0zi15zi0zmEzzMyT2pE6xjCzz4D13jQRWD_DataziMemoryziPtrMethods_zdwmemConstEqual_info'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/x86_64-linux-ghc-8.10.3/libHSmemory-0.15.0-EzMyT2pE6xjCz4D13jQRWD-ghc8.10.3.so: undefined reference to `memoryzm0zi15zi0zmEzzMyT2pE6xjCzz4D13jQRWD_DataziMemoryziPtrMethods_zdwmemReverse_info'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/dev-haskell/clientsession-0.9.1.2/work/clientsession-0.9.1.2/dist/build/libHSclientsession-0.9.1.2-Lg9kE2XWeWl1IxmYMq0TR4-ghc8.10.3.so: undefined reference to `cipherzmaeszm0zi2zi11zm16LqnL45GkCFxDkMuXAshv_CryptoziCipherziAES_zdwencryptCTR_info'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/x86_64-linux-ghc-8.10.3/libHSentropy-0.4.1.6-401efJw9nRwIZxZeL9eu3s-ghc8.10.3.so: undefined reference to `entropyzm0zi4zi1zi6zm401efJw9nRwIZZxZZeL9eu3s_SystemziEntropyNix_hardwareRandom1_closure'
collect2: error: ld returned 1 exit status
`x86_64-pc-linux-gnu-gcc' failed in phase `Linker'. (Exit code: 1)
 * ERROR: dev-haskell/clientsession-0.9.1.2::haskell failed (compile phase):
 *   setup build failed
 * 
 * Call stack:
 *     ebuild.sh, line  125:  Called src_compile
 *   environment, line 3932:  Called haskell-cabal_src_compile
 *   environment, line 3096:  Called cabal_src_compile
 *   environment, line 1912:  Called cabal-build
 *   environment, line 1670:  Called die
 * The specific snippet of code:
 *       ./setup "$@" || die "setup build failed"
 * 
 * If you need support, post the output of `emerge --info '=dev-haskell/clientsession-0.9.1.2::haskell'`,
 * the complete build log and the output of `emerge -pqv '=dev-haskell/clientsession-0.9.1.2::haskell'`.
 * The complete build log is located at '/var/tmp/portage/dev-haskell/clientsession-0.9.1.2/temp/build.log.gz'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-haskell/clientsession-0.9.1.2/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-haskell/clientsession-0.9.1.2/work/clientsession-0.9.1.2'
 * S: '/var/tmp/portage/dev-haskell/clientsession-0.9.1.2/work/clientsession-0.9.1.2'

>>> Failed to emerge dev-haskell/clientsession-0.9.1.2, Log file:

>>>  '/var/tmp/portage/dev-haskell/clientsession-0.9.1.2/temp/build.log.gz'
*** Resuming merge...

These are the packages that would be merged, in order:

Calculating dependencies... done!

 * Messages for package dev-haskell/clientsession-0.9.1.2:

 * ERROR: dev-haskell/clientsession-0.9.1.2::haskell failed (compile phase):
 *   setup build failed
 * 
 * Call stack:
 *     ebuild.sh, line  125:  Called src_compile
 *   environment, line 3932:  Called haskell-cabal_src_compile
 *   environment, line 3096:  Called cabal_src_compile
 *   environment, line 1912:  Called cabal-build
 *   environment, line 1670:  Called die
 * The specific snippet of code:
 *       ./setup "$@" || die "setup build failed"
 * 
 * If you need support, post the output of `emerge --info '=dev-haskell/clientsession-0.9.1.2::haskell'`,
 * the complete build log and the output of `emerge -pqv '=dev-haskell/clientsession-0.9.1.2::haskell'`.
 * The complete build log is located at '/var/tmp/portage/dev-haskell/clientsession-0.9.1.2/temp/build.log.gz'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-haskell/clientsession-0.9.1.2/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-haskell/clientsession-0.9.1.2/work/clientsession-0.9.1.2'
 * S: '/var/tmp/portage/dev-haskell/clientsession-0.9.1.2/work/clientsession-0.9.1.2'
 * One or more packages are either masked or have missing dependencies:
 * 
 *   >=dev-lang/ghc-7.4.1:0/8.10.2= pulled in by:
 *     (dev-haskell/clientsession-0.9.1.2:0/0.9.1.2::haskell, installed)
 * 
 * The resume list contains packages that are either masked or have
 * unsatisfied dependencies. Please restart/continue the operation
 * manually, or use --skipfirst to skip the first package in the list and
 * any other packages that may be masked or have missing dependencies.
 * 
 * The following package has failed to build, install, or execute postinst:
 * 
 *  (dev-haskell/clientsession-0.9.1.2:0/0.9.1.2::haskell, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/dev-haskell/clientsession-0.9.1.2/temp/build.log.gz'
 * 
Searching for packages installed with a different version of GHC.

Found the following old packages:
  * dev-haskell/aeson-pretty:0
  * dev-haskell/clientsession:0
  * dev-haskell/connection:0
  * dev-haskell/cryptonite-conduit:0
  * dev-haskell/hledger:0
  * dev-haskell/hledger-lib:0
  * dev-haskell/hledger-web:0
  * dev-haskell/html-conduit:0
  * dev-haskell/http-client-tls:0
  * dev-haskell/http-conduit:0
  * dev-haskell/persistent-template:0
  * dev-haskell/tls:0
  * dev-haskell/wai-app-static:0
  * dev-haskell/wai-handler-launch:0
  * dev-haskell/x509-system:0
  * dev-haskell/x509-validation:0
  * dev-haskell/xml-conduit:0
  * dev-haskell/yaml:0
  * dev-haskell/yesod:0
  * dev-haskell/yesod-core:0
  * dev-haskell/yesod-form:0
  * dev-haskell/yesod-persistent:0
  * dev-haskell/yesod-static:0
  * dev-haskell/yesod-test:0
  * dev-util/shellcheck:0

Searching for Haskell libraries with broken dependencies.

No broken packages found!

Updater's past history:
Pass 1 : dev-haskell/aeson-pretty:0 dev-haskell/clientsession:0 dev-haskell/connection:0 dev-haskell/cryptonite-conduit:0 dev-haskell/hledger:0 dev-haskell/hledger-lib:0 dev-haskell/hledger-web:0 dev-haskell/html-conduit:0 dev-haskell/http-client-tls:0 dev-haskell/http-conduit:0 dev-haskell/persistent-template:0 dev-haskell/tls:0 dev-haskell/wai-app-static:0 dev-haskell/wai-handler-launch:0 dev-haskell/x509-system:0 dev-haskell/x509-validation:0 dev-haskell/xml-conduit:0 dev-haskell/yaml:0 dev-haskell/yesod:0 dev-haskell/yesod-core:0 dev-haskell/yesod-form:0 dev-haskell/yesod-persistent:0 dev-haskell/yesod-static:0 dev-haskell/yesod-test:0 dev-util/shellcheck:0
ERROR: Updater stuck in the loop and can't progress

@trofi
Copy link
Contributor

trofi commented Dec 28, 2020

I think minimizing amount of changes needed for a system to destabilize would be good to find out (say, in a fresh chroot). You have many options not safe to use due to relatively limited testing like -fno-semantic-interposition or -fipa-pta.

@trofi
Copy link
Contributor

trofi commented Dec 28, 2020

I think I got minimal reproducer:

-- cat Main.hs
{-# LANGUAGE ForeignFunctionInterface #-}

{-
  $ /usr/bin/ghc --make -O -dynamic -fPIC -hide-all-packages -package=base Main.hs -fforce-recomp
  <ok>
  $ /usr/bin/ghc --make -O -dynamic -fPIC -hide-all-packages -package=base Main.hs -optc-flto -optc-ffat-lto-objects -optc-fuse-linker-plugin -optl-flto -optl-flto-partition=max -optl-fuse-linker-plugin -fforce-recomp
  <artificial>:(.text+0xe8): undefined reference to `ZCMain_main_closure'
  collect2: error: ld returned 1 exit status
-}

module Main (main) where

import Foreign.Ptr

-- Seemingly unrelated, but affects symbol resolution of 'ZCMain_main_closure'
foreign import ccall unsafe "stdlib.h free"
    c_pcre_compile  :: Ptr () -> IO ()

main :: IO ()
main = return ()

@trofi
Copy link
Contributor

trofi commented Dec 28, 2020

ghc uses partial linking to glue together object file generated by ghc (without LTO) and object file generated by gcc (with LTO):

$ /usr/bin/ghc --make -O -dynamic -fPIC -hide-all-packages -package=base Main.hs -optc-flto -optc-ffat-lto-objects -optc-fuse-linker-plugin -optl-flto -optl-flto-partition=max -optl-fuse-linker-plugin -fforce-recomp -v
...
x86_64-pc-linux-gnu-gcc -x c /tmp/ghc4150722_0/ghc_3.c -o /tmp/ghc4150722_0/ghc_4.s -no-pie -fPIC -U__PIC__ -D__PIC__ -Wimplicit -S -O -include /usr/lib64/ghc-8.10.3/include/ghcversion.h -iquote. -I/usr/lib64/ghc-8.10.3/base-4.14.1.0/include -I/usr/lib64/ghc-8.10.3/integer-gmp-1.0.3.0/include -I/usr/lib64/ghc-8.10.3/include -I/usr/lib64/libffi/include -flto -ffat-lto-objects -fuse-linker-plugin
...
x86_64-pc-linux-gnu-ld -r '--build-id=none' -o Main.o /tmp/ghc4150722_0/ghc_8.ldscript
...

That forces false impression on gcc / ld that final binary has up-to-date LTO representation of all code in final .o file (which is not true). As a result we lose closure definitions where .c file was glued in.

@trofi
Copy link
Contributor

trofi commented Dec 28, 2020

The upstream bug is https://sourceware.org/PR12291

@trofi
Copy link
Contributor

trofi commented Dec 28, 2020

Filed https://sourceware.org/PR27122 to get better diagnostic from ld if possible.

Meanwhile we'll need to avoid any LTO flags in haskell packages.

@trofi trofi closed this as completed in d232818 Dec 28, 2020
@trofi
Copy link
Contributor

trofi commented Dec 28, 2020

Can you give d232818 a try and check how it goes?

You'll need to rebuild all the haskell libraries that complain about missing symbols. It should not be too hard.

Example error:

/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/x86_64-linux-ghc-8.10.3/libHScprng-aes-0.6.1-IOVcyqABYxNFaGL55yjj91-ghc8.10.3.so: undefined reference to `cipherzmaeszm0zi2zi11zm16LqnL45GkCFxDkMuXAshv_CryptoziCipherziAES_zdwlvl_closure'

Example fix:

# emerge -v1 /usr/lib64/x86_64-linux-ghc-8.10.3/libHScprng-aes-0.6.1-IOVcyqABYxNFaGL55yjj91-ghc8.10.3.so

@matoro
Copy link
Contributor Author

matoro commented Dec 29, 2020

Can you give d232818 a try and check how it goes?

You'll need to rebuild all the haskell libraries that complain about missing symbols. It should not be too hard.

Example error:

/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/x86_64-linux-ghc-8.10.3/libHScprng-aes-0.6.1-IOVcyqABYxNFaGL55yjj91-ghc8.10.3.so: undefined reference to `cipherzmaeszm0zi2zi11zm16LqnL45GkCFxDkMuXAshv_CryptoziCipherziAES_zdwlvl_closure'

Example fix:

# emerge -v1 /usr/lib64/x86_64-linux-ghc-8.10.3/libHScprng-aes-0.6.1-IOVcyqABYxNFaGL55yjj91-ghc8.10.3.so

I just went ahead and rebuilt everything with that commit, and that did seem to resolve it. I guess LTO is just more trouble than it's worth for Haskell. Thank you very much for all the help.

@trofi
Copy link
Contributor

trofi commented Dec 29, 2020

LTO is generally an experimental technology. If use it system-wide you will keep encountering very nasty and complicated corner cases that are probably specific to your system. You might have to get familiar how to debug them and extract small examples for upstreams to fix.

gentoo-bot pushed a commit to gentoo/gentoo that referenced this issue Jan 30, 2021
`ghc` uses partial linking to glue together object
files produced by `gcc` and `ghc`. In case of -flto*
flags we have a chance to mix IR section incorrectly
due to ld deficiency: https://sourceware.org/PR12291

Let's filter out -flto-related flags until binutils is
ready.

Reported-by: matoro
Closes: gentoo-haskell/gentoo-haskell#1110
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants