With =dev-haskell/wai-3.0.5.0 installed, it is not possible to install (or upgrade to) or recompile dev-haskell/warp-3.0.13.1 or =dev-haskell/warp-3.0.11, as the compilation of the latter fails with a fatal "Ambiguous occurrence" error. Reproducible: Always Steps to Reproduce: emerge -1v dev-haskell/warp Actual Results: >>> Failed to emerge dev-haskell/warp-3.0.13.1, Log file: >>> '/var/tmp/portage/dev-haskell/warp-3.0.13.1/temp/build.log' >>> Jobs: 30 of 31 complete, 1 failed Load avg: 1.67, 2.37, 3.87 * Package: dev-haskell/warp-3.0.13.1 * Repository: gentoo * Maintainer: haskell * USE: abi_x86_64 allow-sendfilefd amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: preserve-libs sandbox splitdebug userpriv usersandbox >>> Unpacking source... >>> Unpacking warp-3.0.13.1.tar.gz to /var/tmp/portage/dev-haskell/warp-3.0.13.1/work >>> Source unpacked in /var/tmp/portage/dev-haskell/warp-3.0.13.1/work >>> Preparing source in /var/tmp/portage/dev-haskell/warp-3.0.13.1/work/warp-3.0.13.1 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-haskell/warp-3.0.13.1/work/warp-3.0.13.1 ... * Using cabal-1.22.6.0. * Prepending /usr/lib64/ghc-7.10.2 to LD_LIBRARY_PATH /usr/bin/ghc -package Cabal-1.22.6.0 --make /var/tmp/portage/dev-haskell/warp-3.0.13.1/work/warp-3.0.13.1/Setup.lhs -threaded -dynamic -o setup [1 of 1] Compiling Main ( /var/tmp/portage/dev-haskell/warp-3.0.13.1/work/warp-3.0.13.1/Setup.lhs, /var/tmp/portage/dev-haskell/warp-3.0.13.1/work/warp-3.0.13.1/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=warp-3.0.13.1/ghc-7.10.2 --datadir=/usr/share/ --datasubdir=warp-3.0.13.1/ghc-7.10.2 --disable-tests --ghc-option=-j4 --ghc-option=-optc-march=native --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/warp-3.0.13.1 --verbose --enable-shared --enable-executable-dynamic --sysconfdir=/etc --disable-library-stripping --flags=allow-sendfilefd --flag=-network-bytestring --flags=-warp-debug Configuring warp-3.0.13.1... Flags chosen: use-bytestring-builder=False, warp-debug=False, allow-sendfilefd=True, network-bytestring=False Dependency array -any: using array-0.5.1.0 Dependency auto-update >=0.1.1 && <0.2: using auto-update-0.1.3 Dependency base >=3 && <5: using base-4.8.1.0 Dependency blaze-builder >=0.3.3 && <0.5: using blaze-builder-0.4.0.1 Dependency bytestring >=0.10.2.0: using bytestring-0.10.6.0 Dependency case-insensitive >=0.2: using case-insensitive-1.2.0.5 Dependency ghc-prim -any: using ghc-prim-0.4.0.0 Dependency hashable -any: using hashable-1.2.4.0 Dependency http-date -any: using http-date-0.0.6.1 Dependency http-types >=0.8.5: using http-types-0.8.6 Dependency iproute >=1.3.1: using iproute-1.5.0 Dependency network >=2.3: using network-2.6.2.1 Dependency simple-sendfile >=0.2.7 && <0.3: using simple-sendfile-0.2.21 Dependency streaming-commons >=0.1.10: using streaming-commons-0.1.15 Dependency text -any: using text-1.2.2.0 Dependency unix -any: using unix-2.7.1.0 Dependency unix-compat >=0.2: using unix-compat-0.4.1.4 Dependency vault >=0.3: using vault-0.3.0.5 Dependency wai ==3.0.*: using wai-3.0.5.0 Using Cabal-1.22.6.0 compiled by ghc-7.10 Using compiler: ghc-7.10.2 Using install prefix: /usr Binaries installed in: /usr/bin Libraries installed in: /usr/lib64/warp-3.0.13.1/ghc-7.10.2 Private binaries installed in: /usr/libexec Data files installed in: /usr/share/warp-3.0.13.1/ghc-7.10.2 Documentation installed in: /usr/share/doc/warp-3.0.13.1 Configuration files installed in: /etc No alex found Using ar found on system at: /usr/bin/ar No c2hs found No cpphs found Using gcc version 5.3.0 found on system at: /usr/bin/gcc Using ghc version 7.10.2 given by user at: /usr/bin/ghc Using ghc-pkg version 7.10.2 given by user at: /usr/bin/ghc-pkg No ghcjs found No ghcjs-pkg found No greencard found No haddock found No happy found Using haskell-suite found on system at: haskell-suite-dummy-location Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location No hmake found Using hpc version 0.67 found on system at: /usr/bin/hpc Using hsc2hs version 0.67 found on system at: /usr/bin/hsc2hs No hscolour found No jhc found Using ld found on system at: /usr/bin/ld No lhc found No lhc-pkg found Using pkg-config version 0.29 found on system at: /usr/bin/pkg-config Using strip version 2.25 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/warp-3.0.13.1/work/warp-3.0.13.1 ... ./setup build Building warp-3.0.13.1... Preprocessing library warp-3.0.13.1... [ 1 of 24] Compiling Network.Wai.Handler.Warp.Windows ( Network/Wai/Handler/Warp/Windows.hs, dist/build/Network/Wai/Handler/Warp/Windows.o ) [ 2 of 24] Compiling Paths_warp ( dist/build/autogen/Paths_warp.hs, dist/build/Paths_warp.o ) [ 3 of 24] Compiling Network.Wai.Handler.Warp.ResponseHeader ( Network/Wai/Handler/Warp/ResponseHeader.hs, dist/build/Network/Wai/Handler/Warp/ResponseHeader.o ) [ 4 of 24] Compiling Network.Wai.Handler.Warp.ReadInt ( Network/Wai/Handler/Warp/ReadInt.hs, dist/build/Network/Wai/Handler/Warp/ReadInt.o ) [ 5 of 24] Compiling Network.Wai.Handler.Warp.MultiMap ( Network/Wai/Handler/Warp/MultiMap.hs, dist/build/Network/Wai/Handler/Warp/MultiMap.o ) Network/Wai/Handler/Warp/MultiMap.hs:19:1: Warning: The import of ‘Control.Applicative’ is redundant except perhaps to import instances from ‘Control.Applicative’ To import instances alone, use: import Control.Applicative() [ 6 of 24] Compiling Network.Wai.Handler.Warp.IORef ( Network/Wai/Handler/Warp/IORef.hs, dist/build/Network/Wai/Handler/Warp/IORef.o ) [ 7 of 24] Compiling Network.Wai.Handler.Warp.Counter ( Network/Wai/Handler/Warp/Counter.hs, dist/build/Network/Wai/Handler/Warp/Counter.o ) Network/Wai/Handler/Warp/Counter.hs:10:1: Warning: The import of ‘Control.Applicative’ is redundant except perhaps to import instances from ‘Control.Applicative’ To import instances alone, use: import Control.Applicative() [ 8 of 24] Compiling Network.Wai.Handler.Warp.Buffer ( Network/Wai/Handler/Warp/Buffer.hs, dist/build/Network/Wai/Handler/Warp/Buffer.o ) [ 9 of 24] Compiling Network.Wai.Handler.Warp.IO ( Network/Wai/Handler/Warp/IO.hs, dist/build/Network/Wai/Handler/Warp/IO.o ) [10 of 24] Compiling Network.Wai.Handler.Warp.Recv ( Network/Wai/Handler/Warp/Recv.hs, dist/build/Network/Wai/Handler/Warp/Recv.o ) Network/Wai/Handler/Warp/Recv.hs:8:1: Warning: The import of ‘Control.Applicative’ is redundant except perhaps to import instances from ‘Control.Applicative’ To import instances alone, use: import Control.Applicative() [11 of 24] Compiling Network.Wai.Handler.Warp.Date ( Network/Wai/Handler/Warp/Date.hs, dist/build/Network/Wai/Handler/Warp/Date.o ) Network/Wai/Handler/Warp/Date.hs:10:1: Warning: The import of ‘Control.Applicative’ is redundant except perhaps to import instances from ‘Control.Applicative’ To import instances alone, use: import Control.Applicative() [12 of 24] Compiling Network.Wai.Handler.Warp.FdCache ( Network/Wai/Handler/Warp/FdCache.hs, dist/build/Network/Wai/Handler/Warp/FdCache.o ) Network/Wai/Handler/Warp/FdCache.hs:25:1: Warning: The import of ‘Control.Applicative’ is redundant except perhaps to import instances from ‘Control.Applicative’ To import instances alone, use: import Control.Applicative() [13 of 24] Compiling Network.Wai.Handler.Warp.Timeout ( Network/Wai/Handler/Warp/Timeout.hs, dist/build/Network/Wai/Handler/Warp/Timeout.o ) [14 of 24] Compiling Network.Wai.Handler.Warp.Types ( Network/Wai/Handler/Warp/Types.hs, dist/build/Network/Wai/Handler/Warp/Types.o ) [15 of 24] Compiling Network.Wai.Handler.Warp.Header ( Network/Wai/Handler/Warp/Header.hs, dist/build/Network/Wai/Handler/Warp/Header.o ) [16 of 24] Compiling Network.Wai.Handler.Warp.Settings ( Network/Wai/Handler/Warp/Settings.hs, dist/build/Network/Wai/Handler/Warp/Settings.o ) [17 of 24] Compiling Network.Wai.Handler.Warp.Internal ( Network/Wai/Handler/Warp/Internal.hs, dist/build/Network/Wai/Handler/Warp/Internal.o ) [18 of 24] Compiling Network.Wai.Handler.Warp.Conduit ( Network/Wai/Handler/Warp/Conduit.hs, dist/build/Network/Wai/Handler/Warp/Conduit.o ) Network/Wai/Handler/Warp/Conduit.hs:10:1: Warning: The import of ‘Word’ from module ‘Data.Word’ is redundant Network/Wai/Handler/Warp/Conduit.hs:151:26: Warning: In the use of ‘S.breakByte’ (imported from Data.ByteString): Deprecated: "It is an internal function and should never have been exported. Use 'break (== x)' instead. (There are rewrite rules that handle this special case of 'break'.)" Network/Wai/Handler/Warp/Conduit.hs:157:42: Warning: In the use of ‘S.breakByte’ (imported from Data.ByteString): Deprecated: "It is an internal function and should never have been exported. Use 'break (== x)' instead. (There are rewrite rules that handle this special case of 'break'.)" [19 of 24] Compiling Network.Wai.Handler.Warp.RequestHeader ( Network/Wai/Handler/Warp/RequestHeader.hs, dist/build/Network/Wai/Handler/Warp/RequestHeader.o ) Network/Wai/Handler/Warp/RequestHeader.hs:130:21: Warning: In the use of ‘S.breakByte’ (imported from Data.ByteString): Deprecated: "It is an internal function and should never have been exported. Use 'break (== x)' instead. (There are rewrite rules that handle this special case of 'break'.)" [20 of 24] Compiling Network.Wai.Handler.Warp.Request ( Network/Wai/Handler/Warp/Request.hs, dist/build/Network/Wai/Handler/Warp/Request.o ) [21 of 24] Compiling Network.Wai.Handler.Warp.Response ( Network/Wai/Handler/Warp/Response.hs, dist/build/Network/Wai/Handler/Warp/Response.o ) Network/Wai/Handler/Warp/Response.hs:97:43: Ambiguous occurrence ‘parseByteRanges’ It could refer to either ‘Network.Wai.Handler.Warp.RequestHeader.parseByteRanges’, imported from ‘Network.Wai.Handler.Warp.RequestHeader’ at Network/Wai/Handler/Warp/Response.hs:45:48-62 (and originally defined at Network/Wai/Handler/Warp/RequestHeader.hs:135:1-15) or ‘Network.Wai.Internal.parseByteRanges’, imported from ‘Network.Wai.Internal’ at Network/Wai/Handler/Warp/Response.hs:48:1-27 Network/Wai/Handler/Warp/Response.hs:371:25: Ambiguous occurrence ‘hAcceptRanges’ It could refer to either ‘Network.Wai.Handler.Warp.Types.hAcceptRanges’, imported from ‘Network.Wai.Handler.Warp.Types’ at Network/Wai/Handler/Warp/Response.hs:47:1-37 (and originally defined at Network/Wai/Handler/Warp/Types.hs:37:1-13) or ‘Network.Wai.Internal.hAcceptRanges’, imported from ‘Network.Wai.Internal’ at Network/Wai/Handler/Warp/Response.hs:48:1-27 Network/Wai/Handler/Warp/Response.hs:383:39: Ambiguous occurrence ‘hContentRange’ It could refer to either ‘Network.Wai.Handler.Warp.Types.hContentRange’, imported from ‘Network.Wai.Handler.Warp.Types’ at Network/Wai/Handler/Warp/Response.hs:47:1-37 (and originally defined at Network/Wai/Handler/Warp/Types.hs:34:1-13) or ‘Network.Wai.Internal.hContentRange’, imported from ‘Network.Wai.Internal’ at Network/Wai/Handler/Warp/Response.hs:48:1-27 [22 of 24] Compiling Network.Wai.Handler.Warp.SendFile ( Network/Wai/Handler/Warp/SendFile.hs, dist/build/Network/Wai/Handler/Warp/SendFile.o ) * ERROR: dev-haskell/warp-3.0.13.1::gentoo failed (compile phase): * setup build failed * * Call stack: * ebuild.sh, line 133: Called src_compile * environment, line 2843: Called haskell-cabal_src_compile * environment, line 1957: Called cabal_src_compile * environment, line 768: Called cabal-build * environment, line 517: Called die * The specific snippet of code: * ./setup "$@" || die "setup build failed" * * If you need support, post the output of `emerge --info '=dev-haskell/warp-3.0.13.1::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-haskell/warp-3.0.13.1::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-haskell/warp-3.0.13.1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-haskell/warp-3.0.13.1/temp/environment'. * Working directory: '/var/tmp/portage/dev-haskell/warp-3.0.13.1/work/warp-3.0.13.1' * S: '/var/tmp/portage/dev-haskell/warp-3.0.13.1/work/warp-3.0.13.1' Masking =dev-haskell/wai-3.0.5.0 and emerging older versions of wai (and its associates) helps as a workaround, as =dev-haskell/warp-3.0.3.0 does not cause this problem: echo "=dev-haskell/wai-3.0.5.0" >> /etc/portage/package.mask/dev-haskell-wai emerge -1v =dev-haskell/wai-3.0.3.0 =dev-haskell/wai-extra-3.0.10 =dev-haskell/wai-logger-2.2.4.1
Pushed new warp and warp-tls version which should compile against latest wai: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89246d590861436295636f0f22a4bbc6e3172fbc https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f2dedce5bbda66eebe35bdfd298c5600af3e00f Thank you!