Building on Fedora 29

Create issue
Issue #57 new
Thadeus Protz created an issue

Installing arbtt to be used with https://github.com/tmiasko/arbtt-capture currently fails on Fedora 29.

After not only libX11-devel, but also libXScrnSaver-devel provides neccessary dependencies (reference: https://forum.qt.io/post/518564), the build shows warnings and errors.

# cabal install arbtt         
Resolving dependencies...
Downloading text-1.2.3.1...
Configuring X11-1.9...
Configuring text-1.2.3.1...
Building text-1.2.3.1...
Building X11-1.9...
Installed X11-1.9
Installed text-1.2.3.1
Downloading parsec-3.1.13.0...
Configuring parsec-3.1.13.0...
Building parsec-3.1.13.0...
Installed parsec-3.1.13.0
Downloading arbtt-0.6.1...
Configuring arbtt-0.6.1...
Building arbtt-0.6.1...
Failed to install arbtt-0.6.1
Build log ( /root/.cabal/logs/ghc-8.2.2/arbtt-0.6.1-HlRmti6WGmm2y9BpB0PiDn.log ):
cabal: Entering directory '/tmp/cabal-tmp-32726/arbtt-0.6.1'
Configuring arbtt-0.6.1...
Preprocessing executable 'arbtt-stats' for arbtt-0.6.1..
Building executable 'arbtt-stats' for arbtt-0.6.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 12] Compiling Data.MyText      ( src/Data/MyText.hs, dist/build/arbtt-stats/arbtt-stats-tmp/Data/MyText.o )
[ 2 of 12] Compiling Data.Binary.StringRef ( src/Data/Binary/StringRef.hs, dist/build/arbtt-stats/arbtt-stats-tmp/Data/Binary/StringRef.o )
[ 3 of 12] Compiling Data             ( src/Data.hs, dist/build/arbtt-stats/arbtt-stats-tmp/Data.o )

src/Data.hs:33:10: error:
    Duplicate instance declarations:
      instance NFData UTCTime -- Defined at src/Data.hs:33:10
      instance [safe] NFData UTCTime
        -- Defined in ‘time-1.8.0.4:Data.Time.Clock.Internal.UTCTime’
   |
33 | instance NFData UTCTime where
   |          ^^^^^^^^^^^^^^

src/Data.hs:36:10: error:
    Duplicate instance declarations:
      instance NFData Day -- Defined at src/Data.hs:36:10
      instance [safe] NFData Day
        -- Defined in ‘time-1.8.0.4:Data.Time.Calendar.Days’
   |
36 | instance NFData Day where
   |          ^^^^^^^^^^

src/Data.hs:39:10: error:
    Duplicate instance declarations:
      instance NFData DiffTime -- Defined at src/Data.hs:39:10
      instance NFData DiffTime
        -- Defined in ‘time-1.8.0.4:Data.Time.Clock.Internal.DiffTime’
   |
39 | instance NFData DiffTime where
   |          ^^^^^^^^^^^^^^^
cabal: Leaving directory '/tmp/cabal-tmp-32726/arbtt-0.6.1'
cabal: Error: some packages failed to install:
arbtt-0.6.1-HlRmti6WGmm2y9BpB0PiDn failed during the building phase. The
exception was:
ExitFailure 1

How come we see the NFData errors?

Comments (1)

  1. nomeata repo owner

    You are trying to build arbtt-0.6.1, which is pretty old. Can you do

    cabal install arbtt-0.10.2
    

    If you can’t maybe you need to get a newer version of ghc first. What is your version of ghc (ghc --version)?

  2. Log in to comment