Build #3 for arbtt-0.10.1

[all reports]

Package arbtt-0.10.1
Install BuildFailed
Docs NotTried
Tests NotTried
Time submitted 2018-12-25 11:44:41.948647971 UTC
Compiler ghc-8.6.1
OS linux
Arch x86_64
Dependencies X11-1.9, aeson-1.4.2.0, base-4.12.0.0, binary-0.8.6.0, bytestring-0.10.8.2, containers-0.6.0.1, deepseq-1.4.4.0, directory-1.3.3.0, filepath-1.4.2.1, strict-0.3.2, time-1.8.0.2, transformers-0.5.5.0, unix-2.7.2.2, utf8-string-1.0.1.1, aeson-1.4.2.0, array-0.5.2.0, base-4.12.0.0, binary-0.8.6.0, bytestring-0.10.8.2, containers-0.6.0.1, deepseq-1.4.4.0, directory-1.3.3.0, filepath-1.4.2.1, parsec-3.1.13.0, strict-0.3.2, time-1.8.0.2, transformers-0.5.5.0, unix-2.7.2.2, utf8-string-1.0.1.1, aeson-1.4.2.0, attoparsec-0.13.2.2, base-4.12.0.0, binary-0.8.6.0, bytestring-0.10.8.2, conduit-1.3.1, containers-0.6.0.1, deepseq-1.4.4.0, directory-1.3.3.0, exceptions-0.10.0, filepath-1.4.2.1, parsec-3.1.13.0, resourcet-1.2.2, strict-0.3.2, text-1.2.3.1, time-1.8.0.2, transformers-0.5.5.0, unix-2.7.2.2, unliftio-core-0.1.2.0, utf8-string-1.0.1.1, base-4.12.0.0, binary-0.8.6.0, bytestring-0.10.8.2, containers-0.6.0.1, deepseq-1.4.4.0, directory-1.3.3.0, filepath-1.4.2.1, time-1.8.0.2, unix-2.7.2.2, utf8-string-1.0.1.1, aeson-1.4.2.0, array-0.5.2.0, base-4.12.0.0, binary-0.8.6.0, bytestring-0.10.8.2, bytestring-progress-1.2, containers-0.6.0.1, deepseq-1.4.4.0, directory-1.3.3.0, filepath-1.4.2.1, mtl-2.2.2, parsec-3.1.13.0, pcre-light-0.4.0.4, strict-0.3.2, terminal-progress-bar-0.2, time-1.8.0.2, transformers-0.5.5.0, unix-2.7.2.2, utf8-string-1.0.1.1
Flags -old-locale

Code Coverage

No Code Coverage was submitted for this report.

Build log

[view raw]

Warning: The install command is a part of the legacy v1 style of cabal usage.

Please switch to using either the new project style and the new-install
command or the legacy v1-install alias as new-style projects will become the
default in the next version of cabal-install. Please file a bug if you cannot
replicate a working v1- use case with the new-style commands.

For more information, see: https://wiki.haskell.org/Cabal/NewBuild

