Opened 3 years ago

Closed 3 years ago

#27 closed defect (fixed)

Failed to build with ghc 7.10.2

Reported by: anonymous Owned by: zubr
Priority: critical Component:
Version: 1.3.2 Keywords:
Cc: Project: adblock2privoxy

Description

I have custom Funtoo ebuild, but after latest haskell update it fails to build with this:

>>> Emerging (1 of 1) net-proxy/adblock2privoxy-1.3.3 from bonifac
 * adblock2privoxy-1.3.3.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                 [ ok ]
>>> Unpacking source...
>>> Unpacking adblock2privoxy-1.3.3.tar.gz to /var/tmp/portage/net-proxy/adblock2privoxy-1.3.3/work
>>> Source unpacked in /var/tmp/portage/net-proxy/adblock2privoxy-1.3.3/work
>>> Compiling source in /var/tmp/portage/net-proxy/adblock2privoxy-1.3.3/work/adblock2privoxy-1.3.3 ...
 * Using cabal-1.22.4.0.
 * Prepending /usr/lib64/ghc-7.10.2 to LD_LIBRARY_PATH
/usr/bin/ghc -package Cabal-1.22.4.0 --make /var/tmp/portage/net-proxy/adblock2privoxy-1.3.3/work/adblock2privoxy-1.3.3/Setup.hs -threaded -dynamic -o setup
[1 of 1] Compiling Main             ( /var/tmp/portage/net-proxy/adblock2privoxy-1.3.3/work/adblock2privoxy-1.3.3/Setup.hs, /var/tmp/portage/net-proxy/adblock2privoxy-1.3.3/work/adblock2privoxy-1.3.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=adblock2privoxy-1.3.3/ghc-7.10.2 --datadir=/usr/share/ --datasubdir=adblock2privoxy-1.3.3/ghc-7.10.2 --ghc-option=-j4 --ghc-option=-optc-march=bdver1 --ghc-option=-optc-O2 --ghc-option=-optc-pipe --ghc-option=-optl-Wl,-O1 --ghc-option=-optl-Wl,--sort-common --ghc-option=-optl-Wl,--as-needed --disable-executable-stripping --docdir=/usr/share/doc/adblock2privoxy-1.3.3 --verbose --enable-shared --enable-executable-dynamic --sysconfdir=/etc --disable-library-stripping
Configuring adblock2privoxy-1.3.3...
Dependency MissingH -any: using MissingH-1.3.0.1
Dependency base ==4.*: using base-4.8.1.0
Dependency containers -any: using containers-0.5.6.2
Dependency directory -any: using directory-1.2.2.0
Dependency filepath -any: using filepath-1.4.0.0
Dependency http-conduit -any: using http-conduit-2.1.7.2
Dependency mtl -any: using mtl-2.2.1
Dependency network >=2.4: using network-2.6.2.1
Dependency network-uri -any: using network-uri-2.6.0.3
Dependency old-locale >=1.0: using old-locale-1.0.0.7
Dependency parsec -any: using parsec-3.1.9
Dependency parsec-permutation -any: using parsec-permutation-0.1.2.0
Dependency strict >=0.3: using strict-0.3.2
Dependency text >=0.11: using text-1.2.1.3
Dependency time >=1.4: using time-1.5.0.1
Using Cabal-1.22.4.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/adblock2privoxy-1.3.3/ghc-7.10.2
Private binaries installed in: /usr/libexec
Data files installed in: /usr/share/adblock2privoxy-1.3.3/ghc-7.10.2
Documentation installed in: /usr/share/doc/adblock2privoxy-1.3.3
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 4.9.2 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.28 found on system at: /usr/bin/pkg-config
Using strip found on system at: /usr/bin/strip
Using tar found on system at: /bin/tar
No uhc found
./setup build
Building adblock2privoxy-1.3.3...
Preprocessing executable 'adblock2privoxy' for adblock2privoxy-1.3.3...
[ 1 of 16] Compiling Utils            ( src/Utils.hs, dist/build/adblock2privoxy/adblock2privoxy-tmp/Utils.dyn_o )
[ 2 of 16] Compiling ParsecExt        ( src/ParsecExt.hs, dist/build/adblock2privoxy/adblock2privoxy-tmp/ParsecExt.dyn_o )
[ 3 of 16] Compiling Paths_adblock2privoxy ( dist/build/autogen/Paths_adblock2privoxy.hs, dist/build/adblock2privoxy/adblock2privoxy-tmp/Paths_adblock2privoxy.dyn_o )
[ 4 of 16] Compiling ProgramOptions   ( src/ProgramOptions.hs, dist/build/adblock2privoxy/adblock2privoxy-tmp/ProgramOptions.dyn_o )
[ 5 of 16] Compiling UrlBlocker[boot] ( src/UrlBlocker.hs-boot, dist/build/adblock2privoxy/adblock2privoxy-tmp/UrlBlocker.dyn_o-boot )
[ 6 of 16] Compiling Templates        ( src/Templates.hs, dist/build/adblock2privoxy/adblock2privoxy-tmp/Templates.dyn_o )

src/Templates.hs:6: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()
[ 7 of 16] Compiling InputParser      ( src/InputParser.hs, dist/build/adblock2privoxy/adblock2privoxy-tmp/InputParser.dyn_o )
[ 8 of 16] Compiling SourceInfo       ( src/SourceInfo.hs, dist/build/adblock2privoxy/adblock2privoxy-tmp/SourceInfo.dyn_o )

src/SourceInfo.hs:42:60:
    Ambiguous occurrence ‘defaultTimeLocale’
    It could refer to either ‘System.Locale.defaultTimeLocale’,
                             imported from ‘System.Locale’ at src/SourceInfo.hs:16:1-20
                          or ‘Data.Time.Format.defaultTimeLocale’,
                             imported from ‘Data.Time.Format’ at src/SourceInfo.hs:17:1-23
                             (and originally defined in ‘time-1.5.0.1:Data.Time.Format.Locale’)

src/SourceInfo.hs:86:27:
    Ambiguous occurrence ‘defaultTimeLocale’
    It could refer to either ‘System.Locale.defaultTimeLocale’,
                             imported from ‘System.Locale’ at src/SourceInfo.hs:16:1-20
                          or ‘Data.Time.Format.defaultTimeLocale’,
                             imported from ‘Data.Time.Format’ at src/SourceInfo.hs:17:1-23
                             (and originally defined in ‘time-1.5.0.1:Data.Time.Format.Locale’)
[ 9 of 16] Compiling OptionsConverter ( src/OptionsConverter.hs, dist/build/adblock2privoxy/adblock2privoxy-tmp/OptionsConverter.dyn_o )

src/OptionsConverter.hs:9: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()

src/OptionsConverter.hs:12:1: Warning:
    The import of ‘Data.Monoid’ is redundant
      except perhaps to import instances from ‘Data.Monoid’
    To import instances alone, use: import Data.Monoid()
[10 of 16] Compiling PatternConverter ( src/PatternConverter.hs, dist/build/adblock2privoxy/adblock2privoxy-tmp/PatternConverter.dyn_o )
[11 of 16] Compiling UrlBlocker       ( src/UrlBlocker.hs, dist/build/adblock2privoxy/adblock2privoxy-tmp/UrlBlocker.dyn_o )

src/UrlBlocker.hs:94:5:
    Non type-variable argument
      in the constraint: MonadState (Map.Map String String) m
    (Use FlexibleContexts to permit this)
    When checking that ‘shortenFilter’ has the inferred type
      shortenFilter :: forall (m :: * -> *).
                       MonadState (Map.Map String String) m =>
                       HeaderFilter -> m HeaderFilter
    In an equation for ‘shortenNodes’:
        shortenNodes nodes
          = evalState (mapM shortenNode nodes) initialState
          where
              initialState = Map.empty :: Map.Map String String
              shortenNode node
                = (\ f -> node {_filters = f})
                  <$> (mapM . mapM) shortenFilter (_filters node)
              shortenFilter headerFilter@(HeaderFilter headerType flt)
                = let ... in do { ... }
[12 of 16] Compiling Statistics       ( src/Statistics.hs, dist/build/adblock2privoxy/adblock2privoxy-tmp/Statistics.dyn_o )
[13 of 16] Compiling Task             ( src/Task.hs, dist/build/adblock2privoxy/adblock2privoxy-tmp/Task.dyn_o )

src/Task.hs:9: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()
[14 of 16] Compiling PolicyTree       ( src/PolicyTree.hs, dist/build/adblock2privoxy/adblock2privoxy-tmp/PolicyTree.dyn_o )

src/PolicyTree.hs:14: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()

It was working with previous version (but i don't know which exact this version was).

Change History (2)

comment:1 Changed 3 years ago by zubr

  • Owner set to zubr

comment:2 Changed 3 years ago by zubr

  • Resolution set to fixed
  • Status changed from new to closed
  • Version set to 1.3.2

Fixed in version 1.4.0

Note: See TracTickets for help on using tickets.