Building on Fedora 29

Create issue
Issue #57 new
Thadeus Protz created an issue

Installing arbtt to be used with currently fails on Fedora 29.

After not only libX11-devel, but also libXScrnSaver-devel provides neccessary dependencies (reference:, the build shows warnings and errors.

# cabal install arbtt         
Resolving dependencies...
Downloading text-
Configuring X11-1.9...
Configuring text-
Building text-
Building X11-1.9...
Installed X11-1.9
Installed text-
Downloading parsec-
Configuring parsec-
Building parsec-
Installed parsec-
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-’
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-’
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-’
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