Resolving dependencies...
Starting     data-default-class-0.1.2.0
Starting     base-compat-0.10.5
Building     data-default-class-0.1.2.0
Building     base-compat-0.10.5
Completed    data-default-class-0.1.2.0
Starting     dlist-0.8.0.5
Building     dlist-0.8.0.5
Completed    dlist-0.8.0.5
Starting     hashable-1.2.7.0
Building     hashable-1.2.7.0
Completed    base-compat-0.10.5
Starting     integer-logarithms-1.0.2.2
Building     integer-logarithms-1.0.2.2
Completed    integer-logarithms-1.0.2.2
Starting     old-locale-1.0.0.7
Building     old-locale-1.0.0.7
Completed    hashable-1.2.7.0
Starting     pcre-light-0.4.0.4
Building     pcre-light-0.4.0.4
Completed    old-locale-1.0.0.7
Starting     primitive-0.6.4.0
Building     primitive-0.6.4.0
Completed    pcre-light-0.4.0.4
Starting     random-1.1
Building     random-1.1
Completed    random-1.1
Starting     split-0.2.3.3
Building     split-0.2.3.3
Completed    split-0.2.3.3
Starting     stm-chans-3.0.0.4
Building     stm-chans-3.0.0.4
Completed    primitive-0.6.4.0
Starting     strict-0.3.2
Building     strict-0.3.2
Completed    stm-chans-3.0.0.4
Starting     tagged-0.8.6
Building     tagged-0.8.6
Completed    strict-0.3.2
Starting     terminal-size-0.3.2.1
Building     terminal-size-0.3.2.1
Completed    terminal-size-0.3.2.1
Starting     th-abstraction-0.2.10.0
Completed    tagged-0.8.6
Starting     time-locale-compat-0.1.1.5
Building     th-abstraction-0.2.10.0
Building     time-locale-compat-0.1.1.5
Completed    time-locale-compat-0.1.1.5
Starting     transformers-compat-0.6.2
Building     transformers-compat-0.6.2
Completed    th-abstraction-0.2.10.0
Starting     unliftio-core-0.1.2.0
Building     unliftio-core-0.1.2.0
Completed    transformers-compat-0.6.2
Starting     utf8-string-1.0.1.1
Building     utf8-string-1.0.1.1
Completed    unliftio-core-0.1.2.0
Starting     data-default-instances-containers-0.0.1
Building     data-default-instances-containers-0.0.1
Completed    data-default-instances-containers-0.0.1
Starting     data-default-instances-dlist-0.0.1
Building     data-default-instances-dlist-0.0.1
Completed    utf8-string-1.0.1.1
Starting     unordered-containers-0.2.9.0
Completed    data-default-instances-dlist-0.0.1
Starting     async-2.2.1
Building     unordered-containers-0.2.9.0
Building     async-2.2.1
Completed    async-2.2.1
Starting     data-default-instances-old-locale-0.0.1
Building     data-default-instances-old-locale-0.0.1
Completed    data-default-instances-old-locale-0.0.1
Starting     uuid-types-1.0.3
Building     uuid-types-1.0.3
Completed    unordered-containers-0.2.9.0
Starting     vector-0.12.0.2
Completed    uuid-types-1.0.3
Starting     scientific-0.3.6.2
Building     vector-0.12.0.2
Building     scientific-0.3.6.2
Completed    scientific-0.3.6.2
Starting     exceptions-0.10.0
Building     exceptions-0.10.0
Completed    exceptions-0.10.0
Starting     terminal-progress-bar-0.2
Building     terminal-progress-bar-0.2
Completed    terminal-progress-bar-0.2
Starting     data-default-0.7.1.1
Building     data-default-0.7.1.1
Completed    data-default-0.7.1.1
Starting     attoparsec-0.13.2.2
Building     attoparsec-0.13.2.2
Completed    attoparsec-0.13.2.2
Starting     resourcet-1.2.2
Building     resourcet-1.2.2
Completed    resourcet-1.2.2
Starting     bytestring-progress-1.2
Building     bytestring-progress-1.2
Completed    vector-0.12.0.2
Starting     X11-1.9
Completed    bytestring-progress-1.2
Starting     vector-algorithms-0.8.0.1
Building     vector-algorithms-0.8.0.1
Building     X11-1.9
Completed    vector-algorithms-0.8.0.1
Starting     aeson-1.4.2.0
Building     aeson-1.4.2.0
Completed    X11-1.9
Starting     mono-traversable-1.0.10.0
Building     mono-traversable-1.0.10.0
Completed    aeson-1.4.2.0
Completed    mono-traversable-1.0.10.0
Starting     conduit-1.3.1
Building     conduit-1.3.1
Completed    conduit-1.3.1
Starting     arbtt-0.10.1
Building     arbtt-0.10.1
Failed to install arbtt-0.10.1
Build log ( /home/builder/.cabal/logs/ghc-8.6.1/arbtt-0.10.1-CtWyJdboTPGLUQwfoSetWy.log ):
cabal: Entering directory '/tmp/cabal-tmp-4266/arbtt-0.10.1'
Configuring arbtt-0.10.1...
Preprocessing executable 'arbtt-stats' for arbtt-0.10.1..
TermSize.hsc:23:0: warning: "hsc_alignment" redefined [enabled by default]
In file included from dist/build/arbtt-stats/arbtt-stats-tmp/TermSize_hsc_make.c:1:0:
/usr/local/haskell/ghc-8.2.2-x86_64/lib/ghc-8.2.2/template-hsc.h:91:0: note: this is the location of the previous definition
 #define hsc_alignment(x...)                                           \
 ^
Building executable 'arbtt-stats' for arbtt-0.10.1..

src/Data/Binary/StringRef.hs:1:77: warning:
    -XOverlappingInstances is deprecated: instead use per-instance pragmas OVERLAPPING/OVERLAPPABLE/OVERLAPS
  |
1 | {-# LANGUAGE FlexibleInstances, UndecidableInstances, TypeSynonymInstances, OverlappingInstances#-}
  |                                                                             ^^^^^^^^^^^^^^^^^^^^

<no location info>: warning: [-Wmissing-home-modules]
    These modules are needed for compilation but not listed in your .cabal file's other-modules: 
        Paths_arbtt
[ 1 of 16] Compiling Data.MyText      ( src/Data/MyText.hs, dist/build/arbtt-stats/arbtt-stats-tmp/Data/MyText.o )
[ 2 of 16] Compiling Data.Binary.StringRef ( src/Data/Binary/StringRef.hs, dist/build/arbtt-stats/arbtt-stats-tmp/Data/Binary/StringRef.o )
[ 3 of 16] Compiling Data             ( src/Data.hs, dist/build/arbtt-stats/arbtt-stats-tmp/Data.o )
[ 4 of 16] Compiling DumpFormat       ( src/DumpFormat.hs, dist/build/arbtt-stats/arbtt-stats-tmp/DumpFormat.o )
[ 5 of 16] Compiling LeftFold         ( src/LeftFold.hs, dist/build/arbtt-stats/arbtt-stats-tmp/LeftFold.o )
[ 6 of 16] Compiling Paths_arbtt      ( dist/build/arbtt-stats/autogen/Paths_arbtt.hs, dist/build/arbtt-stats/arbtt-stats-tmp/Paths_arbtt.o )
[ 7 of 16] Compiling System.Locale.SetLocale ( dist/build/arbtt-stats/arbtt-stats-tmp/System/Locale/SetLocale.hs, dist/build/arbtt-stats/arbtt-stats-tmp/System/Locale/SetLocale.o )
[ 8 of 16] Compiling CommonStartup    ( src/CommonStartup.hs, dist/build/arbtt-stats/arbtt-stats-tmp/CommonStartup.o )
[ 9 of 16] Compiling TermSize         ( dist/build/arbtt-stats/arbtt-stats-tmp/TermSize.hs, dist/build/arbtt-stats/arbtt-stats-tmp/TermSize.o )
[10 of 16] Compiling Text.Parsec.ExprFail ( src/Text/Parsec/ExprFail.hs, dist/build/arbtt-stats/arbtt-stats-tmp/Text/Parsec/ExprFail.o )
[11 of 16] Compiling Text.ParserCombinators.Parsec.ExprFail ( src/Text/ParserCombinators/Parsec/ExprFail.hs, dist/build/arbtt-stats/arbtt-stats-tmp/Text/ParserCombinators/Parsec/ExprFail.o )
[12 of 16] Compiling Text.Regex.PCRE.Light.Text ( src/Text/Regex/PCRE/Light/Text.hs, dist/build/arbtt-stats/arbtt-stats-tmp/Text/Regex/PCRE/Light/Text.o )
[13 of 16] Compiling Categorize       ( src/Categorize.hs, dist/build/arbtt-stats/arbtt-stats-tmp/Categorize.o )

src/Categorize.hs:11:1: warning: [-Wdeprecations]
    Module ‘Control.Monad.Instances’ is deprecated:
      This module now contains no instances and will be removed in the future
   |
11 | import Control.Monad.Instances()
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[14 of 16] Compiling Stats            ( src/Stats.hs, dist/build/arbtt-stats/arbtt-stats-tmp/Stats.o )

src/Stats.hs:179:33: error:
    • Data.Map.insertWith' is gone. Use Data.Map.Strict.insertWith.
    • In the expression:
        M.insertWith' (+) act (fromInteger (tlRate tl) / 1000) m
      In an equation for ‘go'’:
          go' m act
            = M.insertWith' (+) act (fromInteger (tlRate tl) / 1000) m
      In the expression:
        let
          go' m act
            = M.insertWith' (+) act (fromInteger (tlRate tl) / 1000) m
        in foldl' go' m (snd (tlData tl))
    |
179 |                 let go' m act = M.insertWith' (+) act (fromInteger (tlRate tl)/1000) m
    |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Stats.hs:294:56: error:
    • Data.Map.fold is gone. Use foldr.
    • In the second argument of ‘(-)’, namely
        ‘M.fold (+) 0 filteredSums’
      In the expression: totalTimeSel - M.fold (+) 0 filteredSums
      In an equation for ‘uncategorizedTime’:
          uncategorizedTime = totalTimeSel - M.fold (+) 0 filteredSums
    |
294 |                     uncategorizedTime = totalTimeSel - M.fold (+) 0 filteredSums
    |                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^

src/Stats.hs:296:37: error:
    • Data.Map.fold is gone. Use foldr.
    • In the expression: M.fold (+) 0 tooSmallSums
      In an equation for ‘tooSmallTimes’:
          tooSmallTimes = M.fold (+) 0 tooSmallSums
      In the second argument of ‘($)’, namely
        ‘let
           filteredSums = M.filterWithKey (\ a _ -> isCategory cat a) sums
           uncategorizedTime = totalTimeSel - M.fold (+) 0 filteredSums
           tooSmallSums
             = M.filter
                 (\ t
                    -> realToFrac t / realToFrac totalTimeSel * 100
                         < roMinPercentage opts)
                 filteredSums
           ....
         in
           mapMaybe
             (\ (tag, time)
                -> let
                     perc = ...
                     ....
                   in
                     if pick && perc * 100 >= roMinPercentage opts then
                         Just (show tag, showTimeDiff opts time, perc)
                     else
                         Nothing)
             (reverse $ sortBy (comparing snd) $ M.toList filteredSums)
             ++
               (if tooSmallTimes > 0 then
                    [(printf "(%d entries omitted)" (M.size tooSmallSums), 
                      showTimeDiff opts tooSmallTimes, 
                      realToFrac tooSmallTimes / realToFrac totalTimeSel)]
                else
                    [])
                 ++
                   (if uncategorizedTime > 0 then
                        [("(unmatched time)", showTimeDiff opts uncategorizedTime, 
                          realToFrac uncategorizedTime / realToFrac totalTimeSel)]
                    else
                        [])’
    |
296 |                     tooSmallTimes = M.fold (+) 0 tooSmallSums
    |                                     ^^^^^^^^^^^^^^^^^^^^^^^^^
cabal: Leaving directory '/tmp/cabal-tmp-4266/arbtt-0.10.1'
cabal: Error: some packages failed to install:
arbtt-0.10.1-CtWyJdboTPGLUQwfoSetWy failed during the building phase. The
exception was:
ExitFailure 1

Test log

No test log was submitted for this report.